code stringlengths 2 1.05M |
|---|
import {StyleSheet} from 'react-native';
export default StyleSheet.create({
container: {
padding: 8,
flex: 1,
flexDirection: 'column',
paddingBottom: 0,
paddingTop: 0
},
input: {
marginLeft: 10,
marginRight: 10,
borderRadius: 5,
border... |
/** @jsx React.DOM */
!(function(){
'use strict';
var socket = io.connect(
location.protocol + '//' + location.hostname +
(location.port ? ':' + location.port : '')
);
var ChatApp = React.createClass({
getInitialState: function() {
return {
messages... |
const exec = require('child_process').execSync
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
const base = require('./webpack.base')
const config = require('./config')
const fp = require('lodash/fp')
i... |
/**
* @ngdoc controller
* @name ContentEditController
* @function
*
* @description
* The controller for the content editor
*/
function ContentEditController($scope, $routeParams, $location, contentResource, notificationsService, angularHelper, serverValidationManager, contentEditingHelper) {
if ($r... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'webdevelopmentsandbox';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', ... |
import test from 'ava';
import chalk from 'chalk';
import hasAnsi from 'has-ansi';
import stripAnsi from 'strip-ansi';
import wrapAnsi from './index.js';
chalk.level = 1;
// When "hard" is false
const fixture = 'The quick brown ' + chalk.red('fox jumped over ') + 'the lazy ' + chalk.green('dog and then ran away with... |
(function() {
'use strict';
angular
.module('webHipsterApp')
.directive('jhSortBy', jhSortBy);
function jhSortBy() {
var directive = {
restrict: 'A',
scope: false,
require: '^jhSort',
link: linkFunc
};
return directiv... |
// Generated by CoffeeScript 1.9.3
(function() {
var Promise, findit, fs, getByPath, getObjects, getReadStreamByPath, path, rootPath;
fs = require('fs');
path = require('path');
Promise = require('es6-promise').Promise;
findit = require('findit2');
rootPath = path.resolve(__dirname, '..');
getObject... |
import './provider.test.js';
|
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
'use strict'
const pull = require('pull-stream')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
module.exports = (conn, callback) => {
const values = [Buffer.from('echo')]
pull(
pull.values(values),
conn,
pull.collect((err, _values)... |
const React = require(`react`)
const styletron = require(`./index`)
const { Provider, DebugEngine } = require(`styletron-react`)
const debug = process.env.NODE_ENV === `production` ? void 0 : new DebugEngine()
// eslint-disable-next-line react/prop-types
exports.wrapRootElement = ({ element }, options) => {
const e... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
ExpressMailServiceRequest
Request USPS Express Mail shipping information for a given origin and destination.
*/
var ExpressMailServiceRequest = function(session) {
/*
Create a new instance of the ExpressMailS... |
/*globals define*/
/*jshint node:true*/
/**
* @module Executor:NodeWorker
* @author lattmann / https://github.com/lattmann
* @author ksmyth / https://github.com/ksmyth
*/
var nodeRequire = require,
log = function () {
'use strict';
var args = Array.prototype.slice.call(arguments);
args.... |
/* global app, $, alert */
var PageView = require('./base');
var eventbindings = require('../bindings/_eventbindings');
var EventModel = require('../models/event');
var CommentsView = require('./partials/comments');
var Collection = require('ampersand-rest-collection');
var CommentModel = require('../models/comment');
... |
angular.module('app').config(function(ScreenProvider) {
ScreenProvider.register('screen-max-schedule', {
ScreenTitle: 'Edit Schedule',
controller: function($scope, $location, Restangular, moment, Profile, Tools) {
$scope.s = {
startDate: new Date(),
cycles: 7,
};
Tools.eachLift(function(l,k) {
... |
/*
* cornerstone.css gulp configuration
* ---------------------------------------------------------------------------
*/
var del = require('del');
var gulp = require('gulp');
var gulpCleanCss = require('gulp-clean-css');
var gulpConcat = require('gulp-concat');
var gulpDebug = require('gulp-deb... |
'use strict';
(function(module) {
try {
module = angular.module('tink.interactivetable');
} catch (e) {
module = angular.module('tink.interactivetable', ['tink.popover','tink.sorttable','tink.tooltip','tink.safeApply','tink.pagination']);
}
module.directive('tinkInteractiveTable',[function(){
return... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', function () {
return gulp.src([
path.join(conf.paths.src, '/app/**/*.html'... |
var gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
sass = require('gulp-sass'),
del = require('del'),
rename = require('gulp-rename');
gulp.task('delete', function() {
del(['dist/*'], function (err) {
console.log('Files deleted');
});
});
gulp.task('style', function () {
return gulp
... |
import gulp from 'gulp';
import browsersync from 'browser-sync';
import devip from 'dev-ip';
import autoprefixer from 'gulp-autoprefixer';
import sass from 'gulp-sass';
import prompt from 'gulp-prompt';
import runsequence from 'run-sequence';
import browserify from 'browserify';
import source from 'vinyl-source-stream'... |
// Uses AMD or browser globals to create a module.
// Grabbed from https://github.com/umdjs/umd/blob/master/amdWeb.js.
// Check out https://github.com/umdjs/umd for more patterns.
// If you do not want to support the browser global path, then you
// can remove the `root` use and the passing `this` as the first arg to... |
module.exports = function(gulp, plugins, config) {
gulp.task('watch', function () {
// Builds JavaScript
plugins.watch(config.scriptsWatch + '/**/*.js', function () {
gulp.start('js-uglify', 'file-copy');
});
plugins.watch(config.scriptsWatch + '/**/*.js', function () {
gulp.star... |
var System, Loader, Module, tests, test;
var testCnt = 0, passed = 0, failed = 0;
var test = function(name, initialize) {
if (typeof initialize != 'function') {
var val = initialize;
var exp = arguments[2];
initialize = function(assert) {
assert(val, exp);
}
}
var testId = testCnt++;
tes... |
'use strict';
/**
* Creates an m-by-n matrix in which all entries are set to the specified element.
* @throws {Error} Illegal argument exception
* @param {number} m row count
* @param {number} n column count
* @param {object} e element
* @returns {Array} an m-by-n matrix in which all entries are ... |
var fileParser = function(host, file, callback) {
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var reader = new XMLHttpRequest();
var resDataArrC = [];
var resDataItemN = {};
var resDataItem = {};
var results = [];
var indexAnsw = 0;
file = 'http://' + host + file;
reader.open('get'... |
var params = new URL(document.location).searchParams;
var packageName = params.get('packageName');
var varName = packageName;
// remove invalid chars @ / .
varName = varName.replace('@', '');
varName = varName.replace(/\/|\./g, '-'); // Set it to dash because we'll fix that and camelcase it
varName = varName.replace(/... |
module.exports = function (grunt, options) {
'use strict';
var config = {
"options": {
"interrupt": true
},
"shared.static": {
"files": [
'shared/**',
'!shared/{css,js}/**'
],
"tasks": [
"copy:shared.static"
]
},
"shared.styles": {
"fi... |
import React, { PureComponent } from 'react';
import { getSystemLanguage } from '../../utils'
import { es as ES } from '../../assets/lang/lang-home';
import { en as EN } from '../../assets/lang/lang-home';
import HomeHeader from './home-header/HomeHeader';
import HomeFooter from './home-footer/HomeFooter';
class Ho... |
/**
* @file env variables
* @author zengxiaohui(csu.zengxiaohui@gmail.com)
*/
module.exports = {
// 代理配置
proxy: {
// rd 代理环境
rd: {
prefix: '/api',
host: 'http://yourwebsite.com',
path: 'web/index.php',
port: 8080
},
// qa 代理环... |
var searchData=
[
['vector3d',['Vector3D',['../classthewizardplusplus_1_1anna_1_1maths_1_1_vector3_d.html',1,'thewizardplusplus::anna::maths']]],
['vector3d_3c_20float_20_3e',['Vector3D< float >',['../classthewizardplusplus_1_1anna_1_1maths_1_1_vector3_d.html',1,'thewizardplusplus::anna::maths']]]
];
|
/**
* A dictionnary of all the elements that use custom colors
*/
Telescope.colorElements = {};
Telescope.colorElements.colorTable = {
accentColor: [],
accentContrastColor: [],
secondaryColor: [],
secondaryContrastColor: []
};
Telescope.colorElements.defaultColors = {
accentColor: "#DD3416", // red
acc... |
//entry.js
require('./module');
|
/**
* Author: Jeff Whelpley
* Date: 4/3/15
*
*
*/
var name = 'hrsoo.parser';
var taste = require('taste');
var parser = taste.target(name);
describe('UNIT ' + name, function () {
describe('parseTimezone()', function () {
it('should return default est if nothing set', function () {
va... |
var debug = require('debug')('raptor:server')
var inherits = require('util').inherits
var EventEmitter = require('events').EventEmitter
var getStream = require('get-stream')
var batch = require('./batch')
var error = require('./error')
var Request = require('./request')
var Response = require('./response')
var Invali... |
// Created by Jeremy Banks on http://stackoverflow.com/a/36528033
function randInt(min, max) {
var MAX_UINT32 = 0xFFFFFFFF;
var range = max - min;
if (!(range <= MAX_UINT32)) {
throw new Error(
"Range of " + range + " covering " + min + " to " + max + " is > " +
MAX_UINT32 + ".");
} else if (mi... |
import Document, { Head, Main, NextScript } from 'next/document'
import cxs from 'cxs/lite'
export default class MyDocument extends Document {
static async getInitialProps ({ renderPage }) {
const page = renderPage()
const style = cxs.getCss()
return { ...page, style }
}
render () {
return (
... |
import { shallowMount } from '@vue/test-utils';
import { testClassFromProps } from 'test/utils';
import Loader from 'semantic-ui-vue/elements/Loader/Loader';
describe('Loader', () => {
testClassFromProps(Loader, ['ui', 'loader']);
it('should create a SUI Loader', () => {
const loader = shallowMount(Loader);
... |
// application/javascript;version=1.8
// Copyright 2013 Giovanni Campagna
//
// 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... |
'use strict';
var path = require('path')
, fs = require('fs');
var http = require('http').createServer(function incoming(req, res) {
console.log('incoming: ', req.url);
if ('/' === req.url) {
res.setHeader('Content-Type', 'text/html');
return fs.createReadStream(__dirname +'/index.html').pipe(res);
}... |
// All symbols in the Transport And Map Symbols block as per Unicode v6.2.0:
[
'\uD83D\uDE80',
'\uD83D\uDE81',
'\uD83D\uDE82',
'\uD83D\uDE83',
'\uD83D\uDE84',
'\uD83D\uDE85',
'\uD83D\uDE86',
'\uD83D\uDE87',
'\uD83D\uDE88',
'\uD83D\uDE89',
'\uD83D\uDE8A',
'\uD83D\uDE8B',
'\uD83D\uDE8C',
'\uD83D\uDE8D',
'\... |
'use strict';
var JsonML = require('jsonml.js/lib/utils');
module.exports = function (markdownData) {
var contentChildren = JsonML.getChildren(markdownData.content);
var apiStartIndex = contentChildren.findIndex(function (node) {
return JsonML.getTagName(node) === 'h2' && /^API/.test(JsonML.getChildren(node)[... |
import { expect } from 'chai'
import { formatNumber } from '../../../lib/attribute/format'
describe('format', function() {
describe('formatNumber', function() {
it('should exist', function() {
expect(formatNumber).to.be.ok
})
it('should format using Intl.NumberFormat', function() {
const ex... |
"use strict";
(function () {
angular.module("appModule")
.controller("seriesVintageDatesController", ["$scope", "seriesControllerBase",
function ($scope, seriesControllerBase) {
$scope.fredPath = "/series/vintagedates";
seriesControllerBase.initialize($scope, function (api) {
api.results = "/Views/... |
var ProjectViewModel = function(selectedMission)
{
var self = this;
self._selectedMission = selectedMission;
var projectModel = function()
{
var that = this;
that.id = ko.observable();
that.name = ko.observable();
that.isDefault = ko.observable();
that.jobdones = ko.observableArray();
that.... |
/** @constructor */
ScalaJS.c.scala_sys_process_ProcessBuilderImpl$FileImpl = (function() {
ScalaJS.c.java_lang_Object.call(this);
this.base$1 = null;
this.$$outer$f = null
});
ScalaJS.c.scala_sys_process_ProcessBuilderImpl$FileImpl.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_sys_proce... |
//Import the self-mod API
var self = require("sdk/self");
var data = self.data;
// Import the page-mod API
var pageMod = require("sdk/page-mod");
// Get Preferences
var preferences = require("sdk/simple-prefs").prefs;
// Check new version
var ss = require("sdk/simple-storage");
var last_version = ss.storage.last_ver... |
"use strict";
/**
* @author mrdoob / http://mrdoob.com/
*/
const THREE = require("three");
THREE.FlyControls = function ( object, domElement ) {
this.object = object;
this.domElement = ( domElement !== undefined ) ? domElement : document;
if ( domElement ) this.domElement.setAttribute( 'tabindex', -1 );
// API... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 7v10H4V7h16m0-2H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-... |
angular.module('my-app', [])
.controller('myCtrl', ['$scope', function($scope) {
//$scope.user = {};
}]);
/*
function mostrarImagen(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#img_destino').attr('src', e.target.resu... |
import Ember from 'ember';
import TimeMachine from 'ember-time-machine';
const {
get,
typeOf,
isArray
} = Ember;
export function wrapValue(obj, key, value) {
let state = obj.get('_rootMachineState');
let availableMachines = state.get('availableMachines');
let fullPath = obj.get('_path').concat(key);
let... |
import {AuthenticationClient} from "auth0";
import * as config from "config";
export default new AuthenticationClient({
domain: config.AUTH0_DOMAIN,
clientId: config.AUTH0_CLIENT_ID
});
|
/**
* @author Eugene Zatepyakin / http://inspirit.ru/
*
*/
(function(global) {
"use strict";
//
var linalg = (function() {
var swap = function(A, i0, i1, t) {
t = A[i0];
A[i0] = A[i1];
A[i1] = t;
}
var hypot = function(a, b) {
a ... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.da');
goog.require('Blockly.Msg');
Blockly.Msg["ADD_COMMENT"] = "Tilføj kommentar";
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Kan ikke slette variablen »%1« da den er en del af definitionen af funktionen »%2«"... |
/*
* Copyright 2011 Twitter, Inc.
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
(function() {
angular.module('app')
.directive('dashboard', dashboard);
function dashboard() {
return {
controller: "dashboardController",
controllerAs: "dashboardVm",
templateUrl: "directives/dashboard.directive.html"
};
}
}()); |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';
import thunk from 'redux-thunk';
import App from './components/App';
import redu... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeOf = require('type-of');
var _typeOf2 = _interopRequireDefault(_typeOf);
var _clone = require('./clone');
var _clone2 = _interopRequireDefault(_clone);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj ... |
module.exports = require('./lib/bitbucket');
|
var DocUtils, ImgManager,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
DocUtils = require('./docUtils');
module.exports = ImgManager = (function() {
var imageExtensions;
imageExtensions = ['gif', 'jpeg', '... |
/**
* Created by ben on 18/01/16.
*/
var SocketIO = require('socket.io');
exports.register = function (server, options, next) {
exports.io = SocketIO(server.select('api').listener);
exports.io.on('connection', function(socket) {
console.log('new socket.io connection');
});
next();
};
expor... |
d3.shuffle = function(array) {
var m = array.length, t, i;
while (m) {
i = Math.random() * m-- | 0;
t = array[m], array[m] = array[i], array[i] = t;
}
return array;
};
|
var config = require('./app/config.js');
const bodyParser = require('body-parser');
const crypto = require('crypto');
const express = require('express');
const fetch = require('node-fetch');
const request = require('request');
const winston = require('winston');
const Wit = require('node-wit').Wit;
const log = requir... |
app.directive('navView', function() {
return {
restrict: 'E',
templateUrl: 'assets/index/tpl/nav-view.html',
replace: true
};
});
app.directive('leftMenu', function() {
return {
restrict: 'E',
templateUrl: 'assets/index/tpl/left-menu.html',
replace: true,
controller: ['$scope', '$locat... |
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import {
HOTP as HOTPNext,
TOTP as TOTPNext,
Authenticator as AuthenticatorNext
} from '@otplib/core';
export function epochUnixToJS(opt = {}) {
if (!opt || typeof opt !== 'object') {
return {};
}
const { epoch, ...others } = opt;
... |
const $ = require("jquery");
const Typeahead = require("../../src/jquery.typeahead");
describe("Typeahead templateValue option Tests", () => {
let myTypeahead;
describe("Typeahead templateValue option Tests - One group have the configuration", () => {
beforeAll(() => {
document.body.innerHTML = '<input ... |
'use strict';
module.exports = function(db, DataTypes) {
var Agent = db.define('Agent', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
allowNull: false,
primaryKey: true
},
email: {
type: DataTypes.STRING,
unique: true,
allowNull: false,
isEmail: t... |
export {default as cloneDeep} from 'clone-deep'
export const isEvent = value =>
isObject(value) && value instanceof Event;
export const isObject = value =>
value instanceof Object;
export const isFunction = value =>
isObject(value) && value instanceof Function;
export const isArray = value =>
isObj... |
module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
return this.addBowerPackageToProject('sifter', '~0.4.1');
return this.addPackageToProject('ember-cli-filter-by-query', '1.0.2');
}
};
|
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
defaultIsVisible={false}
toggleVisibilityKey="ctrl-H"
changePos... |
import { Template } from 'meteor/templating';
import { claimTicket, releaseTicket, markTicketAsMissing, markTicketAsDone }
from '/imports/api/tickets/methods.js';
import './ticket-ta-actions.html';
Template.TicketTAActions.events({
'click .js-claim-ticket'(event) {
event.preventDefault();
claimTicket.ca... |
//~ name c628
alert(c628);
//~ component c629.js
|
// @flow
import React, {Component, PropTypes} from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import defaultStyles from './styles';
import Header from './header';
import Body from './body';
// Typedefs
type Props = {
afterClose?: () => void,
afterOpen?: () => void,
t... |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Format/WCSCapabilities/v1.js
* @requir... |
var mobie = {};
mobie.isScope = function (scope) {
return scope && scope.$apply && scope.$applyAsync;
};
mobie.defaults = function (target, defaults) {
var _defaults = angular.copy(defaults);
if(angular.isObject(target) && angular.isObject(_defaults)) {
return angular.extend(target, _defaults);
}
retu... |
import Check from 'react-icons/lib/md/check'
export default Check
|
(function() {
function Ball( game ) {
var self = this,
width = 10,
height = 10,
velocity = 10,
padding = 10,
upperBound = game.paper.height - padding,
lowerBound = padding,
isFired;
$.extend(self, {
init: function() {
self.reset();
... |
/*jshint -W030 */
import {element, property} from '../src/ceb.js';
describe('ceb.property()', function () {
let sandbox, builder;
beforeEach(() => {
if (sandbox) {
sandbox.parentNode.removeChild(sandbox);
}
document.body.appendChild((sandbox = document.createElement('div')))... |
import { useRouterHistory } from 'react-router';
import { createHashHistory } from 'history';
export default useRouterHistory(createHashHistory)({ queryKey: false });
|
/**
* Module dependencies
*/
var _ = require('lodash'),
async = require('async'),
utils = require('./utils'),
Document = require('./document'),
Query = require('./query'),
ObjectId = require('mongodb').ObjectID,
Errors = require('waterline-errors').adapter;
/**
* Manage A Collection
*
* ... |
'use strict';
var elements = require('../elements');
var $ = require('../$');
/**
* Returns the element's parent node
*
* @name Element#parent
* @method
* @param {HTMLElement} element
* @return {HTMLElement}
*/
/**
* Returns the element's child[number] node
*
* @name Element#child
* @method
* @param {HTM... |
/* globals HTTP */
import UAParser from 'ua-parser-js';
RocketChat.Livechat = {
historyMonitorType: 'url',
logger: new Logger('Livechat', {
sections: {
webhook: 'Webhook'
}
}),
getNextAgent(custinfo, isChatbot) {
if (custinfo.departmentid) {
return Rock... |
$( document ).ready(function() {
// Handler for .ready() called.
function logit(s){
var date = moment();
var msSinceEpoch = date.valueOf();
var strMsSinceEpoch = msSinceEpoch.toString(10);
console.log(strMsSinceEpoch.substring(strMsSinceEpoch.length - 4) + ' ' + s);
}
... |
$( document ).ready( function () {
$( "#formInvolved" ).validate( {
rules: {
make: { required: true, maxlength:30 },
model: { required: true, minlength:2 , maxlength:30 },
type: { minlength:2 , maxlength:30 },
insurance: { required: true, minlength:2 , maxlength:30 },
owner: { require... |
function submitEnabler() {
if (nifValidator() &&
nameValidator() &&
surnameValidator() &&
emailValidator() &&
passChecker() &&
yearValidator()) {
document.getElementById('submit').classList.remove('disabled');
}
}
function styleValidator(id, condition) {
if (condition) {
document.ge... |
angular.module('grandwatch', ['ionic', 'grandwatch.controllers', 'grandwatch.services', 'ngCordova', 'firebase'])
.run(function($ionicPlatform, $cordovaStatusbar, $localstorage) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
... |
"use strict";
const ccxt = require ('../../ccxt')
const asTable = require ('as-table')
const log = require ('ololog')
require ('ansicolor').nice
;(async function test () {
const exchange = new ccxt.bitfinex ()
const limit = 5
const orders = await exchange.fetchOrderBook ('BTC/USD', limit, {
// t... |
var testsRunningInNode = (typeof global !== "undefined" ? true : false),
chakram = (testsRunningInNode ? global.chakram : window.chakram),
expect = (testsRunningInNode ? global.expect : window.expect);
describe("Chakram Assertions", function () {
describe("arrayIncluding()", function () {
it("sho... |
define([], function () {
return {
get: function (url, success, error) {
request = new XMLHttpRequest();
request.open('GET', url, true);
request.onload = function() {
if (request.status >= 200 && request.status < 400){
success(request.re... |
/**
* Created by flybear on 15/11/18.
*/
import React from 'react'
export default class Head extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(){
console.log("---")
}
render() {
return (
... |
'use strict';
const webpack = require('webpack');
const webpackDevServer = require('webpack-dev-server');
const Dashboard = require('webpack-dashboard');
const DashboardPlugin = require('webpack-dashboard/plugin');
function run(config, isDashbaord) {
const devUrls = [
`webpack-dev-server/client... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the ... |
module('Time');
var api = 'second|seconds|millisecond|milliseconds|minutes|minute|hour|hours|day|days'.split('|'),
multipliers = {
second: 1000,
seconds: 1000,
millisecond: 1,
milliseconds: 1,
minute: 60*1000,
minutes: 60*1000,
hour: 60*60*1000,
... |
'use strict';
var HEX_CHARS = '0123456789abcdef'.split('');
var EXTRA = [-2147483648, 8388608, 32768, 128];
var SHIFT = [24, 16, 8, 0];
var K =[0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe,... |
import React from 'react';
// context shared between higher-order and hooks
export default React.createContext();
|
import { createSelector } from 'reselect';
import uniqBy from 'lodash/uniqBy';
const DEFAULT_LANGUAGE = 'EN';
const getCountries = state => state.countries.data;
const getSelected = state => state.document || null;
const getContent = state => state.content || null;
export const getCountry = createSelector(
[getCou... |
function scrollToAnchor(aid){
var aTag = $("section[name='"+ aid +"']");
$('html,body').animate({scrollTop: aTag.offset().top},'slow');
}
|
'use strict';
var gulp = require('gulp');
var chef = require('gulp-chef');
var consolidate = require('gulp-consolidate').bind(null, 'nunjucks');
var configs = {
'#description': 'This is to demo what gulp-chef can achieve, not encourage you write configuration this way.',
src: 'src/',
dest: 'dist/',
'.gulp-cheats... |
var loopback = require('loopback');
var boot = require('loopback-boot');
var client = module.exports = loopback();
boot(client); |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RelayModernFragmentSpecResolver
* @flow
* @format
*/
'use strict';
const invariant = require('invariant');
const i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.