code
stringlengths
2
1.05M
// @flow import React from 'react'; import './styles/awesome.css'; const Awesome = ({onClick}: {onClick?: Function}): React.Element<any> => ( <a onClick={onClick} className="awesome"> Click on this Awesome Component </a> ); export default Awesome;
const fs = require('fs').promises; const http = require('http'); const mime = require('mime-types'); const { URL } = require('url'); const { format } = require('util'); const Sentry = require('@sentry/node'); Sentry.init({ dsn: 'https://a7fa45b215ae4cf68bb9320a075234d7@sentry.io/1263950', }); const engine = requir...
'use strict'; module.exports = { db: 'mongodb://localhost/diversityinmotion-dev', app: { title: 'diversityinmotion - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || '1634984180057018', clientSecret: process.env.FACEBOOK_SECRET || '967e97c2d8286b527e9b5bf42bd8d84e', callbackURL:...
var stringUtil = require('ember-cli-string-utils'); var SilentError = require('silent-error'); var pathUtil = require('ember-cli-path-utils'); var existsSync = require('exists-sync'); var path = require('path'); module.exports = function(type, baseClass, packagePath, options) { var entityName = opti...
'use strict'; const blacklist = [ 'freelist', 'sys' ]; module.exports = Object.keys(process.binding('natives')) .filter(x => !/^_|^internal|\//.test(x) && blacklist.indexOf(x) === -1) .sort();
/** * Created by leo on 7/4/16. */ Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((th...
version https://git-lfs.github.com/spec/v1 oid sha256:dc9c7d88b2e70188371d34d3e79787fe9bd0db0213ee33ab7b4b0527d673e443 size 7816
version https://git-lfs.github.com/spec/v1 oid sha256:8245e7c87cb5065eeea47c3d575e9482b98a644c35c1b8c6d1e70fb1b09e7980 size 5986
const Promise = require('bluebird'); const path = require('path'); const _ = require('lodash'); const Config = require('./config'); const Category = require('./category'); const CategoryUploader = require('./zendesk-uploader/category-uploader'); const ZendeskDeleter = require('./zendesk-uploader/deleter'); const logge...
/** * ProjectController * @namespace crowdsource.project.controllers * @author dmorina neilthemathguy */ (function () { 'use strict'; angular .module('crowdsource.project.controllers') .controller('ProjectController', ProjectController); ProjectController.$inject = ['$window', '$location', '$scope', 'P...
var app = null; Ext.define('CustomApp', { extend: 'Rally.app.App', componentCls: 'app', launch: function() { app = this; app.numberSprints = app.getSetting("numberSprints"); app.queryIterations(); }, getSettingsFields: function() { var values = [ { name: 'numberSprints', xtype: 'rallytextfi...
module.exports = { api: "/api", port: 4000, db: "mongodb://127.0.0.1/sudosu", logLevel: "dev", secret: "nmcvxljq9uweinsdgfälöaskdpj" };
var mongoose = require('mongoose'); var Schema = require('mongoose').Schema; var Persona = require('./Persona.js'); //Ingreso: {|Persona|, Cantidad, Fecha} var pagoSchema = new Schema({ _creador : { type: Schema.ObjectId, ref: 'Persona' }, fecha: { type: Date, default: Date.now }, cantidad: Number }); pagoSchema...
(function(){reas = new Meteor.Collection("RegisteredEmailAddresses"); /*checks to see if the current user making the request to update is the admin user */ function adminUser(userId) { var adminUser = Meteor.users.findOne({username:"admin"}); return (userId && adminUser && userId === admi...
class Band { constructor(socket) { this.socket = socket; this.members = {}; } watchInstrument(callback) { this.instrumentChanged = callback; } process(frame) { if (this.myId) { this.members[this.myId].process(frame); } } initialize(members, myId) { this.myId = myId; for (let memberId in membe...
/* global __ */ /* eslint-disable func-style, no-param-reassign, object-shorthand */ /** * A stored procedure for Azure DocumentDB which gets a count of the session documents * @function * @param {String} filterOn = 'type' The key to filter documents on for deletion. * @param {String} filterValue =...
'use strict'; angular.module('mean.mean-admin').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider .state('manage', { url: '/admin/manage', templateUrl: 'mean-admin/views/manage.html' }); }...
class rectangleD { constructor(x, y, width, height) { this.x = x; this.y = y; this.width = width; this.height = height; this.left = 0; this.right = 0; this.top = 0; this.bottom = 0; this._computeProperties(); } _computeProperties() { this.left = this.x; this.right = this.x + this.width...
function insert_list(contents) { if (contents) { contents = contents.trimRight("\n"); var colls = contents.split("\n"); colls = colls.map(function(coll) { return "<li><a href=\"/" + coll + "/\">" + coll + "</a></li>"; }); contents = colls.join("\n"); } ...
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './KrakenjsPlainWordmark.svg' /** KrakenjsPlainWordmark */ function KrakenjsPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Krak...
var linkNav=document.querySelectorAll('[href^=\"#nav\"]'),V=0.2; for(var i=0;i<linkNav.length;i++){ linkNav[i].onclick=function(){ var w=window.pageYOffset,hash=this.href.replace(/[^#]*(.*)/,'$1'); t=document.querySelector(hash).getBoundingClientRect().top,start=null; requestAnimationFrame(s...
#!/usr/bin/env node /******************************************************************************* * vim: tabstop=4:shiftwidth=4:expandtab: ******************************************************************************/ 'use strict'; const expandTilde = require('expand-tilde'); const fs = require('fs-extra'); cons...
import loopback from 'ember-cli-loopback-adapter/serializers/loopback'; export default loopback;
import _ from 'underscore'; import s from 'underscore.string'; import { Meteor } from 'meteor/meteor'; import { Tracker } from 'meteor/tracker'; import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { TAPi18n } from 'meteor/rocketchat:tap-i18n'; import { timeAgo, formatDateAndT...
/** * Game.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { autoWatch: false, autosubscribe: ['message', 'update', 'destroy'], attributes: { active: {type: 'bo...
/*globals requireJS*/ /*jshint node:true*/ /** * This class forwards function calls to the storage and in addition: * - checks that input data is of correct format. * - checks that users are authorized to access/change projects. * - updates _users and _projects collections on delete/createProject. * * ...
/** * grunt-nuget * https://github.com/spatools/grunt-nuget * Copyright (c) 2013 SPA Tools * Code below is licensed under MIT License * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the 'Software'), to deal in the Software...
import React, { Component, PropTypes } from 'react' import { FIELD_BACKGROUND_EMPTY, FIELD_BACKGROUND_TARGET, FIELD_BACKGROUND_WALL, FIELD_STEP_FINISH } from '../constants/Sokoban' export default class Field extends Component { render() { const { background, step } = this.props var fieldTemplate =...
import DS from 'ember-data'; import DomainResource from 'ember-fhir/models/domain-resource'; const { attr, belongsTo, hasMany } = DS; export default DomainResource.extend({ identifier: belongsTo('identifier', { async: false }), status: attr('string'), category: hasMany('codeable-concept', { async: true }), pa...
const fs = require("fs").promises; const path = require("path"); const createDefineModules = require("./createDefineModules.js"); const createLibraryFiles = require("./createLibraryFiles.js"); const createWeekData = require("./createWeekData.js"); async function createEmptyDefineFolder(defineFolder) { try { con...
(function(exporter) { /** * socket.io guaranteed delivery socket wrapper. * if the socket gets disconnected at any point, it's up to the application to set a new socket to continue * handling messages. * calling 'setSocket' causes all messages that have not received an ack to be sent again. * @constru...
/** * View * * Manage application scopes and different views */ window.ls.container.set('view', function(http, container) { let stock = {}; let execute = function(view, node, container) { container.set('element', node, true, false); container.resolve(view.controller); if(true !== ...
/************************************************************* * @author : Juan Francisco ( juan.maldonado.leon@gmail.com ) * @desc : Controlador de perfiles. *************************************************************/ app.controller("ProfesionController", function($scope, $http) { $scope.profesiones = []; ...
module.exports = { framework: 'mocha', test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome'], browser_args: { Chrome: { ci: [ // --no-sandbox is needed when running Chrome inside a container process.env.CI ? '--no-sand...
export const SUPPORTED_LOCALES = ['fr', 'en'] export const DEFAULT_LOCALE = 'fr' export const COOKIE_NAMES = { auth: 'KT-Auth', csrfToken: 'KT-CSRF' }
version https://git-lfs.github.com/spec/v1 oid sha256:1591da34b70b2d2113e5f0c1a8acccb9fc0476678881ca91e87314ccdf241e2d size 10496
version https://git-lfs.github.com/spec/v1 oid sha256:66ddd14e9d278283c80c90784d654ba0f3229481a17ddab76725fe94b819409b size 88387
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication', function($scope, $http, $location, Authentication) { $scope.authentication = Authentication; // If user is signed in then redirect back home if ($scope.authentication.user) $location....
// All code points in the `Pahawh_Hmong` script as per Unicode v9.0.0: [ 0x16B00, 0x16B01, 0x16B02, 0x16B03, 0x16B04, 0x16B05, 0x16B06, 0x16B07, 0x16B08, 0x16B09, 0x16B0A, 0x16B0B, 0x16B0C, 0x16B0D, 0x16B0E, 0x16B0F, 0x16B10, 0x16B11, 0x16B12, 0x16B13, 0x16B14, 0x16B15, 0x16B16, 0x16B17, 0x16B1...
'use strict'; var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('') , length = 64 , map = {} , seed = 0 , i = 0 , prev; /** * Return a string representing the specified number. * * @param {Number} num The number to convert. * @returns {String} The string representat...
/* * page.js: A single page (or set of pages) composed to content, metadata, and partials * * (C) 2011, Nodejitsu Inc. * */ var events = require('events'), fs = require('fs'), path = require('path'), plates = require('plates'), Handlebars = require('handlebars'), utile = require('flatiron').co...
/* (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
console.log('This is a CLI!');
GITCE.overview = function (parameters) { var options = $.extend({ refreshTime:5000 }, parameters); var tplServer = $('<li class="server"><h2/><ul class="configs clearfix"></ul>'); var tplConfig = $('<li class="config"><h3 class="name"/>' + '<ul class="branches branches-next"/>' + ...
Package.describe({ summary: "Twitter API for Meteor" }); Package.on_use(function (api, where) { api.use('accounts-twitter', 'server'); api.use('oauth1', 'server'); api.use('http', 'server'); api.export && api.export('TwitterSpark', 'server'); api.add_files(['twitter-api.js'], 'server'); }); Package.on_t...
import { ruleTester, warningFreeBasics, } from "../../../testUtils" import rule, { ruleName, messages } from ".." const testRule = ruleTester(rule, ruleName) testRule("always", tr => { warningFreeBasics(tr) tr.ok("/* comment */") tr.ok("/* comment comment */") tr.ok("/* comment\ncomment */") tr.ok("/* ...
var fs = require('fs') , p = require('path') ; // how to know when you are done? function recursiveReaddirSync(path) { var list = [] , files = fs.readdirSync(path) , stats ; files.forEach(function (file) { stats = fs.lstatSync(p.join(path, file)); if(stats.isDirectory()) { list = lis...
'use strict'; // Komics controller angular.module('komics').controller('KomicsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Komics', 'Reviews', function($scope, $stateParams, $location, Authentication, Komics, Reviews ) { $scope.authentication = Authentication; $scope.review_state = fals...
/* * shape.js */ (function() { // var tm = require("../../../libs/tmlib"); // var THREE = require("../../../libs/three"); // require("./mesh"); tm.define("tm.hybrid.PlaneMesh", { superClass: "tm.hybrid.Mesh", init: function(geometryParam, materialParam) { geometryParam =...
'use strict'; let chai = require('chai'); let dirtyChai = require('dirty-chai'); chai.use(dirtyChai); global.chai = chai; global.expect = chai.expect; global.assert = chai.assert; global.should = chai.should(); process.on('uncaughtException', function(err) { console.error('Uncaught Exception', err, err.stack); ...
// // 2020-12-25, jjuiddong // packet class // - binary data serialize // // 2021-08-24 // - refactoring // - add array get, push // import TypeVariant from "./variant" const VT_EMPTY = 0; const VT_I2 = 2; const VT_I4 = 3; const VT_R4 = 4; const VT_R8 = 5; const VT_BSTR = 8; const VT_BOOL = 11; const VT_I1 = 16; co...
define(['Graft'], function (Graft) { describe('Tools', function () { describe('#parseAttributeFromString', function () { it('parses non-functions correctly', function () { var parsed = Graft.Tools.parseAttributeFromString('something'); chai.expect(parsed.isFunction).to.be.false; cha...
var nautical = require('nautical') var util = require('../util') module.exports = { search: function (account, callback) { var results = [] var client = nautical.getClient({ token: account.token }) var get_servers = function (page, done) { client.droplets.list({ page: page }, function (error, reply...
var request = require('request'); var Q = require('q'); // Request end-point. Fill this in when I know it. var sensorsUrl = 'http://atthack2015-omt66.c9.io/api/users/user1/latest'; // Local magic variables var temperatureThresh = 79; // Fahrenheit var humidityThresh = 37.2; // Percentage var brightnessThresh = 0...
angular.module('synergyCity') .directive('dragStart', function() { return { controller: function($scope, $element, $attrs, $parse) { $element.attr('draggable', true); $element.on('dragstart', function() { $parse($attrs.dragStart)($scope); }); } } }) .directive('drag...
(function(define) { 'use strict'; define(function(require) { /** * PanthR Language parser * * @module panthrLang * @version 0.0.1 * @noPrefix * @author Haris Skiadas <skiadas@hanover.edu> */ var panthrLang, Parser, parser, Node, Evaluate, Expression, Console; Node = require('./pa...
/************************************************************* * * MathJax/localization/ar/HTML-CSS.js * * Copyright (c) 2009-2018 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a...
const _methodsNotToBeBound = { constructor: true, render: true, }; export function bindMethodContext(object) { Object .getOwnPropertyNames(object.constructor.prototype) .filter(name => !_methodsNotToBeBound[name]) .forEach(name => { object[name] = object[name].bind(object); }); }
//var paths = require('/Users/Vsilva/WebstormProjects/BlackBook_AutomationFramework/build/paths'); //var browserstack = require('browserstack-local'); //var paths = require('build/paths'); var dateFormat = require('dateformat'); var protractorConfig = require ('./e2e/features/Repository/BB_configuration.js'); exports....
var request = require('request'); var unzip = require('unzip'); //Settings //var mainURL = 'https://api2.getpebble.com/v2/apps/collection/all/watchfaces?limit=100'; //watchfaces var mainURL = 'https://api2.getpebble.com/v2/apps/collection/all/watchapps-and-companions?limit=100'; var hardware = 'basalt'; var filterhard...
import {inject, bindable, customElement} from 'aurelia-framework'; @customElement('tab-wrapper') @inject(Element) export class TabsWrapper { constructor(element) { this.element = element; } attached() { } }
/** * Created by lvliqi on 2017/5/2. */ const router = require('koa-router')(); const admin_menu = require('../../model/adminMenu'); const admin_user_right = require('../../model/adminUserRight'); const admin_right_group = require('../../model/adminRightGroup'); const admin_right_group_detail = require('../../model/a...
// >>> WARNING THIS PAGE WAS AUTO-GENERATED - DO NOT EDIT!!! <<< import QuestionPage from '../question.page' class ExpenditureExisting2016Page extends QuestionPage { constructor() { super('expenditure-existing-2016') } setExpenditureExisting2016Answer(value) { browser.setValue('[name="expenditure-exis...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.goForward = exports.goBack = exports.jumpTo = undefined; var _history = require('./history'); var _history2 = _interopRequireDefault(_history); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { bindActionCreators } from 'redux' import { withRouter } from 'react-router-dom' import { connect } from 'react-redux' import { Field,reduxForm } from 'redux-form' import * as Actions from 'actions' import SNSLogin from './snsLogin' imp...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
define( "RequireFile" , [ "Base" ] , function( Base ){ var RequireFile, require = function( path , requireFile ){ if( typeof path != "string" ){ this.length--; } else if( requireFile.__requireFileConfig.files[ path ] ){ this.done( path ); } else if( !path.replace( requireFile.__requireFileConfig.f...
import { connect } from 'react-redux'; import { fetchStatusesIfNeeded } from '../actions'; import List from '../components/list'; const mapStateToProps = state => { return { items: state.orderStatuses.items }; }; const mapDispatchToProps = dispatch => { return { onLoad: () => { dispatch(fetchStatusesIfNeede...
/** * Created by Alex on 11/7/14. */ Template.welcomeIndex.helpers.canSignIn = function() { return Accounts.loginServicesConfigured(); }; Template.welcomeIndex.events({ "click a#googleSignIn": function (e) { e.preventDefault(); Meteor.loginWithGoogle({ requestPermissions: ["openid...
define(function() { return function randomInt(min,max, withZero) { var rand = Math.random(); var randInt = Math.round(min + rand*(max-min)); if (withZero) { return randInt; } else { while (randInt === 0) { rand = Math.random(); ...
import loggerCreator from "app/utils/logger"; //noinspection JSUnresolvedVariable var moduleLogger = loggerCreator("backend_lastfm_api"); export const API_KEY = "9e46560f972eb8300c78c0fc837d1c13"; export async function getArtistImage(artist) { let logger = loggerCreator(getArtistImage.name, moduleLogger); ...
function deleteContent(collectionId, path, success, error) { var safePath = checkPathSlashes(path); // send ajax call $.ajax({ url: "/zebedee/content/" + collectionId + "?uri=" + safePath, type: 'DELETE', success: function (response) { if (success) success(response); }, error: fu...
'use strict' const assert = require('assert') const fs = require('fs') const path = require('path') const os = require('os') const http = require('http') const {closeWindow} = require('./window-helpers') const remote = require('electron').remote const screen = require('electron').screen const app = remote.require('e...
var terms; var categories; var series; function parseQueryString() { var query = (location.search || '?').substr(1), map = {}; query.replace(/([^&=]+)=?([^&]*)(?:&+|$)/g, function(match, key, value) { if (key.match(/compare[1-4]/gi)) { (map[key] = map[key] || []).push(decodeURICom...
export default function(fn) { return 'foo ' + fn(); }
$(document).ready(function(){ $("#room_black_bar").on("mouseover", function() { $("#room_black_bar").animate({"padding-top": "-10em"},600); $("#room_black_bar").animate({"margin-top": "12em"},600); }) $("#room_black_bar").on("mouseleave", function() { $("#room_black_bar").animate({"padding-t...
/** * @file SpinningShapes.js * @brief Makes spining shapes * * Creates a canvas with spinning Shapes inside a container div. */ /** * @Class SpinningShapes * @brief Some brief description. * * * */ function SpinningShapes() { 'use strict'; //Holds the canvas element that the shapes are ...
/** * @author Charlie Calvert * Developed in class, Prog 272, Feb 14, 2013 */ function changer() { var divId = $('#select01 option:selected').attr("data-divIndex"); $("#data01").load("data.html #" + divId); } $(document).ready(function() {"use strict"; $("#test01").html("It works"); $("#d...
"use strict"; /** * @param {String} [stores[].action=*] - A user specified store action or all actions. */ module.exports = { "actions": { "onCollectionRefreshIfChanged": { "path": [ "collection" ], "handler": { "lib": "queryHandlers", "actions": { "query": "...
/* * pull page to other one (project qdplus) * Date:2014-02-25 */ ;(function($) { $.fn.mobileScroll = function(options) { $.fn.mobileScroll.defaults = { autohide : true, wheelctl : true, mousectl : true }; var opts = $.extend({}, $.fn.mobileScroll.d...
/* * This file can be used for general library features of gom. * * The library features can be made available as CommonJS modules that the * components in this project utilize. */ if (typeof process !== 'undefined' && process.execPath && process.execPath.indexOf('node') !== -1) { require('coffee-script/register...
app.view.Viewport = class extends app.toolkit.three.R { config() { return { planetSpecs: [ {type: app.view.milkyway.Planet, size: 1 / 2.54, distance: 0.4, period: 0.24, map: metadata.urls.mercury.surfaceMaterial }, {type: app.view.milkyway.Planet, size: 1 / 1.05,...
const Promise = require('bluebird'), domain = require('domain'), fs = require('fs'), AWS = require('aws-sdk'), s3 = new AWS.S3({region: 'us-east-1'}); console.info("LOADING FUNCTIONS"); function json_print(value) { return JSON.stringify(value, null, 2); } function handler(event, context, ca...
/* * This file is part of the serializerjs package. * * (c) HAIRCVT <tfidry@haircvt.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* eslint-env mocha */ import { assert } from 'chai'; import SerializerError from './../../...
import { createBinding } from "creators"; /** * Flag will be set on missing initial state of store * @type {String} */ export const ABSTRACT_STATE_FLAG = "$$isAbstractInitialStoreState"; /** * @class Store * @author Jan Biasi <biasijan@gmail.com> */ export default class Store { /** * Save internal set ...
'use strict'; var test = require('tap').test; var async = require('async'); var cp = require('child_process'); /* var Node = require('../../lib/node.js'); var RiakClient = require('../../lib/client.js'); var nodes = [{ host: '127.0.0.1', port: 8087 }]; */ function exec(cmd, callback) { cp.exec(cmd, function (...
//= require ./underscore EquivalentXml = (function(){ var compare_documents = function(node_1, node_2, opts){ return is_equivalent(node_1.childNodes,node_2.childNodes,opts); }; var compare_elements = function(node_1, node_2, opts){ return node_1.nodeName == node_2.nodeName && compare_children(node_...
import React from "react"; const VideoListItem = ({ video, onVideoSelect }) => { // const video = props.video; const imgUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="me...
/** * Represents the highscore list * * @copyright Nikolay V. Nemshilov aka St. */ Sudoku.Highscore = new Class({ LENGTH: 7, initialize: function() { this.element = $E('div', { id: 'rs-highscore', html: '<label>Highscore</label><ul id="rs-highscore-list"></ul></label>' }); this.l...
git://github.com/chilijung/form.js.git
describe('Modules.ExpensesDataTable.js', function () { const module = moj.Modules.ExpensesDataTable const options = module.options it('...should exist', function () { expect(moj.Modules.ExpensesDataTable).toBeDefined() }) describe('...Options', function () { it('...should have `info` disabled', func...
/** * hilojs 2.0.2 for cmd * Copyright 2016 alibaba.com * Licensed under the MIT License */ define(function(n,e,o){var t=n("hilo/core/Class"),r=n("hilo/util/util"),c=t.create({constructor:function(n){n=n||{},r.copy(this,n,!0)},renderType:null,canvas:null,stage:null,blendMode:"source-over",startDraw:function(n){},dr...
KB.onClick('.accordion-toggle', function(e) { var section = KB.dom(e.target).parent('.accordion-section'); if (section) { KB.dom(section).toggleClass('accordion-collapsed'); KB.dom(KB.dom(section).find('.accordion-content')).toggle(); } });
/* Copyright (c) 2015, SerGIS Project Contributors. All rights reserved. Use of this source code is governed by the MIT License, which can be found in the LICENSE.txt file. */ // node modules var crypto = require("crypto"); // our modules var config = require("../../config"); // The length of the random...
define( [ "shared", "mid.broadcaster" ], function( shared, broadcaster ) { /*** * Simple Method executed when a socket ends */ function closeSocket( socket ) { console.log( ( socket.nick || "guest" ) + " left" ); var i = shared.telnetSockets.indexOf( socket ); if ( i != -1 ) shared.telnetS...
var nest = require('unofficial-nest-api'), querystring = require('querystring'), http = require('http'), username = process.env.NEST_USERNAME, password = process.env.NEST_PASSWORD, device = process.env.NEST_DEVICE_ID, influxHost = process.env.INFLUX_HOST, influxPort = process.env.INFLUX_PORT...
require('angular-ui-mask/dist/mask'); require('ui-select/dist/select'); require('angular-moment'); require('angular-sanitize'); require('angular-file-saver'); require('ng-file-upload'); require('bootstrap'); require('angular-ui-bootstrap'); require('angular-ckeditor'); require('bootstrap-ui-datetime-picker/dist/datetim...
const path = require('path') const webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const { AngularCompilerPlugin } = require('@ngtools/webpack') const { Progre...
//import React from 'react'; //import ReactDOM from 'react-dom'; import AtCoderCutomStandings from './app.js' import injectCustomCSS from './css.js' $('div.table-responsive').hide(); $('#pagination-standings').hide(); $('#standings-csv-link').after('<div id="content"></div>'); //$('head').append('<link href="https://f...
'use strict'; module.exports = { db: 'mongodb://localhost/selectora-test', port: 3001, app: { title: 'selectora - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: ...