code
stringlengths
2
1.05M
'use strict'; let gulp=require('gulp'); let wiredep=require('gulp-wiredep'); gulp.task('wiredep',function(cb){ gulp.src('./src/index.html') .pipe(wiredep({ optional: 'configuration', goes: 'here' })) .pipe(gulp.dest('./dist')); });
import Component from 'flarum/Component'; import listItems from 'flarum/helpers/listItems'; import Button from 'flarum/components/Button'; import LoadingIndicator from 'flarum/components/LoadingIndicator'; import Discussion from 'flarum/models/Discussion'; /** * The `NotificationList` component displays a list of the...
Package.describe({ summary: "Stripe.js and Node-Stripe brought to Meteor.", version: "2.2.1", name: "mrgalaxy:stripe", git: "https://github.com/tyler-johnson/stripe-meteor.git" }); Npm.depends({ "stripe": "4.0.0" }); Package.onUse(function(api) { api.versionsFrom('1.0.1'); if (api.export) api.export('STRIPEMETE...
(function () { 'use strict'; angular.module('demoApp', ['ui.tree', 'ngRoute', 'ui.bootstrap']) .config(['$routeProvider', '$compileProvider', function ($routeProvider, $compileProvider) { $routeProvider .when('/basic-example', { controller: 'BasicExampleCtrl', templateUrl: 'v...
import { LessonResource, ContentNodeResource } from 'kolibri.resources'; export function resetLessonSummaryState(store) { store.commit('RESET_STATE'); store.commit('resources/RESET_STATE'); } export function addToResourceCache(store, { node }) { store.commit('ADD_TO_RESOURCE_CACHE', { node, channelTitle...
var mongoose = require('mongoose') , Schema = mongoose.Schema; var db = require('../libs/db_connect')(); var Place = Schema({ geo: { type: [Number], index: { type: '2dsphere', sparse: true } }, geo_name: String, description: String, user: { type: St...
var express = require('express'); var bookshelf = require('./bookshelf'); var models = bookshelf.models; var router = express.Router(); router.use(function timeLog(req, res, next) { console.log('Time: ', Date.now().toString()); next() }) models.forEach(function (model) { router.get('/' + model.tableName, function...
export class SignupEntity { constructor() { this.login = ''; this.password = ''; this.confirmPassword = ''; } }
/* * @Author: alessandro.fazio * @Date: 2016-07-15 13:03:51 * @Last Modified by: alessandro.fazio * @Last Modified time: 2016-07-15 13:39:26 */ (function() {'use strict'; angular.module('metricapp') .controller('ExternalMetricModalCtrl', ExternalMetricModalCtrl); ExternalMetricModalCtrl.$inject = ['$window', '$...
jest.mock('../words'); jest.unmock('../randomWord'); import { getWord, wordCount } from '../words'; import randomWord from '../randomWord'; describe('The random word generator', () => { it('should select a word from the list', () => { // Arrange const word = 'kiwis'; wordCount.mockImplementation(() => 1...
'use strict'; var React = require('react'); var IconBase = require(__dirname + 'components/IconBase/IconBase'); var IosCircleOutline = React.createClass({ displayName: 'IosCircleOutline', render: function render() { return React.createElement( IconBase, null, React.createElement( 'g', null, ...
import { bootstrapDiagram, inject } from 'test/TestHelper'; import modelingModule from 'lib/features/modeling'; import replaceModule from 'lib/features/replace'; import { query as domQuery } from 'min-dom'; describe('features/replace', function() { beforeEach(bootstrapDiagram({ modules: [ modelin...
module.exports = exports = configure /** * Module dependencies. */ var fs = require('graceful-fs') , path = require('path') , glob = require('glob') , log = require('npmlog') , osenv = require('osenv') , which = require('which') , semver = require('semver') , mkdirp = require('mkdirp') , cp = requir...
/** * related to main.ui * * @Author : and * @Timestamp : 2016-10-03 */ // variable var dojs = require("dojs"); var do_Page = sm("do_Page"); var root = ui("$"); // event root.on("usreControlInit", function(_option) { // 调整大小,如果不需要系统状态栏,则高度减少40 if (_option["noSystemStatusBar"]) { root.height = root.height - 4...
/** * @param {number} num * @return {number} */ var addDigits = function(num) { return (num - 1) % 9 + 1; };
import webpack from 'webpack' import webpackConfigBuilder from '../webpack.config' import colors from 'colors' import { argv as args, } from 'yargs' import { ENV_PROD, } from './Env' const webpackConfig = webpackConfigBuilder(ENV_PROD) webpack(webpackConfig).run((err, stats) => { const inSilentMode = args.s if ...
import { currentRouteName } from '@ember/test-helpers'; import { module, test } from 'qunit'; import setupAuthentication from 'ilios/tests/helpers/setup-authentication'; import page from 'ilios/tests/pages/dashboard'; import { setupApplicationTest } from 'ember-qunit'; import setupMirage from 'ember-cli-mirage/tes...
import Custom from './custom' const scroll = new Custom({ extends: true, preload: true, noscrollbar: true, section: document.querySelector('.vs-section'), divs: document.querySelectorAll('.vs-div') }) scroll.init() // setTimeout(() => { // scroll.destroy() // }, 1500)
import Charts from 'react-chartjs'; import moment from 'moment'; import numeral from 'numeral'; import GBP from '../model/GBP'; import { Panel } from '../hg/Panel'; import { el, $, Component } from '../react-utils'; console.log('foo'); export class SimpleChart extends Component { render() { var transactions =...
'use strict' module.exports = function(app, middlewares, routeMiddlewares) { return middlewares.validToken }
// region import import crypto from 'crypto' import jwt from 'jsonwebtoken' // internal import {provide} from '../utilities/modules' // endregion // region crypto const key = 'secret' const hashPassword = ({password, salt}) => new Promise((resolve, reject) => crypto.pbkdf2(password, salt, 64000, 512, 'sha512', (erro...
angular .module('openeApp.cases.members') .factory('caseMembersService', caseMembersService); function caseMembersService($http, $q) { var service = { getCaseMembers: getCaseMembers, createCaseMembers: createCaseMembers, changeCaseMember: changeCaseM...
var storage = new Firebase('https://fiery-torch-5161.firebaseio.com/'), rooms = storage.child('rooms'), currentRoom = null, currentUrl = null; // Setup listener for form submit on popup.html chrome.runtime.onMessage.addListener(function(message,sender,callback) { if (message.name === 'form_submit') { currentRoo...
var assert = require('assert'); var vows = require('vows'); var EventEmitter = require('../src/eventful.js'); vows.describe('Validations').addBatch({ 'An event emitter' : { topic : function() { return new EventEmitter(); }, 'should only accept functions as callbacks' : function(topic) { /...
import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() }); /* * Global setup/hooks for mocha */ after(function() { if (window.__coverage__) { console.log('Found coverage report, writing to coverage/coverage.json'); var path = require('path'); ...
var fs = require('fs'); var path = require('path'); module.exports = function(template) { template.dependencies = []; var cacheStore = template.cache; var defaults = template.defaults; var rExtname; // 提供新的配置字段 defaults.base = ''; defaults.extname = '.html'; defaults.en...
const ERROR = { SUCCESS: [0, 'success'], // SYSTEM_ERROR xx NOT_IMPLEMENTED: [11, '不支持该方法'], UNKONWN_ERROR: [99, '未知错误'], // USER_ERROR 1xx NOT_LOGIN: [101, '未登录'] }; export {ERROR}
/** * Created by Administrator on 2017/9/19. */ (function () { 'use strict'; angular.module('starter.controllers') .controller('LoginCtrl',['$scope','localStorageService','$state','$ionicPopup',function ($scope,localStorageService,$state,$ionicPopup) { var USER_KEY='User'; $scope.user={ us...
var group___f_m_c___l_l___n_o_r_s_r_a_m = [ [ "NOR SRAM Initialization/de-initialization functions", "group___f_m_c___l_l___n_o_r_s_r_a_m___private___functions___group1.html", null ], [ "NOR SRAM Control functions", "group___f_m_c___l_l___n_o_r_s_r_a_m___private___functions___group2.html", null ] ];
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; var base = grunt.option('base') || '.'; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { build: { src: 'js/reveal.js', dest: 'js/rev...
describe("x-tag ", function () { it('should load x-tag.js and fire DOMComponentsLoaded', function (){ var DOMComponentsLoaded = false; var WebComponentsReady = true; var HTMLImportsLoaded = false; document.addEventListener('DOMComponentsLoaded', function (){ DOMComponentsLoaded...
// @license Copyright (C) 2015 Erik Ringsmuth - MIT license (function(window, document) { var utilities = {}; var importedURIs = {}; var isIE = 'ActiveXObject' in window; var previousUrl = {}; // <app-router [init="auto|manual"] [mode="auto|hash|pushstate"] [trailingSlash="strict|ignore"] [shadow]></app-rout...
var tweetServices = angular.module('tweetServices', ['ngResource']); tweetServices.factory('Tweet', ['$resource', function($resource){ return $resource('/api/tweet/:tweetId.json', {}, { query: {method:'GET', params:{tweetId:'tweets'}, isArray:true} }); }]);
"use strict"; var Stream = require("stream").Stream, utillib = require("util"), net = require("net"), tls = require("tls"), oslib = require("os"), xoauth2 = require("xoauth2"), crypto = require("crypto"), fs = require('fs'); // expose to the world module.exports = function(port...
// Shared directive between room.ejs and screen.ejs // This handles OpenTok screensharing and sets `$scope.sharingMyScreen` to true // when you are ready to share your screen. Then you need to include an ot-publisher // somewhere else in your application using the screenPublisherProps and the id 'screenPublisher' angul...
/** * Created by tsotne on 5/29/15. */ Ext.define('AA.view.coding.Tape', { extend: 'Ext.panel.Panel', layout: 'hbox', border: false, bodyPadding: 5, style: 'border-radius: 5px', constructor: function (cfg) { cfg = cfg || {}; var me = this; Tape = me; var _ = {x...
export const addZero = (n) => n < 10 ? '0' + n : n; /** * * * @param {Date} d * @returns */ function Chinese(d) { if (Object.prototype.toString.call(d) !== '[object Date]') { let origin = d; d = new Date(d); let temp = d.getDate(); if (temp !== temp) { if (d === undefined) { re...
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ export let foo = () => "standard-index";
const DefaultSeleniumDriver = require('./'); const Concurrency = require('../../runner/concurrency/'); const SeleniumServerBuilder = require('./service-builders/selenium.js'); module.exports = class SeleniumServer extends DefaultSeleniumDriver { /** * Used when running in parallel with start_process=true */ ...
import fs from 'fs' import path from 'path' import { expect } from 'chai' import proxyquire from 'proxyquire' import td from 'testdouble' describe('[Integration] Itaú conta corrente', () => { var downloadMock var displayErrorMessageMock var contentScript var browserHelper beforeEach(() => { let htmlPath...
module.exports = function (grunt) { "use strict"; var {{ bundle.getName() }}; var resourcesPath = 'src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/'; {{ bundle.getName() }} = { 'destination': 'web/frontend/', 'js': [resourcesPath+'public/**/*.js', '!'+ resourcesPat...
Clazz.declarePackage ("J.viewer"); Clazz.load (null, "J.viewer.OutputManager", ["java.lang.Boolean", "java.util.Date", "$.Hashtable", "$.Map", "JU.List", "$.PT", "$.SB", "J.api.Interface", "J.i18n.GT", "J.io.JmolBinary", "J.util.Escape", "$.Logger", "$.Txt", "J.viewer.FileManager", "$.JC", "$.Viewer"], function () { ...
'use strict'; angular.module('profileApp.storageconfig', [ 'ngRoute' ]) .config([ '$routeProvider', function($routeProvider) { $routeProvider.when('/providers/:provider_id/storageconfig', { templateUrl : 'storageconfig/storageconfig.html', controller : 'storageconfigCntrl' }).otherwise({ redirectTo :...
const request = require('request'); const parser = require('xml2json'); const helpers = require('./helpers/headerGenerator.js'); const expansion = require('./helpers/expansion.js'); function getCardFromMkm(cardName) { var url = `https://www.mkmapi.eu/ws/v1.1/products/${encodeURIComponent(cardName)}/1/1/false`; ...
var test = require('tape'); var DepTree = require('../dep-tree.js'); test(function(t) { var tree = new DepTree(); // no generations t.deepEqual(tree.solve('sdf'), [], '1) No parents'); // one generation tree.add('grandparent', 'parent1'); tree.add('grandparent', 'parent2'); t.deepEqual(tr...
var React = require('react') var ReactDOM = require('react-dom') var App = require('./test/App') ReactDOM.render( React.createElement(App), document.getElementById('root') )
'use strict'; /** * @ngdoc controller * @name Merchello.Dashboards.Sales.ListController * @function * * @description * The controller for the orders list page */ angular.module('merchello').controller('Merchello.Backoffice.SalesListController', ['$scope', '$element', '$log', 'angularHelper', 'assetsService',...
Rickshaw = { namespace: function(namespace, obj) { var parts = namespace.split('.'); // for rudimentary compatibility w/ node var root = typeof global != 'undefined' ? global : window; var parent = root.Rickshaw; for(var i = 1, length = parts.length; i < length; i++) { currentPart = parts[i]; pare...
'use strict'; describe('jsonErrors', function(){ var sinon = require('sinon'); var sut = require('../../../lib/middleware/jsonErrors.js'); var res = { json: sinon.stub() }; beforeEach(function(){ res.json.reset(); }); it('is middleware', function(){ sut.should.be.type('function'); }); ...
angular.module('app').config(function(ScreenProvider) { ScreenProvider.register('screen-max-index', { ScreenTitle: 'List Maxes', controller: function($scope, Restangular) { $scope.q = {}; $scope.getMaxList = function() { $scope.q.max = Restangular.all('max').getList({sort:'-date'}).then(function(maxes) {...
'use strict'; var url = '/api/v1.0/'; angular.module('auth.services', []) .factory('authService', [ '$http', '$window', function($http, $window) { var auth = {}; auth.saveToken = function(token) { $window.localStorage['beryl-client-token'] = token; }; auth.getToken = function() { return $window.localStorage...
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var ActionSettingsBackupRestore = React.createClass({ displayName: 'ActionSettingsBackupRestore', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d...
'use strict'; angular.module('mean.customer').config(['$stateProvider', function($stateProvider) { $stateProvider.state('customer example page', { url: '/customer/example', templateUrl: 'customer/views/index.html' }); } ]);
'use strict'; var path = require('path'); var BinWrapper = require('bin-wrapper'); var pkg = require('../package.json'); var url = 'https://raw.github.cnpmjs.org/imagemin/optipng-bin/v' + pkg.version + '/vendor/'; module.exports = new BinWrapper() .src(url + 'macos/optipng', 'darwin') .src(url + 'linux/x86/optipng',...
// Backbone.js 0.9.2 // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){ // Initial Setup // ------------- // Save a reference to the global object (`wi...
(function(window, factory) { if (typeof define === 'function' && define.amd) { define([], function() { return factory(); }); } else if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(); } else { (window.LocaleData || (...
import React from 'react'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText...
var mongoose = require('mongoose'); var Caja = mongoose.model('Caja'); var Proveedor = mongoose.model('Proveedor'); var MontoCategoria = mongoose.model('MontoCategoria'); var Schema = mongoose.Schema; var detalleSchema = new Schema({ creado: { type: Date, default: Date.now }, valor: { type: Number, ...
var thinkjs = require('thinkjs'); var path = require('path'); var rootPath = path.dirname(__dirname); var VIEW_PATH = rootPath + '/view'; require("babel-core/register")(think.extend({ only: VIEW_PATH, }, { "presets": [ ["es2015", { "loose": true }], "stage-1", "react" ], "plugins": [ "transform-runti...
// Meteor Shower by Roy Curtis // Licensed under MIT, 2015 'use strict'; // ## Global references var fastRandom = goo.MathUtils.fastRandom; // ## Constants var MAX_METEORS = 6; // ## Global state var world = null; var master = null; var meteors = []; var nextSpawn = 0; // ## Utility m...
$(function() { // Model // 取得する作品情報 var WorkModel = Backbone.Model.extend({ url : 'work/', initialize : function initialize() { // インスタンス生成時に実行される this.url += this.get('id'); /* console.log(this.get('name')); */ } }), // Collection WorkCollection =...
/* exported EffectsManager */ function EffectsManager() { this.effectElements = []; }
/** * A JavaScript project for accessing the accelerometer and gyro from various devices * * @author Tom Gallacher <tom.gallacher23@gmail.com> * @copyright Tom Gallacher <http://www.tomg.co> * @version 0.0.1a * @license MIT License * @options frequency, callback */ (function() { var measurements = { x...
$(document).ready(function() { var id_select; $.ajax({ url: "/api/list_dives" }).then(function(data) { //console.log(data); localStorage.setItem("dives", JSON.stringify(data)); data.rows.forEach(function(doc) { //console.log(doc.id); var date = doc.doc.StartTime + '';...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ /* global I18n */ /** * @fileOverview * @author Cyril Junod <cyril.junod at gmail.com> */ YUI.add('wegas-template', function(Y) { 'use strict'; va...
/** * Created by Mitchell Corish on 2015-01-24. */ var oldVelocity = 0, acceleration = 0; // Connect to localhost and start getting frames Leap.loop({enableGestures: true}, function(frame) { if (frame.valid) { if (frame.gestures.length > 0) { frame.gestures.forEach(fun...
import React from 'react'; import { Bar } from '@vx/shape'; import { Group } from '@vx/group'; import { GradientTealBlue } from '@vx/gradient'; import { letterFrequency } from '@vx/mock-data'; import { scaleBand, scaleLinear } from '@vx/scale'; import { extent, max } from 'd3-array'; const data = letterFrequency.slice...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ //Provides: nproc const function nproc() { return 1; }
// Copyright 2002-2015, University of Colorado Boulder /** * Main entry point for the sim. * * @author Sam Reid */ define( function( require ) { 'use strict'; // modules var MrchompyScreen = require( 'MRCHOMPY/mrchompy/MrchompyScreen' ); var Sim = require( 'JOIST/Sim' ); var SimLauncher = require( 'JOIS...
var shorthandExpand = require('css-shorthand-expand') module.exports = function (properties) { properties = properties || this.properties if (!properties) { return 0 } var families = properties['font-family'] || [] if (properties.font) { families = families.concat(properties.font .map(functi...
/*! * trek - Parsers * Copyright(c) 2015 Fangdun Cai * MIT Licensed */ 'use strict'; exports.__esModule = true; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) ...
/** * <%= description %> * * @version 0.0.0 * @requires jQuery * @author <%= pkg.author && pkg.author.name || pkg.author || '' %> * @copyright <%= (new Date).getFullYear() %> <%= pkg.author && pkg.author.name || pkg.author || '' %> * @license MIT */ (function(factory) { if ( typeof define === 'function' && ...
/** * @external {Project} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Project */ /** * @external {Schema} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Schema */ /** * @external {Column} https://doc.esdoc.org/github.com/sch...
// TODO: use https://developer.chrome.com/extensions/tabs#method-executeScript // chrome.runtime.onMessage.addListener(function(req, sender, sendResponse) { // sendResponse({ // message: "hello from content script" // })); // return true; // } // $(".playButton").click(); console.log("This is the conten...
'use strict'; module.exports = { db: 'mongodb://localhost/surveyapp14-test', port: 3001, app: { title: 'SurveyApp1.4 - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twit...
require('./base-css.js'); require('../css/props-editor.css'); var React = require('react'); var ReactDOM = require('react-dom'); var Dialog = require('./dialog'); var util = require('./util'); var message = require('./message'); var win = require('./win'); var MAX_FILE_SIZE = 1024 * 1024 * 20; var MAX_NAME_LEN = 128; ...
function WebGLExtensions(gl) { var extensions = {}; return { get: function (name) { if (extensions[name] !== undefined) { return extensions[name]; } var extension; switch (name) { case 'WEBGL_depth_texture': extension = gl.getExtension('WEBGL_depth_texture')...
// 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 rave = require('./rave'); module.exports = rave;
import { withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import { connect } from 'react-redux'; export default compose( withRouter, connect(state => ({ ...state.routing, })), );
import React , { Component } from 'react'; import { Navigator , View , Text, StyleSheet, Dimensions, Image, TouchableOpacity, Platform, Switch } from 'react-native'; import TabShow from '../components/TabShow'; import Camera from 'react-native-camera'; import moment from 'moment'; import Icon from 'r...
const AWS = require('aws-sdk'); const getQueue = (sqs, queueUrl) => new Promise((resolve, reject) => { const queueSettings = { QueueUrl: queueUrl, AttributeNames: ['ApproximateNumberOfMessages', 'ApproximateNumberOfMessagesNotVisible'] }; const response = (err, res) => { if (err) { reject(err);...
JSM.GetArrayBufferFromURL = function (url, callbacks) { var request = new XMLHttpRequest (); request.open ('GET', url, true); request.responseType = 'arraybuffer'; request.onload = function () { var arrayBuffer = request.response; if (arrayBuffer && callbacks.onReady) { callbacks.onReady (arrayBuffer); } ...
// Global variable declarations var defaultCode; // Create app app = require('./index.js'); // ROUTES // // Derby routes are rendered on the client and the server // Base '/' route app.get('/code/:room?', function(page, model, params, next) { var $code, room = params.room; if (!(room && /^[a-zA-Z0-...
"use strict"; exports.__esModule = true; exports.default = void 0; var Binding = function () { function Binding(_ref) { var identifier = _ref.identifier, scope = _ref.scope, path = _ref.path, kind = _ref.kind; this.identifier = identifier; this.scope = scope; this.path = path...
// file: bwipp/rationalizedCodabar.js // // This code was automatically generated from: // Barcode Writer in Pure PostScript - Version 2015-08-10 // // Copyright (c) 2011-2015 Mark Warren // Copyright (c) 2004-2014 Terry Burton // // See the LICENSE file in the bwip-js root directory // for the extended copyright notic...
import { combineReducers } from 'redux' import counterReducer, { getValue as counterGetValue } from '../counter/reducer' import buttonReducer, { getEnabledState as buttonGetEnabledState } from '../button/reducer' import relocatableGif from '../relocatableGif/reducer' import randomGifPair from '../randomGifPair/reduce...
(function() { // 配置 var envir = 'online'; var configMap = { test: { appkey: 'af1edc0739d6187cecffd39b751d284f', url:'https://apptest.netease.im' }, pre:{ appkey: 'af1edc0739d6187cecffd39b751d284f', url:'http://preapp.netease.im:8184' }, ...
/** * Список пользователей */ angular .module('zakaz-xd.manage-users.users-list', [ 'zakaz-xd.dialogs', 'zakaz-xd.directives.pagination', 'zakaz-xd.resources.users-resource', 'zakaz-xd.auth' ]) .controller('UsersListCtrl', ['$scope', '$stateParams', '$state', 'Use...
import collections from '../lib/collections'; import permissions from './permissions'; import publications from './publications'; import methods from './methods'; import configs from '../lib/configs'; import privateConfigs from 'server/configs/posts'; import seeds from './seed.js'; import { addInstancesCount } from 'li...
import {expect} from 'chai'; import jedi from '../../src'; describe('Module runnable registration', function () { describe('a module .run() method', function () { let jediModule; beforeEach(function () { jediModule = jedi.module(); }); it('should register a given method into the module\'s run...
(function($) { window.Simplecheckout = function(params) { this.params = params; this.callback = params.javascriptCallback || function() {}; this.selectors = { paymentForm: "#simplecheckout_payment_form", paymentButtons: "#simplecheckout_payment_form div.butt...
/* * node-klass * https://github.com/ayecue/node-klass * * Copyright (c) 2015 "AyeCue" Sören Wehmeier, contributors * Licensed under the MIT license. */ 'use strict'; module.exports = (function( forEach, extend, printf, CONSTANTS, colors ){ function KlassLogger(){ } extend(KlassLogger.prototype,{ self...
function each(values, fn, cb) { var n = 0; doStep(); function doStep() { if (n >= values.length) return cb(null, null); try { fn(values[n++], function (err, data) { if (err) return cb(err, null); ...
var ARTICLES_URL = '/api/articles/all'; var ARTICLE_AUTHOR_URL = '/api/articles/author/'; var Article = React.createClass({displayName: "Article", getMeta: function () { if (this.state.author == {}) { return 'Loading ...'; } if (null != this.state.author.first_name && null != this.state.author.last_name) { ...
/*jslint browser: true, sloppy: true */ var UNIVERSE = UNIVERSE || {}; UNIVERSE.LLACoordinates = function (lat, lon, alt) { // define variables as <var name>: <value> this.latitude = lat || 0.0; //deg this.longitude = lon || 0.0; //deg this.altitude = alt || 0.0; //km /** * Returns the a...
function LogoutCtrl ($rootScope, $state) { // console.log('Entering LogoutCtrl....'); $rootScope.session = {}; $rootScope.session.apiReload = true; $rootScope.session.apiOffset = 0; $state.go('login'); } angular.module('pfApp.controllers') .controller('LogoutCtrl', LogoutCtrl);
import React from 'react'; import loadScript from 'load-script2'; import CircularProgress from '@material-ui/core/CircularProgress'; import InternalCaptcha from './ReCaptcha'; const GRECAPTCHA_API = 'https://www.google.com/recaptcha/api.js'; const onloadCallbackName = 'grecaptchaOnload__$'; const onloadCallbacks = [];...
window.onload = function(){ var randNum = parseInt(10*Math.random()); var gameContainer = document.getElementById('game'); while (guess !== randNum) { var guess = prompt("Guess a number from 1 to 10!"); if (guess == randNum){ gameContainer.innerHTML = 'you are correct!'; break } else if (guess > ran...
version https://git-lfs.github.com/spec/v1 oid sha256:db04eefcbca2fe2bd4778544880dc438773bcabf75737213900e56dee0772412 size 21916