code
stringlengths
2
1.05M
var test = require('tape'); var watchify = require('../'); var browserify = require('browserify'); var vm = require('vm'); var fs = require('fs'); var path = require('path'); var mkdirp = require('mkdirp'); var os = require('os'); var tmpdir = path.join((os.tmpdir || os.tmpDir)(), 'watchify-' + Math.random()); var f...
YUI.add('datatable-body', function(Y) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, ...
/** * Parse JavaScript SDK v1.10.1 * * The source tree of this library can be found at * https://github.com/ParsePlatform/Parse-SDK-JS */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof wi...
Meteor.publish('settings', function() { var options = {}; if(!isAdminById(this.userId)){ options = _.extend(options, { fields: { mailChimpAPIKey: false, mailChimpListId: false } }); } return Settings.find({}, options); }); Meteor.publish('invites', function(){ if(canViewBy...
(function(){var d=window.AmCharts;d.AmRadarChart=d.Class({inherits:d.AmCoordinateChart,construct:function(a){this.type="radar";d.AmRadarChart.base.construct.call(this,a);this.cname="AmRadarChart";this.marginRight=this.marginBottom=this.marginTop=this.marginLeft=0;this.radius="35%";d.applyTheme(this,a,this.cname)},initC...
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M248.03 116.81l24.68-24.678 19.232 19.234-24.678 24.677zM176 125.7c-45.3 0-82.3 37-82.3 82.3 0 17.5 5.5 33.7 14.9 47 15.3-13 33.9-22.6 54.7-27.6l13.2-16.6c13.6-17.1 30.7-30.2 50.8-38.9 6.1-2.6 12.4-4.8 19-6.6-14...
/* globals ansispan:true */ ansispan = function(str) { str = str.replace(/>/g, '&gt;'); str = str.replace(/</g, '&lt;'); Object.keys(ansispan.foregroundColors).forEach(function(ansi) { var span = '<span style="color: ' + ansispan.foregroundColors[ansi] + '">'; // // `\033[Xm` == `\033[0;Xm` sets foreground ...
const tabsInstance = ( <Tabs defaultActiveKey={2}> <Tab eventKey={1} title="Tab 1">Tab 1 content</Tab> <Tab eventKey={2} title="Tab 2">Tab 2 content</Tab> <Tab eventKey={3} title="Tab 3" disabled>Tab 3 content</Tab> </Tabs> ); React.render(tabsInstance, mountNode);
// javascript 'shim' to trigger the click event of element(s) // when the space key is pressed. // // Created since some Assistive Technologies (for example some Screenreaders) // Will tell a user to press space on a 'button', so this functionality needs to be shimmed // See https://github.com/alphagov/govuk_elements/p...
'use strict'; /** * Module dependencies. */ var acl = require('acl'); // Using the memory backend acl = new acl(new acl.memoryBackend()); /** * Invoke Articles Permissions */ exports.invokeRolesPolicies = function() { acl.allow([{ roles: ['admin'], allows: [{ resources: '/api/articles', permissions: '...
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
import warning from 'warning'; const getName = (object) => object.displayName ? `${object.displayName} ` : object.muiName ? `${object.muiName} ` : ''; function deprecatedExport(object, deprecatedPath, supportedPath) { warning(false, `Importing ${getName(object)}from '${deprecatedPath}' has been deprecated, ...
YUI.add('anim-base', function(Y) { /** * The Animation Utility provides an API for creating advanced transitions. * @module anim */ /** * Provides the base Anim class, for animating numeric properties. * * @module anim * @submodule anim-base */ /** * A class for constructing animation instances. * @cla...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
/* http://keith-wood.name/datepick.html Urdu localisation for jQuery Datepicker. Mansoor Munib -- mansoormunib@gmail.com <http://www.mansoor.co.nr/mansoor.html> Thanks to Habib Ahmed, ObaidUllah Anwar. */ (function($) { $.datepick.regionalOptions.ur = { monthNames: ['جنوری','فروری','مارچ','اپریل','مئی','جو...
/*! * Inheritance.js (0.4.3) * * Copyright (c) 2015 Brandon Sara (http://bsara.github.io) * Licensed under the CPOL-1.02 (https://github.com/bsara/inheritance.js/blob/master/LICENSE.md) */ (function(root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof e...
/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */ /* The MIT License (MIT) Copyright (c) 2007-2013 Einar Lielmanis and contributors. 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 ...
(function(L,O){"object"===typeof exports&&"undefined"!==typeof module?O(exports):"function"===typeof define&&define.amd?define(["exports"],O):L.async?O(L.neo_async=L.neo_async||{}):O(L.async=L.async||{})})(this,function(L){function O(a){var c=function(a){var d=J(arguments,1);setTimeout(function(){a.apply(null,d)})};Q="...
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retai...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v6.0.1 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : ...
/*! jQuery UI - v1.11.1 - 2014-08-13 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)})(function(t){return t.effects.effect.explode=function(e,i){function s(){b.push(this),b.lengt...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v5.0.0-alpha.4 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? t...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.2.2 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.Dexie = factory(); }(this, function () { 'use strict'; // By default, debug will be true only if platform is a web ...
/** * angular-permission-ng * Extension module of angular-permission for access control within angular-route * @version v3.1.0 - 2016-05-15 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre <narzerus@gmail.com> (http://www.rafaelvidaurre.com), Blazej Krysiak * <blazej.krysiak@gmai...
/*! * numbro.js * version : 1.8.1 * author : Företagsplatsen AB * license : MIT * http://www.foretagsplatsen.se */ (function () { 'use strict'; /************************************ Constants ************************************/ var numbro, VERSION = '1.8.1', binarySuff...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var gridRole = { abstract: false, accessibleNameRequired: true, baseConcepts: [{ module: 'HTML', concept: { name: 'table', attributes: [{ name: 'role', value: 'grid' }] } }], childrenP...
Ext.grid.RowExpander = function(config){ Ext.apply(this, config); this.addEvents({ beforeexpand : true, expand: true, beforecollapse: true, collapse: true }); Ext.grid.RowExpander.superclass.constructor.call(this); if(this.tpl){ if(typeof this....
/** * @author mrdoob / http://mrdoob.com/ */ function RollerCoasterGeometry( curve, divisions ) { THREE.BufferGeometry.call( this ); var vertices = []; var normals = []; var colors = []; var color1 = [ 1, 1, 1 ]; var color2 = [ 1, 1, 0 ]; var up = new THREE.Vector3( 0, 1, 0 ); var forward = new THREE.Vec...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("language","fa",{button:"تعیین زبان",remove:"حذف زبان"});
// Karma configuration // Generated on Fri Nov 08 2013 09:25:16 GMT-0600 (Central Standard Time) var util = require('../lib/grunt/utils.js'); var grunt = require('grunt'); module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '../', // f...
/* Project: angular-gantt v1.2.7 - Gantt chart component for AngularJS Authors: Marco Schweighauser, Rémi Alvergnat License: MIT Homepage: https://www.angular-gantt.com Github: https://github.com/angular-gantt/angular-gantt.git */ (function(){ 'use strict'; angular.module('gantt.drawtask', ['gantt']).directive(...
/* jqGrid 4.9.1 - free jqGrid: https://github.com/free-jqgrid/jqGrid Copyright (c) 2008-2014, Tony Tomov, tony@trirand.com Copyright (c) 2014-2015, Oleg Kiriljuk, oleg.kiriljuk@ok-soft-gmbh.com Dual licensed under the MIT and GPL licenses http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licen...
// TinyMCE helper, checks to see if TinyMCE editors in the given form are dirty // Support for UMD: https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js // This allows for tools such as Browserify to compose the components together into a single HTTP request. (function (factory) { if (typeof define ===...
/** * @fileoverview A rule to disallow negated left operands of the `in` operator * @author Michael Ficarra * @deprecated in ESLint v3.3.0 */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //--------------------------------------------------------...
module.exports = function (obj, opts) { if (!opts) opts = {}; if (typeof opts === 'function') opts = { cmp: opts }; var space = opts.space || ''; if (typeof space === 'number') space = Array(space+1).join(' '); var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false; var replacer =...
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
var WritableStream = require('stream').Writable || require('readable-stream').Writable, inherits = require('util').inherits; var StreamSearch = require('streamsearch'); var PartStream = require('./PartStream'), HeaderParser = require('./HeaderParser'); var B_ONEDASH = new Buffer('-'), ...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'newpage', 'hu', { toolbar: 'Új oldal' });
"use strict"; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { ...
var a: [] = []; var a: [Foo<T>] = [foo]; var a: [number] = [123]; var a: [number, string] = [123, "duck"];
/*! * Qoopido.js library v3.4.3, 2014-6-11 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL *//*! * Qoopido.js library * * version: 3.4.3 * date: 2014-6-11 * author: Dirk Lueth <info@qoopido.com> * website: https://github.com/dlueth/qoopido.js * * Copyright (c) 2014 Dir...
var a = { echo(c) { return c; } }; assert.strictEqual(a.echo(1), 1);
/*================================================== Copyright (c) 2013-2015 司徒正美 and other contributors http://www.cnblogs.com/rubylouvre/ https://github.com/RubyLouvre http://weibo.com/jslouvre/ Released under the MIT license avalon.modern.shim.js(无加载器版本) 1.44 built in 2015.6.17 support IE10+ and other brows...
jQuery.keyboard.language.pt={language:"Portuguese",display:{a:"✔:Aceitar (Shift+Enter)",accept:"Aceitar:Concluir (Shift+Enter)",alt:"AltGr:Carateres Adicionais/CTRL+ALT",b:"←:Retroceder",bksp:"← Bksp:Retroceder",c:"✖:Cancelar/Escape (Esc)",cancel:"Cancel:Cancelar/Escape(Esc)",clear:"C:Limpar",combo:"ö:Acentuação Automá...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; class ModuleDependencyTemplateAsRequireId { apply(dep, source, outputOptions, requestShortener) { if(!dep.range) return; const comment = outputOptions.pathinfo ? `/*! ${requestShortener...
/** * @author alteredq / http://alteredqualia.com/ * * AudioObject * * - 3d spatialized sound with Doppler-shift effect * * - uses Audio API (currently supported in WebKit-based browsers) * https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html * * - based on Doppler effect demo from Chromium ...
/*! * tablesorter pager plugin * updated 5/3/2012 */ ;(function($) { $.extend({tablesorterPager: new function() { this.defaults = { // target the pager markup container: null, // use this format: "http:/mydatabase.com?page={page}&size={size}" // where {page} is replaced by the page number and {size}...
(function(definition) { // RequireJS. if (typeof define === 'function') { define(definition); // CommonJS and <script>. } else { definition(); } })(function() { 'use strict'; var globall = (typeof global === 'undefined') ? window : global; var global_isNaN = globall.isNaN; var global_isFinite...
import baseGet from './_baseGet.js'; /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path ...
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var stdin = require('get-stdin'); var pkg = require('./package.json'); var stripIndent = require('./'); var argv = process.argv.slice(2); var input = argv[0]; function help() { console.log([ '', ' ' + pkg.description, '', ' Usage', ' strip-inden...
YUI.add('oop', function(Y) { /** * Supplies object inheritance and manipulation utilities. This adds * additional functionaity to what is provided in yui-base, and the * methods are applied directly to the YUI instance. This module * is required for most YUI components. * @module oop */ var L = Y.Lang, ...
require('../modules/es6.object.to-string'); require('../modules/web.dom.iterable'); require('../modules/es6.weak-map'); module.exports = require('../modules/$.core').WeakMap;
import mod1770 from './mod1770'; var value=mod1770+1; export default value;
$().ready(function () { var $likeDislikeTripButton = $('#likeDislikeTripButton'), $likesCount = $('#likesCount'), ajaxAFT = $('#ajaxAFT input[name="__RequestVerificationToken"]:first').val(); $likeDislikeTripButton.on('click', function () { var $this = $(this), valueAsStrin...
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var Module = require('module'); var SourceMapConsumer = require('source-map').SourceMapConsumer; var glob = require('glob'); var minimatch = require('minimatch'); var babel = require('babel'); var Istanbul = require('istanbul...
import CDGPlayer from './CDGPlayer' export default CDGPlayer
var structdbs_1_1i_1_1_r1 = [ [ "nodes", "structdbs_1_1i_1_1_r1.html#a249eb273e89b4e1a053dea78ec1f2a3c", null ] ];
'use strict'; import React, { Component, PropTypes } from 'react'; class Package extends Component { static propTypes = { children: PropTypes.node, billItems: PropTypes.object } render() { const { billItems } = this.props; const { subscriptions } = this.props.billItems.pack...
'use strict'; require('nightingale-app-console'); var _pool = require('koack/pool'); var _pool2 = _interopRequireDefault(_pool); var _server = require('koack/server'); var _server2 = _interopRequireDefault(_server); var _memory = require('koack/storages/memory'); var _memory2 = _interopRequireDefault(_memory); ...
// External modules var del = require('del'); var critical = require('critical').stream; // Import config var config = require('./_config'); // Html module module.exports = function(gulp, livereload) { gulp.task('html', function() { return gulp.src(config.html) .pipe(gulp.dest('dist')) .pipe(livereload()); ...
/** @license ISC License (c) copyright 2017 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ const Pair = require('../core/types').proxy('Pair') const isFoldable = require('../core/isFoldable') const isSameType = require('../core/isSameType') const isString = require('../core/isString') functi...
var fs = require('fs'); var tapOut = require('tap-out'); var through = require('through2'); var duplexer = require('duplexer'); var format = require('chalk'); var prettyMs = require('pretty-ms'); var _ = require('lodash'); var repeat = require('repeat-string'); var symbols = require('./lib/utils/symbols'); var lTrimL...
/*jshint esnext: true */ let plugins; export default class DevicePlugin { constructor(_plugins) { plugins = _plugins; plugins.registerCommand('Device', 'getDeviceInfo', this.getDeviceInfo); } getDeviceInfo(sender) { return { platform: sender.device.preset.platform, version: sender.devi...
/** * Created by larus on 15/2/9. */ angular.module('myApp').directive('taginput', function () { return { restrict: 'E', template: '<input name="{{name}}" class="tagsinput tagsinput-primary" ng-value="values" />', replace: true, scope: { tags: '=', name: '@'...
/* eslint-disable consistent-this */ var cscript = require('../lib/cscript.js') describe('cscript', function() { var mockFs, mockExecFile it('must be initialized', function() { (function() { cscript.path() }).should.throw('must initialize first') }) it('if cscript.exe is successfully spawned then no more...
var SpecHelper = function(){};
var add = function( part ){ this._value.push(part); } var resolved = function( is ){ if( undefined === is ) return this._resolved; this._resolved = !!is; return this._resolved; } var getValue = function(){ return this._value; } var setValue = function( value ){ this._value = value; } var Wildcard = function()...
// var knexConfig = require('../knexfile') // var knex = require('knex')(knexConfig[process.env.NODE_ENV || "development"]) var knex = require('./knexOrigin') module.exports = { createEvent: (eventObj, cb) => { knex('events').insert(eventObj) .then( (data) => cb(null, data[0]) ) .catch( (err) => cb(...
(function ($) { "use strict"; Dropzone.options.myDropzone = { // Prevents Dropzone from uploading dropped files immediately autoProcessQueue: false , init: function () { var submitButton = document.querySelector("#submit...
// @flow /* eslint-disable */ import { periodic, now, merge, never, newStream, propagateEventTask } from '@most/core' import {disposeBoth, disposeWith} from '@most/disposable' import {newDefaultScheduler, asap} from '@most/scheduler' import M from '../m' import tree from './element' import type {Pith} from ...
var socket; //socket.io (live engine) //Variable is set by server later on var position = { x: 1, y: 1 }; var heading; // direction of player var nameSize = 18; // size of the name label //Variable is set by server later on var worldDimensions = { x: 1, y: 1 }; var inPlay = false; //whether you hav...
// Thai jQuery.timeago.settings.strings = { prefixAgo : null, prefixFromNow: null, suffixAgo : "ที่แล้ว", suffixFromNow: "จากตอนนี้", seconds : "น้อยกว่าหนึ่งนาที", minute : "ประมาณหนึ่งนาที", minutes : "%d นาที", hour : "ประมาณหนึ่งชั่วโมง", hours ...
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Name = "Vimperator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/about-...
export default Ember.ObjectController.extend({ actions: { cancel: function() { this.transitionToRoute('books'); } } });
//////////////////////////////////////////////// /* Provided Code - Please Don't Edit */ //////////////////////////////////////////////// 'use strict'; function getInput() { console.log("Please choose either 'rock', 'paper', or 'scissors'.") return prompt(); } function randomPlay() { var randomNumber =...
var express = require('express'), server = express(); server.use('/', express.static(__dirname + '/public')); server.use('/shaders', express.static(__dirname + '/lessons/shaders')); server.use('/assets', express.static(__dirname + '/lessons/assets')); server.listen(9000); console.log('Listening on port 9000');
var assert = require('assert'); var _ = require('lodash'); var Client = require('./lib/client'); describe('cgminer-api', function () { describe('@parser', function () { }); describe('@client', function () { var client; before(function (done) { client = new Client({ host: process.env.CGM...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var schema = new Schema({ name: { type: String, required: true }, position: { type: String }, marketValue: { type: Number }, jerseyNumber: { type: Number }, dateOfBirth: { type: Date }, contractedUntil: { type: Date }, club_id: { type: Sch...
"use strict"; const filterable = require("@lerna/filter-options"); /** * @see https://github.com/yargs/yargs/blob/master/docs/advanced.md#providing-a-command-module */ exports.command = "bootstrap"; exports.describe = "Link local packages together and install remaining package dependencies"; exports.builder = yar...
/* * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ ( function() { // Add to collection with DUP examination. // @param {Object} collection // @param {Object} element // @param {Object}...
if ( true ) import { a as x } from "./abc"; if ( false ) import { b as y } from "./abc"; if ( true ) export function outer() { import { a as ay } from "./abc"; import { b as bee } from "./abc"; import { c as see } from "./abc"; return [ ay, bee, see ]; } if ( false ) export { x } from "./foo"; x; // Stay as ...
/** @class <p>Efficient querying of documents containing shapes indexed using the geo_shape type.</p> <p>Much like the geo_shape type, the geo_shape query uses a grid square representation of the query shape to find those documents which have shapes that relate to the query shape in a spec...
import React, { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../../actions/auth' import './login.css' import { Container, Grid, Segment, Input, Header, Button, Icon } from 'semantic-ui-react'; const styles = { loginForm: { height: '100%' }, segment: { ...
const jsonfile = require('jsonfile') const stats = require("stats-lite"); const commandLineArgs = require("command-line-args"); const mqtt = require("mqtt"); const stringify = require("csv-stringify"); const fs = require("fs"); const client = mqtt.connect("mqtt://127.0.0.1:1883"); const options = commandLineArgs([ ...
version https://git-lfs.github.com/spec/v1 oid sha256:7532f5b4891e60d75d6a1d91f80921a3ad8b96ba88a746f05948fc6c6f5a9772 size 137987
let spec = { "swagger": "2.0", "info": { "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authori...
import style from './style'; const s = Object.create(style); s.root = { fontFamily: 'helvetica, sans-serif', fontWeight: '300', fontSize: '16px', letterSpacing: '0.025em', padding: '3vh 0 12vh 0', width: '500px', // use responsive max-width to simulate padding/margin to allow // space for vertical scr...
'use strict'; module.exports = { SET_COUNTRY: function(state, value) { state.countryCode = value; }, SET_PERIOD: function(state, value) { state.period = value; } };
var app = angular.module('Zespol', []); //Filtr umożliwiający wstawienie scope jako link url app.filter('trustAsResourceUrl', ['$sce', function($sce) { return function(val) { return $sce.trustAsResourceUrl(val); }; }]); app.controller('MusicCtrl', function($scope, $http){ $http.get("http://tolmax...
//VARIABLES var currentCountries = []; var lastbenchrmak = null; var test = "test"; var measures; var calculatedBenchmark = null; var routeJson = null; // UTILITY FUNCTIONS // SELECTION function selectedBenchmarkMenu(menu) { if (menu == "cbenchmark") return $('#cbenchmark').val(); if (menu == 'disabledbenchmark') ...
'use strict'; /* istanbul ignore next */ module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('hashes', { h1: { allowNull: false, primaryKey: true, type: Sequelize.STRING(128), }, s2: { allowNull: false, type: Sequelize...
import React from 'react'; import { assert } from 'chai'; import { createMount, createShallow, describeConformance, getClasses, } from '@material-ui/core/test-utils'; import DialogTitle from './DialogTitle'; describe('<DialogTitle />', () => { let mount; let shallow; let classes; before(() => { mo...
var a = require('./a'); exports.value = 3;
export function threePointSecondDerivative(previous, current, next, uniformDistance) { return (next - 2 * current + previous) / (uniformDistance * uniformDistance); }
function encode (value) { if (Object.prototype.toString.call(value) === '[object Date]') { return '__q_date|' + value.toUTCString() } if (Object.prototype.toString.call(value) === '[object RegExp]') { return '__q_expr|' + value.source } if (typeof value === 'number') { return '__q_numb|' + value ...
import { map } from './dsl'; var specials = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\' ]; var escapeRegex = new RegExp('(\\' + specials.join('|\\') + ')', 'g'); function isArray(test) { return Object.prototype.toString.call(test) === "[object Array]"; } // A Segment represents a segm...
import { themr } from 'react-css-themr'; import { PAGER } from '../identifiers.js'; import { pagerFactory } from './pager.js'; import Page from './page.js'; import theme from './theme.scss'; const Pager = pagerFactory(Page); const ThemedPager = themr(PAGER, theme)(Pager); export default ThemedPager; export { ThemedPa...
import {LEAGUE_BY_SUMMONER_FULL, LEAGUE_BY_SUMMONER, LEAGUE_BY_TEAM_FULL, LEAGUE_BY_TEAM, CHALLENGER_LEAGUE} from '../Constants'; export const League = { getBySummonerId(summonerId, options) { return Object.assign({}, options, { id: summonerId, uri: LEAGUE_BY_SUMMONER_FULL }); }, getEntriesB...
import { combineReducers } from 'redux'; import todos from './todos'; import filter from './filter'; import editing from './editing'; const rootReducer = combineReducers({ todos, filter, editing, }); export default rootReducer;