code
stringlengths
2
1.05M
// rollup.config.js import json from 'rollup-plugin-json'; export default { output: { format: 'umd', }, plugins: [ json(), ], };
var searchData= [ ['length',['Length',['../classCSF_1_1Zpt_1_1Rendering_1_1RepetitionInfo.html#ac5115ce30afab8873915bb65711a3bd8',1,'CSF::Zpt::Rendering::RepetitionInfo']]], ['localdefinitions',['LocalDefinitions',['../classCSF_1_1Zpt_1_1Rendering_1_1Model.html#a2d32cef4e4dca44c3b5a0aa0883cdc4b',1,'CSF::Zpt::Render...
/** * Exports */ module.exports = isValue /** * Check if a value exists. * * @param {*} value * @return {Boolean} */ function isValue(value) { return !!arguments.length && value != null }
function eForStep(arr, arrLen, i, callback) { if (i < arrLen) { let item = arr[i]; callback(true, item); setTimeout(eForStep.bind(this, arr, arrLen, i + 1, callback), 0); } else { callback(false); } } /** * For statement emulation to work with large arrays without event loop...
/** * @author Toru Nagashima * @copyright 2017 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict" //------------------------------------------------------------------------------ // Requirements //-------------------------------------------------------------...
module.exports = { colorPrimary: '#4169E1', colorPrimaryDark: '#2B58DE', colorAccent: '#577AE4', white: '#FFFFFF', ghostWhite: '#F8F8FF', whiteSmoke: '#E8E8E8', silver: '#C0C0C0', darkGray: '#A9A9A9', gray: '#808080', dimGray: '#696969', black: '#000000', };
/* global describe, it, expect, sinon */ const boolean = require('src/typeStrategies/boolean') describe('type:boolean', () => { it('calls context.fail if type is not a boolean', () => { const context = { value: 'foo', fail: sinon.spy() } boolean.default(context) expect(context.fail).to.be...
function(doc){ if(doc.status){ emit(doc.date, doc); } }
module.exports = { "env": { "browser": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "accessor-pairs": "error", "array-bracket-spacing": "error", "array-callback-return": "error", "arrow-body-style": "error", ...
var jsonServer = require('json-server') var server = jsonServer.create() server.use(jsonServer.defaults()) var router = jsonServer.router('api/db.json') server.use(router) console.log('Listening at 5000') server.listen(5000)
'use strict' var _ = require('./lodash') module.exports = universe function universe(data, options) { var service = { options: _.assign({}, options), columns: [], filters: {}, dataListeners: [], filterListeners: [], } var cf = require('./crossfilter')(service) var filters = require('./fi...
/* nchor Slider by Cedric Dugas *** *** Http://www.position-absolute.com *** Never have an anchor jumping your content, slide it. Don't forget to put an id to your anchor ! You can use and modify this script for any project you want, but please leave this comment as credit. *****/ ...
var adapters , path = require('path') , _aliases , _adapters , _paths; _aliases = { postgres: 'postgres' , pg: 'postgres' , postgresql: 'postgres' , mysql: 'mysql' , sqlite: 'sqlite' , riak: 'riak' , mongo: 'mongo' , mongodb: 'mongo' , memory: 'memory' , filesystem: 'filesystem' , level: 'level' }; _adapte...
'use strict'; //Start by defining the main module and adding the module dependencies angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies); // Setting HTML5 Location Mode angular.module(ApplicationConfiguration.applicationModuleName).config(['$loc...
import * as React from 'react'; import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; import { docs } from './2021-q3-update.md?@mui/markdown'; export default function Page() { return <TopLayoutBlog docs={docs} />; }
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m20.41 6.41-2.83-2.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7.4l8.6-8.6V7.83c0-.53-.21-1.04-.59-1.42zM12 18c-1.66 0-3-1.34-3-3s1.34-3...
function Modal(modalSelector, showCallback, hideCallback) { this.shown = false; this.showCallback = showCallback; this.hideCallback = hideCallback; this._modal = _(modalSelector); this._triggerBtn = _(this._modal.data('trigger')); this._closeBtn = _(this._modal.data('close')); this._trigge...
var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: 40.402653, lng: -111.78539515}, zoom: 15, mapTypeId: google.maps.MapTypeId.SATELLITE }); } function hole1Map() { map = new google.maps.Map(document.getElementById('map'), { ...
include('harvestfestival:quests/templates/base_npc') required_npc = 'harvest_goddess' prereq = '0_axe' function display (info) { // Gather 24 logs to learn about blueprints info.setIcon(createStack('minecraft:log 0')) .setTitle('gather') .setDescription('logs') } function onNPCChat (player, npc, task...
(function() { 'use strict'; angular.module('app.data').factory('repository.boxes', RepositoryBoxes); RepositoryBoxes.$inject = ['$resource']; function RepositoryBoxes($resource) { var Boxes = $resource('/api/boxes/:id', { id: '@_id' }, { update: { method: "PUT" }, find...
var rr = require('./introspection'); var RepositoryUtils = org.jboss.forge.addon.maven.projects.util.RepositoryUtils; var MavenRepositorySystemUtils = org.apache.maven.repository.internal.MavenRepositorySystemUtils; var DefaultRepositorySystemSession = org.eclipse.aether.DefaultRepositorySystemSession; var LocalReposi...
/** * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="node" -o ./modern/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and In...
'use strict'; /** * @ngdoc function * @name aidiApp.controller:AddcontrollerCtrl * @description * # AddcontrollerCtrl * Controller of the aidiApp */ angular.module('aidiApp') .controller('AddcontrollerCtrl', function ($scope, $http, $location, $routeParams, profileFactory, SERVER) { if(!!$routeParams...
import AppDispatcher from '../dispatcher/AppDispatcher.js'; import Request from 'superagent'; class NameActions { loadAllUnprotectedNames(accountId) { Request .get('http://localhost:8080/names/unprotected/account/' + accountId) .withCredentials() .end((error, response) => { this.onLoad...
var Loader = require('./lib/loader'); exports.loader = function(orm) { return new Loader(orm); }; exports.load = function(orm) { var args = Array.prototype.slice.call(arguments, 1); var loader = new Loader(orm); return loader.load.apply(loader, args); }; exports.Loader = Loader;
const request = require('request'); const config = require('../../config'); const telegram = require('../telegram'); const models = require('../models'); module.exports = { poll() { request('https://jotihunt.net/api/1.0/vossen', (error, response, body) => { if (error) { telegram.sendMessage('Debu...
const StreamParser = require('../../../src/token/stream-parser'); const WritableTrackingBuffer = require('../../../src/tracking-buffer/writable-tracking-buffer'); const assert = require('chai').assert; describe('Env Change Token Parser', () => { it('should write to database', async () => { const oldDb = 'old'; ...
let path = require('path'); let APP_DIR = path.resolve(__dirname, 'src'); let BUILD_DIR = path.resolve(__dirname, 'public'); let config = { entry: [ APP_DIR + '/js/index.js' ], output: { path: BUILD_DIR, filename: 'bundle.js' }, module: { rules: [ { test: /\.jsx?$/, inc...
var speed = 0.1; var maxSpeed = 2; var Particle = function(inPosition, inRadius, inMouseRadius) { this.position = inPosition; this.velocity = createVector(random(-1, 1), random(-1, -1)); this.radius = inRadius; this.mouseRadius = inMouseRadius; } Particle.prototype.update = function(inParticles, index) { /...
(function(angular) { 'use strict'; angular .module('app.viewer') .controller('viewer.IndexController', controller); controller.$inject = [ 'pattern.Factory', '$stateParams' ]; function controller(pattern, $stateParams) { /* jshint validthis: true */ ...
var _App = function(){}; App = new _App();
import React from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from '../routes'; import { Router } from 'react-router'; export default class Root extends React.Component { render() { const { store, history } = this.props; return ( <Provider store={s...
import { server as BroccoliServer, Watcher } from 'broccoli'; import program from 'commander'; import createBuilder from '../build-tree'; import getProject from './common'; import onBuild from '../hooks'; import Console from '../console'; program .command('serve') .description('starts building server that watches...
var db = require('../config/mongo_database'); var jwt = require('jsonwebtoken'); var secret = require('../config/secret'); var redisClient = require('../config/redis_database').redisClient; var tokenManager = require('../config/token_manager'); exports.signin = function(req, res) { var username = req.body.username ||...
/* to reload chat commands: >> for (var i in require.cache) delete require.cache[i];parseCommand = require('./chat-commands.js').parseCommand;'' */ var crypto = require('crypto'); /** * `parseCommand`. This is the function most of you are interested in, * apparently. * * `message` is exactly what the user typed...
define([], function() { function DashboardCtrl($scope, $http) { $scope.clusters = []; $http.get('/v1/clusters/').success(function(json) { $scope.clusters = json; }); }; DashboardCtrl.$inject = ['$scope', '$http']; function RMonCtrls($scope) { $scope.DashboardCtrl = DashboardCtrl; }; ...
import React, { Component } from 'react'; import Cookies from 'universal-cookie'; import { Link } from 'react-router-dom'; import Section from 'shared/components/section/section'; import styles from './dashboard.css'; class Dashboard extends Component { state = { mentor: null } componentWillMount() { c...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" import Layout from "../../components/layout" /* 1. write a query to get image 2. spread the returned object into the fluid prop and override the aspectRatio */ export default () => { const data = useStati...
(function () { 'use strict'; angular .module('renovates') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('renovates', { abstract: true, url: '/renovates', template: '<ui-view/>' }) ...
export const REGISTRATION = { UPDATE_CODE: 'UPDATE_CODE', REGISTER: 'REGISTER', SET_ERROR: 'SET_ERROR', SET_REGISTERED: 'SET_REGISTERED', }; export const MAP_CONTROLLER = { DATASET: 'DATASET', IS_PLAYING: 'IS_PLAYING', SET_REGION: 'SET_REGION', SET_YEAR: 'SET_YEAR', STOP_ENABLED: 'STOP_ENABLED', };
/** * @Created by kaicui(https://github.com/wbpmrck). * @Date:2013-08-27 19:56 * @Desc: 实现部分ECMAScript 5里新增的实用功能 * 1、部分功能可能会对已有的Built-in对象进行侵入 * 2、检测到浏览器已经支持的话,会什么都不做 * @Change History: -------------------------------------------- @created:|kaicui| 2013-08-27 19:56. -----------------------------------...
/** * Using this ajax function you can post to a provider. * * @param provider The provider you want to post(twit, etc). * @param id The id of the entry that contains the value text you want to post. * This id also shows the container where the reply message will appear. */ function postToProvider(provid...
'use strict'; const async = require('async'), request = require('request'), file = require('file'), rdfParser = require('./lib/rdf-parser.js'), work = async.queue(function(path, done){ rdfParser(path, function(err, doc){ request( { method: 'PUT', ...
import path from 'path'; import Express from 'express'; import bodyParser from 'body-parser'; import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { StaticRouter as Router } from 'react-router'; import { renderToString } from 'react-dom/server'; import createRed...
const { registerModel } = require('../Registry'); exports.Model = (Class) => { console.log('Model Class', Class.config, Class.schema, Class.name); registerModel(Class); };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _transaction = _interopRequireDefault(require("../../transaction")); var _lodash = require("lodash"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const de...
Package.describe({ summary: "isolate reactive values" }); Package.on_use(function (api) { api.use([ 'coffeescript', 'ejson' ], 'client'); if (api.export) api.export('isolateValue', 'client'); api.add_files([ 'isolate.coffee' ], 'client'); }); Package.on_test(function (api) { api.use([ ...
// 获取全局应用程序实例对象 const app = getApp() // 创建页面实例对象 Page({ /** * 页面的初始数据 */ data: { title: 'scoreExchange', page: 1, exchangeArr: [ // { // img: 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', // tip: '美味想成', // title: '好吃好吃好吃好吃好吃好吃好吃好吃好贺词好贺词', ...
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import StatisticGroup from './StatisticGroup' import Stat...
const mongoose = require('mongoose'), Schema = mongoose.Schema; const ConversationSchema = new Schema({ name: {type: String, unique: true, required: true}, participants: [{ type: Schema.Types.ObjectId, ref: 'User'}], isPublic: {type: Boolean, default: true} }); module.exports = mongoose.model('Conversati...
var render = REQUIRE.mod('Framework/viewRendering'); function index(response) { render.renderView('home', 'index', response); } module.exports = { index : index };
"use strict"; var row_1 = require('./row'); var column_1 = require('./column'); var DataSet = (function () { function DataSet(data, columnSettings) { if (data === void 0) { data = []; } this.columnSettings = columnSettings; this.data = []; this.columns = []; this.row...
/**! * * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import _request from './request'; import {EventEmitter} from 'events'; /** * @param {Object} options * @returns {Promise} */ export default function request(options) { if (options.url) { options.uri = options.url; options.url = ...
module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { html: { files: ['public/views/**'], options: { livereload: true, }, }, ...
/* global __VERSION__ */ /** * The _model_module_version/_view_module_version this package implements. * * The html widget manager assumes that this is the same as the npm package * version number. */ export const MODULE_VERSION = typeof __VERSION__ === 'undefined' ? 'untranspiled source' : __VERSION__; export ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
/** * Created by n7best on 16/2/25. */ "use strict"; import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {Checkbox} = WeUI; describe('<Checkbox></Checkbox>', ()=> { [undefined, null, 'custom_class'].map(clazz => { describe(`<...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp...
describe('Sharpen the Mind', function() { integration(function() { describe('Sharpen the Mind\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: ['brash-samurai']...
try{ /** * Mocks up a Timespan object for unit tests * * @private * @param {Timespan|Object} map properties to convert to a Timespan * @return {Timespan} */ countdown.clone = function(map) { var ts = countdown(); for (var key in map) { if (map.hasOwnProperty(key)) { ts[key] = map[key]; } ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.48-.81 2.75-2 3.45l1 1.74c1....
define("dest/cellula/0.4.1/cellula-util", [ "dest/cellula/0.4.1/cellula-namespace" ], function(require, exports, module) { /** * @fileOverview Cellula Framework's core utility library definition. * @description: a utility library for Cellula that provides a lot of the functional programming support *...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
'use strict' const { Command } = require('discord.js-commando'); const { symbols, hierarchy, top, aliases } = require("../../data/ranks.js"); module.exports = class LeaderpromoteCommand extends Command { constructor(client) { super(client, { name: 'leader', group: 'mod', ...
<%= application_name %> = (function($, public_) { public_.Collections.<%= backbone_collection_name %> = new Backbone.Collection({ model: <%= backbone_model_name %>, url: "<%= rails_collection_name %>" return public_; }) })(jQuery, <%= application_name %>);
var express = require('express'); var router = express.Router(); var ApiController = require('../controllers').api; router.route('/') .get(ApiController.api); module.exports = router;
define('hb.debug', function() { var errors = { E0: '', E1: '', E2: '', E3: '', E4: '', E5: '', E6a: '', E6b: '', E7: '', E8: '', E9: '', E10: '', E11: '', E12: '' }; var fn = function() {}; va...
var I18n = require("i18n-js"); var React = require("react"); var Form = require("./Form.jsx"); module.exports = React.createClass({ linkClicked: function(e) { e.preventDefault(); alert("Yay react still works inside translated components \\o/"); }, render: function() { return ( <div className="...
#!/usr/bin/env node var API = require('../../index').Stateless; var ImageService = require('../../index').ImageService; var program = require('commander'); program .version('1.0.0') .option('-a, --authtoken <token>', 'Set the auth token to use') .option('-g, --group_id <id>', 'The group_id to use') .option('...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Holodeck = require('../../../holodeck'); /* jshint ignore:line */ var Request = ...
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +...
/** * Created by liumeng on 2017/9/13. */ var router = require('koa-router')(); var equipType_controller = require('../../app/controllers/equipType'); router.get('/list', equipType_controller.list); router.get('/delete/:id', equipType_controller.delete); router.post('/save',equipType_controller.save); module.expo...
'use babel' import LinterJsonLintProvider from './linter-json-lint-provider' import { install } from 'atom-package-deps' const { atom } = global export default { config: { allowComments: { type: 'boolean', default: false } }, activate () { if (!atom.inSpecMode()) { install('linte...
'use strict'; var reporter = require('../../../index'); var assertHtmlReports = require('../../assert/assertHtmlReports'); var path = require('path'); var fs = require('fs'); var find = require('find'); var hooks = function() { this.Before(function(scenario, callback) { console.log('console logs should no...
import Component from '../Component' const Delayer = ms => Component((v, next) => { setTimeout(() => next(v), ms) }) export default Delayer
'use strict'; module.exports = function addProjectFn(proto) { proto.projectsGet = function projectsGet(callback) { return this._get('/projects', callback); }; proto.projectsPost = function projectsPost(data, callback) { return this._post('/projects', data, callback); }; proto.pro...
/* * Copyright (c) 2013 - Andrey Boomer - andrey.boomer at gmail.com * icq: 454169 * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php v1.0 - release 24.01.2013 v1.1 - 11.02.2013 - добавлена перезагрузка формы после отсылки файла чтобы не приходилось перезагружать страницу И...
import React from 'react' import Simulator from './simulator' class EventListenerSimulator extends React.Component { constructor (props) { super(props) this.state = { eventName: props.eventName, selectedBets: [] } this.handleOnSelectedBetsCleared = this.handleOnSelectedBetsCleared.bind(t...
; (function(window, angular, undefined) { 'use strict'; angular .module('second', []) }(window, angular, undefined));
import { take, takeLatest, put, cancel, call, select } from 'redux-saga/effects'; import axios from 'axios'; import { LOCATION_CHANGE, push } from 'react-router-redux'; import { HOST } from 'constants/host'; import { LOAD_DATA, FETCH_CATEGORIES, FETCH_POSTS, ADD_POSTS, ADD_CATEGORIES, TAB_CLICKED, } from '...
/** * MIT License * * Copyright (c) 2016 - 2018 RDUK <tech@rduk.fr> * * 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...
function Snort (conn, tablename) { // regexs var regex = { id: /\[\*\*\] \[([0-9]+:[0-9]+:[0-9]+)\] ([A-Za-z\- \/]+) \[\*\*\]/, classification: /\[Classification: ([A-Za-z ]+)\] \[Priority: ([0-9]+)\]/, ttl: /TTL:([0-9]+)/, ip: /([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,5})? -> ([0-9...
export default class AppComponent { constructor() { this.name = 'Tomas'; } }
let bDebug = false; export function setDebug(_bDebug) { bDebug = _bDebug; } export function getDebug() { return bDebug; }
import d3hexbin from 'd3-hexbin'; import { projectionParams, hexbinParams, relevantNumber } from '../../config/globals'; export const projection = (ctry) => { const params = projectionParams.get(ctry); const { center, translate, scale, projection: proj } = params; return proj .center(center) .translate...
// All code points with the `Other_Lowercase` property as per Unicode v4.1.0: [ 0x2B0, 0x2B1, 0x2B2, 0x2B3, 0x2B4, 0x2B5, 0x2B6, 0x2B7, 0x2B8, 0x2C0, 0x2C1, 0x2E0, 0x2E1, 0x2E2, 0x2E3, 0x2E4, 0x345, 0x37A, 0x1D2C, 0x1D2D, 0x1D2E, 0x1D2F, 0x1D30, 0x1D31, 0x1D32, 0x1D33, 0x1D34, 0x1D35, 0x1D3...
// All symbols in the `No` category as per Unicode v3.2.0: [ '\xB2', '\xB3', '\xB9', '\xBC', '\xBD', '\xBE', '\u09F4', '\u09F5', '\u09F6', '\u09F7', '\u09F8', '\u09F9', '\u0BF0', '\u0BF1', '\u0BF2', '\u0F2A', '\u0F2B', '\u0F2C', '\u0F2D', '\u0F2E', '\u0F2F', '\u0F30', '\u0F31', '\u0F32', '\u0F3...
// __Dependencies__ var express = require('express'); // __Module Definition__ var decorator = module.exports = function (options, protect) { var controller = this; var originalGet = controller.get; var initial = express(); var controllerForStage = protect.controllerForStage = { initial: initial, reque...
(function ($, undef) { "use strict"; $.Cell = function (x, y) { this.x = x; this.y = y; this.connectedCells = new Obj(); this.deadEnd = false; return this; }; $.Cell.prototype = { getCellKeys: function () { var ret = []; this.connectedCells.forEach(function (value, key, obj) ...
import React from 'react'; import PropTypes from 'prop-types'; import MatchMedia from './MatchMedia'; import { XLARGE } from '../constants/breakpoints'; const XLarge = ({ children, mediaFeatures }) => ( <MatchMedia mediaQuery={`(min-width: ${XLARGE}px)`} mediaFeatures={mediaFeatures}> { children } </MatchMedia...
var phantom = require('phantom') , _ = require('lodash') , util = require('./util.js') , zlib = require('zlib'); var COOKIES_ENABLED = process.env.COOKIES_ENABLED || false; var PAGE_DONE_CHECK_TIMEOUT = process.env.PAGE_DONE_CHECK_TIMEOUT || 50; var RESOURCE_DOWNLOAD_TIMEOUT = process.env.RESOURCE_DOWNLOAD_TIM...
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { placeholder: 'Hey fella, search something here! :)', term: '' }; } render() { return ( <div className="search-bar"> ...
/* global afterEach, describe, it */ /* * The MIT License (MIT) * * Copyright (c) 2014 Apigee Corporation * * 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, includ...
import Vue from 'vue' import Router from 'vue-router' import Hello from '@/views/Hello' Vue.use(Router) // route-level code splitting const router = new Router({ mode: 'history', scrollBehavior: () => ({ y: 0 }), routes: [ { path: '/', name: 'Hello', component: Hello } ] }) export d...
define(['appns', 'jquery', 'underscore', 'backbone', 'backbone-relational', 'jquery.elastic', 'jquery.magicedit2', 'jsrender', 'jquery.tools'], function(App, $, _, Backbone) { App.EventView = Backbone.View.extend({ tagName: 'div', className: 'eventView', events: { }, destroy: function() { ...
(function () { 'use strict'; describe('Registrations Controller Tests', function () { // Initialize global variables var RegistrationsController, $scope, $httpBackend, $state, Authentication, RegistrationsService, mockRegistration; // The $resource service augments ...
var DC = (function() { var shipData = {}; var dc = { update: function(data) { var ship = shipData[data.id]; ship.state = data.state; ship.power = data.power; ship.time = new Date().toString(); }, dealMessage: function(message) { dc.update(message); }, addShip: funct...
/** * Created by dli on 25.01.2015. */ define('sync/time/after',['sync/time/CONST'], function (CONST) { return function(t1, t2){ if(t1 > t2){ var trailing = t1 - t2, heading = CONST.LOGICAL_HOUR - t1 + t2; if(Math.min(trailing, heading) > CONST.CERTAINT...
'use strict'; angular.module('kickballApp', [ 'kickballApp.services', 'kickballApp.controllers', 'ngCookies', 'ngResource', 'ngSanitize', 'ngRoute', 'ui.sortable', 'ui.slider', 'firebase' ]) .config(function ($routeProvider) { $routeProvider .when('/', { templateUrl: 'attendance/a...
// Regular expression that matches all symbols in the Cyrillic Extended-A block as per Unicode v9.0.0: /[\u2DE0-\u2DFF]/;