code
stringlengths
2
1.05M
const path = require('path'); module.exports = { module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader', query: { presets: ['es2015'] } }, { test: /\.html$/, use: [ { loader: 'html-loa...
'use strict'; /* Forgot password popup */ angular.module('core').directive('resetPassword', function() { return { scope: true, controller: 'PasswordController', controllerAs: 'pwdCtrl' }; });
'use strict'; const urlParser = require('url'); const path = require('path'); const resultUrls = require('./resultUrls'); const storageManager = require('./storageManager'); function getDomainOrFileName(input) { let domainOrFile = input; if (domainOrFile.startsWith('http')) { domainOrFile = urlParser.parse(do...
var chai = require("chai"); var expect = chai.expect; var Validate = require("../index"); describe("Validators", function() { describe("Identical", function() { var messages; before(function() { messages = { missing_token: "missing_token", ...
/* * ThisJS version 1.0.0 (http://thisjs.com) * (c) 2016 Ezra Obiwale * License (http://thisjs.com/#license) */ (function () { var privData = { data: {}, get: function (elem, key) { if (!this.data[elem]) return; return this.data[elem][key]; ...
;(function() { 'use strict'; sigma.utils.pkg('sigma.canvas.nodes'); /** * The default node renderer. It renders the node as a simple disc. * * @param {object} node The node object. * @param {CanvasRenderingContext2D} context The canvas context. * @param {configurable} ...
googletag.cmd.push(function() { googletag.defineSlot('/423694368/video_edu_728x90', [[728, 90], [320, 50]], 'div-gpt-ad-1457502407028-0').addService(googletag.pubads()); googletag.defineSlot('/423694368/video_edu_300x250_1', [300, 250], 'div-gpt-ad-1457502407028-1').addService(googletag.pubads()); goog...
import React, {Component} from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; class SuggestionsView extends Component { render() { let titlePosition = "top"; let titleBackground = "linear-gradient(to bottom, rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.3) 70%,rgba(0,0,0,0) 100%)"; re...
var debug = require('debug')('abc') var exec = require('exec-sh') module.exports = function (command, callback) { debug(command) exec(command, callback) }
/** * @license TOTVS | <%= title %> v<%= version %> * (c) 2015-2016 TOTVS S/A https://www.totvs.com * License: Comercial */ /** * @module totvsApp * @name totvsRouteConfig * @object config * * @created <%= currentDate %> v<%= version %> * @updated <%= currentDate %> v<%= version %> * * @requires totvs-app.module * * @...
version https://git-lfs.github.com/spec/v1 oid sha256:b4e217e39c6e71e3e147501d455421c58e6d1778dd6e5658cd4f688bcb6027df size 2836
var gulp = require('gulp'), changed = require('gulp-changed'), paths = require('../paths'), rename = require("gulp-rename"), del = require('del'), sass = require('gulp-sass'), less = require('gulp-less'), css = require('gulp-uglifycss'), js = require('gulp-uglify'); gulp.task('build-js...
define(function(require, Layout) { var Backbone = require("backbone"); Layout.Navigation = Backbone.View.extend({ template: "layout/nav" }); });
'use strict'; module.exports = { db: 'mongodb://localhost/bloc3-test', port: 3001, app: { title: 'bloc3 - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' ...
function paginationMarkup(page) { return '<!doctype html><html><body><div class="pagination" style="padding: 3000px 0"><a href="' + page + '">Page ' + page + '</a></div></body></html>'; } describe('FineForever', function() { var infinite; beforeEach(function() { jasmine.Ajax.install(); var body = docum...
'use strict'; var _ = require('lodash'); var $ = require('./util/preconditions'); var errors = require('./errors'); var Base58Check = require('./encoding/base58check'); var Networks = require('./networks'); var Hash = require('./crypto/hash'); var JSUtil = require('./util/js'); var PublicKey = require('./publickey'); ...
_.extend(Backbone.Validation.callbacks, { valid: function(view, attr, selector) { // do something console.log("valid..."); }, invalid: function(view, attr, error, selector) { // do something console.log("invalid..."); } }); // Define a model with some validation rules var FormModel = { Perf...
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var angularUtils = require('../util.js'); var FilterGenerator = module.exports = function FilterGenerator(args, options, config) { // By calling `NamedBase` here, we get the argument to the subgenerator ...
// you have a standard 8x8 chessboard, empty but for a single knight on some square. // Emit a series of legal knight moves that result in the knight visiting every square on the chessboard exactly once. // Note that it is not a requirement that the tour be "closed"; // that is, the knight need not end within a single ...
const AbstractCommand = require('./AbstractCommand'); const RaidWebhookSubCommand = require('./SubCommand/RaidWebhookSubCommand'); const RaidMethodSubCommand = require('./SubCommand/RaidMethodSubCommand'); const RaidMessageSubCommand = require('./SubCommand/RaidMessageSubCommand'); const RaidInviteSubCom...
(function() { 'use strict'; angular .module('assessoriaTorrellesApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider.state('dashboard-entity', { abstract: true, parent: 'dashboard', ...
'use strict'; var braintree = require('braintree'); var environment, gateway; require('dotenv').load(); environment = process.env.BT_ENVIRONMENT.charAt(0).toUpperCase() + process.env.BT_ENVIRONMENT.slice(1); // Preset somewhere else // gateway = braintree.connect({ environment: braintree.Environment[environment], ...
'use strict'; var chai = require('chai'); var sinon = require('sinon'); var request = require('request'); var http = require('http'); var should = chai.should(); var proxyquire = require('proxyquire'); var config = require('../config.js'); describe('ExpressApp', function() { describe('#constructor', function() { ...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'scroll-of-heroes', podModulePrefix: 'scroll-of-heroes/modules', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental f...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultFieldResolver = undefined; exports.execute = execute; exports.responsePathAsArray = responsePathAsArray; exports.addPath = addPath; exports.assertValidExecutionArguments = assertValidExecutionArguments; exports.buildExecution...
(function() { "use strict"; angular.module("todoApp.todoApi", ["ngResource"]) .factory("TodoApi", ["$resource", function($resource) { return $resource("/api/todo/", {}, { "update": { method: "PUT" }, "delete": { url: "/api/todo/:i...
module.exports = (_next, num) => { let count = 0; const next = (cb) => { if (count++ < num) { _next(cb); } else { cb(); } }; return next; };
/** * The toolbar object */ import Toolbar from "./toolbar/toolbar.js"; export default Toolbar;
/* exported bb */ var bb = (function() { var allowURLs = false; function isColor(color) { return color.match(/^(?:[a-z]+|#[0-9a-f]{3}|#[0-9a-f]{6})$/i); } function convertTag(tag) { // todo: ignore non-sensical tags by leaving them as text // todo: handle additional tags // list/* // tab...
(function () { navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; RTCPeerConnection = webkitRTCPeerConnection || mozRTCPeerConnection; RTCSessionDescription = RTCSessionDescription || mozRTCSessionDescription; RTCIceCandidate = RTCIceCandidate |...
module.exports = function isList(object){ return object != null && typeof object === 'object' && 'length' in object && !('nodeType' in object) && object.self != object; // in IE8, window.self is window, but it is not === window, but it is == window......... WTF!? }
/*jshint node:true, indent:2, curly:false, eqeqeq:true, immed:true, latedef:true, newcap:true, noarg:true, regexp:true, undef:true, strict:true, trailing:true, white:true */ /*global */ (function () { "use strict"; var config = { customDb: { user: 'admin', password: 'admin', database: 'your-...
angular.module('protractorApp').config(function($routeProvider) { $routeProvider. when('/', { templateUrl: 'partials/home.html' }). when('/api', { templateUrl: 'partials/api.html', controller: 'ApiCtrl', reloadOnSearch: false }). when('/api-overview', { ...
"use strict"; var Schema = require('protobuf').Schema; var fs = require('fs'); var map = { 0: 'Version', 1: 'UDPTunnel', 2: 'Authenticate', 3: 'Ping', 4: 'Reject', 5: 'ServerSync', 6: 'ChannelRemove', 7: 'ChannelState', 8: 'UserRemove', 9: 'UserState', 10: 'BanList', 1...
(function(window, document, $) { var discussion; var embed; var window_width = $(window).width(); var hostname = window.location.hostname; var path = window.location.pathname; var rootPath = path.split('/')[1]; if (path != '/' && path != '/r/' && path != '/l/' && path != '/realtime/' && path !== '/st...
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
function loadStatsData(address, sensorType, measureType, callback) { $.getJSON("http://localhost:8080/wubinet/" + address + "/stats?" + "sensorType=" + sensorType + "&measureType=" + measureType, function(data){ callback(data); }); } function initStatTableUpdater(address, rowId,...
const { nanoid } = require('nanoid/non-secure') const { Provider, RequestClient, Socket } = require('@uppy/companion-client') const emitSocketProgress = require('@uppy/utils/lib/emitSocketProgress') const getSocketHost = require('@uppy/utils/lib/getSocketHost') const EventTracker = require('@uppy/utils/lib/EventTracker...
var FamousEngine = require('famous/core/FamousEngine'); var Transitionable = require('famous/transitions/Transitionable'); // A component that will animate a node's position in x. function Animation (node) { // store a reference to the node this.node = node; // get an id from the node so that we can update...
(function(Experience) { "use strict"; /** * * @param {number[]} weights * @param {number} [fitness] * @constructor */ Experience.Idea = function(weights, fitness) { this.weights = weights; this.fitness = fitness || 0; }; })(Experience);
/** * Core * Global tenant permissions methods and tenant initialization */ _.extend(Core, { tenantId: null, init: function () { let self; self = this; return Tracker.autorun(function () { let domain = document.location.hostname; let tenant; let ...
Array.prototype.randomNumber = function() { return Math.floor(Math.random()*(this[1]-this[0]))+this[0]; } Array.prototype.random = function(slice){ if(slice == null) {slice = false;} var index = [0, this.length].randomNumber(); var item = this[index]; if(slice){ this.splice(index, 1); } ...
import { logToTaskOutput, formatLogMessageOneLine } from './logging' // Set up log emitter listening from SDK, proper error catching and throwing of SDK errors export function wrapTask (func) { return (ctx, task) => { const teardownTaskListeners = logToTaskOutput(task) return func(ctx, task) .then(() =...
const express = require('express'); const path = require('path'); const port = process.env.PORT || 8080; const app = express(); app.use(express.static(__dirname)); app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, 'index.html')); }); app.listen(port, (err) => { if (err) { console.log(...
import React from 'react'; import { shallow } from 'enzyme'; import { ApiTitle } from '../'; describe('ApiTitle Element', () => { it('renders without crashing without content', () => { const render = shallow(<ApiTitle title="" />); const div = <h1 className="Protagonist-title">{''}</h1>; expect(render.co...
// node built-ins var cp = require('child_process'); var exec = require('child_process').exec; var fs = require('fs'); var path = require('path'); var os = require('os'); // build/test script var minimist = require('minimist'); var mocha = require('gulp-mocha'); var Q = require('q'); var semver = require('semver'); va...
module( "hideLoading" ); // after a call to hideLoading(), there should not exist an // element in the DOM with an id #fancybox-loading test( "remove loading element", function() { var body = document.getElementsByTagName('body')[0]; body.innerHTML += '<div id="fancybox-loading"></div>'; F.hideLoading(); this...
define([ 'text!templates/Departments/TopBarTemplate.html', 'custom', 'common' ], function (ContentTopBarTemplate, Custom, Common) { var TopBarView = Backbone.View.extend({ el:'#top-bar', contentType: "Departments", headerType: "Groups", actionType:...
var prepage = 10; var page = 1; var pages = 0; var comments = []; //提交评论 $('#messageBtn').on('click', function() { $.ajax({ type: 'POST', url: '/api/comment/post', data: { contentid: $('#contentId').val(), content: $('#messageContent').val() }, succes...
var fs = require('fs'); function Mime(db) { // Map of extension -> mime type this.types = Object.create(null); // Map of mime type -> extension this.extensions = Object.create(null); if (typeof db === 'object') { this.define(db); this.default_type = this.lookup('bin'); } } /** * Define mimetype...
define([ './math' ], function( math ) {'use strict'; var log = math.log; return log; });
const Product=require('../data/Product'); module.exports = { index: (req, res) => { Product.find({}) .then((currentProducts)=>{ let chicken=currentProducts.filter(p=>p.category==='chicken') let lamb=currentProducts.filter(p=>p.category==='lamb') let beef=currentProducts.filter(p=>p.category...
import { AUTH_LOGIN_SUCCESS, AUTH_LOGIN_FAILURE, AUTH_RESET, AUTH_REGISTER_SUCCESS, AUTH_REGISTER_FAILURE, } from './actions' const initialState = { currentUser: null, failed: false, errors: [], registered: false, registerData: null, } export default function reducer(state = initialState, action = {}) {...
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import createStore from './helpers/createStore'; import {Main, reducer, init} from 'modules/main'; const store = createStore(reducer, init()); render( <Provider store={store}> <Main /> </Provider> , document.g...
const devAPI = 'http://localhost:4000' const prodAPI = 'http://ec2-52-206-122-212.compute-1.amazonaws.com' export default () => { const env = process.env.NODE_ENV if (env === 'development') { return devAPI } else if(env === 'production') { return prodAPI } else { return devAPI } }
// Testing min.js because if the min works, the unminned should also work describe("Dice", function(){ it("inits properly", function(){ expect(dice).toBeDefined(); expect(dice.eval).toBeDefined(); expect(dice.parse).toBeDefined(); expect(dice.eval.eval).toBeDefined(); expect...
var fs = require('fs'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var async = require('async'); var debug = require('debug')('rpi-gpio'); var Epoll = require('epoll').Epoll; var PATH = '/sys/class/gpio'; var POLLERS = []; var PINS = { v1: ...
var style = require('style'); exports.printError = printError function printError(error){ colourError(error,false) } exports.parseStackLine = parseStackLine function parseStackLine (row){ var regex = /^\s*?at\s+([\w\.\-\_\<\>]*)?\s*\(?([\[\ \]\/\-\_\w\.]+)/g // lines = /.*?\:(\d+)\:(\d+)/ , m = regex.ex...
import { Controller } from '../base'; import { ScheduleRequest as Request } from '../requests'; import { ScheduleParser as Parser, ScheduleIndexParser as IndexParser } from '../parsers'; class ActivitiesController extends Controller { static routes = { '/activities': 'list', ...
/*global jQuery, navigator, window, MM, observable*/ MM.JotForm = function (formElement, alert) { 'use strict'; var nameElement = formElement.find('[name=q1_name]'), textAreaElement = formElement.find('textarea'), browserInfoElement = jQuery('<input type="hidden" name="q8_browserInfo" />').appendTo(formElement), ...
"use strict;" require("../dist/crisp-base"); module.exports = require("../test_/BaseJS-xEach-limit_test.js");
import { Data } from '.'; const { Char } = Data; xdescribe('Data.Char', () => { describe('isControl', () => { }); describe('isSpace', () => { describe('(" ")', () => { it('== true', () => { Char.isSpace(' ').should.be.eql(true); }); }); describe('("\\n")', () => { it('== tr...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { vendor: ['react', 'react-dom', 'antd'] }, output: { path: path.join(__dirname, 'build'), filename: '[name].dll.js', /** * output.library * 将会定义为 window.${output.library} * 在这次的例子中,将会定义为`wi...
function jsonToModelPreparer(dataModel){ console.log("jsonToModelPreparer") if(jsonArray.length>0){ var containerCount=0; for(var i = 0; i<jsonArray.length; i++){ if(jsonArray[i].typeOfJSON == 'array'){ JSONtoModel(dataModel,'Container'+(containerCount+1),jsonArray[i]); containerCount++; }else{ ...
import React from 'react' import PropTypes from 'prop-types' import getConfig from 'next/config' import bytes from 'bytes' import {_get} from '../../lib/fetch' import attachI18n from '../../components/hoc/attach-i18n' import CenteredMap from '../../components/centered-map' import Loader from '../../components/center...
alert("Hello world")
import AuthenticationAPI from '../../../api/AuthenticationAPI' import { authenticationTypes } from '../../mutation-types' export default { [authenticationTypes.SET_API] (state) { if (state.authenticationAPI === null) { state.authenticationAPI = new AuthenticationAPI() } }, [authenticationTypes.LOG...
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import FaceTracker from './face-tracker'; import FieldGroup from './fieldgroup'; import Environment from '../environment'; import { dataURItoBlob } from '../common-methods'; class Add extends Component { constructor() { super(); ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _mongoose = require('mongoose'); var _mongoose2 = _interopRequireDefault(_mongoose); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Schema = _mongoose2.default.Schema; var UserSc...
import encodeUrl from 'encodeurl'; import { stripWord } from '../utils'; export default () => { initializeSearchElements(); initalizeSearchTypeDropdown(); } const searchTypeMapping = { province: '#heroProvinceSearch', university: '#heroUniversitySearch', name: '#heroNameSearch' }; const { noR...
function solve(args) { let n = Number(args[0]); for (let i = 1; i <= n; i++) { let result = " "; for (let j = 1; j <= n; j++) { result+=(i+j-1) + " "; } console.log(result); } } //solve(['2']); //solve(['3']); solve(['4']);
/** * Usa d3.layout.customPie */ IDonuts = function(source,config ) { 'use strict'; var valores = config.values; //colors por defecto de los arcos var colors = ['#787879','#24528A','#AFB0B0']; //Crea los componentes init(); function init() { var width = 400, height = 400; ...
/** * Created by Tomson on 14/11/25. */ var CellLayerColor =cc.LayerColor.extend({ ctor:function(){ this.size = cc.winSize; //this.canHit=true; //this.resultImgUrl=res.hitMiss_png; this.partInCell=PartInCell.Miss; //this.expDuration=0.6; this.cellWidth = 77; this._super(cc.color(255,0,25...
// var fs = require('fs'); // var ytdl = require('ytdl-core'); // function getVideoInfo() { // ytdl.getInfo('http://www.youtube.com/watch?v=Lz1cVnyFzvI',function(err, info) { // if(err) { // console.log(err); // } else { // console.log(JSON.stringify(info,null,2)); // } // }); // } // getVideoInfo(); /...
/* global Components, APP_STARTUP, APP_SHUTDOWN */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * The source code can be found here: HenrikJoreteg/getScreenMedia/...
/** * Created by oguzhan on 23.07.16. */ (function() { 'use strict'; angular.module('core').factory('Sidebar', [Sidebar]); function Sidebar() { var collapsed = false; var onCollapsedFn; var method = { setCollapsed: setCollapsed, isCollapsed: isCollapsed, onCollapsed: onCollapsed }; return method...
import {SET_VIEW} from './constants'; export function setView(view) { return { type: SET_VIEW, payload: view } }
(function() { $.ajax({ //取得序號主機位置 url: "http://54.92.26.200/kidsburgh/generalsn.php", type: "GET", complete: function () { //called when complete }, success: function (data) { var test = $.parseJSON(data); $("#sn").html(test.sn); }, ...
import UserEvent from './UserEvent'; export default UserEvent;
var fs = require('fs'); var streamify = require('stream-array'); var path = require('path'); var File = require('gulp-util').File; module.exports = function (fileName) { var file = new File({ base: path.join(__dirname, './' + fileName + '/'), cwd: __dirname, path: path.join(__dirname, './' + fileName + '...
define(['underscore'], function( _ ) { return function( config ) { // Set some defaults if (!config) { config = {}; } config.options = config.options || []; config['modules'] = config['modules'] || []; var output = 'require(["./css-rename/core"'; // Load in all the detects ...
/** global: Craft */ /** global: Garnish */ Craft.FieldLayoutDesigner = Garnish.Base.extend( { $container: null, $tabContainer: null, $unusedFieldContainer: null, $newTabBtn: null, $allFields: null, tabGrid: null, unusedFieldGrid: null, tabDrag: null...
'use strict' const AbstractSyntaxTree = require('abstract-syntax-tree') const isDefineWithExports = require('../lib/isDefineWithExports') const isExportsMemberExpression = require('../lib/isExportsMemberExpression') module.exports = class Exporter extends AbstractSyntaxTree { constructor (source, options) { sup...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile',...
import Icon from '../components/icon/Icon' export default { components: { [Icon.name]: Icon }, // deprecated, to replace with default 'value' in the next breaking change model: { prop: 'active', event: 'update:active' }, props: { active: { type: Boole...
export default class IllegalActionError extends Error { /** * @constructor * @param {string} messageKey - key for the internationalizable error message to display to the user */ constructor(messageKey) { super(); this.messageKey = messageKey; } toString() { return `IllegalActionError(${this.messageKey...
/** Separate journals namespace for journals specific scripting */ var journals = { /** Validate text entries. If something looks bad, disable submit button. */ validate: function () { if(DODO.readOnly) { return; } var sum1 = $('#dynfield_1_sum')[0].innerHTML; var sum2 = $('#dyn...
// This module exports: address, intro, boot, shutdown 'use strict'; let publicFolder = require('path').resolve('../../public'); let potatoes = require('fs').readdirSync(publicFolder); let potatoesCount = potatoes.length; let randomPotatoIndex = function () { let randomNumber = Math.random(); let index = Math.fl...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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, modify, merge...
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/:boardname', function(req, res) { res.render('board', { title: 'Express' }); }); module.exports = router;
'use strict' const joi = require('joi') const schemas = require('./schemas') module.exports = { validateConfig (config) { return new Promise((resolve, reject) => { joi.validate(config, schemas.permissions, (err, value) => { if (err) return reject(new TypeError('config.permissions: ' + err)) ...
import MarketingPageLayout from './MarketingPageLayout'; import Registry from '@ui-autotools/registry'; const metadata = Registry.getComponentMetadata(MarketingPageLayout); metadata.exportInfo = { path: 'src/MarketingPageLayout/MarketingPageLayout.js', };
'use strict'; import _ from './underscore'; import Backbone from './backbone'; import globalize from './internal/globalize'; import ResultSet from './result-set'; var ResultsList = Backbone.View.extend({ events: { 'click [data-id]': 'setSelection' }, initialize: function (options) { if (!...
var nf; var stats = require('./node-measured').createCollection('callCounts'); exports.init = function() { nf = global.nodefly; start(); }; exports.sample = function(code) { stats.meter(code).mark(); }; function start() { setInterval(function () { var data = stats.toJSON(); data._ts = nf.mil...
/** * Sorted Set class. * Inherits from Set. * * @author Vivan <vivangkumar> * @copyright Vivan, 2014. */ var Set = require('./Set.js'); var Collection = require('./Collection.js'); /** * Constructor for Set. * Creates a new Set. */ function SortedSet() { Set.apply(this, arguments); } SortedSe...
/** * Framework APIs (global - app.*) * * Note: View APIs are in view.js (view - view.*) * * @author Tim Lauv */ ;(function(app){ /** * Universal app object creation api entry point * ---------------------------------------------------- * @deprecated Use the detailed apis instead. */ app.create = fun...
(function () { 'use strict'; const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const client = require('electron-connect').client; const config = require('./polyonic.config'); const express = require('express'); const path = require('path'); ...
$(function(){ 'use strict'; //--- Create Canvas ---// var canvas = document.createElement('canvas'), ctx = canvas.getContext('2d'), W, H; function resizeCanvas() { W = window.innerWidth; H = window.innerHeight; canvas.width = W; canvas.height = H; } resizeCanvas(); $(window).res...
export { default, patternTwitter } from '@abcum/ember-helpers/helpers/pattern-twitter';
'use strict'; const ObjectId = require('mongodb').ObjectId; module.exports.init = function(io, sockets, Users) { io.on('connection', (socket) => { console.log(socket.handshake.address + ' connected'); var _id = socket.handshake.query._id; console.log(_id); sockets[_id] = socket; console.log('Con...