code
stringlengths
2
1.05M
$(function() { var data, searches, table; data = [ { name : 'Alice', age : 25 }, { name : 'Brian', age : 30 }, { name : 'Carrie', age : 30 }, { name : 'David', age : 35 }, { name : 'Alice', age : 30 } ]; searches = [ { name : 'alice' }, { name : 'brian' }, { name : 'alice...
import Ember from "ember"; const {isEmpty, isBlank, computed, A} = Ember; const {dasherize, capitalize} = Ember.String; const {inflector} = Ember.Inflector; export function roundNumber(number, decimals) { if (isEmpty(number)){ return null; } number = number.valueOf();// make sure it's the real number. if(...
export function any(predicate, list) { if (arguments.length === 1) return _list => any(predicate, _list) let counter = 0 while (counter < list.length) { if (predicate(list[counter], counter)) { return true } counter++ } return false }
version https://git-lfs.github.com/spec/v1 oid sha256:c321968141388f491ab5874fc44607c01d87022d570379728ebbb66fa2ab1a2c size 18830
#!/usr/bin/env js var fs = require( 'fs' ) var doT = require( '../../doT.js' ) global.doT = doT doT.autoload = doT.autoloadFS({ fs: fs, root: 'tmpl' }) doT.templateSettings.varname = 'it, opt' doT.templateSettings.with = 'it' try { var str = doT.render( 'ul', { items: [ 1, 2, 3 ] } ) process.stdout.write( str + "\...
var OSNPAddressTable = require('./osnp_address_table'); var OSNPCommandQueue = require('./osnp_command_queue'); var FrameType = { BEACON: 0x00, DATA: 0x01, ACK: 0x02, MAC_CMD: 0x03 }; var AddressingMode = { NOT_PRESENT: 0x00, SHORT_ADDRESS: 0x02, EUI: 0x03 }; var MACCommand = { ASSOCIATION_REQUEST: 0...
import minilog from 'minilog'; minilog.enable(); const log = typeof window !== 'undefined' ? minilog('frontend') : minilog('backend'); if (__DEV__ && __SERVER__) { let console_log = global.console.log; global.console.log = function() { if (arguments.length == 1 && typeof arguments[0] === 'string' && argument...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const path = require('path'); const Package = require('dgeni').Package; const jsdocPackage = require('dgeni-packages...
/** * @fileoverview Tests for the Success Connect Middleware Module. * Tets whether the middleware properly handles a success response. * * Usage: * Run as part of the test suite with the gulp task: `gulp test`. */ var assert = require('assert'); var successHandler = require('./success'); var sinon = require('si...
Template.tool.helpers({ tool: function() { return Tools.findOne(Router.current().params._id); } });
/*jslint browser: true, undef: true *//*global Ext,Emergence*/ Ext.define('Emergence.cms.view.DualView', { extend: 'Ext.Container', xtype: 'emergence-cms-dualview', cls: 'emergence-cms-dualview', requires: [ 'Emergence.cms.view.DualViewController', 'Emergence.cms.view.Editor', 'E...
angular.module('davidLeston.uniqueProperty', []).directive('uniqueProperty', function () { 'use strict'; return { restrict: 'A', require: 'ngModel', scope: { object: '=uniquePropertyObject', collection: '=uniquePropertyCollection', propertyPath: '@uniquePropertyPath' }, link: f...
Clazz.declarePackage ("J.shapespecial"); Clazz.load (["J.shape.Shape", "java.util.Hashtable"], "J.shapespecial.Ellipsoids", ["JU.BS", "$.Lst", "$.PT", "$.SB", "$.V3", "J.api.Interface", "J.c.PAL", "J.shapespecial.Ellipsoid", "JU.BSUtil", "$.C", "$.Escape"], function () { c$ = Clazz.decorateAsClass (function () { thi...
/*********************************************** 验证控件Validator v1.0 作者:YYC 日期:2013-03-21 电子邮箱:395976266@qq.com QQ: 395976266 博客:http://www.cnblogs.com/chaogex/ ************************************************/ /**使用实例: * * var validator = new Validator("common"); //选择要使用的Method type * * //dtest_input为...
// Helper: root() is defined at the bottom var path = require('path'); var webpack = require('webpack'); // Webpack Plugins var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; var autoprefixer = require('autoprefixer'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('...
var formats = require('./formats').formats; var common = require('./common'), getType = common.getType, prettyType = common.prettyType, isOfType = common.isOfType, getName = common.getName, deepEquals = common.deepEquals; var int32Regex = /^-?([0-9]{1,9}|[0-1][0-9]{9}|20[0-9]{8}|21[0-3][0-9]{7}|214[0-6][0-9]{6}|2...
// 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...
const pug = require('../../'); test('layout with shadowed block', () => { const outputWithAjax = pug.renderFile(__dirname + '/index.pug', {ajax: true}); const outputWithoutAjax = pug.renderFile(__dirname + '/index.pug', { ajax: false, }); expect(outputWithAjax).toMatchSnapshot(); expect(outputWithoutAjax...
/** * @module inputex-button */ var lang = Y.Lang, inputEx = Y.inputEx; /** * Create a button * @class inputEx.widget.Button * @constructor * @param {Object} options The following options are available for Button : * <ul> * <li><b>id</b>: id of the created A element (default is auto-generated)</li> * ...
var fs = require('fs'); var path = require('path'); var glob = require('glob'); var functions = { sendPwmCommand: function (pwmPath, name, value) { glob(path.join(pwmPath, name), { cwd: '/' }, function(err, files) { if (err || files.length < 1) { console.log('An error occurred s...
export class MessageService { constructor() { this.messages = new Array(); } update(go) { this.messages.filter(msg => msg.receiver.uid === go.uid).forEach(msg => go.receive(msg)); this.messages = this.messages.filter(msg => msg.receiver.uid !== go.uid); } }
var postslot = React.createClass({displayName: 'postslot', render: function(){ return ( React.createElement("li",{className: this.props.slotside}, React.createElement("div",{className: 'timeline-badge primary'}, React.createElement("a",null, React.createElement("i",{className: this...
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojdvt-base","ojs/internal-deps/dvt/DvtTagCloud"],function(b,f,a,d,c){b.ya("oj.ojTagCloud",f.oj.dvtBaseComponent,{widgetEventPre...
/*! * connect-render - lib/filters.js * Copyright(c) 2012 fengmk2 <fengmk2@gmail.com> * MIT Licensed */ "use strict"; /** * Module dependencies. */ var moment = require('moment'); var NO_ASCII_CHAR_RE = /[^\x00-\xff]/; var TRUNCATE_PEDDING = '…'; /** * truncatechars with max unicode length * e.g.: * * ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built define("esri/fx","dojo/_base/connect dojo/_base/fx dojo/_base/lang dojo/dom dojo/dom-geometry dojo/dom-style dojo/fx dojo/has ./kernel".split(" "),function(p,g,e,k,...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built define("esri/dijit/metadata/types/arcgis/form/InputHtmlArea","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dijit/Dialog dojo/dom-attr dojo/dom-...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/** * hasAttr method * check if element has attribute * @param {string} attr - attribute name * @return {boolean} */ hasAttr: function(attr) { return this.length ? this[0].hasAttribute(attr) : false; },
describe('MonthsCtrl', function(){ beforeEach(module('myApp')); it('should create "months" model with 12 months', inject(function($controller) { var scope = {}, ctrl = $controller('MonthsCtrl', {$scope:scope}); expect(scope.months.length).toBe(12); })); });
var HaloAPI = require("../js/index"); var JSONSchema = require('json-schema'); var chai = require('chai'), expect = chai.expect; chai.use(require("chai-as-promised")); function validatePromise(promise, schema) { return promise.then(function (response) { var v = JSONSchema.validate(response, schema); ...
var Vue = require('vue') var VueRouter = require('vue-router') var ConfigRouter = require('./router') var VueResource = require('vue-resource') var vueForm = require('vue-form') var store = require('./vuex/store') var sync = require('vuex-router-sync').sync var App = require('./App.vue') Vue.config.debug = true // In...
var npm = require('../dist/npm') npm.ls().then(function(m, p) { console.log(p) console.log(m.dependencies) })
// Last time updated at Monday, December 21st, 2015, 5:25:26 PM // Quick-Demo for newbies: http://jsfiddle.net/c46de0L8/ // Another simple demo: http://jsfiddle.net/zar6fg60/ // Latest file can be found here: https://cdn.webrtc-experiment.com/RTCMultiConnection.js // Muaz Khan - www.MuazKhan.com // MIT License ...
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
/*global describe, it, beforeEach, afterEach*/ /*jshint expr:true*/ var scan = require('../lib/polyfill-scan'); var mockParser = require('./fixtures/parser'); var astQuery = require('grasp-equery').query; var expect = require('chai').expect; describe('polyfill-scan', function () { /* jshint maxstatements: 20 */ ...
/** * Allow jsx transpilation for testing React components * * http://www.hammerlab.org/2015/02/14/testing-react-web-apps-with-mocha/ * * To use this compiler, you pass it via the --compilers flag to mocha: * mocha --compilers .:tests/compiler.js tests/*test.js */ var fs = require('fs'), ReactTools = require...
(function() { 'use strict'; angular .module('siteApp') .config(compileServiceConfig); compileServiceConfig.$inject = ['$compileProvider','DEBUG_INFO_ENABLED']; function compileServiceConfig($compileProvider,DEBUG_INFO_ENABLED) { // disable debug data on prod profile to improve...
export default { value: 'Lorem ipsum', readonly: true, };
module.exports = function(grunt) { var path = require('path'); require('matchdep'). filterDev('grunt-*'). filter(function(name){ return name !== 'grunt-cli'; }). forEach(grunt.loadNpmTasks); grunt.loadTasks('tasks'); function config(configFileName) { return require('./configurations/' + con...
import React from 'react' import Icon from 'react-icon-base' const GoFileDirectory = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 7.5h-13.7s-1.3-0.6-1.3-1.2v-1.3s-1.2-2.5-2.5-2.5h-12.5s-2.5 1.3-2.5 2.5v27.5h35v-22.5s-1.2-2.5-2.5-2.5z m-17.5 0h-12.5v-1.2s0.6-1.3 1.3-1.3h10s1.2 0.6 1.2 1...
var expect = require('expect.js'), fs = require('fs'), glimrBuild = require(__dirname + '/../glimr/glimr_build.js')(); var nitLogs = {}; nitLogs.content = fs.readFileSync(__dirname + "/data/nitlogs.txt").toString(); nitLogs.logObjects = glimrBuild.toLogObjectsArray(nitLogs.content, true); nitLogs.authors = glimrBuild.a...
app.controller('modalCtrl', function ($scope, $modal, $log) { var sources = {}; var manifest; init(); function init() { manifest = chrome.runtime.getManifest(); var xhr = new XMLHttpRequest(); xhr.responseType='json'; xhr.open('GET', 'factories/sources.json'); xhr.onload = function() { sources...
/// <reference path='../../Scripts/typings/require.d.ts'/> /// <reference path='../../Scripts/typings/knockout.d.ts'/> define(["require", "exports", 'Services/ShoppingCart'], function (require, exports, shoppingCart) { var menu_html; var Menu = (function () { function Menu(parentNode, routeData) { ...
function largestLineIn(lines) { return lines.reduce(function(n, line) { return Math.max(n, line.length); }, 0); } module.exports.diff = function(actual, expected) { var actual = actual.split('\n'), expected = expected.split('\n'), len = largestLineIn(expected); console.error(' expected...
/** * Copyright 2016-2017 aixigo AG * Released under the MIT license. * http://laxarjs.org/license */ /* eslint-env node */ /** * Webpack loader for LaxarJS widget spec tests. * * Automatically loads the following dependencies, which you would otherwise have to pass as options to * `setupForWidget`: * * - `...
/* not bound to style, should be computed */ export function computeInOffsetByIndex(x,y,index) { let outx = x + 15; let outy = y + 47 + (index * 20); return {x:outx, y:outy}; } export function computeOutOffsetByIndex(x,y,index) { let outx = x + 166; let outy = y + 49 + (index * 22); return {x:outx, y:outy}; ...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = ...
'use strict'; var FusebillResource = require('../FusebillResource'); var fusebillMethod = FusebillResource.method; var utils = require('../utils'); module.exports = FusebillResource.extend({ path: 'order_returns', includeBasic: [ 'list', 'retrieve', ], });
import Utils from './utils'; const Mixins = { colorProps: { color: String, colorTheme: String, textColor: String, bgColor: String, borderColor: String, rippleColor: String, themeDark: Boolean, }, colorClasses(props) { const { color, colorTheme, textColor, b...
KB.utils.formatDuration = function (d) { if (d >= 86400) { return Math.round(d/86400) + "d"; } else if (d >= 3600) { return Math.round(d/3600) + "h"; } else if (d >= 60) { return Math.round(d/60) + "m"; } return d + "s"; }; KB.utils.getSelectionPosition = function (...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) ...
require('../css/style1.css'); let vendor1 = require('vendor1'); let utility1 = require('./utility1'); let utility2 = require('./utility2'); let pageA = 'pageA'; export default pageA;
var http = require('http'); var fs = require('fs'); var server = http.createServer(function (request, response){ console.log('client request URL: ', request.url); if (request.url === "/cars") { fs.readFile('./views/cars.html', 'utf8', function (errors, contents){ response.writeHead(200, ...
var core = require('../core'), InteractionData = require('./InteractionData'); // Mix interactiveTarget into core.DisplayObject.prototype Object.assign( core.DisplayObject.prototype, require('./interactiveTarget') ); /** * The interaction manager deals with mouse and touch events. Any DisplayObject can b...
"use strict"; exports.__esModule = true; exports.default = qsa; var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); function qsa(element, selector) { return toArray(element.querySelectorAll(selector)); } module.exports = exports["default"];
var i18n = { // numaspace fields gestureBtn : 'Gesture', checkBtn : 'Local/Remote', questionString : 'Say something like "Ignition Start."', registerUser : 'Register', // common field names submit : 'Submit', logCatch : 'Log a Catch', mytoursTitle : 'My Tournaments', nextBtn : 'Next', info...
/** * Register the Page admin routes and add protection */ ReactiveTemplates.request('pages.index'); Router.route('/admin/pages', function() { this.layout(ReactiveTemplates.get('layout')); this.render(ReactiveTemplates.get('pages.index')); }, { name: 'pages.index' }); orion.accounts.addProtectedRoute('pages.index...
/* * Copyright (C) 2015 SUSE Linux * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE.txt file for details. */ (function () { 'use strict'; angular.module('janusHangouts') .directive('jhScreenShareButton', jhScreenShareButtonDirective); jhScreenSha...
define({ "_widgetLabel": "상황 인식", "locate_incident": "사건 찾기", "reverse_geocoded_address": "가장 가까운 주소", "reverse_geocoded_error": "사용할 수 없음", "actionLabel": "위치 설정", "drawPoint": "포인트 그리기", "drawLine": "라인 그리기", "drawPolygon": "폴리곤 그리기", "saveIncident": "저장", "clearIncident": "시작", "noFeaturesFound...
'use strict'; const ValidationError = require('../error/validation_error'); const getType = require('../util/get_type'); const validate = require('./validate'); const validateObject = require('./validate_object'); const validateArray = require('./validate_array'); const validateNumber = require('./validate_number'); c...
var displayQuestion = function (questionAndAnswer) { var options = [ "A", "B", "C", "D", "E" ]; console.log(questionAndAnswer.question); questionAndAnswer.answers.forEach( function (answer, i) { console.log(options[i] + " - " + answer); } ); }; var question1 = { questi...
const fs = require('fs'); const path = require('path'); const _ = require('lodash'); const webpack = require('webpack'); const nodeExternals = require('webpack-node-externals'); const dev = process.env.NODE_ENV === 'dev'; /** * Base Webpack Config */ const base = { e...
var React = require('react-native'); var Login = require('./components/shared/login'); var { AppRegistry, Component, StyleSheet, Navigator, Text, View } = React; class thumbroll extends Component { constructor(props) { super(props); } render() { return ( <Navigator initialRout...
define([ 'extensions/collections/collection', 'extensions/models/model', 'extensions/models/data_source', 'backbone', 'moment-timezone', 'json!fixtures/grouped.json', 'json!fixtures/group-multiple-keys.json', 'json!fixtures/group-by-channel-unflattened.json', 'json!fixtures/group-by-channel-flattened....
//目次 //ブラウザ判定、body,formのid,class付与 //ConfigManagerからid取得 //ID付与(IDがない場合)(nameが被った場合、単にiを付与する方が処理が軽い) //事前コンバート //ConfigManagerからclass取得 //ConfigManagerからvalidation取得 //new //action // window.onunload = function(){} // if(window.name != "xyz"){ // location.reload(); // window.name = "xyz"; // } jQuery.noConflict(); j...
'use strict' var through = require('through2') var transformify = require('transformify') var replaceRequires = require('replace-requires') module.exports = function (file, options) { if (/\.json$/.test(file)) return through() return transformify(replaceProxyquire)() } var replacement = 'require(\'proxyquireify\...
/** * @class Bleext.desktop.LoadingModule * @extends Bleext.ui.ModalWindow * requires * @autor Crysfel Villa * @date Thu Jul 21 15:09:28 CDT 2011 * * Description * * **/ Ext.define("Bleext.desktop.LoadingModule",{ extend : "Bleext.abstract.ModalWindow", bodyCls : "bleext-loading-module", layout : "au...
/* */ module.exports = {banner: '/**\n' + ' * Core.js ' + require("../package.json!systemjs-json").version + '\n' + ' * https://github.com/zloirock/core-js\n' + ' * License: http://rock.mit-license.org\n' + ' * © ' + new Date().getFullYear() + ' Denis Pushkarev\n' + ' */'};
// jscs:disable requireMultipleVarDecl 'use strict'; // # Local File System Image Storage module // The (default) module for storing images, using the local file system var serveStatic = require('express').static, fs = require('fs-extra'), path = require('path'), Promise = require('bluebird'), config...
define([ 'module', 'underscore', 'lib/app', 'lib/router' ], function (module, _, app, router) { "use strict"; app.log('Loaded'); var config = _.defaults(module.config(), { active: 'active' }); function update($context, route) { var match = router.cleanUrl([route.controller(), route.action()].join('/')), ...
09e1_1
/* global define, require */ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['seriously'], factory); } else if (typeof exports === 'object') { // Node/CommonJS factory(require('seriously')); } else { if (!root.Se...
const { expect } = require('chai'); const { promisify } = require('util'); const request = require('request'); const createTestCafe = require('../../lib/'); const COMMAND = require('../../lib/browser/connection/command'); const browserProviderPool = re...
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js */ /** * ...
"use strict"; /** @param {string} file */ function include(file) { document.write('<script type="text/javascript" src="' + file + '"></script>'); } include("chess.js"); include("bitboard.js"); include("zobrist.js"); include("move.js"); include("position.js"); include("parser.js"); include("ai.js"); include("ui.js");...
/** * jQuery EasyUI 1.4.5 * * Copyright (c) 2009-2016 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"spinner...
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. All Rights Reserved. // // Licensed under the Apache License Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.ap...
var util = require('util'); var assert = require('assert'); var _ = require('lodash'); describe('Association Interface', function() { describe('Has Many Association with Custom Primary Keys', function() { ///////////////////////////////////////////////////// // TEST SETUP /////////////////////////////...
// // # Digest Client // // Use together with HTTP Client to perform requests to servers protected // by digest authentication. // // Copyright (c) 2012, Simon Ljungberg <hi@iamsim.me> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provi...
module('lively.bindings.tests.FRPCoreTests').requires('lively.TestFramework', 'lively.bindings.FRPCore').toRun(function() { TestCase.subclass('lively.bindings.tests.FRPCoreTests.FRPTests', 'tests', { testTimer: function() { var obj = {}; var evaluator = this.newEvaluator(); evaluator.insta...
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.on('select', (event) => { if (event.args) { let item ...
module.exports = require('../isInteger');
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. * @private */ import {isArray} from 'lodash'; import {oneFlight, patterns, tap} from '@ciscospark/common'; import {SparkPlugin} from '@ciscospark/spark-core'; import UserUUIDBatcher from './user-uuid-batcher'; import UserUUIDStore from './user-...
define([ 'jquery', 'underscore', 'util', 'view', 'viewcontroller', 'color-editor', 'chroma', 'three' ], function($, _, util, DecompositionView, ViewControllers, Color, chroma, THREE) { // we only use the base attribute class, no need to get the base class var EmperorAttr...
const MAX_CATEGORY_COUNT = 5; const MAX_QUESTION_COUNT = 5; const BASE_POINTS = 200; function calculatePoints(category, question) { return BASE_POINTS * (question + 1); } var jeopardies = {}; var JeopardyQuestions = (function () { function JeopardyQuestions(room, categoryCount, questionCount) { this.room = room;...
module.exports = require("./lib/conversion.js");
solve(['3']); function solve(args) { let range = Number(args[0]); for(let i = 1; i <= range; i++) { console.log(i); } }
'use strict'; var EventEmitter = require('events').EventEmitter; var assign = require('object-assign'); var iv = require('invariant'); /** * Store class */ /** * Constructs a Store object, extends it with EventEmitter and supplied * methods parameter, and creates a mixin property for use in components. ...
/*global window */ (function() { "use strict"; var compareGrowth = { checkAnswer: function(answer, choice) { var theInt = parseInt(answer, 10); if (answer === "") { return ""; } // User gave no answer switch (choice) { case 0: // n! return ((theInt === 2) || (theInt === 3)); ...
TEST('GRAPHICSMAGICK_IDENTIFY', (check) => { GRAPHICSMAGICK_IDENTIFY('UPPERCASE-CORE/sample.png', (features) => { console.log(features); }); GRAPHICSMAGICK_IDENTIFY('UPPERCASE-CORE/sample.png', { error : () => { console.log('ERROR!'); }, success : (features) => { console.log(features); } }); });
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var Product = new Schema({ name: String, amount: Number, currency: { type: String, default: 'USD' }, forSale: { type: Boolean, default: true } }); module.exports = mongoose.model('products', Product);
/*! * bespoke-touch v1.0.0 * * Copyright 2014, Mark Dalgleish * This content is released under the MIT license * http://mit-license.org/markdalgleish */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"u...
define({ "_widgetLabel": "סרגל זמן", "enableTips": "לחץ כדי להציג את סרגל הזמן.", "disableTips": "אין שכבות גלויות המתייחסות לנתוני זמן.", "timeExtent": "${FROMTIME} עד ${ENDTIME}", "layers": "שכבות: ", "speedLabel": "מהירות הצגה", "liveData": "נתונים חיים", "previous": "המרווח הקודם", "next": "המרווח...
var keystone = require('keystone'), Types = keystone.Field.Types; var TechnologyResale = new keystone.List('TechnologyResale', { autokey: { from: 'name', path: 'key' } }); TechnologyResale.add({ technologyResale:{type:String}, technologyResaleimage: { type: Types.CloudinaryImage}, technologyResaletext: { type: T...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import capitalize from '../utils/capitalize'; import withStyles from '../styl...
var gist = require('../source/gist'), modal = require('./modal'); module.exports = share; function facebookUrl(_) { return 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(_); } function twitterUrl(_) { return 'https://twitter.com/intent/tweet?source=webclient&text=' + encodeURICompon...
/* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy ...
import { pBlue } from '../lib/colored-blue' export default () => ( <div> <p id="blue-box" className={pBlue.className}> This is blue </p> {pBlue.styles} </div> )
/*! * Bootstrap's Gruntfile * http://getbootstrap.com * Copyright 2013-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ module.exports = function (grunt) { 'use strict'; // Force use of Unix newlines grunt.util.linefeed = '\n'; RegExp.quote = function (s...
var $ = require('jquery'); var Slick = require('Slick'); var moment = require('moment'); module.exports = function () { var me = this; var grid; var clientStart; var doTimer = false; function _renderTime () { if (doTimer) { var now = new Date(); var ms = now - c...