code stringlengths 2 1.05M |
|---|
var path = require('path')
var fs = require('fs')
var [
packageJSON,
...scripts
] = process.argv.slice(2)
var packageJSONPath = path.join(process.cwd(), packageJSON)
var pJSON = require(packageJSONPath)
var scriptKeys = scripts.filter((s, i) => i % 2 === 0)
var scriptValues = scripts.filter((s, i) => i % 2)
pJS... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc.5-master-3a0f323
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.menu-bar
*/
angular.module('material.components.menuBar', [
'material.core',
'material.c... |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('gulptimate generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
|
if (!error && response.statusCode === 200) {
console.log(body);
jsonContent = JSON.stringify(body);
}
console.log(response.statusCode);
console.log('NYAMPE');
// empty 200 OK response for now
res.writeHead(200, "OK", {
'Content-Type': 'text/html',
... |
count=0;
function add () {
if(!(((document.getElementById('qt1').checked) || (document.getElementById('qt2').checked) || (document.getElementById('qt3').checked)) && ((document.getElementById('at1').checked) || (document.getElementById('at2').checked) ) ) ){
return;
}
count++;
... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./seller-list/sellers.list.component"));
var seller_thumbnail_component_1 = require("./seller-thumbnail/seller.thumbnail.compone... |
import React from 'react';
export default class Home extends React.Component {
render() {
return (
<h1>Hey, I am Home!</h1>
);
}
}
|
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var paths = {
sass: ['./client/scss/**/*.scss']
};
gulp.task('default', ['sass', 'watch']);
gulp.task('sass', function(done) {
gulp.src('./client/scss/farol.scss')
.pi... |
var _ = require('underscore');
function Issue(id, description, creator) {
this.id = id;
this.description = description;
this.creator = creator;
this.critical = false;
// TODO: last updated date
this.assignee = Issue.UNASSIGNED;
this.createdDate = new Date();
this.closed = false;
this.closer = Issue.UNASSIG... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const monadic_react_1 = require("../../../src/monadic_react");
exports.promise_sample = monadic_react_1.repeat(`input number`)(n => monadic_react_1.label("Insert an even number: ", true)(n => monadic_react_1.number("edit", "number")(n))(n))(0)... |
var Validators = require('../../').validators;
var PostcodeData = require('../helpers/postcodes');
var isCoverageTest = require.cache[require.resolve('istanbul')];
var describeUnlessCoverage = isCoverageTest ? describe.skip : describe;
describe('Postcode validation', function () {
it('correctly validates empty ... |
/* */
"format cjs";
foo = 1/a/2
foo = 1/a/
2
foo = 1/a/(b+1)
foo = 1/a/~bar.indexOf(baz)
foo = 1/a/+str
foo = 1/a/-1
foo = 1/a/-bar
foo = 1/a/--bar
foo = 1/a/
--bar
foo = 1/a/ ++bar
foo = 1/a/g+1
foo = 1/a/g - 1
foo = 1/a/g*1
foo = 1/a/g/1
foo = 1/a/g
/1
if (1/a/g && foo) {}
if (1/a/g
&& foo) {}
if (1/a/g ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { facebookLogin, googleLogin, loginUser } from '../App/AppActions';
import { getUserName } from '../App/AppReducer';
import styles from '../../main.css';
import grid from '../../grid.css';
class D... |
const assert = require('assert');
const mongo = require('mongodb').MongoClient;
const BasicCollection = require('./lib/basic-collection');
const TypedCollection = require('./lib/typed-collection');
const constants = require('./lib/constants');
const EdgeCollection = require('./lib/edge-collection');
const builder = req... |
/*
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright © 2001 Robert Penner
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 abo... |
/**
* Created by paulius on 03/08/16.
*/
import { Router } from 'express';
import * as StadiumController from '../controllers/stadium.controller';
const router = new Router();
// Get stadium by id
router.route('/stadiums/:id').get(StadiumController.getStadiumById);
router.route('/stadiums').get(StadiumController.ge... |
WY3D.Face3 = (function(){
function Face3(a, b, c, normal, color, materialIndex) {
this.a = a;
this.b = b;
this.c = c;
this.normal = normal instanceof WY3D.Vector3 ? normal : new WY3D.Vector3();
this.vertexNormals = normal instanceof Array ? normal : [];
this.color = color === undefined ? ... |
import test from "tape";
/**
* isPrime detects if input is prime
* @param {number} num The number to check
* @returns {boolean}
*
* Assumptions
* 1. 1, decimals, and negatives are not prime
*/
const isPrime = num => {
if (typeof num !== "number") {
throw TypeError(
"Expected type number but rece... |
const gulp = require('gulp');
const del = require('del');
const babel = require('gulp-babel');
const terser = require('gulp-terser');
const rename = require('gulp-rename');
const rollup = require('rollup').rollup;
const rollupBabel = require('rollup-plugin-babel');
const babelConfig = {
presets: [
['@babel/prese... |
/*********************************************
* app-src/js/ycalendar.js
* YeAPF 0.8.62-100 built on 2019-05-09 19:34 (-3 DST)
* Copyright (C) 2004-2019 Esteban Daniel Dortta - dortta@yahoo.com
* 2018-05-30 11:21:04 (-3 DST)
* First Version (C) August 2013 - esteban daniel dortta - dortta@yahoo.com
***************... |
// =============================================================================
//
// Copyright (c) 2014 Brannon Dorsey <http://brannondorsey.com>
//
// 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 th... |
/* ========================================
@preserve
03. Isotope used and distributed under
Commercial License
Isotope PACKAGED v3.0.0
Licensed GPLv3 for open source use
or Isotope Commercial License for commercial use
http://isotope.metafizzy.co
Copyright 2016 Metafizzy
Bridget makes jQuery widgets
v2.0.0
MIT license... |
import { redirect } from 'redux-first-router'
import { isAllowed, isServer } from './utils'
export default {
onBeforeChange: (dispatch, getState, action) => {
const allowed = isAllowed(action.type, getState())
if (!allowed) {
const action = redirect({ type: 'LOGIN' })
dispatch(action)
}
},... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:public', 'Unit | Route | public', {
// 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);
});
|
import React, { PropTypes } from 'react';
import RedirectButton from '../RedirectButton/index';
import baseStyle from '../../common/Style/baseStyle.css';
import styles from './styles.css';
const contactSection = (({ content, buttonLabel }) =>
<div className={styles.wrapper}>
<h1 className={baseStyle.display1}>{c... |
version https://git-lfs.github.com/spec/v1
oid sha256:93b82a8c6d0935f5a8f9547f3b437883b40629314e0c6504e9433ad634f2081b
size 9088
|
var support__feedback__blink_8h =
[
[ "feedback_blink_mode_t", "support__feedback__blink_8h.html#a35189fed6614ac24f7c917460b8c8b5c", [
[ "KG_BLINK_MODE_OFF", "support__feedback__blink_8h.html#a35189fed6614ac24f7c917460b8c8b5ca57c3cbe256191010d4c7c0ef1733a7d0", null ],
[ "KG_BLINK_MODE_SOLID", "support__... |
/**
* Copyright 2017 Google 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 agreed to i... |
module.exports = function (n) { return n * 11 }
|
'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('comment', {
url: '/comment... |
/*!
backgrid 0.3.5
http://github.com/wyuenho/backgrid
Copyright (c) 2015 Jimmy Yuen Ho Wong and contributors <wyuenho@gmail.com>
Licensed under the MIT license.
*/
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD (+ global for extensions)
define(["underscore", "b... |
/**
* TPBC keyboard support for image navigation.
*/
( function( $ ) {
$( document ).on( 'keydown.tpbc', function( e ) {
var url = false;
// Left arrow key code.
if ( 37 === e.which ) {
url = $( '.nav-previous a' ).attr( 'href' );
// Right arrow key code.
} else if ( 39 === e.which ) {
url = $( '.... |
// The MIT License (MIT)
// Copyright (c) 2016 Derek Breen, breenworks@gmail.com
//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'
const expressDeliver = require('..')
const expect = require('chai').expect
const express = require('express')
const request = require('supertest')
const ExceptionPool = expressDeliver.ExceptionPool
function testApp(app,endpoint,statusCode,body,done){
let test = function(err,res){
expect(res.... |
import Ember from "ember";
import OperisPpfateststeptypeController from 'ember-app/controllers/operis-ppfa-test-step-type';
var PpfateststeptypeController = OperisPpfateststeptypeController.extend({
actions: {
delete: function( item ) {
Ember.Logger.info('Item is:', item);
... |
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];retu... |
var J = require('JSUS').JSUS;
module.exports = function(settings, headers) {
/*var coins = settings.pp.COINS;
var values = [
Math.floor(coins/2, 10),
coins,
0
];*/
return {
"x": 0,
"title": "Quiz",/*
"beforeStarting": "Before starting the game answer th... |
'use strict';
angular.module('app')
.controller('MainController', function($scope, $log, DeckService, PlayerService, BoardService, GameService) {
$scope.title = 'Flash Duel';
$scope.game = GameService;
BoardService.reset();
$scope.board = BoardService.board;
$scope.players = PlayerService.playe... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
$(document).ready(function() {
$(".form-category").blur(function(){
var category = this.value; //el value que tiene el input para luego enviar por POST
var id = $("#appbundle_category_id").val();
$.ajax({
url: '/dashboard/category/name-test',
data: {category: ... |
/*global Wizard, TemplateManager, Backbone, _, $*/
Wizard.Views = Wizard.Views || {};
(function () {
'use strict';
Wizard.Views.PaymentView = Backbone.View.extend({
template: 'js/templates/payment.html',
className: 'row',
events: {
'click #next': 'nextStep',
... |
import React, { Component, PropTypes } from 'react'
import classNames from 'classnames'
import treeViewSpanTypes from '../../../constants/treeViewSpanType'
import treeViewItemTypes from '../../../constants/treeViewItemType'
import TreeViewSpan from './TreeViewSpan'
import ServerListItemIcon from './ServerListItemIcon... |
// Karma configuration
// Generated on Tue Oct 06 2015 22:50:17 GMT-0430 (Venezuela Standard Time)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.... |
/**
* @author Kai Salmen / www.kaisalmen.de
*/
'use strict';
if ( KSX.nav === undefined ) KSX.nav = {};
if ( KSX.nav.help === undefined ) KSX.nav.help;
KSX.nav.help = {
show: true,
ownText: false
}
KSX.nav.allowNavMenuToggle = false;
KSX.nav.divNavMenuArea = null;
KSX.nav.divNavMenuButton = null;
KSX.nav.divNavH... |
angular.module('factories').factory('TrackerBadge', function ($rootScope, $window, $api, Badge) {
var TrackerBadge = function (tracker) {
this.tracker = angular.copy(tracker);
this.description = 'Total bounty on this tracker';
Badge.apply(this, arguments);
};
TrackerBadge.prototype = new Badge();
... |
import { connect } from 'react-redux'
import AppCard from '../components/appcard'
import Actions from '../actions/appcard'
const mapStateToProps = (state) => { return state }
const mapDispatchToProps = (dispatch) => {
return {
handleAdd: () => { dispatch(Actions.increment()) },
handleCut: () => { dispatch(A... |
const userService = require('../../service/user')
module.exports = async (ctx) => {
ctx.body = await userService.findAsync()
}
|
'use strict';
var emit = require("./emit");
var emission = require("./emission");
var on = require("./on");
var AMQP = require("./amqp");
var event = require('./event');
module.exports = function(serviceName){
var transport = AMQP();
if(!serviceName){
throw new Error("Service name must be... |
/**
* Created by ssgonchar on 27.01.2016.
*/
/**
* --------------------------------------------------------------------------------------------------------------------
* Используется паттерн Контроллер Элементов.
* Данный паттерн состоит из двух представлений, одно из которых управляет коллекцией элементов (AppVi... |
// Download the Node helper library from twilio.com/docs/node/install
// These identifiers are your accountSid and authToken from
// https://www.twilio.com/console
// To set up environmental variables, see http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH... |
/*Главная вьюха приложения*/
;(function(){
'use strict';
window.views = window.views || {};
window.views.List = window.views.List || {};
var View = Backbone.View.extend({
// главный элемент вьюхи - в котором отрисовывается контент
el : $('#content'),
// шаблон списка задач
... |
'use strict';
// github module doc: http://mikedeboer.github.io/node-github
var GitHubApi = require('github'),
extend = require('extend'),
LABELS = {
NEEDS_FORMATTING: 'needs: user story/bug format',
NEEDS_COMMIT_GUIDELINES: 'needs: commit guidelines',
VOTE_10: 'votes: +10',
VOTE_20: ... |
'use strict';
var binomCI = require( './../lib' );
console.log( binomCI(682, 925, {'level': 0.95}) );
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2022 Elior "Mallowigi" Boukhobza
*
* 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 t... |
/** @babel */
/** @jsx etch.dom */
import SelectListView from 'atom-select-list'
import etch from 'etch'
import dedent from 'dedent'
import CodeBlock from './code-block'
export default class ExampleSelectListView {
constructor () {
this.jsExampleCode = dedent`
import SelectListView from 'atom-select-list'
... |
import React from 'react';
import SimpleExamples from './SimpleExamples';
import SimpleExamplesRaw from '!!raw!./SimpleExamples';
import FakeSCSS from '!!raw!./_fake.scss';
export default [{
title: 'Simple Examples',
code: `
/* SimpleExamples.jsx */
${SimpleExamplesRaw}
\`\`\`
\`\`\`scss
/* _fake.scss */
${FakeS... |
const getUri = require('get-uri')
module.exports = uri => new Promise((resolve, reject) => {
getUri(uri, (err, stream) => {
if (err) {
reject(err)
} else {
resolve(stream)
}
})
})
|
;(function () {
describe('scrollFix directive', function () {
var elem, scope;
beforeEach(module('alv-ch-ng.scroll'));
beforeEach(inject(function ($rootScope, $compile) {
scope = $rootScope;
elem = angular.element('<div scroll-fix style="width: 200px;">testContent</... |
import { BufferReader } from "./BufferReader.js";
import { BufferWriter } from "./BufferWriter.js";
var FIXED_LENGTH = 22,
SIGNATURE = 0x06054b50; // "PK\005\006"
export class ZipEndHeader {
constructor() {
this.disk = 0;
this.startDisk = 0;
this.volumeEntries = 0;
this.total... |
//on click of the submit button, capture the values from user input
$('.submit-button').click(function(e) {
e.preventDefault();
var topic = $('.topic').val().trim();
var author = $('.author').val().trim();
var threadTitle = $('.thread-title').val().trim();
if (!threadTitle) {
alert('Please a... |
export const ShellComponent = {
template: require('./shell.html'),
controller: ShellController
};
function ShellController($scope, $mdSidenav, authService, roleCheckerService, events, icons, AppSettings, PlatformThemes, Me, FeatureFlags, featureFlagKeys, _) {
'ngInject';
$scope._ = _;
const ctrl = this;
... |
angular.module('casa').controller('ARImageController',
[ '$scope',
'$cordovaGeolocation',
'$stateParams',
'$ionicModal',
'$ionicPopup',
'LocationsService',
'InstructionsService',
function(
$scope,
$cordovaGeolocation,
$stateParams,
$ionicModal,
$ionicPopup,
... |
import React, {PropTypes} from 'react';
import LinkList from '../../../LinkList';
import {Cell, Grid, Textfield, Icon, Button, FABButton} from 'react-mdl';
import './LinkView.scss';
const checkMark = (<div className="checkmark"></div>);
const sortByCategory = (list) => {
const sorted = Object.keys(list).reduce((pre... |
const Formatter = require('./formatter')
const Tracker = require('./tracker')
// Problem with errors is that output can be interleaved, so we need to gather
// up the lines of output after a failed assertion, or else the output of other
// assertions get interleaved.
//
// The first formatting style that comes to mind... |
/**
*
* Not included, not served, not used, not anything
*
* This file exists to shut IDEA syntax inspections up
*
* @author Oleksii Khilkevych
* @since 02.12.12
*/
window.stopWatch = function(str) {
};
window.R = {}; |
export { default } from './SelectResourceDialog';
|
process.mixin(require("../common"));
var finished1 = false;
var finished2 = false;
var finished3 = false;
var finished4 = false;
var finished5 = false;
var finished6 = false;
var finished7 = false;
before("sqlite", function (db) {
// Connect to a valid database
db.addListener('error', debug);
var store = db.ge... |
version https://git-lfs.github.com/spec/v1
oid sha256:1221dcc39a83078bc7e155cb512966f756885ea43de52f48ab9a3a1830bac556
size 69247
|
define([
'ui-components/rb-definition-list'
], function (rbDefinitionList) {
describe('rb-definition-list-item', function () {
var $rootScope,
$scope,
isolatedScope,
$compile,
element,
compileTemplate;
beforeEach(angular.mock.module(r... |
var assert = require('chai').assert
, bufferEqual = require('buffer-equal')
, Crc64 = require('../../build/Release/Crc64.node').Crc64;
describe('jsr-rdb (crc)', function() {
var expected = new Buffer([0xCA, 0xD9, 0xB8, 0xC4, 0x14, 0xD9, 0xC6, 0xE9]);
it('should calculate CRC-64 for byte array', function(done)... |
'use strict';
const semverValid = require('semver').valid;
const shell = require('shelljs');
const log = require('./log');
module.exports = function getLatestTag(verbose, prefix) {
if (verbose === undefined) verbose = false;
const regex = /tag:\s*(.+?)[,\)]/gi;
const cmd = 'git log --date-order --tags --simplif... |
/**
* DevExtreme (viz/components/consts.js)
* Version: 16.2.5
* Build date: Mon Feb 27 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
module.exports = {
events: {
mouseover: "mouseover",
... |
var Backbone = require('backbone');
var Todo = require('../models/Todo');
var Todos = module.exports = Backbone.Collection.extend({
model: Todo,
url: '/api/things'
});
|
var through = require('through2');
var gulpmatch = require('gulp-match');
function isArray ( arg ) {
return Object.prototype.toString.call(arg) === '[object Array]';
}
function gulpCondition ( condition, transformA, transformB ) {
function applyTransforms ( context, file, transforms, callback ) {
if ( isAr... |
module.exports = function(sequelize, DataTypes){
//return sequelize.define('Quiz', {pregunta:DataTypes.STRING, respuesta: DataTypes.STRING});
return sequelize.define('Quiz', {
pregunta:{
type:DataTypes.STRING,
validate:{notEmpty:{msg:"-> Falta pregunta"}}
},
respuesta: {
type:DataTypes.STRI... |
import { Meteor } from 'meteor/meteor';
import './register.html';
Template.regist.helpers({
});
Template.regist.events({
'submit #regist'(event, instance) {
var subdomain = event.target.subdomain.value;
var name = event.target.name.value;
var address = event.target.address.value;
... |
// DEPENDENCIES
// =============================================================================
import { isEmpty, isString } from "lodash";
// METHODS
// =============================================================================
/**
* List from localstorage.
*
* @method list
* @param {object} window
* @para... |
'use strict';
angular
.module('fli.look')
.controller('look.content.pinterest.board.ctrl',
function ($scope, $parse, pinterest, item) {
var vm = this;
vm.href = item.href;
function setResult(res) {
vm.pins = $parse('data.pins')(res) || [];
$scope.pinterest.user = $parse('data.user')(re... |
Package.describe({
name: 'cosmos:running',
version: '0.2.1',
summary: 'Ordered startup functions ',
git: 'http://github.com/elidoran/cosmos-running',
documentation: 'README.md'
});
var cs = [ 'client', 'server' ]
Package.onUse(function(api) {
api.versionsFrom('1.2');
api.use([
'tracker', // o... |
require('babel-core/register')
var webpack = require('webpack')
var WebpackDevServer = require('webpack-dev-server')
var webpackConfig = require('./_development').default
var config = require('../../config').default
var paths = config.get('utils_paths')
// webpackConfig.context = '/Users/koalahuang/Code/vue-vuex'
var... |
'use strict';
var fs = require('fs');
var path = require('path');
var dns = require('dns');
var net = require('net');
var util = require("util");
var events = require("events");
var utils = require('./utils');
var sock = require('./line_socket');
var logger ... |
export default {
// The web server of Hakkero Project.
server: '',
wsServer: ''
};
|
sweetApp.controller('contactController', function ($scope) {
});
|
import React, { Component, PropTypes } from 'react';
import Helmet from 'react-helmet';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { IntlProvider, FormattedMessage } from 'react-intl';
import config from 'config';
import NavBar from 'components/NavBar/NavBar';
import { changeLoca... |
'use strict';
// Declare app level module which depends on filters, and services
angular.module('testSPA', [
'ngRoute',
'testSPA.filters',
'testSPA.services',
'testSPA.directives',
'testSPA.controllers',
'testSPA.navBar',
'testSPA.investmentsComponent',
'testSPA.sectorComponent',
'testSPA.transactio... |
import LifeFlare from '../entities/LifeFlare';
class God extends Phaser.Sprite {
constructor(game, direction, x, y, textureKey0, textureKey1, textureKey2, textureKey3, textureKey4, textureKey5) {
super(game, x, y, textureKey0);
this.textureKey0 = textureKey0;
this.textureKey1 = textureKey1;... |
var Stream = require('stream');
var deepEqual = require('deep-equal');
var defined = require('defined');
var path = require('path');
var inherits = require('util').inherits;
var EventEmitter = require('events').EventEmitter;
module.exports = Test;
var nextTick = typeof setImmediate !== 'undefined'
? setImmediate
... |
var searchData=
[
['kernelid_632',['KernelId',['../namespacektt.html#a47b4d6f1468a13007692b8bd5dbe42ba',1,'ktt']]]
];
|
describe('Server', function(){
var io = require('socket.io-client');
var Server = require('../../src/server');
var Config = require('../../src/config');
var server;
var fakeApp = new Object();
fakeApp.Config = new Config({
server: {
port: 30661
}
});
fakeApp.log = function() {};
fakeApp... |
//for application bootstrap
App = new Backbone.Marionette.Application();
// add some Regions
App.addRegions({
// drawRegion: Perber.Region.Draw,
mainRegion: '#main',
headerRegion: '#header',
toolbarRegion:'#toolbar',
sidebarRegion:'#sidebar',
// videosRegion: "#videos",
// overlayRegion: "... |
'use strict'
module.exports = require('./node')
|
import G6 from '@antv/g6';
/**
* 该案例演示,当点击叶子节点时,如何动态向树图中添加多条数据。
* 主要演示changeData的用法。
*/
const width = document.getElementById('container').scrollWidth;
const height = document.getElementById('container').scrollHeight || 500;
const graph = new G6.TreeGraph({
container: 'container',
width,
height,
pixelRatio:... |
'use strict'
const db = require('APP/db')
const Review = db.model('reviews')
const {mustBeLoggedIn, forbidden} = require('./auth.filters')
module.exports = require('express').Router()
.get('/',
// The forbidden middleware will fail *all* requests to list users.
// Remove it if you want to allow anyone to l... |
'use strict';
const joi = require('joi');
/**
* Результат проверки.
*
* @typedef {Object} ValidationResult
* @property {Boolean} isValid
* @property {String} [message]
*/
/**
* Проверяет запрос на соответствие схемам.
*
* @param {express.Request} req
* @param {Object} schemas
* @returns {ValidationResult}... |
/**
* ### Actions functions
*
* Common functions that will be available on all actions
*
* @module Models/actions
*/
"use strict";
const path = require("path");
const factory = require("./factory");
const utils = require(path.resolve(__dirname, "../lib/utils"));
const state = require(utils.getModulePath("lib/s... |
var PageTransitions = (function() {
var $main = jQuery( '#pt-main' ),
$hamburger = jQuery('.hamburger'),
pageMain = '.pt-page-main',
pageMenu = '.pt-page-menu',
isAnimating = false,
endCurrPage = false,
endNextPage = false,
animEndEventNames = {
'WebkitAnimation' : 'webkitAnimationEnd',
'OAnimation' : 'oAn... |
'use strict';
/**
* Module dependencies
*/
var path = require('path'),
config = require(path.resolve('./config/config'));
/**
* Instructors module init function.
*/
module.exports = function (app, db) {
};
|
const Discord = require('discord.js');
module.exports = (client, message, args) => {
message.channel.send({embed:{
color: 3447003,
author: { name: message.guild.name, icon_url: message.guild.iconURL },
title: `Informações do servidor`, /*url: "http://google.com",*/ description: `${message.guild.... |
//# dc.js Getting Started and How-To Guide
'use strict';
/* jshint globalstrict: true */
/* global dc,d3,crossfilter,colorbrewer */
Math.average = function() {
var cnt, tot, i;
cnt = arguments.length;
tot = i = 0;
while (i < cnt) tot+= arguments[i++];
return tot / cnt;
}
// ### Create Chart Objects
// Create chart ... |
/* custom js */
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.