code stringlengths 2 1.05M |
|---|
var searchData=
[
['data_5fsize',['data_size',['../dc/dbb/ncd__global_8h.html#a0d8f9410fcc25a1c0a11554fa1d75358',1,'ncd_global.h']]],
['destip',['destip',['../df/dfe/ncd_8c.html#aa41cf2785d688ec1e35c38a45f66c3bf',1,'destip(): ncd.c'],['../dc/dbb/ncd__global_8h.html#aa41cf2785d688ec1e35c38a45f66c3bf',1,'destip(... |
'use strict';
const fs = require('fs');
const path = require('path');
const request = require('supertest')('');
const fileName = path.join(__dirname, 'fixtures', 'lorem.jpg');
const fileBase = path.basename(fileName);
const fileContent = fs.readFileSync(fileName);
const file = TEST.... |
Ext.define('AppExt.view.main.MainController', {
extend : 'Ext.app.ViewController',
alias : 'controller.mainviewcontroller',
onAdd : function () {
var cmp = this.lookupReference('carousel');
cmp.add({
xtype : 'image',
src : 'resources/photos/Animals/' + Math.flo... |
var gulp = require('gulp');
var gutil = require('gulp-util');
var gulpif = require('gulp-if');
var autoprefixer = require('gulp-autoprefixer');
var cssmin = require('gulp-cssmin');
var concat = require('gulp-concat');
var plumber = require('gulp-plumber');
var buffer = require('vinyl-buffer');
var source = require('vin... |
var assert = require('assert');
var async = require('async');
var params = {
"hostname":"localhost",
"port":27017,
"username":"",
"password":"",
"name":"",
"db":"isi"
};
function Db (name) {
var db = params.db;
if (typeof name !== 'undefined') {
db = 'isi_' + name;
}
this.mongodb = require('mo... |
const path = require('path');
const MinifyPlugin = require("babel-minify-webpack-plugin");
module.exports = {
entry: [
// Set up an ES6-ish environment
'babel-polyfill',
// Add your application's scripts below
'./client/index.js',
],
devtool: 'source-map',
output: {
filename: 'bo-client.js'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = teamaccessLogs;
var _exec = require('./_exec');
var _exec2 = _interopRequireDefault(_exec);
var _validate = require('./_validate');
var _validate2 = _interopRequireDefault(_validate);
function _interopRequireDefault(o... |
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2014, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($, window, document, undefined) {
'use strict';
var header_helpers = function (class_array) {
var i = class_array.... |
import assert from "assert";
import reciprocal from "../../../src/scapi/operators/reciprocal";
import createNode from "../../../src/scapi/utils/createNode";
import isSCNode from "../../../src/scapi/utils/isSCNode";
describe("scapi/operators/reciprocal(a)", () => {
it("numeric", () => {
const a = 10;
const no... |
/*
Copyright 2014, KISSY v1.49
MIT Licensed
build time: May 22 12:19
*/
KISSY.add("editor/plugin/checkbox-source-area",["editor"],function(b,f){function c(a){this.editor=a;this._init()}function d(){}var e=f("editor"),g=b.Node,h=e.Mode.SOURCE_MODE,i=e.Mode.WYSIWYG_MODE;b.augment(c,{_init:function(){var a=this.editor,b=a... |
var customEquals = [];
beforeEach(function() {
customEquals.forEach(function(customEqual) {
jasmine.addCustomEqualityTester(customEqual);
});
}); |
angular.module('app', [])
// Module loading
// --------------
.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
'use strict';
var DEFAULT_PATH = "/";
$routeProvider.when('/', {
templateUrl: '/javascripts/tmpl/home.html',
controller : 'homeCtrl',
... |
module.exports = {
entry: "./test/digit-classification-test.ts",
output: {
filename: "./dist/test/digit-classification-test.js",
},
// Enable sourcemaps for debugging webpack's output.
devtool: "source-map",
resolve: {
// Add '.ts' and '.tsx' as resolvable extensions.... |
/* globals angular */
angular.module('formula').factory('formulaJsonLoader', ['$http', '$q', 'formulaLog',
function($http, $q, log) {
'use strict';
var jsonLoader;
return (jsonLoader = function(uri, jsonp, rerun) {
var deferred = $q.defer();
if (typeof uri !== 'string') { // uri is not uri b... |
import { FieldTypes } from './datastores/field_types.js';
import { TestAgentOSLookup } from './test_agents/test_agent_os.js';
import { Nodes } from './nodes/nodes.js';
import { NodeTypes } from './nodes/node_types.js';
import { TestCaseStepTypes } from './test_cases/test_case_step_types.js';
/**
* Utility functions
... |
window._ = require('lodash');
window.Vue = require('vue');
if (!window.Promise) {
window.Promise = require('es6-promise').Promise;
}
try {
window.$ = window.jQuery = require('jquery');
//require('bootstrap-sass');
} catch (e) {}
import axios from 'axios';
import VueAxios from 'vue-axios';
import VueRoute... |
const Joi = require('joi')
module.exports = {
register (req, res, next){
const schema = {
email: Joi.string().email(),
password: Joi.string().regex(
new RegExp('^[a-zA-Z0-9]{8,32}$')
)
}
const {error, value} = Joi.validate(req.body, schem... |
(function() {
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
/**
* This file defines an asynchronous version of the localStorage API, backed by
* an IndexedDB database. It creates a global... |
/* Polyfill for RequestAnimationFrame */
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame = window[ve... |
/**
* Directory Class
* Author: Patricio Ferreira
**/
var fs = require('fs'),
path = require('path'),
Backbone = require('backbone'),
_ = require('underscore');
var Directory = Backbone.Base.extend({
initialize: function() { },
walk: function(dir, exclude) {
exclude || (ex... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp",
"da",
{
title: "Tilgængelighedsinstrukser",
contents: "Onlinehjælp. For at lukke dette vindue klik ESC",
... |
function DestroyerWithCoinSoundEffect(game, config) { this.config = config || GameConfig;
this.game = game;
this.column = 0;
this.row = 0;
this.width = this.game.width / this.config.numberOfColumns;
this.height = this.game.height / this.config.numberOfRows;
}
DestroyerWithCoinSoundEffect.prototyp... |
const { assert, skip, test, module: describe, only } = require('qunit');
const { GPU } = require('../../../../../../src');
describe('feature: to-string unsigned precision arguments Array(2)');
function testArgument(mode, context, canvas) {
const gpu = new GPU({ mode });
const originalKernel = gpu.createKernel(fun... |
/*!
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@webex/test-helper-chai';
import sinon from 'sinon';
import {nodeOnly, browserOnly} from '@webex/test-helper-mocha';
import lolex from 'lolex';
import MockWebex from '@webex/test-helper-mock-webex';
import {Token} from '@web... |
/*jslint white:true, nomen: true, plusplus: true */
/*global mx, define, require, browser, devel, console, btoa, alert, document, CustomEvent */
/*mendix */
/*
FolderList
========================
@file : FolderList.js
@version : 1.0.0.0
@author : Denis Vuyka
@date : Mon, 20 Apr 2... |
'use babel'
import Html2JsView from './html2js-view'
import html2js from './html-2-js'
import { CompositeDisposable } from 'atom'
export default {
html2JsView: null,
modalPanel: null,
subscriptions: null,
activate (state) {
this.subscriptions = new CompositeDisposable()
let grammar = atom.grammars.... |
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profi... |
const errors = require('@feathersjs/errors');
const debug = require('debug')('@feathersjs/transport-commons');
const paramsPositions = exports.paramsPositions = {
find: 0,
get: 1,
remove: 1,
create: 1,
update: 2,
patch: 2
};
const normalizeError = exports.normalizeError = function (e) {
const hasToJSON ... |
module.exports = {
readParties : readParties
}
function readParties(connection, res)
{
// --- send DB request and wait for resolve before sending reply ---
var promise = readPartiesDB(connection);
promise.then( returnParties );
function returnParties(parties)
{
console.log("return par... |
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://... |
import { markdownDocumentationLinkBuilder } from '../../storybook-utilities/markdownDocumentationLinkBuilder';
export default {
title: 'Components/Promo',
decorators: [(story) => `<div class="sprk-o-Box">${story()}</div>`],
parameters: {
info: `
${markdownDocumentationLinkBuilder('promo')}
`,
docs: {... |
module.exports = function(config){
config.set({
basePath : './',
files : [
'../../node_modules/angular/angular.js',
'../../node_modules/angular-route/angular-route.js',
'../../node_modules/angular-mocks/angular-mocks.js',
'../../public/js/**/*.js',
'./**/*.js'
],
autoW... |
'use strict';
const ResourceLock = require('../../../../lib/dialects/mssql/resource-lock'),
Promise = require('../../../../lib/promise'),
assert = require('assert');
describe('[MSSQL Specific] ResourceLock', () => {
it('should process requests serially', () => {
const expected = {};
const lock = new Res... |
// confirmed working on node v4.2.6 & npm v3.7.2
// if you are still having issues, you may need to install browserify gloablly.
var fs = require('fs');
// less
var gulp = require('gulp');
var less = require('gulp-less');
var autoprefixer = require('gulp-autoprefixer');
var cssnano = require('gulp-cssnano');
var noti... |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:vote', 'Unit | Route | vote', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
|
var $, now;
$(document).ready(function () {
var input = $('#input')
, button = $('#button');
input.bind('keypress', function (e) {
if (e.keyCode === 13) {
button.click();
e.preventDefault();
return false;
}
});
button.click(function (e) {
var module = escape($.trim(input.val()... |
/**
* Hilo
* Copyright 2015 alibaba.com
* Licensed under the MIT License
*/
/**
* @class EventMixin是一个包含事件相关功能的mixin。可以通过 Class.mix(target, EventMixin) 来为target增加事件功能。
* @static
* @mixin
* @module hilo/event/EventMixin
* @requires hilo/core/Class
*/
var EventMixin = /** @lends EventMixin# */{
_listeners:... |
import { Menu } from "electron";
import darwinMenuBuilder from "./darwin";
import windowsMenuBuilder from "./windows";
import { isDev, isDebugProd } from "../../utils/env.util";
import { isMacOS } from "../../utils/platform.util";
class MenuBuilder {
constructor() {
this.menu = null;
this.template = null;
... |
import DomainResourceSerializer from 'ember-fhir/serializers/domain-resource';
export default DomainResourceSerializer.extend({
attrs: {
identifier: { embedded: 'always' },
category: { embedded: 'always' },
patient: { embedded: 'always' },
author: { embedded: 'always' },
implicated: { embedded: '... |
// @flow
import update from 'react-addons-update'
import type {Action} from '../../types/actions'
import type {StatusState} from '../../types/reducers'
export const defaultState = {
message: null,
modal: null,
appInfo: null,
applicationJobs: [],
applicationRequests: [],
jobMonitor: {
timer: null,
... |
/*
* Copyright 2015 Google Inc. 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
import { createApp } from './main'
// ENV Variables
require('dotenv').config()
global.fetch = require('node-fetch')
const isDev = process.env.NODE_ENV !== 'production'
// This exported function will be called by `bundleRenderer`.
// This is where we perform data-prefetching to determine the
// state of our applicat... |
angular
.module('app')
.component('fountainTitle', {
templateUrl: 'app/layout/title/title.html'
});
|
/**
* Created by shuc on 16/5/27.
*/
"use strict";
export default class {
// 依赖
static dependencies = {};
register = () => {
};
resolve = () => {};
} |
import * as main from '../src/main';
const {
isTrue,
isFalse,
OPTION_KEYS,
printException,
collectUrlParams,
formatUrl,
openImages,
updateOptions,
setStyle,
getImageFilenameByUrl,
downloadImage,
onOriginalButtonClick,
getButtonSetter,
ButtonSetter,
ButtonSetterTweetDeck,
} = main;
const t... |
/**
* Day 16
* Gesture unlock
* https://github.com/spikef/react-native-gesture-password
*/
'use strict';
import React,{Component,StatusBarIOS,Image,StyleSheet,Text,View} from 'react-native';
import Util from './utils';
import PasswordGesture from 'react-native-gesture-password';
export class EnterPassword extends... |
describe("A binder", function() {
var binder;
var viewModel;
var actual;
var flag;
beforeEach(function() {
flag = false;
binder = new datamagic.Binder();
});
it("must reflect the value of a view model with only one observable", function(){
viewModel = {
... |
'use strict';
/* App Module */
var phonecatApp = angular.module('phonecatApp', [
'ngRoute',
'phonecatControllers'
]);
phonecatApp.config(['$routeProvider',
function ($routeProvider) {
$routeProvider.
when('/phones', {
templateUrl: 'partials/phone-list.html',
... |
'use strict';
var path = require('path');
var cssmin = require('cssmin');
var jsmin = require('jsmin2');
function htmlminify(str, options) {
options || (options = {});
str = str
.replace(/(\n|\r)/g, "") //del \n
.replace(/>([\x20\t]+)</g, "><") //del blank & tab
.replace(/^\s+|\s+$/g, "") // trim blank
if(o... |
lychee.define('game.Main').requires([
'lychee.Input',
'lychee.Viewport',
'game.Graph',
'game.Renderer',
'game.state.Game',
'game.DeviceSpecificHacks'
]).includes([
'lychee.game.Main'
]).exports(function(lychee, global) {
var Class = function(settings) {
lychee.game.Main.call(this, settings);
this.__offs... |
var gulp = require('gulp'),
gutil = require('gulp-util'),
jshint = require('gulp-jshint'),
browserify = require('browserify'),
concat = require('gulp-concat'),
clean = require('gulp-clean'),
embedlr = require('gulp-embedlr'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
inject... |
/**
*
* ProjectName:blogme
* Description:
* Created by qimuyunduan on 16/4/13 .
* Revise person:qimuyunduan
* Revise Time:16/4/13 下午3:26
* @version
*
*/
var _ = require('lodash'),
Promise = require('bluebird'),
errors = require('../errors'),
utils = require('../utils'),
... |
// Compiled by ClojureScript 0.0-2138
goog.provide('cljs.core.async.impl.channels');
goog.require('cljs.core');
goog.require('cljs.core.async.impl.buffers');
goog.require('cljs.core.async.impl.buffers');
goog.require('cljs.core.async.impl.dispatch');
goog.require('cljs.core.async.impl.dispatch');
goog.require('cljs.cor... |
module.exports = {
path: 'Scatter',
getComponent(nextState, cb) {
require.ensure([], (require) => {
cb(null, require('./components/Scatter'));
});
}
};
|
import {EntityManager} from '../src/entity-manager';
import {Repository} from '../src/repository';
import {Entity} from '../src/entity';
import {WithResource} from './resources/entity/with-resource';
import {WithAssociations} from './resources/entity/with-associations';
import {WithCustomRepository} from './resources/e... |
const express = require('express');
const path = require('path');
const router = express.Router();
router.use(function (request, response, next) {
if (request.headers['x-auth']) {
next();
} else {
next('router');
}
});
router.get('/', function (request, response) {
response.render(pat... |
import {assert} from 'chai'
import {withAction} from '../src/action'
import {addDestination, MemoryLogger} from '../src/output'
import {BoundField,
Field,
fields,
ValidationError,
_MessageSerializer,
MessageType,
ActionType} from '../src/validation'
const greaterThanTe... |
var locastyle = locastyle || {};
locastyle.modal = (function() {
'use strict';
var config = {
open: {
trigger: '[data-ls-module="modal"]',
triggerOpened: 'modal:opened'
},
close: {
classes: '.ls-modal',
trigger: '[data-dismiss="modal"]',
triggerClosed: 'modal:closed'
}... |
import * as types from './types'
import ReactNative from 'react-native'
const { NavigationExperimental } = ReactNative
const { jumpToIndex } = NavigationExperimental.StateUtils;
export function setTab(tabIndex) {
return (dispatch, getState) => {
const { tabs } = getState()
dispatch(Object.assign({ type: typ... |
/**
* @preserve Copyright (c) 2014 Anselm Meyn
*
* 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
* to use, copy, modify, me... |
'use strict';
const _ = require('lodash');
const colors = require('colors');
const LED = require('../util/LED');
const config = require('../config');
const Player = require('./lib/play');
const Timer = require('../util/timer');
const timeStr = require('./lib/timeStr');
const ledAlias = require('../util/LED/LEDAlias')... |
'use strict';
betaAdsApp.filter('status', function() {
return function(input) {
switch (input) {
case 0:
return 'published';
case 1:
return 'waitingapproval';
case 2:
return 'inactive';
case 3:
r... |
exports.BattleFormatsData = {
bulbasaur: {
viableMoves: {"sleeppowder":1,"gigadrain":1,"hiddenpowerfire":1,"hiddenpowerice":1,"sludgebomb":1,"powerwhip":1,"leechseed":1,"synthesis":1},
eventPokemon: [
{"generation":3,"level":70,"moves":["sweetscent","growth","solarbeam","synthesis"]},
{"generation":3,"level"... |
var mongoose = require('mongoose');
// Schema setup
var tagSchema = new mongoose.Schema({
tag: {
type: String,
required: [true, 'Tag is required'],
unique: true
},
searchNumber: {
type: Number,
default: 0
},
previousData: [
{
date: {type: Date, default: Date.now()}... |
var Tccc;
(function (Tccc) {
var Event = /** @class */ (function () {
function Event(serverObj) {
this.lastRawDate = null;
this.isSaving = false;
if (serverObj) {
angular.copy(serverObj, this);
}
}
Object.defineProperty(Event.pr... |
Gaurko.auth = {
user: Em.Object.extend({
token: '',
username: '',
name: '',
_img: '',
img: function () {
return this.get('_img').replace('_normal','')
}.property('_img')
}),
init: function(controller) {
if (Gaurko.meta.token.content && Gaurko.meta.user.content) {
controller... |
import { GET_LIST, GET_ONE, CREATE, UPDATE } from './dataFetchActions';
const DUMMY_RESPONSE = {
id: 36,
title: 'Changed!',
};
const dummyDataProvider = props => {
const { variant, params = {} } = props;
switch (variant) {
case GET_ONE:
case GET_LIST:
return new Promise(resolve => {
setT... |
it("error when lockfile is outdated/invalid", () => {
expect(() => {
require("http://localhost:9990/index.css?cache");
}).toThrowError();
expect(() => {
require("http://localhost:9990/index.css?no-cache");
}).toThrowError();
expect(() => {
require("http://localhost:9990/index.css");
}).toThrowError();
expe... |
const { join } = require('path');
const webpack = require('webpack');
const nodeExternals = require('webpack-node-externals');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const env = process.env.NODE_ENV;
const isProduction = typeof env !== 'undefined' && env === 'production';
const mode = isProduction... |
// Plain Timbit
// Load the timbits module
var timbits = require('../../lib/timbits');
// create and export the timbit
var timbit = module.exports = new timbits.Timbit();
// additional timbit implementation code follows...
timbit.about = '\
Example of the simplest timbit that could possibly be created.\
This timb... |
//class extend function
function extend(Child, Parent) {
var F = function(){};
F.prototype = Parent.prototype;
Child.prototype = new F();
Child.prototype.constructor = Child;
Child.uber = Parent.prototype;
}
//r.path function
function pathML(a,b,c,d){
c = c || '';
d = d || '';
var ml = ... |
import { isArray, tail, castArray } from 'lodash';
function CommandsAndQueries({ defaultType }) {
return {
queries: {
atStartOf(editor, node) {
const { selection } = editor.value;
return selection.isCollapsed && selection.start.isAtStartOfNode(node);
},
getAncestor(editor, first... |
require.config({
paths: {
//'jquery': baseUrl+'/common/jquery/jquery',
'underscore': '../../common/underscore/underscore-min', // AMD support
'backbone': '../../common/backbone/backbone-min', // AMD support
'bootstrap': '../../common/bootstrap/dist/js/bootstrap.min',
"text": '../../commo... |
import knex from 'knex'
import {generate as shortId} from 'shortid'
import {defaultsDeep as defaults, get} from 'lodash'
import {DocumentNotFoundError, DatabaseError} from './errors'
const DEFAULT_OPTIONS = {
db: {
client: 'sqlite3',
connection: {
filename: './jasql.sqlite'
}
},
tableName: 'JAS... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
StyleSheet,
TextInput,
Text,
View,
Modal,
Button,
Platform,
Alert,
Image,
TouchableOpacity,
SafeAreaView
} from 'react-native';
import fs from 'react-native-fs';
import ModalHeader from '../components/ModalHe... |
(function () {
angular.module('app')
.controller('ErrorDialogController', ErrorDialogController);
/* @ngInject */
function ErrorDialogController($mdDialog, error) {
var vm = this;
//#region Bindable Members
vm.ok = ok;
vm.message = error.message;
vm.detail... |
'use strict';
/* global before, after */
var partDir = '../../../../../scripts/partitioner/sql',
constants = require(partDir + '/constants'),
partUtils = require('../utils'),
UserRoles = require(partDir + '/user/user-roles'),
Users = require(partDir + '/user/users'),
utils = require(partDir + '/../../utils'... |
// Generated by CoffeeScript 1.9.1
(function() {
var SL,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.p... |
var drawingManager;
var selectedShape;
var gmap;
var shapes = [];
$(document).ready(initialize);
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(25.039059, 121.517647),
zoom: 17,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
gmap = new google.maps.Map(docume... |
(function() {
spsupport.p = {
sfDomain: superfish.b.pluginDomain,
sfDomain_: superfish.b.pluginDomain,
imgPath: (superfish.b.sm ? superfish.b.pluginDomain.replace("http:","https:") : superfish.b.pluginDomain.replace("https","http")) + "images/",
cdnUrl: superfish.b.cdnUrl,
... |
/**
* Created by adrianhitulescu on 10/10/15.
*/
Meteor.startup(function() {
if (Bookings.find().count()) {
return;
}
Bookings.insert({
customer: 'aaaaaaaaaaaaaaaaa',
customerName: 'John Doe',
transaction: '101',
transactionDate: new Date(),
amount: 1000,
... |
export const ic_flip = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v... |
/**
* iteration
*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var iterate = function iterate(left, right) {
return function () {
for (var _len = arguments.length, y = Array(_len), _key = 0; _key < _len; _key++) {
y[_key] = arguments[_key];
}
... |
/* globals console*/
"use strict";
function ThirdDigit(number) {
var thirdDigit = ((number / 100) % 10) | 0;
if (thirdDigit === 7) {
console.log("true");
}
else {
console.log("false " + thirdDigit);
}
} |
const fs = require('fs-extra')
const webpack = require('webpack')
const debug = require('debug')('app:bin:compile')
const webpackConfig = require('../config/webpack.config')
const project = require('../config/project.config')
const webpackCompiler = webpackConfig =>
new Promise((resolve, reject) => {
const compi... |
const Nodehun = require('bindings')('Nodehun')
const dictionaries = require('./dictionaries')
const nodehun = new Nodehun(dictionaries.en_US.affix, dictionaries.en_US.dictionary)
/**
* Async : using the promise
*/
nodehun
.suggest('color')
.then(suggestions => {
console.log(suggestions) // => null... |
Sparks.input_watcher = function input_watcher(options) {
if(Sparks.is_dom(options))
options = {input:options};
options = options || {};
var that = Sparks.delayed(options.duration, that, "check");
that.input = options.input;
that.minimum_length = options.minimum_length;
that.minimum_delay = options.minimum_dela... |
/*global Moovie, screenfull */
describe('Moovie Test Suite', function () {
'use strict';
it('provides native fullscreen support', function () {
var div = new Element('div');
expect(div.requestFullscreen).toBeA('function');
expect(document.exitFullscreen).toBeA('function');... |
NANO.Events = function () {
return this;
};
NANO.Events.prototype = {
constructor: NANO.Events,
resize: function (f) {
resolution = new BLOK.Vector2(window.innerWidth, window.innerHeight);
f(resolution);
},
set: function () {
},
trigger: function () {
}
};
|
version https://git-lfs.github.com/spec/v1
oid sha256:b4065e99563c076d9e982500c92174dcbdbb3d0eb951fe3ad528b9eab4afb8a7
size 34953
|
'use strict';
var _ = require('lodash');
var Budget = require('./budget.model');
// Get list of budgets
exports.index = function(req, res) {
Budget.find(function (err, budgets) {
if(err) { return handleError(res, err); }
return res.json(200, budgets);
});
};
// Get a single budget
exports.show = function... |
'use strict';
//IS NOT USED CURRENTLY
export const LINK = 'a';
export const TEXTINPUT = 'text';
export const TEXTAREA = 'textarea'; |
/**
* 上传文件工具
*/
const inspect = require('util').inspect;
const fs = require('fs');
const path = require('path');
const Busboy = require('busboy');
const console = require('tracer').colorConsole(); // 增强console
/**
* 同步创建文件目录
* @param dirname 目录绝对地址
* @return {boolean} 创建目录结果
*/
function mkdirsSync(dirname) {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:cad45abd6ab444307aed5b6c516e6f6e8828db2f204a261d5c497dd18f840e71
size 37892
|
export default (aeroflow, execute, expect) => describe('aeroflow.create', () => {
it('Is static method', () =>
execute(
context => aeroflow.create,
context => expect(context.result).to.be.a('function')));
describe('aeroflow.create()', () => {
it('Returns instance of Aeroflow', () =>
execu... |
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import expect from 'expect';
import expectJsx from 'expect-jsx';
import App from './../src/components/App';
expect.extend(expectJsx);
describe('App', () => {
function renderApp() {
const renderer = TestUtils.createRenderer();
... |
'use strict';
const app = require('app');
const fs = require('fs');
var configPath = app.getPath('userData') + '/config.json';
var config = {};
module.exports = {
reloadConfig: function reloadConfig() {
return fs.existsSync(configPath) ? JSON.parse(fs.readFileSync(configPath).toString()) : config;
}
};
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{563:function(n,w,o){}}]); |
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.