code stringlengths 2 1.05M |
|---|
require('./core/server')(__dirname) |
define([
'gettext', 'underscore', 'backbone'
], function (gettext, _, Backbone) {
var MultiFieldModel = Backbone.Model.extend({
getValuesComa: function(){
var valuesData_ = this.toJSON();
var corpse;
var c = 1;
for(var x in valuesData_) ... |
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author philogb / http://blog.thejit.org/
* @author mikael emtinger / http://gomo.se/
* @author egraether / http://egraether.com/
* @author WestLangley / http://github.com/WestLangley
*/
THREE.Vector4 = function ( x, y, z, w ) {
this.x = x || 0;
this.... |
/* ------------------------------------------------------------------------------
*
* # CKEditor editor
*
* Specific JS code additions for editor_ckeditor.html page
*
* Version: 1.0
* Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */
$(function() {
... |
function addWidgetsfrmUrl() {
frmUrl.setDefaultUnit(kony.flex.DP);
var lblHeader = new kony.ui.Label({
"height": "17.56%",
"id": "lblHeader",
"isVisible": true,
"left": "0%",
"skin": "sknLblKonyThemeNormal",
"text": "Welcome to the Kony Engagement demo app.To get ... |
var config = require('./config/config.json'),
server = require('./lib/server');
// In case the port is set using an environment variable
// (Heroku)
config.PORT = process.env.PORT || config.PORT;
server.run(config);
|
// This is binnedData. A convenient way of storing binned data
binnedData = function () {
"use strict";
//{{{ VARIABLES
var oneSample = 1000 / 200; // milliseconds per sample
var bd = { // where all of the data is stored
keys : ['average', 'maxes', 'mins', 'q1', 'q3'],
rawData : {
... |
module.exports = function () {
var src = './src/';
var build = './assets/';
var bower = {
json: require('./bower.json'),
directory: './src/bower_components/',
ignorePath: './..'
};
var temp = './src/.tmp/';
var config = {
root: './',
build: build,
temp: temp,
source: src,
css: temp + '**/*.css',... |
'use strict';
import prepareConfig from './prepare_config';
import prepareContainer from './prepare_container';
import createGUI from './create_gui';
import configPickerOpening from './config_picker_opening';
import configDateModify from './config_date_modify';
let datetimepicker = function datetimepicker(params = {})... |
'use strict';
var footer = {};
footer.controller = function() {
// nada
};
footer.view = function(ctrl) {
var vm = footer.vm;
return m('div.credits', [
m('span', '©pelonpelon')
]);
};
module.exports = footer;
|
/* ========================================================================
* Bootstrap: tab.js v3.3.4
* http://getbootstrap.com/javascript/#tabs
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/bl... |
(function ($) {
/* ---------------------------- *
* Generate a random identifier *
* ---------------------------- */
$.randomID = function(len, charSet) {
len = len || 10;
charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var randomString = '... |
define([
], function(){
return function(ctx){
ctx.fillRect(0, 0, this.width, this.height);
//draw all of the box entities
for(var id in this.entities){
this.entities[id].draw(ctx, this.box.scale);
}
};
}); |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import PageObject from 'ember-cli-page-object';
import component from 'code-corps-ember/tests/pages/components/site-footer';
import { setBreakpointForIntegrationTest } from 'code-corps-ember/tests/helpers/responsive';
... |
'use strict';
var IdGenerator = require('../../../lib/util/IdGenerator');
describe('util/IdGenerator', function() {
it('should configure with prefix', function() {
// when
var foos = new IdGenerator('foo');
// then
expect(foos.next()).to.match(/^foo-(\d+)-1$/);
expect(foos.next()).to.match(... |
var Container = require('../display/Container'),
CanvasGraphics = require('../renderers/canvas/utils/CanvasGraphics'),
GraphicsData = require('./GraphicsData'),
math = require('../math'),
CONST = require('../const');
/**
* The Graphics class contains methods used to draw primitive shapes such as lines... |
module.exports = {
'route-props': function (browser) {
browser
.url('http://localhost:8080/route-props/')
.waitForElementVisible('#app', 1000)
.assert.count('li a', 4)
.assert.urlEquals('http://localhost:8080/route-props/')
.assert.containsText('.hello', 'Hello Vue!')
.click('l... |
import { common } from './common';
// Create a new name from the concatenation of
// the currentNameSpace and the name argument
export function nameSpace(name) {
return common.currentNameSpace ? common.currentNameSpace + '_' + name : name;
}
export function getService(serviceName, moduleName) {
return angular.mod... |
Photobooth = function( container )
{
var self = this;
/**
* Make it jQuery friendlier
*/
if( container.length )
{
container = container[ 0 ];
}
var fGetUserMedia =
(
navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.oGetUserMedia ||
navigator.msie... |
describe('Logarithmic Scale tests', function() {
it('Should register the constructor with the scale service', function() {
var Constructor = Chart.scaleService.getScaleConstructor('logarithmic');
expect(Constructor).not.toBe(undefined);
expect(typeof Constructor).toBe('function');
});
it('Should have the cor... |
ContactManager.Router = Marionette.AppRouter.extend({
routes: {
'': 'home'
},
home: function() {
this.navigate('contacts', {
trigger: true,
replace: true
});
}
});
|
"use strict";
/**
* Enumerates all tag closing modes. Bitmap.
*/
(function (TagCloseMode) {
/**
* Indicates that a tag can be closed by a close tag, such as `<div></div>`.
*/
TagCloseMode[TagCloseMode["Tag"] = 1] = "Tag";
/**
* Indicates that a tag can self-close, such as `<br />`.
*/
TagCloseMod... |
// The Result Delta function accepts two similar results set and produces a diff bewteen them.
module.exports = resultDelta
var lev = require('./levenshtein');
function resultDelta(src, tgt) {
//console.time('resultdelta');
if (src.length === 0 && tgt.length === 0) {
return [];
}
var src_ids = [];
va... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
var foo = () => {};
while ( true ) {
var foo = () => console.log( 'effect' );
break;
}
f... |
// $('#btn-reg').on('click', function() {
// var isEmpty = function(str) {
// return (!str || 0 === str.length);
// };
// var errors = $('.error').remove();
// var agreedToTearms = $('#terms').is(":checked");
// if (!agreedToTearms) {
// if (!$('#termsError').length)
// $... |
require('./_sidebar-dropdown');
require('./_sidebar-collapse');
require('./_sidebar-toggle-bar'); |
/**
@function Seemple.binders.input
@importance 3
@since 0.3
@summary Повертає байндер, що зв'язує властивість об'єкта з елементом ``input``. Безпосередньо байндер використовувати не обов'язково, так як він входить в список {@link Seemple.defaultBinders}.
@param {string} [type] - Тип інпута
@returns {binder}
@example
t... |
/*! jQuery UI - v1.9.2 - 2017-10-13
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.... |
import test from 'ava';
import {Application} from 'spectron';
import fs from "fs";
test.beforeEach(async t => {
if (process.platform === 'linux') {
t.context.app = new Application({
path: './dist/linux-unpacked/elite-journal',
env: {NODE_ENV: 'test'},
startTimeout: 10000
});
} else if (process.platform ... |
/**
* Copyright 2014 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 appli... |
var searchData=
[
['_7eclientnetwork',['~ClientNetwork',['../class_client_network.html#a5a9041029d317343e844a54e2cc1edd4',1,'ClientNetwork']]],
['_7etcpclient',['~TCPClient',['../class_t_c_p_client.html#a2a31d81f04bfb18988d68cdd0da007e3',1,'TCPClient']]]
];
|
var assert = require('assert');
var R = require('..');
describe('hasIn', function() {
var fred = {name: 'Fred', age: 23};
var anon = {age: 99};
it('returns a function that checks the appropriate property', function() {
var nm = R.hasIn('name');
assert.strictEqual(typeof nm, 'function');
... |
/// <reference path='./Scripts/DlhSoft.ProjectData.GanttChart.HTML.Controls.d.ts'/>
var GanttChartView = DlhSoft.Controls.GanttChartView;
var ScheduleChartView = DlhSoft.Controls.ScheduleChartView;
// Query string syntax: ?theme
// Supported themes: Default, Generic-bright, Generic-blue, DlhSoft-gray, Purple-green, Ste... |
var valueParser = require('postcss-value-parser'),
isPromise = require('./promiseHelpers').isPromise,
then = require('./promiseHelpers').then;
function processArgs(nodes, functions) {
var args = [];
var argsContainPromise = false;
var last = nodes.reduce(function (prev, node) {
if (node.type === 'div'... |
var searchData=
[
['paramstructuretype',['ParamStructureType',['../struct_param_structure_type.html',1,'']]]
];
|
#!/usr/bin/env node
'use strict'
const pkg = require('../../package.json')
require('update-notifier')({ pkg }).notify()
const debug = require('debug')('farm')
const workerFarm = require('worker-farm')
const minimist = require('minimist')
const series = require('run-series')
const path = require('path')
const getNum... |
'use strict';
module.exports = {
server: {
configuration: {},
context: {}
},
client: {
configuration: {},
context: {}
}
}; |
'use strict'
const waitForPeers = (ipfs, peersToWait, topic, callback) => {
return new Promise((resolve, reject) => {
const i = setInterval(async () => {
const peers = await ipfs.pubsub.peers(topic)
const hasAllPeers = peersToWait.map((e) => peers.includes(e)).filter((e) => e === false).length === 0
... |
import React from 'react';
import {WhitePanel, CircleProgress, LineProgress} from 'components';
import {primaryColor} from 'utils/colors';
const styles = {
root: {
marginRight: 10,
width: 900,
height: 180
},
circle: {
marginLeft: 28
},
lists: {
display: 'inline-block',
width: 700,
... |
Support.SwappingRouter = Backbone.Router.extend({
swap: function(newView) {
if (this.currentView && this.currentView.leave) {
this.currentView.leave();
}
this.currentView = newView;
$(this.el).html(this.currentView.render().el);
if (this.currentView && this.currentView.swapped) {
thi... |
var thebid = '';
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('body').focus();
jQuery("#tip-grn").hide();
jQuery("#tip-red").hide();
jQuery("#effect").html("<br/>Waiting for a badge to be scanned...");
jQuery(document).keypress(function(event) {
var chr = String.fromC... |
'use strict';
/**
* serve module
* @module api/serve
* @see module:index
*/
const fs = require('fs');
const bodyParser = require('body-parser');
const colors = require('colors/safe');
const connect = require('connect');
const connectRedirection = require('connect-redirection');
const favicon = require('serve-favico... |
const {schema, doc, p, ol, ul, li, h1, h2, blockquote, em, code, a} = require("prosemirror-model/test/build")
exports.schema = schema
let example = doc(
h1("Collaborative Editing in ProseMirror"),
p("This post describes the algorithm used to make collaborative editing work in ", a("ProseMirror"), ". For an introd... |
(function () {
"use strict";
var app = angular.module('app');
app.factory('endpointService', ['endpointServer', function (endpointServer) {
return {
loginEndpoint: endpointServer + '/AuthorizationService.svc/SignIn',
createAccountEndpoint: endpointServer + '/AuthorizationService.svc/CreateAccount'
... |
/*
Highcharts JS v8.0.1 (2020-03-02)
(c) 2009-2019 Sebastian Bochan, Rafal Sebestjanski
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/lollipop",["highcharts"],function(... |
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
const mongodbErrorHandler = require('mongoose-mongodb-errors');
const locationSchema = new mongoose.Schema({
name: {
type: String,
required: 'Locations must have a name!'
},
characters: {
type: Array,
default: []
},
item... |
/**
* _mergeObj
* @description Mrge objects
*/
var _mergeObj = function(to, from) {
for (var p in from) {
if (from.hasOwnProperty(p)) {
to[p] = (typeof from[p] === 'object') ? _mergeObj(to[p], from[p]) : from[p];
}
}
return to;
};
/**
* _throttle
* @description Borrowed fr... |
"use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
... |
'use strict'
const assert = require('assert')
const context = require('../../test-helpers/context')
describe('ctx.acceptsEncodings()', () => {
describe('with no arguments', () => {
describe('when Accept-Encoding is populated', () => {
it('should return accepted types', () => {
const ctx = context... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" /></React.Fragment>
, 'CheckOutlined');
|
/**
* Tests sit right alongside the file they are testing, which is more intuitive
* and portable than separating `src` and `test` directories. Additionally, the
* build process will exclude all `.spec.js` files from the build
* automatically.
*/
describe( 'users section', function() {
beforeEach( module( 'sp4k.... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decora... |
// @flow
declare function keyMirror<T: {}>(obj: T): $ObjMapi<T, <K>(K) => K>;
module.exports = keyMirror;
|
describe("pc.CurveSet", function () {
it("constructor: array of arrays", function () {
var c = new pc.CurveSet([[0, 0, 1, 1], [0,0]]);
equal(c.length, 2);
});
it("constructor: with number", function () {
var c = new pc.CurveSet(3);
equal(c.length, 3);
});
it("constr... |
var subStr = require('./subStr');
describe('String/subStr', function () {
it('should return a substring denoted by n (positive or negative) characters', function () {
var str = 'Lorem ispum dolor sit amet.';
expect(subStr(str, 5)).toEqual('Lorem');
expect(subStr(str, -3)).toEqual('et.');
expect(su... |
define("rebound-htmlbars/hooks/linkRenderNode", ["exports"], function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = linkRenderNode;
function linkRenderNode(renderNode, env, scope, path, params, hash) {
function rerender(path, node, lazyVal... |
module.exports = {
request:[
['StructureSize', 2, 49]
, ['DataOffset', 2, 0x70]
, ['Length', 4, 0]
, ['Offset', 8]
, ['FileId', 16]
, ['Channel', 4, 0]
, ['RemainingBytes', 4, 0]
, ['WriteChannelInfoOffset', 2, 0]
, ['WriteChannelInfoLength', 2, 0]
, ['Flags', 4, 0]
, ['Buffer', 'Length']
... |
var _ = require('lodash');
var Formatter = require('content-formatter');
var sub = require('string-sub');
var REGEX = require('../regex');
var classNameConvertMap = REGEX.MAP_CLASS_NAMES_CONVERT_HTML;
var getRegExp = REGEX.getRegExp;
var base = require('../base');
var iterateLines = base.iterateLines;
var STR_SUB_... |
export default /* glsl */`
attribute vec4 particle_vertexData; // XYZ = particle position, W = particle ID + random factor
#ifdef USE_MESH
attribute vec2 particle_uv; // mesh UV
#endif
uniform mat4 matrix_viewProjection;
uniform mat4 matrix_model;
uniform mat3 matrix_normal;
uniform mat4 matrix_viewInverse;
#... |
var xtend = require('xtend');
function parseCookie(auth, cookieHeader) {
var cookieParser = auth.cookieParser(auth.secret);
var req = {
headers:{
cookie: cookieHeader
}
};
var result;
cookieParser(req, {}, function (err) {
if (err) throw err;
result = req.signedCookies || req.cookies;
... |
import React from 'react'
import PropTypes from 'prop-types'
import { Breadcrumb, Icon } from 'antd'
import { Link } from 'dva/router'
import styles from './Bread.less'
import pathToRegexp from 'path-to-regexp'
import { queryArray } from 'utils'
const Bread = ({ menu }) => {
// 匹配当前路由
let pathArray = []
let curr... |
import * as React from 'react';
import ApiPage from 'docs/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './tabs-unstyled.json';
export default function Page(props) {
const { descriptions, pageContent } = props;
retur... |
Package.describe({
summary: "Standard Mylar packages",
name: "mylar:platform",
version: "0.3.1",
git: "https://github.com/gliesesoftware/mylar.git"
});
Package.onUse(function (api) {
api.imply([
// principal graph
'mylar:principal@0.2.0',
// login service for IDP accounts
... |
'use strict';
var _ = require('lodash');
var common;
var log;
var exports = {
};
module.exports = function(config) {
if (config) {
common = require('phrixus-common')(config);
log = common.logger;
exports.routes = require('./routes');
exports.User = require('./models/user');
exports.startGuest... |
exports.names = ['owner', 'feedback'];
exports.hidden = true;
exports.enabled = true;
exports.cdAll = 30;
exports.cdUser = 30;
exports.cdStaff = 10;
exports.minRole = PERMISSIONS.NONE;
exports.handler = function (data) {
bot.speak('avatarkava is the author of beavisbot. Make bug reports and requests here, please: h... |
export const FETCH_<%= mutation_name_pluralized %>_SUCCESS = 'FETCH_<%= mutation_name_pluralized %>_SUCCESS'
export const GET_RELATED_<%= mutation_name_pluralized %>_SUCCESS = 'GET_RELATED_<%= mutation_name_pluralized %>_SUCCESS'
export const GET_<%= mutation_name %>_SUCCESS = 'GET_<%= mutation_name %>_SUCCESS'
export ... |
/*globals Backbone: true, _: true, jQuery: true, $: true, L: true,
describe: true, expect: true, sinon: true, it: true,
beforeEach: true, afterEach: true, window: true*/
(function () {
"use strict";
// Seting some helpful objects.
var featureGeoJSON = {
type: 'Feature',
geometry: {
type: 'Poin... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
/*
* wijcollections - List
* https://github.com/webinfluenza/wijcollections
*
* Copyright (c) 2013 Benno Mielke
* Licensed under the MIT license.
*/
define( ['private/AbstractCollection', 'private/ListObject'], function( AbstractCollection, ListObject ) {
/**
* List Collection constructor, inheriting fr... |
'use strict';
var PrimitiveSet = {};
PrimitiveSet.POINTS = 0x0000;
PrimitiveSet.LINES = 0x0001;
PrimitiveSet.LINE_LOOP = 0x0002;
PrimitiveSet.LINE_STRIP = 0x0003;
PrimitiveSet.TRIANGLES = 0x0004;
PrimitiveSet.TRIANGLE_STRIP = 0x0005;
PrimitiveSet.TRIANGLE_FAN = 0x0006;
module.exports = PrimitiveSet;
|
module.exports={A:{A:{"16":"H D G E A B EB"},B:{"16":"C p x J L N I"},C:{"16":"0 1 2 3 4 5 6 8 9 ZB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y XB RB"},D:{"1":"2 3 4 5 6 8 9 y LB GB FB bB a HB IB JB","16":"0 1 F K H D G E A B C p x J L N I O P Q R S T U V W X Y... |
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"1":"N I","2":"C p x J L"},C:{"1":"1 2 3 4 5 6 8 9 u v w y","2":"0 ZB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t XB RB"},D:{"1":"1 2 3 4 5 6 8 9 j k l m n o M q r s t u v w y LB GB FB bB a HB IB JB","2":"0 F K H D G E A B... |
'use strict';
var debug = require('debug')('dim:install:installer'),
semver = require('semver'),
rimraf = require('rimraf'),
path = require('path'),
fs = require('fs'),
Package = require('./package'),
util = require('./util'),
empty = function () {},
proto = Installer.prototype;
Instal... |
// Koala - Grammars - JavaScript - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
/**
* Module dependencies.
*/
// --- Grammar
Koala.lexers['js'] = new Koala.Lexer({
'this': 'this',
'number float': /^(\d+\.\d+)/,
'number integer': /^(\d+)/,
'comment': /^(\/\/[^\n]*)/,
'keyword': /^(YES|NO... |
// Email to a Friend Counter for Articles
function getEmailAFriendCount() {
var location = document.location.href;
if (location.indexOf('?') >= 0) {
location = location.substring(0, location.indexOf('?'));
}
$.ajax({
url: '//contactimporter.mercola.com/EmailArticleCount.aspx?url... |
/** Controller components are used to handle user input. */
var Controller=Component.extend({
init: function() {
this._super();
this.delta=vec2.create();
this.dragDelta=vec2.create();
this.position=false;
this.oldPosition=false;
this.startDragPosition=false;
this.buttons=[false, false, false];
},
excl... |
import hasOwnProp from 'utils/hasOwnProp';
import builtins from 'utils/builtins';
import getUnscopedNames from 'utils/ast/getUnscopedNames';
import { getName } from 'utils/mappers';
import getRenamedImports from './getRenamedImports';
export default function topLevelScopeConflicts ( bundle ) {
let conflicts = {};
le... |
import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import MovieForm from '../components/bootstrap-validation/MovieForm'
import TogglingForm from '../components/bootstrap-validation/TogglingForm'
import AttributeForm from '../components/bootstrap-validation/A... |
import {get} from "ember-metal/property_get";
import run from "ember-metal/run_loop";
import {View as EmberView} from "ember-views/views/view";
import ContainerView from "ember-views/views/container_view";
var view;
module("EmberView#destroyElement", {
teardown: function() {
run(function() {
view.destroy(... |
import { kTrue, noop } from './utils'
const BUFFER_OVERFLOW = "Channel's Buffer overflow!"
const ON_OVERFLOW_THROW = 1
const ON_OVERFLOW_DROP = 2
const ON_OVERFLOW_SLIDE = 3
const ON_OVERFLOW_EXPAND = 4
const zeroBuffer = { isEmpty: kTrue, put: noop, take: noop }
function ringBuffer(limit = 10, overflowAction) {
... |
var exec = require('child_process').exec;
module.exports = function() {
var os = require('os');
var file = 'error.wav';
if (os.platform() === 'linux') {
// linux
exec("aplay " + file);
} else {
// mac
console.log("afplay " + file);
exec("afplay " + file);
}
};
|
"use strict";
var util = require("./util");
var wrap = util.wrap;
var TrieAscoltatore = require("./trie_ascoltatore");
var AbstractAscoltatore = require('./abstract_ascoltatore');
var SubsCounter = require("./subs_counter");
var debug = require("debug")("ascoltatori:mongodb");
var mongo = require('mongodb');
var Mongo... |
// Meteor.publish("objects", function (){
// return Projects.find({}, {sort: {startDate: -1}});
// });
|
const data = fc.randomGeometricBrownianMotion().steps(1e4)(1);
const extent = fc.extentLinear();
const xScale = d3.scaleLinear().domain([0, data.length - 1]);
const yScale = d3.scaleLinear().domain(extent(data));
const container = document.querySelector('d3fc-canvas');
const series = fc
.seriesWebglLine()
... |
export default function isNumber(n) {
return typeof n === 'number'
} |
'use strict';
exports.BattleScripts = {
gen: 6,
runMove: function (move, pokemon, target, sourceEffect) {
if (!sourceEffect && toId(move) !== 'struggle') {
let changedMove = this.runEvent('OverrideDecision', pokemon, target, move);
if (changedMove && changedMove !== true) {
move = changedMove;
target... |
//@ts-check
"use strict";
const { doPackage } = require("./packaging/do-package");
const { parseContext } = require("./packaging/context");
async function main() {
const cx = await parseContext();
await doPackage(cx);
}
main();
|
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-f9738f5
*/
goog.provide('ng.material.components.progressCircular');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.progressCircular
* @description Module for a circular progr... |
define(['commandstack', 'geometrygraph'], function(commandStack, geometryGraph) {
return new geometryGraph.Graph();
});
|
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var crypto = require('crypto');
var http = require('http');
var sprintf = require('util').format;
var assert = require('assert-plus');
var mime = require('mime');
var errors = require('./errors');
var httpDate = require('./http_date');
///--- Globals
var ... |
/*
The shared directory contains JavaScript files which can be accessed from both the client and the cloud.
Shared files can be included from client-side html files using a standard script tag as if they were in
the same directory as the client side file - e.g.:
<script src="config.js" type="text/javascript"></scrip... |
import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
let MyOtherNestedComponent = React.createClass({
render(){
return <div>NESTED COMPONENT</div>
}
})
let MyCustomHeader = React.createClass({
render(){
const { label } = this.props
return (
... |
// LICENSE : MIT
"use strict";
import TextLintTester from "textlint-tester";
import rule from "../src/2.1.2";
var tester = new TextLintTester();
tester.run("2.1.2.漢字", rule, {
valid: ["今日は日本語の勉強をします。", "度々問題が起きる。"],
invalid: [
{
text: "文章を推敲する",
errors: [
{
... |
// Options: --async-functions
// Async.
var finallyVisited = false;
var resolve;
var p = new Promise((r) => {
resolve = r;
});
var v;
async function test() {
try {
v = await p;
} finally {
finallyVisited = true;
}
expect(42).toBe(v);
expect(finallyVisited).toBe(true);
done();
}
test();
expect(... |
{
var warn = options.warn || baseWarn;
var staticStyle = getAndRemoveAttr(el, "style");
if (staticStyle) {
if (process.env.NODE_ENV !== "production") {
var expression = parseText(staticStyle, options.delimiters);
if (expression) {
warn(
'style="' +
staticStyle +
... |
define({
"searchTabTitle": "Haun lähteen asetus",
"routeTabTitle": "Reititysasetus",
"add": "Lisää haun lähde",
"addGeocoder": "Lisää geokooderi",
"geocoder": "Geokooderi",
"setLayerSource": "Määritä karttatason lähde",
"setGeocoderURL": "Määritä geokooderin URL-osoite",
"searchableLayer": "Kohdekarttat... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
import { Navbar, Nav, NavItem, Grid, Row, Col } from 'react-bootstrap';
import Helmet from 'react-helmet';
import { isLoaded as isAuthLoaded, load as lo... |
describe("better-dateinput-polyfill", function() {
function formatDateISO(value) {
return value.toISOString().split("T")[0];
}
var el, calendar, label;
beforeEach(function() {
el = DOM.mock("input[type=date]");
calendar = DOM.mock();
label = DOM.mock("span");
});
... |
StandaloneDashboard(function (db) {
db.setDashboardTitle('KPI Types Supported in RazorFlow');
// var c1 = new KPIComponent();
// c1.setDimensions(3, 3);
// c1.setCaption({md: 'Average Monthly Sales', sm: "Sales"});
// c1.setValue(513.22);
// db.addComponent(c1);
// var c2 = new GaugeCompo... |
'use strict';
var fs = require('fs');
var MailParser = require('mailparser').MailParser;
var Attachment = require('../mail/mail.js').Attachment;
/**
* Normalises attachment files retrieved from file system or parsed raw email
*
* @param {Object} file The file object returned by file system or parsed email
* @retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.