code stringlengths 2 1.05M |
|---|
export default {
"ajs.datepicker.localisations.day-names.sunday": "Dimanĉo",
"ajs.datepicker.localisations.day-names.monday": "Lundo",
"ajs.datepicker.localisations.day-names.tuesday": "Mardo",
"ajs.datepicker.localisations.day-names.wednesday": "Merkredo",
"ajs.datepicker.localisations.day-names.th... |
// FIXME large resolutions lead to too large framebuffers :-(
// FIXME animated shaders! check in redraw
goog.provide('ol.renderer.webgl.TileLayer');
goog.require('ol');
goog.require('ol.Tile');
goog.require('ol.TileRange');
goog.require('ol.array');
goog.require('ol.extent');
goog.require('ol.math');
goog.require('o... |
angular.module('app')
.factory('urlService', ['BACKEND_SERVER_DOMAIN', 'BACKEND_SERVER_PORT',
'BACKEND_SERVER_PROTOCOL', urlService]);
function urlService(BSD, BSPORT, BSPROT){
// if port is a non-empty string then set requestURL as such
if(BSPORT){
var requestURL = BSPROT + '://' + BSD + ':' + BSPORT;
//... |
import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body, route} = this.... |
define(['angular',
'angular-couch-potato',
'angular-ui-router'
], function (ng, couchPotato) {
"use strict";
var module = ng.module('app.system', ['ui.router']);
couchPotato.configureApp(module)
module.config(function ($stateProvider, $couchPotatoProvider) {
$stateProvider
... |
(function() {
'use strict';
module.exports = function(require) {
require.gulp.task('clean-code', function(done) {
var files = [].concat(
require.config.temp + '**/*.js',
require.config.build + 'js/**/*.js',
require.config.build + '**/*.html'
);
clean(files, done);
... |
'use strict';
import React, {
Component
} from 'react';
import {
AlertIOS,
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import Video from '@drivetribe/react-native-video';
class VideoPlayer extends Component {
constructor(props) {
super(props);
this.onLoad = t... |
// Require modules
const check = require('./check')
/**
* The exported checking function.
*
* @param {CheckOptions} options The options for the version check.
* @param {CallbackFunction|undefined} callback An optional callback to pass the result to.
* Can be omitted to... |
var Ball = function (r, px, py, vx, vy, color) {
this.radius = r;
this.mass = r;
this.position = new Point(px, py);
this.velocity = new Vector(vx, vy);
this.color = color || "black";
this.wireframe = false;
};
Ball.prototype.updateBoundingBox = function () {
this.boundingBox =... |
"use strict";
const EventEmitter = require('events');
const http = require('http');
const https = require('https');
const urlLib = require('url');
const toughCookie = require('tough-cookie');
// http://stackoverflow.com/a/19709846/1725509
const absoluteUrlCheck = new RegExp('^(?:[a-z]+:)?//', 'i');
class Request ext... |
// Used to read secrets from the .env file
require('dotenv').config()
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
... |
var config = {
tokenSeparatorHTML: '»',
initialList: 'foods',
lists: {
foods: [
{ value: 'Fruits', children: 'fruits' },
{ value: 'Meats', children: 'meats' },
{ value: 'Vegetables', children: 'vegetables' }
],
fruits: ['Apple', 'Banana', 'Orange'],
meats: ['Beef', 'Chicken... |
var pipeworks = require('pipeworks');
var AppImage = require('./app_image');
var BuildImage = require('./build_image');
var Container = require('../container');
var StepRunner = require('./step_runner');
var config = require('../config/build_container');
var server = require('../config/server');
function Context() {... |
import { LinearFilter, LinearMipmapLinearFilter, LinearMipmapNearestFilter, NearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, UnsignedShortType, UnsignedIntType, UnsignedInt248Type, FloatType, HalfFloatType, MirroredRepeatWrapping, ClampToEdgeW... |
module.exports = {
name: "createInterface",
ns: "readline",
title: "Create Interface",
description: "Creates a readline Interface instance",
phrases: {
active: "Creating interface"
},
ports: {
input: {
input: {
title: "Input Stream",
type: "Stream"
},
output: {
... |
class httpService {
constructor($http, $httpParamSerializerJQLike, stripeConfig) {
this.$http = $http;
this.stripeConfig = stripeConfig;
this.$httpParamSerializerJQLike = $httpParamSerializerJQLike;
}
doRequest(options, callback) {
const configs = this.stripeConfig;
if (options.data) options.... |
app.factory('notificationService', function () {
var notifChangedCB = function (notif) {
};
return {
setNotifChangedCB: function (cb) {
notifChangedCB = cb;
},
setNotif: function(notif) {
notifChangedCB(notif);
}
};
}); |
class Ground {
constructor(y){
this.y = y;
}
show() {
rect(0, this.y, width, height - this.y);
}
} |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
const electron = require('electron')
const ipc = electron.ipcRenderer
const $ = require('jquery')
const gbfs = require('gbfs-client')
const gbfsClient = new gbfs('https://gbfs.citibikenyc.com/gbfs/en/')
const $stationsList = $('.station-list')
const createStationElement = require('./support/create-station-element')
... |
// Create an instance of Meny
var meny = Meny.create({
// The element that will be animated in from off screen
menuElement: document.querySelector( '.meny' ),
// The contents that gets pushed aside while Meny is active
contentsElement: document.querySelector( '.contents' ),
// [optional] The al... |
/**
* ==============================
* Your Javascript Code Goes Here
* ==============================
**/ |
const path = require('path')
const should = require('should/as-function')
const fixtures = require('../../fixtures')
const exiftool = require('../../../src/components/exiftool/parallel')
describe('exiftool', function () {
this.slow(1000)
this.timeout(1000)
it('processes all files', (done) => {
// generate s... |
/* 作者: dailc
* 时间: 2017-06-06
* 描述: Dungeon-Game
*
* 来自: https://leetcode.com/problems/dungeon-game
*/
(function(exports) {
/**
* @description
* @param {number[][]} dungeon
* @return {number}
*/
LeetCode.calculateMinimumHP = function(dungeon) {
var m = dungeon.length,
n = dungeon[0].length;
v... |
"use strict";
angular.module('utility').directive('pageFormatCreation', [
function() {
return {
templateUrl: 'modules/utility/directives/template/default-format.html',
restrict: 'E',
link: function postLink(scope, element, attrs) {
}
};
}
]);
|
(function() {
(function (app, $) {
var d = 1;
function f() { return d; }
app.a = 1;
app.h = function () {
return f() * 2;
};
$(function () {
console.log(d);
});
}(this, jQuery));
(function (elo) {
elo.a = 2;
elo.b = 2;
}(this));
console.log(this);
}.call({})... |
var debug = require('debug')('hoardr:socketio:session-global');
var util = require('util');
exports = module.exports = function(socket, ipc) {
var session = socket.handshake.session;
var updateEvent = 'update:' + session.passport.user;
function publishUpdate(data) {
socket.emit('update', data);
... |
/**
* jquery.stylized-selector.js
* -----------------------------
* @author aganglada
* @since 06/01/2014
* @link https://github.com/aganglada/stylized-selector
* @version 1.0
*
*/
(function ($) {
$.fn.stylizedSelector = function(options) {
// select data-id
var selectCount = 0,
... |
import React, { Component } from "react";
import { PropTypes } from "prop-types";
import SpeechRecognition from "react-speech-recognition";
const propTypes = {
transcript: PropTypes.string,
resetTranscript: PropTypes.func,
browserSupportsSpeechRecognition: PropTypes.bool
};
const options = {
autoStart: false
}... |
var api = require("../../gettyimages-api");
var nock = require("nock");
module.exports = function () {
this.Given(/^a video id$/, function (callback) {
this.ids = ["valid_id"];
callback();
});
this.Given(/^caption field is specified$/, function (callback) {
if (!this.fields) {
... |
import fs from "fs";
import path from "path";
import yaml from "js-yaml";
import { generator } from "../src/index";
jest.mock("commander", () => ({
checkRequired: true,
arguments: jest.fn().mockReturnThis(),
option: jest.fn().mockReturnThis(),
action: jest.fn().mockReturnThis(),
parse: jest.fn().mockReturnTh... |
function fundCtrl($scope, $http, $firebaseObject, $firebaseArray, $firebase, $state, $ionicModal, $ionicSlideBoxDelegate, $ionicScrollDelegate){
$scope.currentPage1 = 0;
$scope.itemPerPage = 5;
//Firebase method
var rootRef = firebase.database().ref();
var arrRef = rootRef.child('agencies');
$scope.agencies... |
'use strict';
const {onEndModify} = require('./../../common/flux/reducers');
const createUIStateStore = require('./../../common/flux/ui-state-store');
const signupStore = {
initialState: {
email: '',
password: ''
}
};
module.exports = createUIStateStore(
'SignupUIStateStore',
['signup'],... |
var util = require ("util");
var net = require ("net");
var tls = require ("tls");
var User = require ("./User.js");
/*
* A special connection for handling the IRC protocol.
* It is responsible for:
* -- Identifying with the server
* -- Handling pings
* -- Message throttling
*
* For information about the ... |
var events = require("events"),
_ = require("underscore"),
logger = require("./logging").getLogger();
function VideoSync() {
this.playing = false;
};
_.extend(VideoSync.prototype, events.EventEmitter.prototype, {
start: function(seekSeconds) {
seekSeconds = seekSeconds || 0;
this.start... |
/**
* Maps the spreadsheet cells into a dataframe, consisting of an array of rows (i.e. a 2d array)
* In many cases we have empty rows or incomplete rows, so you can skip those by including
* the realrowlength parameter - it will skip any rows that don't have this length.
* Alternatively, you can just choose to sk... |
// TEST 1
@Component({
selector: 'standard-module-id',
moduleId: module.id,
templateUrl: 'app.html'
})
export class StandardModuleId {}
// TEST 2
@Component({
selector: 'multiline-module-id',
moduleId:
module.id
,
templateUrl: 'app.html'
})
export class MultilineModuleId {}
// TEST 3
@Component({
... |
// path-utils.js - version 0.1
// Copyright (c) 2011, Kin Blas
// 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 retain the above copyright
/... |
import { combineReducers } from 'redux'
import { reducer as responsive } from 'redux-mediaquery'
import { reducer as form } from 'redux-form'
import sidenav from 'reducers/sidenav.reducer'
import auth from 'reducers/auth.reducer'
import users from 'reducers/users.reducer'
import profile from 'reducers/profile.reducer'... |
// Global rotation variables.
var ROTATION_OBJ = "";
var ROTATION_CURRENT = -1;
var ROTATION_TOTAL = 0;
var ROTATION_PAUSED = false;
$(document).ready(function() {
var opt;
chrome.storage.sync.get('chromeboardPrefs', function (obj) {
ROTATION_OBJ = obj.chromeboardPrefs;
ROTATION_TOTAL = obj.chromeboardPre... |
var options = {name: 'John', age: 33, gender: 'male'},
testString = 'My name is #{name} and I am #{age}-years-old. I am a #{gender}';
// 'My name is #{name} and I am #{age}-years-old'.format(options);
String.prototype.format = function(options) {
var match,
pattern = /#{(\w+)}/g,
resultString =... |
/*
* @require router.js
*/
/************************* Filter *****************************/
|
'use strict';
let passport = require('passport');
let express = require('express');
let router = express.Router();
router.get('/facebook',
passport.authenticate('facebook'));
router.get('/facebook/callback',
passport.authenticate('facebook', { failureRedirect: '/' }),
function(req, res) {
// Succ... |
describe('weekNumbers', function() {
beforeEach(function() {
affix('#cal');
});
describe('when using month view', function() {
describe('when using default weekNumbers', function() {
it('should not display weekNumbers', function() {
$('#cal').njCalendar({
defaultView: 'month'
});
var week... |
this.NesDb = this.NesDb || {};
NesDb[ '445819CCCAAF2C48D1A2864D3CE53DED33839B08' ] = {
"$": {
"name": "Cool World",
"class": "Licensed",
"catalog": "NES-CX-USA",
"publisher": "Ocean",
"developer": "Ocean",
"region": "USA",
"players": "1",
"date": "1993-06"
},
"cartridge": [
{
"$": {
"system... |
// __test__/image_fetcher_test.js
jest.dontMock('../lib/image_fetcher.js');
describe("ImageFetcher#getImage", function() {
it("calls the request method", function() {
var ImageFetcher = require('../lib/image_fetcher.js');
var request = require('request');
var fetcher = new ImageFetcher('http://test.url... |
/**
* @file class类
* @author rauschma
* @link https://github.com/rauschma/class-js
* @module Class
*/
define(function () {
var Class = {
/**
* 扩展class
*
* @class
* @name Class
* @param {Object} properties 扩展对象,必须包含constructor方法
* @return {Function... |
angular.module('app').directive('sortBy', [
function () {
return {
restrict: 'A',
scope: {
sortBy: '=',
reverseModel: '='
},
controller: function ($scope) {
$scope.sortAttributes = {};
$scope.setSortClassWithAttribute = function (attribute) {
var... |
export default function kumarHassebrook(a, b) {
var ii = a.length;
var p = 0;
var p2 = 0;
var q2 = 0;
for (var i = 0; i < ii; i++) {
p += a[i] * b[i];
p2 += a[i] * a[i];
q2 += b[i] * b[i];
}
return p / (p2 + q2 - p);
}
|
define([
'./globalname',
'./extends',
'./core',
'./var/ZEROS'
],function(jHash,classExtends,InnerHash,ZEROS){
var hmac = function (hash) {
var block_size = (new hash()).block_size;
function getDigest(){
var digest = this.innerHash.getDigest();
this.outHash.ad... |
export const starburst = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M19.064 10.109l1.179-2.387c.074-.149.068-.327-.015-.471-.083-.145-.234-.238-.401-.249l-2.656-.172-.172-2.656c-.011-.167-.104-.317-.249-.401-.145-.084-.322-.09-.472-.015l-2.385 1.18-1.477-2.215c-.186-.278-.646-.278-.832 0l-1.477 2... |
/* 所有接口 */
import request from './../service/';
// 测试
/**
* 测试get请求
* @param {Object} sendDatas 向后台发送的参数
* @returns {Object} 返回的数据
*/
const url = 'http://easy-mock.com/mock/5948977d8ac26d795f409ac7/test/test';
export const getTestData = async (sendData) => {
const data = await request({
url: url,
... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('msg-show/pre', 'Integration | Component | msg show/pre', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle ... |
;(function($, hljs) {
'use strict';
$(function () {
$('[data-code]').each(function (idx, el) {
var $el = $(el);
var html = escapeHtml($el.html());
$el.html(html);
hljs.highlightBlock($el[0]);
});
});
function escapeHtml(text) {
var map = {
'&': '&',
'<': '&l... |
/*APP MODULES*/
var appControllers = angular.module('appControllers',[]);
var appServices = angular.module('appServices',[]);
var appDirectives = angular.module('appDirectives',[]);
var appFilters = angular.module('appFilters',[]);
var app = angular.module('project', [
'ngRoute',
'appControllers',
'appServices',... |
import React from 'react';
import { mount } from 'enzyme';
import Switch from '..';
import focusTest from '../../../tests/shared/focusTest';
import { resetWarned } from '../../_util/devWarning';
import mountTest from '../../../tests/shared/mountTest';
import rtlTest from '../../../tests/shared/rtlTest';
describe('Swit... |
/**
* Ventus example
* Copyright © 2012 Ramón Lamana
*/
(function(Ventus) {
document.addEventListener('DOMContentLoaded', function() {
var wm = new Ventus.WindowManager();
// Terminal App.
var terminalWin = wm.createWindow.fromQuery('.terminal-app', {
title: 'Terminal',
classname: 'terminal-window',
... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {Link} from 'react-router-dom'
import {imgUrl} from '../util'
class Banner extends Component {
static propTypes = {
top_stories: PropTypes.array
}
constructor(props) {
super(props);
this.renderBanne... |
// WARNING: Make sure to mirror any changes in index_production.js
import { AppContainer } from 'react-hot-loader'
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
// To facilitate the temporary "auth"
import jsCookie from 'js-cookie'
window.jsCookie = jsCookie
const rootEl = documen... |
/* jshint browser: true, curly: true, eqeqeq: true, forin: true, latedef: true,
newcap: true, noarg: true, noempty: true, nonew: true, strict:true,
undef: true, unused: true */
(function(App) {
'use strict';
var Components = App.Components || (App.Components = {});
Components.DomInsertMode =... |
'use strict';
const chai = require('chai'),
sinon = require('sinon'),
expect = chai.expect,
Support = require('../support'),
dialect = Support.getTestDialect();
describe(Support.getTestDialectTeaser('Sequelize'), () => {
describe('log', () => {
beforeEach(function() {
this.spy = sinon.spy(console,... |
var async = require('async')
, underscore = require('underscore');
/**
* After creating any "SourceModel" that has a valid "hasMany" association with any other "TargetModel",
* automatically create the relating model/s if we haven't been specifically disabled.
*
* @todo this doesn't cater for when ... |
var semver = require('semver');
var which = require('which');
var fs = require('fs');
var path = require('path');
var Q = require('q');
var execFile = require('child_process').execFile;
var Project = require('../core/Project');
var cli = require('bower-utils').cli;
var defaultConfig = require('../config');
var createEr... |
// Simulate config options from your production environment by
// customising the .env file in your project's root folder.
// require('dotenv').load();
// Require keystone
var keystone = require('keystone');
// Initialise Keystone with your project's configuration.
// See http://keystonejs.com/guide/config for availa... |
let assert = require("assert");
let Card = require("../lib/Card");
let Pair = require("../lib/Pair");
let Deck = require("../lib/Deck");
let deckGenerator = require("../lib/deckGenerator");
let debug = require('debug')('deckGeneratorTest');
describe('deckGenerator()', () => {
it(`should return a function when calle... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
/**
* echarts组件类: 坐标轴
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, linzhifeng@baidu.com)
*
* 直角坐标系中坐标轴数组,数组中每一项代表一条横轴(纵轴)坐标轴。
* 标准(1.0)中规定最多同时存在2条横轴和2条纵轴
* 单条横轴时可指定安放于grid的底部(默认)或顶部,2条同时存在时则默认第一条安放于底部,第二天安放于顶部
* 单条纵轴时可指定安放于grid的左侧(默认)或右侧,2条同时存在时则默认第一条安放于... |
const _ = require('underscore')
const mango = require('../mango')
const clientMango = (q) => ({
selector: {
_id: {
$gt: null
},
last_name: {
$regex: `(?i)^(${q})`
}
}
})
const searchClient = (req, res) =>
mango('clients', clientMango(req.query.q))
.then((clients) => res.json(_(clie... |
/*
* jQuery timepicker addon
* By: Trent Richardson [http://trentrichardson.com]
* Version 0.7
* Last Modified: 10/7/2010
*
* Copyright 2010 Trent Richardson
* Dual licensed under the MIT and GPL licenses.
* http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
* http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
*
... |
import MessageBoxLayout2 from './FunctionalLayout/MessageBoxFunctionalLayout';
export default MessageBoxLayout2;
|
/**
* @license
*
* Bring
* loads data with several options (cache, callback, progress bar ...)
* @author idomusha / https://github.com/idomusha
*
* Dependencies:
* - NProgress [OPTIONAL]
*/
(function(window, $) {
var s;
var Bring = {
defaults: {
// processing status
ready: true,
... |
// console.log("jo");
import CollectionDecrypted from './clients/collection-decrypted.js'
import Blubb from './clients/blubb.js'
var func = (...test) => {
console.log(test);
}
func("dada","blubb");
new Blubb();
|
import _ from 'underscore';
const ROLES = {
admin: 1,
member: 2,
};
const ROLES_BY_VALUE = _.invert(ROLES);
/**
* Return true if member is the passed role
*
* @param {Member} member
* @param {String} role
* @returns {Boolean}
*/
export function isRole(user, role) {
return user.role === ROLES[role];
}
/*... |
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPat... |
const { task, series, parallel, src, dest, watch } = require('gulp');
const browserify = require('browserify');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');
const header = require('gulp-header');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
cons... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = preserveLineNumbers;
var _jsdocRegex = _interopRequireDefault(require("jsdoc-regex"));
var _countCharInRange = _interopRequireDefault(require("./countCharInRange"));
var _stripWhitespace = _interopRequireDefault(requ... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
// polyfill String.prototype
if (typeof String.prototype.startsWith != 'function') {
String.prototype.startsWith = function (str) {
return this.slice(0, str.length) === str;
};
}
if (typeof String.prototype.endsWith != 'function') {
String.prototype.endsWith = function (str) {
return this.slice(-str.len... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactNodeList, Wakeable} from 'shared/ReactTypes';
import type {Fiber} from './ReactInternalTypes';
impor... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Dispatcher as DispatcherType} from 'react-reconciler/src/ReactInternalTypes';
import type {
Destination... |
/**
* 从原dialog迁过来,做了模块化封装
* 功能比较成熟了,代码不做大的改动
* 图片引入路径改成本地,工程化管理
*/
'use strict';
var imageLoader = require('imageLoader');
var images = [
__uri("i-loading.gif"),
__uri("loading_2.gif")
];
//图片预加载
imageLoader(images);
var d = {};
var docElem = document.documentElement,
timeoutId = 0,
dvWall = null,
dvWrap... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('fd-uml-diagram-toolbars/fd-std-toolbar', 'Integration | Component | fd uml diagram toolbars/fd std toolbar', {
integration: true
});
test('it renders', function(assert) {
// Set any properties... |
var gulp = require('gulp');
//服务器,开发
var devServer = require('./gulp/dev/server.dev.js');
gulp.task('connect', devServer);
//更新所有less文件 开发
var devLess = require('./gulp/dev/less.dev.js');
gulp.task('changeLessDev', devLess);
//js合并,开发
var devJs = require('./gulp/dev/js.dev.js');
gulp.task('changeJsDev', devJs);... |
const array = [];
const characterCodeCache = [];
export default function leven(first, second) {
if (first === second) {
return 0;
}
const swap = first;
// Swapping the strings if `a` is longer than `b` so we know which one is the
// shortest & which one is the longest
if (first.length > second.length) {
fi... |
//Constants
var Windows = { "main" : 0, "sprites" : 1 };
var positions = ["C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "P"];
var teamVariables = ["city", "teamName", "teamShortName", "league", "stadiumName", "stadiumFile", "stadiumLocation", "teamLogoX",
"teamLogoY", "stadiumLogoX", "stadiumLogoY", "managerFirstNa... |
'use strict';
const expect = require('chai').expect;
const testQuarkTo = require('./testAtomicQuarkTo');
const testQuarkIs = require('./testAtomicQuarkIs');
const testQuarkIsIn = (testName, element, list, valueToTest) => {
it('testando: '+element, () => {
let validated = require('./../'+testName+'/'+testNam... |
import {
SIGN_UP_SUCCESS,
SIGNING_UP,
SIGN_UP_FAILURE,
} from '../actions/types';
const initialState = {};
const signUp = (state = initialState, action) => {
switch (action.type) {
case SIGN_UP_FAILURE:
return {
...state,
isSigningUp: false,
user: null,
};
case SIG... |
// To make use of this class instantiate a new instance and pass in an array with an element id at index 0,
// optionally pass the interval time in milliseconds to index 1 in the array. After the array pass the words you
// you want to use as individual arguments. Then call the runInfinitely() or runOnce() method on th... |
'use strict';
const path = require('path');
// Register TS compilation.
require('ts-node').register({
project: path.join(__dirname, 'tools/gulp/tsconfig.json')
});
require('./tools/gulp/gulpfile');
|
'use strict';
exports.__esModule = true;
exports.load = load;
exports.preload = preload;
var _auth0Js = require('auth0-js');
var _auth0Js2 = _interopRequireDefault(_auth0Js);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
if (!global.Auth0) {
global.Auth0 = {};
}
... |
define(["jquery", "modules"], function ($, modules) {
var url = modules.config.apiURL + "Message/All?teamWorkId=";
function run(id) {
//modules.request.get(url + id)
//.then(function (requestData) {
// $("#single-message").loadTemplate([requestData]);
//}, function () {
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _express = require('express');
var _express2 = _interopRequireDefault(_express);
var router = _express2['default'].Router();
router.g... |
var chai = require('chai'),
assert = chai.assert,
client = require('./client').client;
chai.Assertion.includeStack = true;
describe('Workplane', function() {
before(function(done) {
this.timeout(5000);
client.initDesign(done);
});
beforeEach(function(done) {
t... |
const fs = require("fs");
const path = require("path");
const test262Parser = require("test262-parser");
const glob = require("glob").sync;
const test262Root = path.join(__dirname, "..", "deps", "test262");
const harnessDir = path.join(test262Root, "harness");
const root = path.join(test262Root, "test");
const dst = p... |
/**
* 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 ReactChildFiber
* @flow
*/
'use strict';
import type {ReactElement} from 'ReactElementType';
import type {ReactCoro... |
version https://git-lfs.github.com/spec/v1
oid sha256:af7485c245bb889f84d304fe8621a1e0523f92f9f3223a767a8a02ac3a33e637
size 4665
|
angular.module("exambazaar").controller("addBotCredentialController",
[ '$scope', 'botCredentialList', 'examList','botCredentialService','$http','$state', 'Notification', '$cookies', function($scope, botCredentialList, examList, botCredentialService, $http, $state, Notification, $cookies){
$scope.botCredentials = bot... |
var rc = require('rhoconnect_helpers');
var <%=class_name%> = function(){
this.login = function(resp){
// TODO: Login to your data source here if necessary
resp.send(true);
};
this.query = function(resp){
var result = {};
// TODO: Query your backend data source and assign the records
// to ... |
$(function () {
//Preloader Images.
var images = [];
var urls = [];
var lengthIndex;
function preloadImages(array) {
if (!preloadImages.list) {
preloadImages.list = [];
}
var list = preloadImages.list;
for (var i = 0; i < array.length; i++) {
v... |
$(function () {
var FLYBY_DURATION = 3000;
var FLYBY_DELAY = FLYBY_DURATION;
var images = _.shuffle([
{label: 'Long Tail', src: 'images/blackswan.png'},
{label: 'Lean Thinking', src: 'images/lean-startup.jpeg'},
{label: 'System Thinking', src: 'images/system-thinking.jpg'},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.