code
stringlengths
2
1.05M
(function() { var Ext = window.Ext4 || window.Ext; /** * Extra data types for Rally REST JSON API * @private */ Ext.define('Rally.apps.roadmapplanningboard.DataTypes', {}, function () { Ext.apply(Ext.data.Types, { /** * @property {Object} COLLECTION ...
var group___c_m_s_i_s___s_c_b = [ [ "SCB_Type", "struct_s_c_b___type.html", [ [ "ADR", "struct_s_c_b___type.html#a5c0e2e1c7195d4dc09a5ca077c596318", null ], [ "AFSR", "struct_s_c_b___type.html#ab9176079ea223dd8902589da91af63a2", null ], [ "AIRCR", "struct_s_c_b___type.html#aaec159b48828355cb770049...
(function() { 'use strict'; /** * Initialization of badgeFrontend.modules.badges module. * * @namespace Modules */ angular .module('badgeFrontend.modules.badges', []); })();
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
require("ember-data/core"); require("ember-data/system/adapter"); require('ember-data/serializers/fixture_serializer'); var get = Ember.get; /** `DS.FixtureAdapter` is an adapter that loads records from memory. Its primarily used for development and testing. You can also use `DS.FixtureAdapter` while working on...
var View = require('./view'); var templates = require('client/js/templates'); module.exports = View.extend({ template: templates.partials.speakers.gridView, });
var ZeroOrder = require('../src/ZeroOrder'); var sequences = require('./sequences'); var run = function () { // Algorithm: // for each test sequence // for each item in sequence // for each predictor // feed previous item and get prediction // score the prediction according to t...
/** START loads the header, please insert in every file **/ $("header").load("header.html", function() { var linkToMe = $('a[href="'+window.location.href.split('/').pop()+'"]').parent(); linkToMe.addClass('active') }); $( "a.submenu" ).click(function() { $( ".menuBar" ).slideToggle( "normal", function() { // An...
'use strict'; var ResourceFactory = require('../ResourceFactory'); function makeResourceURL(id) { return '/banners/image/' + id + '/conversion-tag'; }; var ConvTag = function(adbutler) { return ResourceFactory.makeResource.call(adbutler, makeResourceURL, { create: false, update: false, ...
/* global API_HOST */ import fetch from 'isomorphic-fetch'; import querystring from 'querystring'; const REQUEST = 'heroStats/REQUEST'; const OK = 'heroStats/OK'; const ERROR = 'heroStats/ERROR'; export const heroStatsActions = { REQUEST, OK, ERROR, }; export const getHeroStatsRequest = () => ({ type: REQUES...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z" />...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["PureMenu"] = factor...
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSyntaxError } = Assert; const bindings = { letIsBoundName: [ "let", "[let]", "{let}", "{let: let}", "{not_let: l...
// Saves options to chrome.storage function save_options() { var showChangeLog = document.getElementById('show_changelog').checked; chrome.storage.sync.set({ showChangeLog: showChangeLog }, function () { // Update status to let user know options were saved. var status = document.getElementById('status...
import Hook from 'util/hook' import schema from './schema' import schemaGen from './gensrc/schema' import resolver from './resolver' import resolverGen from './gensrc/resolver' import {deepMergeToFirst} from 'util/deepMerge' import {preProcessorsCache} from './preprocessor' import {ObjectId} from 'mongodb' import {crea...
/// <autosync enabled="true" /> /// <reference path="../src/hash-router.js" /> /// <reference path="server.js" /> /// <reference path="test.js" />
var five = require('johnny-five'); var chipio = require('../preferences').ChipIO; var defaultCallback = function () { var result = { x: this.x, y: this.y, z: this.z, pitch: this.pitch, roll: this.roll, acceleration: this.acceleration, inclination: this.incli...
'use strict'; var AWS = require('aws-sdk'); var s3 = new AWS.S3(); exports.handler = function(event, context, callback){ var message = JSON.parse(event.Records[0].Sns.Message); var sourceBucket = message.Records[0].s3.bucket.name; var sourceKey = decodeURIComponent(message.Records[0].s3.object.key.replac...
var Graph = require('./Graph'); var FragColorNode = require('./nodes/FragColorNode'); module.exports = FragmentGraph; function FragmentGraph(options){ options = options || {}; options.mainNode = options.mainNode || new FragColorNode(); Graph.call(this, options); } FragmentGraph.prototype = Object.create(Graph.prot...
var chrome = chrome; function TaskRunner(task) { this.url = task.url; this.start(); } TaskRunner.prototype = { start: function(){ this.initListeners(); chrome.tabs.create({ url: this.url }, function(tab) { this.tab = tab; }.bind(this)); }, initListeners: function(){ chrome.processes....
var currentChatroomId = window.location.pathname.split('/')[2]; $(document).ready(function(){ $.material.init(); }); $(window).load(function(){ // TODO abfrage integrieren nach aktueller chatraum id if($("#chatMessages").length >0){ loadChatMessages(); setInterval(function(){ ...
function getStreams ({state, output, services}) { const channels = state.get(['app', 'channels', 'current']) let config = {} if (channels.length) { config = { params: { channel: channels.toString() } } } services.http.get('https://api.twitch.tv/kraken/streams', config) .then(ou...
const { config } = require('./config') exports.config = Object.assign({}, config, { runnerEnv: { WDIO_NO_SYNC_SUPPORT: true } })
/** * Created by Catalin on 3/11/2017. */ //Login page $('.open-menu').click(function() { $('.ui.sidebar').sidebar('setting', 'transition', 'scale down').sidebar('toggle'); }); $('.logout').dropdown();
module.exports.tables = { players: 'bm_players', playerBans: 'bm_player_bans', playerBanRecords: 'bm_player_ban_records', playerMutes: 'bm_player_mutes', playerMuteRecords: 'bm_player_mute_records', playerKicks: 'bm_player_kicks', playerNotes: 'bm_player_notes', playerHistory: 'bm_player_history', pla...
(function() { var componentName = 'custom-dialog-box'; var s = ` <div class="` + componentName + ` panel panel-default"> <h3 class="panel-heading">{{ headline }}</h3> <div class="panel-body" v-html="body"></div> <custom-buttons v-bind:buttons="buttons" class="pull-right"></custom-buttons> <...
'use strict'; const t = require('./../../common/prop-types'); const _ = require('./../../common/lodash'); const enums = require('./../../../shared/model')(require('joi-browser'), _).subdocuments.enums; const commonObj = { _id: t.string, updatedBy: t.string, updatedOn: t.oneOfType([t.instanceOf(Date), t.stri...
var turnNum = 0; // Create a global array to represent the state of the board. var arr = ['', '', '', '', '', '', '', '', '']; /***** St Names and Turns Function ******/ function setNames () { turnNum = 1; // Player Alerts swal({ title: "Green Thumb VS Gold Finger!", text: "Battle of the Eons", imageUrl: ...
import { join, resolve } from 'path' // someday this will be nonblocking again import { pseudoRandomBytes } from 'crypto' import { writeFile as writeFileCB, stat as statCB } from 'graceful-fs' import mkdirpCB from 'mkdirp' import rimrafCB from 'rimraf' import validate from 'aproba' import { promisify } from 'bluebird...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, {Component} from 'react'; import {AppRegistry, StyleSheet, Text, View, Image, Dimensions,Navigator} from 'react-native'; import InitApp from "./app/InitApp"; AppRegistry.registerComponent('eyepetizer', () => InitApp)...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Course = mongoose.model('Course'), _ = require('lodash'), agent = request.agent(app); /** * Globals */ var credentials_s, credentials_p, ...
import React from 'react'; import cx from 'classnames'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Post from '../Post'; import Terminal from '../Terminal'; import Link from '../Link'; import Comments from '../Co...
import React from 'react'; import { shallow } from 'enzyme'; import { App } from './index'; describe('views', () => { describe('App', () => { let handleSearch; let search; let toggleSearch; beforeEach(() => { handleSearch = () => {}; search = {open: false}; toggleSearch = () => {}...
class Pen { constructor() { console.log('pen selected'); } } module.exports = Pen
// StyleFix 1.0.1 & PrefixFree 1.0.4 / by Lea Verou / MIT license (function() { function f(a, b) {return[].slice.call((b || document).querySelectorAll(a))} if(window.addEventListener) { var b = window.StyleFix = {link:function(a) { try {if(!/\bstylesheet\b/i.test(a.rel) || !a.sheet.cssRules)return} catch(c) {re...
'use strict'; import { createDecorator } from './decoratorFactory'; import { applicators } from './Applicator'; import returnAtIndex from './utils/returnAtIndex'; /** * Returns the first argument from the function regardless of * the decorated functions return value. */ export default createDecorator(function tapD...
/* global require, describe, it */ 'use strict'; // MODULES // var chai = require( 'chai' ), path = require( 'path' ), argv = require( './../lib/argv.js' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'argv', function tests() { var fixtures; fixtures = path.join(...
/** * Created by dat on 5/3/17. */ var hic = (function (hic) { hic.TrackLabel = function ($track) { var $container; this.$track = $track; $('.clickedit') .hide() .focusout(endEdit) .keyup(function(e) { if ((e.which && 13 === e.which)...
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'sourcedialog', function( editor ) { var size = CKEDITOR.document.getWindow().getViewPaneSize(); // Make it maximum 800px wide...
/** * A simple test case that determines if elements, specified by a selector, * exist or not. * * The test fails for elements that are found and a case is created for each * one. The test passes is the selector finds no matching elements. */ var Case = require('Case'); const DOM = require('DOM'); var ImgHasAlt ...
version https://git-lfs.github.com/spec/v1 oid sha256:0841295a7e23dabc77c6deb5dc0d10e89a81db34c125f5c4acaffbd2ded3ebde size 1451
/** * Created by yuexing on 2016/6/5. * 这是一个以map作为对象的缓存方案, * 只能支持单个节点的缓存方案 * 特点是:速度快,不需要安装额外的数据库 * 弱点:如果爬虫要进行分布式抓取那就无法进行了 * * <p> * 因为map的特性,自动带有,计数,删除,清空,并且可以很好的解决管理timeoutCallback,不需要再额外的代码处理 * 所以选择了map作为缓存方案 * </p> * */ const fs = require('fs'); const stringUtil = require('../common/stringUtil'); class...
'use strict'; // ci:coverage:exclude angular.module('app.home') .controller('HomeCtrl', ['$scope', 'config', 'features', function ($scope, config, features) { $scope.env = config.env; $scope.features = features; }]);
"use strict"; //import { Injectable } from '@angular/core'; const Observable_1 = require("rxjs/Observable"); const io = require("socket.io-client"); //@Injectable() class SocketService { getPosts() { this.socket = io.connect(); this.socket.on('connect', () => console.log('Connected!')); this...
/*! jCarousel - v0.3.1 - 2014-05-26 * http://sorgalla.com/jcarousel * Copyright (c) 2014 Jan Sorgalla; Licensed MIT */ (function(t){"use strict";t.jCarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0},_timer:null,_init:function(){this.onDestroy=t.proxy(function(){this._destroy(),this...
// Setup our tabs and cache the jQuery Object to be reused. var $tabs = $("#tabs").tabs({ // tabTemplate: HTML template from which a new tab is created and added. // The placeholders #{href} and #{label} are replaced with the // url and tab label that ...
'use strict'; /** * Module dependencies */ const actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); const _ = require('lodash'); const Promise = require("bluebird"); /** * Find Records * * get /:modelIdentity * * /:modelIdentity/find * * An API call to find and return model instances from ...
chrome.extension.sendMessage( { action: "get-settings", url: location.href }, function(response) { var tabsize = response.settings.tabsize || response.default_settings.tabsize; if(!tabsize) return ; var css = document.createElement('link'); css.href = chrome.e...
function demoCalendarMonthWithHeadings() { $demo.append( CalendarMonthWithHeadings.create() ); }
import inputAfterHTML from "./templates/after.html"; import inputBeforeHTML from "./templates/before.html"; import inputLabel from "./templates/label.html"; const settings = { id: "first-name-input", type: "text", name: "firstname", beforeHtml:{ html: inputBefo...
function LocalShaderParam() { if(arguments[0] != "__skip_ptr__") { this.__ptr = Polycode.LocalShaderParam() } Object.defineProperties(this, { 'name': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_name, set: LocalShaderParam.prototype.__set_name}, 'type': { enumerable: true, conf...
import { expect } from 'chai' describe('Test', () => { it('should be true', () => { expect(true).to.be.equal(true) }) })
var hljs = new function() { /* Utility functions */ function escape(value) { return value.replace(/&/gm, '&amp;').replace(/</gm, '&lt;').replace(/>/gm, '&gt;'); } function findCode(pre) { for (var node = pre.firstChild; node; node = node.nextSibling) { if (node.nodeName.toUpperCase () == 'CODE'...
alasql.ZipWriter = function () { /** @type {object} Entries for ZIP file */ var entries = []; /** Calculate CRC32 @function @param {array} buf Data buffer @return {number} */ function calculateCrc32(buf) { var CRC_TABLE = [ 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af...
var fs = require('fs') module.exports = update function update(location, config, done) { fs.readFile(location, 'utf8', function(err, pkg) { if (err) return done(err) try { var json = JSON.parse(pkg) } catch(e) { return done(e) } json.aperture = json.aperture || {} json.aperture...
#include "common/mysql_helper.js" #include "cmon/alarms.h" var DESCRIPTION="This advisor selects the top 5 queries, sorted by execution count, from performance_schema." ; query="select (count_star/(select sum(count_star) FROM" " performance_schema.events_statements_summary_by_digest) * 100) as pct," " co...
/* Starts the file upload. */ function upload() { // Clear the progress bar $('#progress .bar').html('0%'); $('#progress .bar').width('0%'); // Submit the upload form $('#upload_form').submit(); // Start polling for progress after delay setTimeout("checkProgress()", 1500); } function checkProg...
'use strict'; var ImportCache = require("../src/import_cache"); describe("ImportCache", function() { var cache; beforeEach(function () { cache = new ImportCache(); }); describe(".moveTo", function () { it("absolute path to a file", function () { cache.moveTo(__filename); expect(c...
Polymer({ is: 'menu-map-options', behaviors : [EventBusBehavior], ebBind : { 'set-map-mode' : 'onModeUpdated' }, onModeUpdated : function(mode) { this.mode = mode; if( this.mode === 'set' ) { this.$.mode.checked = true; } else { this.$.mode.checked = false; } }, updateM...
// @flow export const PUSH: string = 'admin.modal/PUSH' export const POP: string = 'admin.modal/POP' export const CLOSE: string = 'admin.modal/CLOSE'
import { createSelector } from 'reselect' export const getActiveTeam = createSelector( state => state, state => { return state.admin.active !== null ? state.admin.teams[state.admin.active] : null } ) export const getActiveSession = createSelector( [state => state, getActiveTeam], (state, team) => { ...
define([ 'text!./templates/list.html' ], function (template) { "use strict"; function elasticQuery(search) { var filter = {match_all: {}}, query = {match_all: {}}; if (search.rootOnly) { // why not inheritsFromId? While inheritsFromId is guaranteed, we could have /...
(function() { 'use strict'; angular.module('cms.media', [ 'ngResource', 'cms.core' ]) .factory('MediaServer', ['MediaApi', function(MediaApi) { var MediaServer = function(ctrl) { this.ctrl = ctrl; }; MediaServer.prototype.create = function(projectId, media)...
use homework db.grades.aggregate( [ { $unwind: '$scores' }, { $match: { "scores.type": { $ne: "quiz" } } }, { $group: { _id: { student_id: '$student_id', class_id: '$class_id' }, student_avg: { $avg: '$scores.score' } } }, { $group: { _id: '$_id.class_id', class_avg: { $avg: '$student_avg' } } }, { $sort: { ...
'use strict'; const test = require('tape'); const sinon = require('sinon'); const schedule = require('..'); // 12:30:15 pm Thursday 29 April 2010 in the timezone this code is being run in const base = new Date(2010, 3, 29, 12, 30, 15, 0); test("Recurrence rule", function (t) { let clock t.test("Setup", function...
module.exports = function() { var that = this, spawn = require('child_process'); this.task('init', function(logger) { return that.exec(['php', 'composer', 'install'], logger).then(function() { var bower = spawn('bower', ['install']); console.log(bower); }); }...
<<<<<<< HEAD <<<<<<< HEAD var glob = require('../') var test = require('tap').test var path = require('path') test('stat all the things', function(t) { var g = new glob.Glob('a/*abc*/**', { stat: true, cwd: __dirname }) var matches = [] g.on('match', function(m) { matches.push(m) }) var stats = [] g.on...
'use strict'; var path = require('path'), utils = require('../utils'); module.exports = exec; module.exports.parseExecutable = parseExecutable; function parseExecutable(str) { var length = str.length; var i = 0; var exec = null; var execArgs = []; var token = ''; var inspace = false; var escaped = ...
(function(b){b.widget("ui.tagit",{options:{allowDuplicates:!1,caseSensitive:!0,fieldName:"tags",placeholderText:null,readOnly:!1,removeConfirmation:!1,tagLimit:null,availableTags:[],autocomplete:{},showAutocompleteOnFocus:!1,allowSpaces:!1,singleField:!1,singleFieldDelimiter:",",singleFieldNode:null,animate:!0,tabIndex...
/** * index.js - Main server file that we will use for our demo app */ 'use strict' // Clever addresses const OAUTH_TOKEN_URL = 'https://clever.com/oauth/tokens'; const API_PREFIX = 'https://api.clever.com'; const DISTRICT_ID = '56df50fa892c7001000000c5'; // Load dependencies let express = require('express'); let ...
// Sample Testacular configuration file, that contain pretty much all the available options // It's used for running client tests on Travis (http://travis-ci.org/#!/vojtajina/testacular) // Most of the options can be overriden by cli arguments (see testacular --help) // base path, that will be used to resolve files ...
angular.module('orderCloud') .directive('ocFavoriteProduct', OrderCloudFavoriteProductDirective) ; function OrderCloudFavoriteProductDirective($exceptionHandler, toastr, OrderCloudSDK){ return { scope: { currentUser: '=', product: '=', favoriteClass: '@', ...
(function(f){"object"==typeof exports&&"object"==typeof module?f(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],f):f(CodeMirror)})(function(f){f.defineMode("go",function(t){function h(a,c){var b=a.next();if('"'==b||"'"==b||"`"==b)return c.tokenize=u(b),c.tokenize(...
var Task = require('./task.js'); var StylesTask = Object.create(Task); StylesTask.name = 'styles'; StylesTask.prototype.scss = function() { this.options.language = 'scss'; // Add gulp-sass to stream return this; }; StylesTask.prototype.minify = function() { this.options.minify = true; // Ad...
/** * Created by dimanikishin on 19.01.16. */ (function(){ 'use strict'; /** * @memberof myApp * @ngdoc config */ angular .module('myApp') .config(myAppConfig); myAppConfig.$inject = ['$routeProvider'] function myAppConfig($routeProvider) { $routeProvider.otherwise({redirectTo: '/40...
MessageStatus = {FAILED : 'failed', SUCCESS : 'success'}; module.exports = MessageStatus;
var utils = require('../../utils/tokenGenerator'); module.exports = function (options, req, res, client_id, client_secret, token_options) { var code = req.body.code; options.storage.getCode(code, function (jsonCode) { if (!jsonCode) { res.statusCode = 400; return res.json({error...
'use strict'; var React = require('react'); // var AMR = require('amazeui-react'); var AMR = require('../reactui'); var Tabs = AMR.Tabs; var tabkey = "1"; var TabsSelect = React.createClass({ getInitialState: function() { //这里每次被调用都被初始化了,不爽, //应该对应一个组件,这个组件的状态一直被记住(基于组件位置唯一) //需要设置一个当前状态记忆变量,同步更新 /...
import Component from '@ember/component'; import layout from '../../../templates/components/freestyle/bootstrap/tables/body/-row'; import { BuilderForPropDefaults } from 'ember-bootstrap-controls/utils/prop-definition-tools'; import { propDefinitions } from '../../bootstrap/tables/body/-row'; export default Component....
var base = require('./protractor.base.config'); base.config.capabilities = { 'browserName': 'chrome' } exports.config = base.config;
//@flow export type Options = { cache: string, player: ?string, feed: string, lang: string, port: number, 'peer-port': number, log: (...params: any[]) => void, offline: boolean, browse: boolean, movie: boolean, title: ?string, } export type NamedStat = { name: string, size: number, isDirec...
/*¶¨Ò幺Îï³µ¶ÔÏó*/ function Cart(){ this.products=[] this.sum=0 this.allPrice=0 } Cart.prototype={ bindBasic:function(){ //°ó¶¨ $('.cartsum').html(this.getSum()) $('#cartprice').html(this.getAllPrice()) }, //°ó¶¨²úÆ·Áбí,ÿ´Îµã»÷µ½¹ºÎï³µÖ´Ðеķ½·¨ bindList:function(){...
'use strict'; var services = angular.module('carpoolBuddyApp.services', ['ngResource']). factory('cityService', function($resource) { return $resource('/rest/cities', {}, {}); }). factory('buddyService', function($resource) { return $resource('/rest/buddies', {}, {}); });
/*This is where common javascript will go*/ $(document).ready(function() { /* handling the events for the new password text box */ var newPasswordPass = false; handleNewPasswordEvents(); handleConfPasswordEvents(newPasswordPass); doSelectAllCheckbox(); handleMultiSelect(); $('.tr-chk-bx-sel...
/* Gina.utils.Proc * * This file is part of the gina package. * Copyright (c) 2016 Rhinostone <gina@rhinostone.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * * { name: 'SIGABRT', action: 'A', desc: 'Process abort sig...
'use strict'; angular.module('tryNav') .directive('tryNav', function (Post, $location) { return { restrict: 'E', templateUrl: '/templates/try-nav.html', link: function (scope, element, attr) { scope.items = Post.query(); scope.selectItem =...
import { createStore, compose, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import reducer from './reducers'; export default function configureStore(initialState) { const store = createStore(reducer, initialState, compose( // applyMiddleware supercharges createStore with middleware: apply...
// Generated by CoffeeScript 1.8.0 var BadRequest, Contact, ContactActivity, NotFound, async, log, _ref; Contact = require('../models/contact'); async = require('async'); log = require('../utils/logging')({ prefix: 'controllers:activity' }); _ref = require('../utils/errors'), BadRequest = _ref.BadRequest, NotFoun...
var Board = require("../lib/board.js"), Descriptor = require("descriptor"), __ = require("../lib/fn.js"), events = require("events"), util = require("util"); var priv = new Map(), modes; modes = { INPUT: 0x00, OUTPUT: 0x01, ANALOG: 0x02, PWM: 0x03, SERVO: 0x04 }; /** * Pin * @constructor * * ...
const is = require('is') const tar = require('tar-fs') const fs = require('fs') const os = require('os') const { spawn } = require('child_process') const zlib = require('zlib') const multimatch = require('multimatch') const logger = require('./index.js').logger const mergeNoUndefined = require('./index.js').mergeNoUnde...
import { memo } from 'react'; import { useRouter } from 'next/router'; import BaseTimeRange from './BaseTimeRange'; import { goToUrlQueryAndResetPagination } from 'lib/listPage'; /** * URL param names to read from and write to */ const PARAM_NAME_START = 'start'; const PARAM_NAME_END = 'end'; /** * @param {object}...
import React, { PropTypes } from 'react' import classNames from 'classnames' import s from './styles.scss' const renderIcon = { user: () => ( <path d='M0,245c0,135.1,109.9,245,245,245s245-109.9,245-245S380.1,0,245,0S0,109.9,0,245z M245,41.6 c112.2,0,203.4,91.2,203.4,203.4c0,50.4-18.5,96.5-48.9,132.1c-42-3...
import thenChrome from 'then-chrome' import MessageListener from './libs/MessageListener' import {response as getImagesOnPage} from './libs/getImagesOnPage' import {response as getPageTitle} from './libs/getPageTitle' const onMessageListener = new MessageListener('content') onMessageListener.add('getImages', async (m...
import Constraint from 'liquid-fire/constraint'; export function target(name) { return new Constraint('parentElementClass', `${name}-liquid-target`); }
//~ name b353 alert(b353); //~ component b354.js
version https://git-lfs.github.com/spec/v1 oid sha256:37f0d278c89b956bcd2532cbd780df29817a4cd59e55180f269c675b2d2d10fa size 33862
import BigNumber from 'bignumber.js' import {createActions, handleActions} from 'redux-actions' import {PENDING, FULFILLED, REJECTED} from 'redux-promise-middleware' export const { getBalance, getEndTime, getRemainingSupply, getTokenValue, setProvider } = createActions( 'GET_BALANCE', 'GET_END_TIME', '...
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.initConfig({ jshint: { options:{ jshintrc: true }, src: ['Gruntfile.js', 'test/**/*.js',...
"use strict"; /* For Uniforms: Pass an array of names, values and types to bind uniforms. Then loop through each calling the appropriate glUniform on the correct uniform name. This can be called by the model, the renderer etc each with its own set of attributes. If an attribute isn't in the shader...
var expect = require('chai').expect; var breezeSequelize = require("breeze-sequelize"); // Don't use this // var breeze = require('breeze-client'); // Use this var testFns = require('./testFns.js'); var breeze = testFns.breeze; var SequelizeManager = breezeSequelize.SequelizeManager; var SequelizeSaveHandler...