code
stringlengths
2
1.05M
(function() { var Connection, Room, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Room = require('./room'); Connection = (function() { function Connection(socket, bronson, backendHandler) { this.socket = socket; this.bronson = bronson; this.backen...
import 'babel-register'; import 'babel-polyfill'; import app from '../index'; const port = process.env.PORT || 3000; app.listen(port); console.log(`listening on port ${port}`); // require("babel-register"); // require('babel-polyfill'); // require('../index.js').default.listen(3000);
$(document).ready(function(e) { loadTable(); $('.agregar-equipo').click(function(){ clearFields(); $('#btn-editar-equipo').hide(); $('#btn-agregar-equipo').show(); $('#myModalLabel').text('Agregar equipo'); $('#modal-catalogo-equipo').modal(); }); $('#btn-agregar-equipo').click(function()...
// ***************************************************************************************** // Map polyline tool for creating bing custom map of campus. -- bcaulfield@keene.edu // ***************************************************************************************** maptool = {} maptool.instance = undefined; mapt...
import Cookies from 'js-cookie' export const getCookie = (name) => Cookies.get(name) export const setCookie = (name, value) => { Cookies.set(name, value) // console.log(`${name}=${value}`) // document.cookie = "dd=123" // document.cookie = `${name}=${value}` DATA.user = 1 } export const clearCookie = (nam...
/* PlayerController test */ describe('PlayersController', function () { describe('#view', function() { it('should respond ok with valid player id', function(done) { request(sails.hooks.http.app) .get('/player/1') .expect(200) .end(done); }); it("should 404 if player doe...
var lib = require('./../dist/app'); var mysql = require('mysql'); var dbConfig = { host : 'localhost', user : 'root', password : '', database : 'reco_data' }; var connection = mysql.createConnection(dbConfig); var connCounter = null; var onConnect = function(cb) { if (connCounter === null) { connCounter...
$(document).ready(function() { var $ol = $('ol'); var $personal_gmail = $('input[name="personal-email"]'); var $mentor_gmail = $('input[name="mentor-email"]'); var i = 0; var str = ''; window.onblur = function() { storeDiaryElements(); storeDiaryEntries(); }; window.onfocus = function() { ...
/** * Created by TsenkoTsenov on 3/28/2017. */ const COLORS = [ '#e21400', '#91580f', '#f8a700', '#f78b00', '#58dc00', '#287b00', '#a8f07a', '#4ae8c4', '#3b88eb', '#3824aa', '#a700ff', '#d300e7' ]; function getUsernameColor(username) { let hash = 7; for (let i = 0; i < username.length; i++) { ...
/** * Created by zhouyc on 2015/9/14. */ var PreLoad = (function($){ function PreLoad(){ this.traceDebug = false; this.TYPE_IMAGE = 'image'; this.TYPE_JS = 'js'; this.TYPE_SOUND = 'sound'; } PreLoad.prototype = { load : function (l, u, c) { var s = this;...
/** * Created by hui.ZH on 2014/11/12. */ $(function() { var data; var condition = { db: 'etc_privileges' }; fetch_init_screen_list(condition); function fetch_init_screen_list(condition) { $.ajax({ url:"management/get_init_user", type:"post", a...
/** * Created by MAGID on 01/03/2016. */ $(document).ready(function(){ /*VARIABLEL LOCAUX*/ /*EVENEMENT*/ //header $('#btn-menu-mobile').click(collapse); $(window).resize(resize); //newVehicule $('#annonce_Region').change(changeRegion); $('#annonce_Provincia').change(changeProvince);...
var cp = require('child_process'); var log = require('../log'); var Plugin = require('../plugin'); // // [Usage] // // https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cpp.lint.md // var plugin = new Plugin(100, 'cpp.lint', '2017.07.27', 'Plugin to do static code check on c++ code.'); var DEFAU...
module.exports = function(grunt) { grunt.config('imagemin', { // Optimize images dynamic: { files: [{ expand: true, cwd: '../img/', src: ['**/*.{png,jpg,gif}'], dest: '../dist/img/' }] } }); grunt.loadNpmTasks('grunt-contrib-imagemin'); };
'use strict'; var _ = require('underscore'); var expect = require('chai').expect; var ProxyLists = require('../../index'); describe('isValidPort(port)', function() { it('should be a function', function() { expect(ProxyLists.isValidPort).to.be.a('function'); }); it('should return FALSE when port is not valid',...
import Timer from '../../app/models/Timer'; describe('Timer', () => { let obj, cb; const interval = 100; beforeEach(() => { jest.useFakeTimers(); cb = jest.fn(); obj = new Timer(interval, cb); }); it('should start timer', () => { obj.start(); expect(cb).not.toBeCalled(); expect(setTim...
// @require angular-route // @require css-pack/x.css
"use strict"; var Category; (function (Category) { Category[Category["Biography"] = 0] = "Biography"; Category[Category["Poetry"] = 1] = "Poetry"; Category[Category["Fiction"] = 2] = "Fiction"; Category[Category["History"] = 3] = "History"; Category[Category["Children"] = 4] = "Children"; })(Categor...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
"use strict"; const mail = require("../controller/mail.js"); const address = "vxlsgubk@sharklasers.com" mail.send(address, "Ping", "Testing...", (ok) => { console.log(ok); });
module.exports = function(app) { var api = app.api.placar; app.route('/placar/') .get(api.lista); app.route('/placar/') .post(api.insere); };
exports.BattleMovedex = { relicsong: { inherit: true, effect: { duration: 1, onAfterMoveSecondarySelf: function (pokemon, target, move) { if (pokemon.template.speciesid === 'meloettapirouette' && pokemon.formeChange('Meloetta')) { this.add('-formechange', pokemon, 'Meloetta'); } else if (pokemon...
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. All Rights Reserved. // // 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 copy of the License at // // http://www.ap...
var OPERATORS_REGEX = new RegExp(/ AND | OR /i); var _ = require("underscore"); module.exports = function(ngModule) { ngModule.directive("data", function($rootScope,$http,$injector,$interval,$timeout,$log,$interpolate,Expr) { function EndevLog() { } function EndevQuery() { } retur...
/** * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: MIT */ const MultiTester = require('../../../../../scripts/MultiTester'); const rule = require('../../../lib/rules/no-duplicate-imports'); const parserOptions = { parserOptions: { ecmaVersion: 6, sourceType: 'm...
import React, { Component, PropTypes as type } from 'react' import cx from 'classnames' import Grid from 'react-bootstrap/lib/Grid' import Row from 'react-bootstrap/lib/Row' import Col from 'react-bootstrap/lib/Col' import chunk from 'lodash/chunk' import times from 'lodash/times' /** * The FeatureList displays con...
//# sourceMappingURL=TableMetadataArgs.js.map
$(function($){ $.datepicker.regional['es'] = { closeText: 'Cerrar', prevText: '<Ant', nextText: 'Sig>', currentText: 'Hoy', monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], month...
/* @flow */ 'use strict' // import { Map, fromJS } from 'immutable' // import { transformCSVtoJSON, transformNewIssue } from './helpers.js' // import { getTotalNumberOfVisibleItems } from '../selectors' import { Map } from 'immutable' import { SET_OFFSET, SET_FILTER } from '../actions' export default function offse...
/** * Created by aurelien.vannier on 30/10/2014. */ define(['chaplin', 'views/site-view', 'views/common/navbar-view', 'views/common/title-view', 'models/base/model'], function (Chaplin, SiteView, NavbarView, TitleView, Model) { 'use strict'; var Controller = Chaplin.Controller.extend({ // Place y...
'use strict'; const { app, BrowserWindow, ipcMain } = require('electron'); const path = require('path'); const url = require('url'); // singleton agora instance const agora = require('./agora-backend/agora.js'); // Keep a global reference of the window object, if you don't, the window will // be closed automatically...
// startsWith polyfill. TODO: remove when the linux version of RStudio updates its ancient Qt. if (!String.prototype.startsWith) { String.prototype.startsWith = function (searchString, position) { position = position || 0; return this.substr(position, searchString.length) === searchString; }; } ...
// flow-typed signature: 4a5cff448dc0afd768fddac1147e43ba // flow-typed version: <<STUB>>/babel-plugin-transform-object-rest-spread_v^6.23.0/flow_v0.85.0 /** * This is an autogenerated libdef stub for: * * 'babel-plugin-transform-object-rest-spread' * * Fill this stub out by replacing all the `any` types. * *...
import { FETCH_NOTE_REQUEST, FETCH_NOTE_SUCCESS, FETCH_NOTE_FAIL, SAVE_NOTE_TO_SERVER_REQUEST, SAVE_NOTE_TO_SERVER_SUCCESS, SAVE_NOTE_TO_SERVER_FAIL, DELETE_THIS_NOTE_REQUEST, DELETE_THIS_NOTE_SUCCESS, DELETE_THIS_NOTE_FAIL, CHANGE_NOTE_NAME, CHANGE_NOTE_VALUE, CHANGE_NOTE_TAGS, CHANGE_NOTE_IS...
/** * Mocking client-server processing */ const _products = [ {"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2}, {"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10}, {"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5} ] export default { fetchProd...
import { NativeModules } from 'react-native'; import createSensorWrapper from './lib/createSensorWrapper'; const { ExponentAccelerometer } = NativeModules; export default createSensorWrapper( ExponentAccelerometer, 'accelerometerDidUpdate' );
//this command is for writing pass status in Excel sheet var Excel = require ( 'exceljs' ); var workbook = new Excel.Workbook ( ); exports.command = function ( fileName, sheetName, excelRow, excelColumn ) { this.pause ( 5000 ); workbook.xlsx.readFile ( fileName, { cellStyles: true } ).then ( function ( ) { //g...
var ACME = module.exports /** * Resource types * @see https://ietf-wg-acme.github.io/acme/#rfc.section.5.1 * @type {Object} */ ACME.RESOURCE = { NEW_REGISTRATION: 'new-reg', NEW_AUTHORIZATION: 'new-authz', NEW_APPLICATION: 'new-app', NEW_CERTIFICATE: 'new-cert', RECOVER_REGISTRATION: 'recover-reg', KEY...
'use strict'; //Articles service used for communicating with the articles REST endpoints angular.module('articles').factory('Articles', ['$resource', function($resource) { return $resource('articles/:articleId', { articleId: '@_id' }, { update: { method: 'PUT' } }); } ]).filte...
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw (f.code="MODULE_NOT_FOUND", f)}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n...
module.exports = (app) => { app.post('/ok', function (req, res) { res.status(200).send(); }); app.get('/coches/lista', function (req, res) { res.status(200).send( [ { "id":"0", "name":"Selecciona la marca de tu coche" }, { "id":"1", "name":"Renault" }, { "id...
import D from 'debug' import zmq from 'zeromq' import { getSocketPort } from './utils' import { HEARTBEAT_INTERVAL } from './Constants' /** * Provides a pair of pub/sub sockets * Every message received by sub is re-emitted by pub * 'sub' subscribes to all events * 'pub' has a no linger period (discards messages ...
;module.exports = (function initServerApp() { 'use strict'; // Get Database var Database = require('./databaseLayer/databaseDispatcher'); return { /** * get stats from database and return in res if succesful * @param {object} res - object given in post request */ sendMapData: function(res) { Data...
var PixiTest; (function (PixiTest) { var Game = (function () { function Game() { var _this = this; this.count = 0; this.score = 0; var assetsToLoader = ["../../examples/example 10 - Text/desyrel.fnt"]; var loader = new PIXI.AssetLoader(as...
'use strict'; import { equal, notEqual } from 'assert'; /** * Tests basic get route for a given status * * @param {Object} agent - from supertest.request.agent * @param {String} route - url to request * @return {Promise} WIll reject with err and resolve with the supertest response * object */ export function ...
import SAT from '../../../common/js/physics/SAT'; class LevelView { constructor(player, curLvl) { this.onUpdateSet = false; this.onRenderSet = false; this.privates = {}; this.player = player; this.curLvl = curLvl; this.init(); } then(callback) { this.privates.callback = callback; } init() { } ...
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. // For complete reference see: // http://docs.ckeditor.com/#!/...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { RawSource } = require("webpack-sources"); const Module = require("./Module"); const RuntimeGlobals = require("./RuntimeGlobals"); /** @typedef {import("webpack-sources").Source} Source */ /** @ty...
/** * Service permettant de récupérer les différents profils utilisateurs * Basés sur les données fournies dans l'énoncés * Récupérés à l'aide d'un fichier JSON * */ angular.module('nutrionixApp.index') .factory('profileService', function(){ let profileService = { /** * Métho...
module.exports = [{ url: 'http://localhost:3000/#/quotes', label: 'Quote', responsive: true, selectors: [ '[data-backstop="blockquote"]', '[data-backstop="pullquote"]', ], }];
"use strict"; /** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
// The Tern server object // A server is a stateful object that manages the analysis for a // project, and defines an interface for querying the code in the // project. // FIXME there are re-entrancy problems in this. // FIXME support both sync and async in a more solid way (function(mod) { if (typeof exports == "...
function cout(message, colorIndex) { var terminal_output = document.getElementById("terminal_output"); if ((colorIndex != 0 || DEBUG_MESSAGES) && (colorIndex != -1 || DEBUG_WINDOWING)) { var lineout = document.createElement('span'); lineout.appendChild(document.createTextNode(message)); switch (colorIndex) { ...
import test from 'ava' import reducer, {initialState, setProgress} from '../../../src/redux/reducers/upload' import {reducerTest} from 'redux-ava' test('test with default action', t => { const state = reducer(undefined) t.deepEqual(state, initialState); }) test('upload reducer handle setProgress', reducerTest( ...
import { getDataUrl } from "./utils"; export default { js: { tagName: "script", contentFetchKey: "src", attributes: { type: "text/javascript", }, setElementContentFunc({ tag, documentTarget, content, wasManifestModified }) { if (wasManifestModified) { tag.setAttribute("src", g...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
/** * definitions.test.js * * This module tests that basic waterline definitions create rules like they should. */ // Dependencies var _ = require('underscore'); var parley = require('parley'); var async = require('async'); var assert = require("assert"); describe('definitions',function (){ describe('autoCreat...
version https://git-lfs.github.com/spec/v1 oid sha256:ce631eb6df0b3db0b5125ec9090b8e0a929b0ad0793bb944dad46afb4b5c8eed size 2867
'use strict'; var parser = require('../../../lib/index.js').flat; var argumentList = require('./argumentList.js'); var identifier = require('./identifier.js'); var typename = require('./typename.js'); module.exports = parser.name('functionHeading', parser.labelledSequence( ['returnType', typename], parser.whites...
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users.server.controller'); var profiles = require('../../app/controllers/profiles.server.controller'); // Profiles Routes app.route('/profiles') .get(profiles.list) .post(users.requiresLogin, profiles.create); app.rout...
/***Generated Resource **/ var resource = require('resource'); var Specialty = resource.define('Specialty'); Specialty.schema.description = "Any branch of a field in which people typically develop specific expertise, usually after significant study, time, and effort."; Specialty.persist('fs'); Specialty.property...
const mongoose = require('mongoose') const Schema = mongoose.Schema const messages = require('./../utilities/messages') const NAME_MIN_LENGTH = 3 const categorySchema = new Schema({ name: { type: String, minlength: [NAME_MIN_LENGTH, messages.validator.minLength], required: true, unique: true }, ...
var expect = require('chai').expect; var compile = require('..').compile; describe('ES6ForOf', function() { function transform(code) { return compile(code).code; } function expectTransform(code, result) { expect(transform(code)).to.eql(result); } it('should fix for-of statement', function() { v...
/** @format */ let customExtendedTemplates = {} try { customExtendedTemplates = require("custom/extended.js").default } catch (error) { console.log("No module for extended components available") } const autocompleteTemplate = `\ <div> <input type="text" size="37" ng-model="input" ...
game.PlayScreen = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function() { // load a level me.levelDirector.loadLevel("map1"); // reset the score game.data.score = 0; // add our HUD to the game world...
import path from 'path'; export default { debug: true, target: 'web', devtool: 'sourcemap', entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', './src/index.js' ], output: { path: path.resolve(__dirname, '../dev'), filename: 'supercomments-embed.js...
import React from 'react'; import PropTypes from 'prop-types'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { muiTheme } from '../theme'; // // class Test extends React.Component { // render () { // return ( // <MuiThemeProvider muiTheme={muiTheme}> // { this.props.chil...
ambient.init({ // jshint ignore:line 'xsml': {'width': { max: 320 }}, 'sml': {'width': { min: 320, max: 480 }}, 'med': {'width': { min: 480, max: 768 }}, 'big': {'width': { min: 768, max: 1024 }}, 'lrg': {'width': { min: 1024, max: 1366 }}, 'xlrg': {'width': { min: 1366 }} }, 50);
/* global jQuery, module, require */ /* Pano v1.2.0 jQuery plugin to display a 360 degree panoramic image Sean Coyne https://github.com/seancoyne/pano https://seancoyne.github.io/pano */ (function (factory) { if(typeof module === "object" && typeof module.exports === "object") { module.exports = factory...
import Origraph from './Origraph.js'; import pkg from '../package.json'; let origraph = new Origraph(null); origraph.version = pkg.version; export default origraph;
/* vim: set expandtab sw=4 ts=4 sts=4: */ /** * @package PhpMyAdmin-Designer */ var _change = 0; // variable to track any change in designer layout. var _staying = 0; // variable to check if the user stayed after seeing the confirmation prompt. var show_relation_lines = true; var always_show_text = false; AJAX.regi...
$(function() { $(".images").sortable({ cursor: 'move', placeholder: "images-placeholder", stop: function(event, ui) { var order = ''; $('.ui-sortable div.slider_image').each(function() { order = order + ',' + $(this).attr('id'); }); order = order.substring(1); $.ajax( { type: "POS...
// @flow import { getSignedCodeVersion, signCode, signCodeStream, verifySignedCode, } from '../codeSign.js'; describe('codeSign', () => { describe('verifySignedCode', () => { it('verifies signed code', () => { const code = 'line 1\nline 2\nline 3'; const version = 'VersionA'; const sig...
var tellstick = require('./tellstick.js'); var target = process.env.TARGET_TEMP; function controlTemperature(temp){ if(temp > target ) { console.log("Temperatur er: " + temp + " starter kjøleskap"); tellstick.startFridge(); } if(temp <= target) { console.log("Temperatur er: " + tem...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = uniqid; var uniqidIdx = 0; if (!window.sugar) window.sugar = {}; if (!window.sugar._uniqid) window.sugar._uniqid = 0; /** * Generate a uniq id * @example js * import uniqid from 'coffeekraken-sugar/js/utils/uniqid' ...
import {test} from "zora"; import {select} from "d3-selection"; import {default as getSize} from "../src/_getSize.js"; test("getSize", assert => { let div = select("body").append("div"), size = getSize(div.node()); assert.ok(size[0] > 750 && size[1] > 550, "Window Detection"); div = div.style("width", "...
(function ( angular ) { 'use strict'; var app = angular.module( 'angular-scroll-indicator', [] ); app.directive( 'scrollIndicator', [function () { return { restrict: "E", require: '?ngModel', template: '<div id="thumb" class="thumb"></div>', link: function ( scope,...
"use strict"; const connect = require("connect"); const fs = require("fs"); const http = require("http"); const MemoryFS = require("memory-fs"); const webpack = require("webpack"); const app = connect(); const memoryFs = new MemoryFS(); app.use(function(req, res) { const path = req.url; if (!fs.existsSync("...
var inquirer = require("inquirer") module.exports = function(message, cb) { inquirer.prompt([{ type: 'confirm', name: 'confirm', message: message }], function(answers) { if (answers.confirm) cb(null) else cb(new Error('cancelled')) }) }
/** * Similar to the rest operator but instead of assigning mutiple arguments toan array, * spread spreads an array across multiple parameters still using the '...' syntax. */ describe('spread operator', function() { it('spreads an array across multiple parameters', function() { let result = doStuff(......
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
var on_check_isbn = function() { var $isbn = $("#form_add_book #isbn"); var ret = false; if(!cabinet.check_length($isbn, 10, 13)) { $("#isbn_err").text("ISBN错误!").show(); return ret; } $.ajax({ url : '/cabinet/check_isbn/?isbn=' + $isbn.val(), async : false, success : function(data) { i...
var RuleProvider = require('../rules/RuleProvider'); var inherits = require('inherits'); /** * This is a base rule provider for the element.autoResize rule. */ function AutoResizeProvider(eventBus) { RuleProvider.call(this, eventBus); var self = this; this.addRule('element.autoResize', function(context) { ...
import React from 'react'; import { getDataFromTree } from 'react-apollo'; import { Helmet } from 'react-helmet'; import ReactDOMServer from 'react-dom/server'; import load from '../shared/utils/load'; import resolveRoutes from './utils/resolveRoutes'; import requestStateBuilder from './utils/requestStateBuilder'; imp...
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
import withGettext, { Textdomain, TextdomainContext, buildTextdomain } from '../lib'; import withGettext2 from '../lib/withGettext'; import Textdomain2 from '../lib/Textdomain'; import TextdomainContext2 from '../lib/TextdomainContext'; import buildTextdomain2 from '../lib/buildTextdomain'; describe('Module exports',...
import React from 'react'; import $ from 'jquery'; let _ = { isEmpty(value) { return (!value && value == ''); }, }; let SignInBox = React.createClass({ getInitialState() { return { username: '', pwd: '', validFlag: false, usernameValid: { isEmpty: true, isEmai...
var gulp = require('gulp-help')(require('gulp')); var merge = require('gulp-merge'); var inject = require('gulp-inject'); var gutil = require('gulp-util'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var concat = require('gulp-concat'); var index...
/*! * Strong i18n for express - Simple Backend * Copyright(c) 2011 Tim Shadel * MIT Licensed */ /* Simple implementation of a translation backend provider. Conforms to the basic strong provider API contract. */ /** * Module dependencies. */ var glob = require('glob') , resolve = require('path').resolve ...
let mongoose = require('mongoose'); let Room = mongoose.model('Room'); module.exports = { insert: (req, res, next) => { let par = req.body; if (par.hasOwnProperty('name')) { let room = new Room({name: par.name, password: par.password, players: []}); room.save((err, room) => { if (!err) { ...
import { LOCK_SUCCESS } from '../actions/auth/loginActions' import { LOGOUT_SUCCESS } from '../actions/auth/logoutActions' import { isTokenExpired } from '../components/shared/auth/jwtHelper';import { PROFILE_REQUEST, PROFILE_SUCCESS, PROFILE_FAILURE } from '../actions/profile/profileActions'; import { UPDA...
'use babel' import helpers from '../../helpers' import DebugEngine from '../../models/debug-engine' import Server from './server' import DebuggingContext from './debugging-context' import {Emitter, Disposable} from 'event-kit' import autoBind from 'auto-bind-inheritance' import uuid from 'uuid' import {CompositeDispos...
'use strict'; const { Maybe, isClientSide, is } = require('../lib/utils'); const isValidEvent = (eventName) => { const events = [ 'ViewContent', 'Search', 'AddToCart', 'AddToWishlist', 'InitiateCheckout', 'AddPaymentInfo', 'Purchase', 'Lead', 'CompleteRegistration' ]; return events.find((e) => e ...
$(document).ready(function(){ var pet = $('#main form').attr('action'); var met = $('#main form').attr('method'); var mat, doc; $('#main form').on('submit',function(e){ e.preventDefault(); $.ajax({ beforeSend: function(){ mat = document.mtd_loginbu...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component, PropTypes } from 'react'; import { googleAnalyticsId } from '../../config'; class Html extends Component { static propTypes = { title: PropTypes.string, description: PropTypes.string, css: PropTypes.stri...
require.config({ paths: { 'three': 'lib/three.min', 'jquery': 'lib/jquery.min', 'stats' : 'lib/stats.min', }, shim: { 'three': { exports: 'THREE' }, }, map: { // '*' means all modules will get 'jquery-private' // for their 'jquery' dependency. '*': { 'jquery': 'jquery-private' },...
#!/usr/bin/env node /** * Module dependencies. */ var app = require('./router'); var debug = require('debug')('file-upload:server'); var http = require('http'); /** * Get port from environment and store in Express. */ var port = normalizePort(process.env.PORT || '3000'); app.set('port', port); /** * Create HT...
/** @module ember-flexberry-gis */ import Ember from 'ember'; import layout from '../../templates/components/map-tools/zoom-out'; import { translationMacro as t } from 'ember-i18n'; /** Component's CSS-classes names. JSON-object containing string constants with CSS-classes names related to component's .hbs mark...
import React from 'react' import {List, ListItem} from 'material-ui/List'; import LinearProgress from 'material-ui/LinearProgress' import FontIcon from 'material-ui/FontIcon' import IconButton from 'material-ui/IconButton' const styles = { flexWrapper: { display: 'flex' }, flexItem: { flex: '1 1 auto' ...