code
stringlengths
2
1.05M
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Notification = require('../controllers/notification.server.controller.js'); /** * Globals */ var user, notification; /** * Unit tests */ describe('Notification Model Uni...
'use strict'; var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { devtool: 'eval-source-map', entry: [ 'webpack-hot-middleware/client?reload=true', path.join(__dirname, 'src/main.js') ], output: { path: path.join(...
const webpack = require( 'webpack' ) module.exports = { entry: './src/index.js', output: { path: './dist/', filename: 'index.js', library: 'vue2-datetime-picker', libraryTarget: 'umd', umdNamedDefine: true }, resolve: { extensions: [ '', '.js', '.vue' ] }, module: { loaders: [ ...
function WizardsNotification() { var time; var jQuery = $(wizardsgroup.config.notification); jQuery.click(function () { clearTimeout(time); $(this).slideUp(); }); this.success = function (msg) { notify(wizardsgroup.status.success, msg); } this.error = function (m...
var constants = require('../constants.js').game; var directions = constants.board.directions; var occupants = constants.board.occupants; var Board = require('./board.js'); var Move = require('./move.js'); var debug = require('debug')('checkers:lib:game'); var Player = require('./player.js'); /* some utils functions */...
module.exports = { "extends": "airbnb-base", "plugins": [ "import" ], "rules": { "comma-dangle": "off", "padded-blocks": "off", "arrow-body-style": "off", "no-console": "off" } };
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt // for license information please see license.txt // constructor: parent, label, method, args frappe.ui.Tree = Class.extend({ init: function(args) { $.extend(this, args); this.nodes = {}; this.wrapper = $('<di...
import React, { Component } from 'react' import autobind from 'autobind-decorator' export default class GroupCreationWidget extends Component { constructor(props) { super(props) this.state = { active: false } } render() { if (!this.props.isOwner) return null return <div className='Gro...
(function () { "use strict"; /** * @module ProjectManagementModule * @requires ui.router * @description * Top level module for this application * */ var app = angular.module("ProjectManagementModule", ["ui.router"]); /*@ngInject*/ app.config(function ($stateProvider, $...
export const ic_playlist_add_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"},"children":[]}]};
const gulp = require('gulp'); const gulpif = require('gulp-if'); const browserSync = require('browser-sync'); const merge = require('merge-stream'); const config = require('../config'); const DEVELOPMENT = config.environment.isDevelopment; gulp.task('copySgAssets', () => { const css = gulp .src(`${config.CSS_B...
"use strict"; exports.CollectionItem = void 0; var _constants = require("../constants"); var _errors = require("../errors"); var _BlankLine = require("./BlankLine"); var _Node = require("./Node"); var _Range = require("./Range"); class CollectionItem extends _Node.Node { constructor(type, props) { super(ty...
// ========================================================================== // DG.ToolTip // // Author: William Finzer // // Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
$(document).ready(function() { $('.main').fullpage({ anchors:['firstPage', 'secondPage', 'thirdPage', 'fourthPage'], menu: false, navigation: true, navigationTooltips: ['Home', 'About Me', 'Projects I involved', 'Contact'], autoScrolling: false, }); $('#about-container').particleground({ d...
import faker from 'faker' import React, { createElement } from 'react' import helpers from './commonHelpers' /** * Assert a component renders children somewhere in the tree. * @param {React.Component|Function} Component A component that should render children. * @param {Object} [options={}] * @param {Object} [opt...
var cdnjsBase = 'https://cdnjs.cloudflare.com/ajax/libs'; var cdnjs = (lib, ver, file) => `${cdnjsBase}/${lib}/${ver}/${file}`; requirejs.config({ paths: { 'knockout-projections': 'https://rawgithub.com/mariusGundersen/knockout-projections/amd/dist/knockout-projections-1.0.0.min', 'knockout.mapping...
/* jqBootstrapValidation * A plugin for automating validation on Twitter Bootstrap formatted forms. * * v1.3.6 * * License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file * * http://ReactiveRaven.github.com/jqBootstrapValidation/ */ (function ($) { var createdElements = []; v...
/** * Test case for resolver. * Runs with mocha. */ 'use strict' const resolver = require('../lib/resolver.js') const assert = require('assert') const co = require('co') describe('resolver', function () { this.timeout(3000) before(() => co(function * () { })) after(() => co(function * () { })) it(...
YUI.add('io-queue', function (Y, NAME) { /** Extends IO to implement Queue for synchronous transaction processing. @module io @submodule io-queue @for IO **/ var io = Y.io._map['io:0'] || new Y.IO(); Y.mix(Y.IO.prototype, { /** * Array of transactions queued for processing * * @property _q * @priva...
var assert = require('assert'); var textAmount = require('../textAmount'); describe('textAmount', function() { it('textAmount should be a function', function () { assert.equal(typeof textAmount , 'function'); }); it('missing Locale properties should throw error', function(){ assert.throws(function(){ ...
/* Generic prompting widget. Documented via example! var tab = 'Some Tab Value'; var $deleteModal = new kbasePrompt($('<div></div>'), { title : 'Confirm deletion', body : 'Really delete <strong>' + tab + '</strong>?', modalClass : 'fade', //Not required. jquery animat...
var stva = {}; var mapStyles = [ { featureType: "road", elementType: "geometry", stylers: [ { hue: "#ffb400" }, { lightness: 100 } ] },{ featureType: "road", stylers: [ { visibility: "on" }, { hue: "#91ff00" }, { saturation: -62 }, { gamma: 1.98 }, ...
'use strict'; angular.module('mean').config(['$stateProvider', function ($stateProvider) { var checkLoggedin = function($q, $timeout, $http, $location) { // Initialize a new promise var deferred = $q.defer(); // Make an AJAX call to check if the user is logged in ...
// Create label var create = function(req, res, conn) { var title = req.body.name; var description = req.body.description; var sql = 'INSERT INTO label SET ?, date_created = NOW()'; var args = { title: title, description: description, user_id: req.session.user_id }; conn.query(sql, args, functio...
import React from 'react'; import PropTypes from 'prop-types'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@material-ui/core/Typography'; import makeStyles from '@material-ui/styles/makeStyles'; import moment from 'moment'; import TimerIco...
'use strict'; importScripts('map-dl.js'); MapDl = new MapDl(); onmessage = function(e) { // console.log('Message received from main script', e); var rectArr = []; var mapDlOptions = e.data; mapDlOptions.callback = function (rectangle) { // Remove functions as they can't be passed to parent scr...
function helloWorld () { return "Hello World!"; }
/** * codes are based on threex.videotexture * https://github.com/jeromeetienne/threex.videotexture */ var _ = require('lodash'); export default class VideoTexture extends THREE.Texture{ constructor(opts){ super(); _.bindAll(this, 'onVideoLoaded'); this.eventDispatcher = new THREE.EventDispatcher; if(!...
// Generated by CoffeeScript 1.10.0 (function() { var jwt; jwt = require('jsonwebtoken'); module.exports = { refresh: function(token, secretOrPrivateKey, options) { var err, error, limitDate, payload; err = void 0; limitDate = void 0; payload = void 0; try { payload = j...
'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://localhost/hornby-dev' }, seedDB: true };
import { join } from 'path'; import denodeify from 'denodeify'; import uuid from 'uuid/v1'; import splitIdTracks from '_server/utils/splitIdTracks'; import { getConfig } from '_server/config'; const writeFile = ( BUNDLE === 'cordova' ? () => Promise.reject('Filesystem not available') : denodeify(require('fs')....
import React from 'react'; import styled, { css } from 'styled-components'; import theme from '../../theme'; const scrollbarWidth = window.innerWidth - document.body.clientWidth; const HamburgerInner = styled.div` top: 19px; left: 11px; position: absolute; width: 40px; height: 4px; transition: transform $...
var header = new Vue({ el : '#header', data : { message : 'Javascript Performance Test' } }); var commonsEditor = new Vue({ el : '#commonsEditor', data : { code : 'function foo(){ \n return { val : "3" };\n}' }, methods : { updateCode : function () { ...
import './versionlog.html';
// MSDropDown - jquery.dd.js // author: Marghoob Suleman // Date: 12th Aug, 2009 // Version: 2.1 {date: 3rd Sep 2009} // Revision: 25 // web: www.giftlelo.com | www.marghoobsuleman.com // MSDropDown - jquery.dd.js // author: Marghoob Suleman // Date: 12th Aug, 2009 // Version: 2.1 {date: 3rd Sep 2009} // Revision: 25 /...
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/bottom-navigation'; const requireDemo = require.context( 'docs/src/pages/components/bottom-navigation', false, /...
'use strict'; angular.module('topic') .controller('CTwitterTopic', [ '$scope', 'FTwitterTopic', function($scope, FTwitterTopic) { $scope.showLoader = true; FTwitterTopic.getTopic().then(function(response) { $scope.topics = response.data.DATA; ...
/* * * Copyright (c) 2008-2009, Felix Bruns <felixbruns@web.de> * */ function LastFM(options){ /* Set default values for required options. */ var apiKey = options.apiKey || ''; var apiSecret = options.apiSecret || ''; var apiUrl = options.apiUrl || 'http://ws.audioscrobbler.com/2.0/'; var cache ...
const HValueResponderDefaults = require('foundation/valueresponder/valueresponderdefaults'); /** = Description * Define default HView setting here. Will be used, when no or invalid constructor * options are supplied. **/ class HViewDefaults extends HValueResponderDefaults.extend({ /* Whether or not to draw whe...
/** * @fileoverview Enforces that a return statement is present in computed property (return-in-computed-property) * @author Armano */ 'use strict' const utils = require('../utils') function create (context) { const options = context.options[0] || {} const treatUndefinedAsUnspecified = !(options.treatUndefined...
AFRAME.registerComponent('projectile', { schema: { speed: { default: -0.4 }, target: { default: '.enemy' }, }, init() { const enemies = document.querySelectorAll('.enemy'); this.targets = []; this.ticks = 0; for (let i = 0; i < enemies.length; i++) { this.targets.push(enemies[i]); ...
import chalk from 'chalk'; import convict from 'convict'; import path from 'path'; import fs from 'fs'; import prettyjson from 'prettyjson'; const configDir = process.env.ROB_CONFIG_DIR || 'config'; try { const statDir = fs.statSync(configDir); if (!statDir.isDirectory()) { throw new Error('Not a direc...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ContextDependency = require("./ContextDependency"); const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsReq...
var api = require('marvel-api'); var fs = require('fs'); var marvel = api.createClient({ publicKey: 'a8737e8ce63836b20a6db288a19286be', privateKey: '47fa5c8b68c7ff434081c16a9fa9fa214575bf0c' }); //Class function Characters() { // always initialize all instance properties this.characters_filename = "da...
/* * webicons * https://github.com/fischerromain/grunt-webicons * * Copyright (c) 2014 Romain Fischer * Licensed under the MIT license. */ 'use strict'; var gm = require('gm').subClass({ imageMagick: true }); var sys = require('sys'); var fs = require('fs'); var exec = require('child_process').exec; var async ...
function CollisionDetector() { this.detectCollision = function(activeObject,passiveObject) { var collision = { 'downward' : false, 'upward' : false, 'rightward' : false, 'leftward' : false, }; if (activeObject.velocity.y > 0) { ...
const chalk = require('chalk'); const child = require('child_process'); const renderArg = (arg) => ` ${/\s/.test(arg) ? `'${arg.replace(/'/g, '\\\'')}'` : arg }`; module.exports = (command, args, options) => { process.stdout.write([ '\n', options && options.cwd && chalk.dim(options.cwd) || '', ' ❭ '...
// ===================================================================== // This file is part of the Microsoft Dynamics CRM SDK code samples. // // Copyright (C) Microsoft Corporation. All rights reserved. // // This source code is intended only as a supplement to Microsoft // Development Tools and/or on-line docu...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.Types.ObjectId; var CommentSchema = new Schema({ movie:{ type:ObjectId , ref: 'Movie'}, //评论哪部电影 from:{ type:ObjectId , ref: 'User'}, //谁评论的 content:String, meta:{ createAt:{ type:Date, default...
module( "ceil test" ); test('자리수를 지정하지 않은 올림',function() { var rn = Pascal.ceil(3.141592); deepEqual(rn, 4, "Pascal.ceil(3.141592) === 4 : 소수점 첫째자리에서 올림"); }); test('소수점 첫재짜리 까지 표현',function() { var rn = Pascal.ceil(3.141592,1); deepEqual(rn, 3.2, "Pascal.ceil(3.141592,1) === 3.2 : 소수점 둘째자리에서 올림"); }); test('소수...
var polyStyle = require('../src'); var test = require('tape'); var ERROR_TYPE = 'ERROR_TYPE'; // every spec specifies: // name // input value // output value // type ( ERROR_TYPE if it throws ) var specs = [ { testName: 'null input', in: null, type: ERROR_TYPE }, { testName: 'string input...
import * as types from '../constants/user'; import { getUserRole } from 'utils/helpers'; import { getAccessToken } from 'utils/api'; const initialState = { isFetching: false, logoutIsFetching: false, accessToken: getAccessToken(), profile: undefined, profileIsLoading: false, profileIsLoaded: false, orders: un...
'use strict'; const config = require('./../config'); const gulp = require('gulp'); const clean = require("gulp-clean"); gulp.task('clean-dist', function () { return gulp.src(config.dist) .pipe(clean({force: true})); });
app.Views.Menu = Backbone.View.extend({ template: _.template($('#menu-template').html()), initialize: function() { console.log('Menu page init!'); this.options = { title: 'Menu page', menu: { home: { title: 'Home page', ...
import expect from 'expect'; import kash from 'src'; describe('kash', () => { afterEach(() => { kash.flush(); }); describe('#set', () => { beforeEach(() => { kash.set('foo', 'bar'); }); it('should have a value of `bar`', () => { expect(kash.get('foo')).toEqual('bar'); }); i...
// NOTE: This example uses the next generation Twilio helper library - for more // information on how to download and install this version, visit // https://www.twilio.com/docs/libraries/node var apiKeySid = 'SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; var apiKeySecret = 'your_api_key_secret'; var accountSid = process.env.TWI...
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-jsbeautifier'); grunt.loadNpmTasks('grunt-contrib-jshint'); global._$jscoverage = {}; grunt.initConfig({ jsbeautifier: { files: ['./app/**/*.js', './config/**/*.json'], options: { js: { braceStyle: 'collapse', breakCh...
// flow-typed signature: 2f80fa40687a9da041c0e7ff59edc968 // flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v5.1.1/flow_v0.56.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-jsx-a11y' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to sh...
console.log( 'Testing rules/rule-base.js...' ); function read ( filename ) { return require( '../../../source/' + filename ); } const RuleBase = read( 'rules/rule-base.js' ); describe( 'Rule base', () => { const rb = new RuleBase( 'postalCode' ); it( 'constructor expects a non-empty string argument', () => { ...
version https://git-lfs.github.com/spec/v1 oid sha256:79950f79cb396c5f7c937183d540671bd7c03911576e86bb031214495169aad6 size 720
(function() { var App, Worker, cqlWorker, log, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; log = require("loglevel"); Worker = require("./workers/elastic.js"); cqlWorker = require("./workers/cassandra.js"); /** * The main application logic and entry point. Reads...
import Ember from 'ember'; import ENV from '../config/environment'; const { APP: { cloudinary } } = ENV; function initialize(/* container, application */) { Ember.$.cloudinary.config({ cloud_name: cloudinary.name }); } export default { name: 'cloudinary', initialize: initialize };
module.exports = function(grunt) { "use strict"; grunt.initConfig({ libFiles: [ "src/**/*.purs", "bower_components/purescript-*/src/**/*.purs" ], psc: { options: { main: "Main", modules: ["Main"] }, all: { src: ["<%=libFiles%>"], dest: "j...
export Router from './Router' export Route from './Route'
/** * @file mip-consultmore-wl 组件 * @author */ define(function (require) { 'use strict'; var $ = require('zepto'); var customElement = require('customElement').create(); /** * 第一次进入可视区回调,只会执行一次 */ customElement.prototype.firstInviewCallback = function () { var ele = $(this.elem...
import { shallowMount } from '@vue/test-utils'; import { GlBadge, GlButton, GlLink } from '@gitlab/ui'; import ForkGroupsListItem from '~/pages/projects/forks/new/components/fork_groups_list_item.vue'; describe('Fork groups list item component', () => { let wrapper; const DEFAULT_PROPS = { hasReachedProjectLi...
const assert = require('yeoman-assert') const helpers = require('yeoman-test') const h = require('../../test-helper') require('chai').should() describe('filter', () => { it('generates expected files', done => { helpers.run(__dirname) .withArguments(['emoji']) .on('end', function () { const f...
'use strict'; import {expect} from 'chai'; import SysadminTwoController from './sysadmin-two-controller'; let ctrl; describe('app module', () => { beforeEach(() => { ctrl = new SysadminTwoController(); }); it('should be initialized', () => { expect(ctrl).to.exist; }); });
/* jshint unused: false, camelcase: false */ var vows = require('vows'); var assert = require('assert'); var http = require('http'); var httpProxy = require('http-proxy'); var enableDestroy = require('server-destroy'); var nock = require('nock'); var url = require('url'); var CleanCSS = require('../index'); var port ...
(function() { 'use strict'; angular.module('app.uibutton') .directive('uiButton', function () { return { restrict: 'E', replace: true, controller: function() { }, templateUrl: 'app/common/uibutton/ui-button.htm...
connection = new WebSocket("ws://localhost:8081/chat") connection.onopen = function () { console.log("Connection opened") connection.send("Hi!") } connection.onclose = function () { console.log("Connection closed") } connection.onerror = function () { console.error("Connection error") } connection.onmessage = f...
(function() { 'use strict'; var ssNavigation = function(func) { ret.$inject = ['$ssCarousel']; function ret($ssCarousel) { function link($scope, $element, $attrs, ctrl) { $element.bind('click', click); // Get a reference to the carousel var Carousel; $ssCarousel.ge...
var Nosy = require('../nosy'); var nosy = new Nosy(require('./feeds.json').feeds, { interval: 1, emitOnStart: true }); nosy.on('item', function(item) { console.dir(item); }); nosy.start();
var symbols = require("../efront/memery").SYMBOLS; if (symbols) symbols = new RegExp(symbols); if (!symbols) var isSymbol = function () { return false; }; else var isSymbol = function (a) { return symbols.test(a); }; module.exports = isSymbol;
'use strict'; const WIT_TOKEN = process.env.WIT_TOKEN if (!WIT_TOKEN) { throw new Error('Missing WIT_TOKEN. Go to https://wit.ai/docs/quickstart to get one.') } var FB_PAGE_TOKEN = process.env.FB_PAGE_TOKEN || 'EAAPCnjgJAvkBACZBidHZBZACz35igIGqULElTntgiAgVzIxVxAX7Y38Eb1N2FD2bKGZBT8OlL6a6F0qEJsWhYdWeZCdsbaZCTd13HT8...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const appolo = require("../../../../index"); const decorators_1 = require("../../../../decorators"); const _ = require("lodash"); let Manager5 = class Manager5 { get name() { return this.constructo...
// Buffer.isEncoding(string) console.log(Buffer.isEncoding('utf8')); // true console.log(Buffer.isEncoding('hello')); // false
'use strict'; /** * @ngdoc overview * @name eversnapApp * @description * # eversnapApp * * Main module of the application. */ angular .module('eversnapApp', [ 'ngAnimate', 'ngAria', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'angularSpinner', 'eversnapAp...
"use strict"; var postcss = require("postcss"), expect = require("chai").expect, fs = require("fs"), path = require("path"), plugin = require("../"), keyframes = require("postcss-animation-data"); var test = function (fixture, opts, done) { var input = fixture + ".css", expected = fixture ...
var util = require('util') , events = require('events') ; var LOG_LEVEL = { TRACE: 0, DEBUG: 1, INFORMATION: 2, WARNING: 3, ERROR: 4, FATAL: 5, SILENT: 6 }; exports.logger = logger; exports.LOG_LEVEL = LOG_LEVEL; function logger(client, logLevel) { return new Logger(client, logLevel); } functio...
'use strict'; module.exports = { env: 'production', ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || '0.0.0.0', port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || 8080, mongo: { uri: process.env.DEMODB || process.env.MONGOLAB_URI || pr...
import React from 'react'; import icons from '../weather_icons/WeatherIcons'; const TenDay = ({ tenDayForecast }) => { if (!tenDayForecast) { return null; } const forecastArray = tenDayForecast.simpleforecast.forecastday; const tenDayDataLoop = forecastArray.map((day, i) => { return ( <div classN...
/*! * barrita.js jQuery plugin to create progress bars * * heavily inspired by nprogress * https://github.com/rstacruz/nprogress * © 2013, Rico Sta. Cruz. Released under the MIT License. * https://github.com/rstacruz/nprogress/blob/master/License.md * */ (function($) { $.barrita = function(el, options){ ...
'use strict'; define(['angular'], function(angular) { angular.module('shufabeitie.home', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', { templateUrl: 'home/home.html', controller: 'HomeCtrl' }); ...
'use strict' const ErisDBFactory = require('./index') global.ErisDBFactory = ErisDBFactory
/** * Module dependencies. */ var mongoose = require('mongoose'), async = require('async'), _ = require('underscore'); /** * Redirect users to /#!/app (forcing Angular to reload the page) */ exports.play = (req, res) => { if (Object.keys(req.query)[0] === 'custom') { res.redirect('/#!/app?custom'); ...
/******************************************************************************* * @Author : nanyuantingfeng ******************************************************************************/ var app, page, nf; nf = sm("do_Notification"); app = sm("do_App"); page = sm("do_Page"); page.on("back", function(){ app.closePa...
module.exports = function(grunt){ grunt.config('connect', { devServer: { options: { port: 9001, base: './', livereload: 35729, open: { open: true, target: 'http://127.0.0.1:9001' } } } }) // config grunt.loadNpmTasks('grunt-contrib-co...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import '@vishnucss/vishnu/dist/vishnu.min.css' ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // ...
/* --- name: Class.Singleton description: Beautiful Singleton Implementation that is per-context or per-object/element authors: Christoph Pojer (@cpojer) license: MIT-style license. requires: [Core/Class] provides: Class.Singleton ... */ (function(){ var storage = { storage: {}, store: function(key, value)...
version https://git-lfs.github.com/spec/v1 oid sha256:9f1d69339394b5992785a74aa30425638c2c291f2b4065fa5370e8e4e3e82b8d size 1636970
var searchData= [ ['wheel_5fmovement',['wheel_movement',['../classlfgui_1_1event__mouse.html#a9d66faab72a1850893ba23e3d3a14cde',1,'lfgui::event_mouse']]], ['widget_5fcontent',['widget_content',['../classlfgui_1_1window.html#a9b71225a4e6a83768cf286f26caa1e19',1,'lfgui::window']]], ['widget_5fthis',['widget_this',[...
'use strict'; var app = angular.module('pamsApp', ['password']); /** * Controller that supply two function: login and reset. * * Login: use your password to validate, jump to main page if success. * * Reset: erase your all data and set the password to 000000. */ app.controller('passwordLoginCtrl', ['$scope', 'p...
/* eslint-disable no-unused-vars */ module.exports = { name: 'Call Command/Event', section: 'Other Stuff', subtitle(data) { let source; if (parseInt(data.sourcetype, 10) === 1) { source = data.source2.toString(); } else { source = data.source.toString(); } return `Call Command/Eve...
// Generated on 2015-01-10 using generator-angular 0.10.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks a...
'use strict'; /** * [gulp-spriter 雪碧图工具] * @param {[object]} opt [自定义参数] * opt = { * outname:"sprite.png", * inpath:"./src/slice", * outpath:"./build/sprite" * } */ var PLUGIN_NAME = "gulp-spriter"; var through = require('through2'); var gutil = require('gulp-util'); var fs = require('fs-extra'); v...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Feed from '../feed/Feed'; import { getFeed, getPosts } from '../reducers'; import { getFeedContentFromState, getFeedLoadingFromState, getFeedHasMoreFromState, } from '../helpers/stateHelpers'; import { get...
describe("wu.reductions", () => { it("should yield the intermediate reductions of the iterable", () => { assert.eqArray([1, 3, 6], wu.reductions((x, y) => x + y, undefined, [1, 2, 3])); }); });
(function (register, initDB) { 'use strict'; register('init_db', function (c) { initDB('todomvc', 1); var upgradeDB = function (e) { var db = e.detail.db, objectStore; if (!db.objectStoreNames.contains('todos')) { objectStore = db.crea...