code stringlengths 2 1.05M |
|---|
/**
* Logs account flags to console after successfully logging in.
*
* This plugin is mostly useful for debugging and development.
* @example
* bot.use(vapor.plugins.accountFlags);
* @param {Object} VaporAPI Instance of the API class.
* @module
*/
exports.name = 'account-flags';
exports.plugin = function(Vapor... |
"use strict";
var index_1 = require('./index');
var page_not_found_component_1 = require("./page-not-found.component");
exports.HomeRoutes = [
{
path: '',
component: index_1.HomeComponent
},
{ path: '**', component: page_not_found_component_1.PageNotFoundCmponent }
];
//# sourceMappingURL=d... |
var assert = require('assert');
var _ = require('underscore');
describe('Index', function () {
it('should expose classes', function () {
_.each(require('../../index'), function (module) {
assert(typeof module == 'function');
});
});
});
|
var searchData=
[
['debugch2id',['debugCh2Id',['../structdebugCh2Id.html',1,'']]],
['dieandchildreninfo',['dieAndChildrenInfo',['../structdieAndChildrenInfo.html',1,'']]],
['dieattr',['dieAttr',['../structdieAttr.html',1,'']]],
['dieinfo',['dieInfo',['../structdieInfo.html',1,'']]],
['dirnamesinfo',['dirNames... |
///#source 1 1 /js/source/wheelnav.core.js
/* ======================================================================================= */
/* wheelnav.js - v1.6.1 */
/* ======================================================================================... |
import { sortedIndexBy } from 'lodash';
import moment from 'moment';
export const getMainCurrency = state => state.mainCurrency;
export const getSecondaryCurrency = state => state.secondaryCurrency;
export const getDate = state => state.date;
export const getCurrencyHistory = state => state.history;
export const getCu... |
class Sun {
constructor(x, y){
this.x = x;
this.y = y;
}
show(){
push();
fill("yellow");
strokeWeight(4);
stroke("Orange");
ellipse(this.x, this.y, 50, 50);
pop();
}
} |
var express = require('express');
var interceptor=require('../lib/interceptor');
var app = express();
app.use(
interceptor (function (req,res,next,data) {
console.log(data); // => { headers: { 'x-powered-by': 'Express', id: '1' }, status: 200, body: 'hello world' }
this.set('id','2'); // overwrite ... |
/*global defineSuite*/
defineSuite([
'DynamicScene/DynamicPyramid',
'Core/Color',
'DynamicScene/ColorMaterialProperty',
'DynamicScene/ConstantProperty'
], function(
DynamicPyramid,
Color,
ColorMaterialProperty,
ConstantProperty) {
"use strict";
... |
// Run the script on DOM ready:
$(function(){
$('input').each(function(){
//this just borrows the logic from the inputToButton script,
//which re-applies all of the input's classes with a -hover suffix on mouseover,
//then removes them on mouseout (workaround for double-classing)
var hoverClasses = $(thi... |
import Ember from 'ember';
import layout from '../templates/components/export-selector-onselect';
export default Ember.Component.extend({
layout: layout,
selectPrompt: 'Export File',
actions: {
triggerExport: function(selectedType) {
this.sendAction('exportData', selectedType);
this.$('#exportTy... |
'use strict';
const chai = require('chai');
const expect = chai.expect;
const cookies = require('../src/cookies');
describe('Cookies', function () {
describe('#processCookies', function () {
it('adds cookies to the cookie jar', function () {
const options = {
url: 'http://www.google.com'
};
... |
define(["../support"], function(support) {
swap=support.swap;
addStep=support.addStep;
return {
"name":"Mergesort",
"complexity":"O(n log n)",
"code":function() {
var steps=[];
var comparisons=[];
var index=[];
var cmp=0;
function mergeSort(list,low,high) {
if(low<height) {
var mid... |
'use strict';
var path = require('path');
var Q = require('q');
var Handlebars = require('handlebars');
var requireUncached = require('../utils/require-uncached');
var filewalk = require('../utils/filewalk');
module.exports = function() {
var siteHelperDir = path.join(process.cwd(), 'site', 'tpl', 'helpers');
... |
// {block name="backend/swag_default_sort/controller/category_listing"}
Ext.define('Shopware.apps.SwagDefaultSort.controller.CategoryListing', {
extend: 'Shopware.grid.Controller',
onAddElement: function() {},
configure: function() {
return {
gridClass: 'Shopware.apps.SwagDefaultSort.v... |
/*!
* ECharts, a javascript interactive chart library.
*
* Copyright (c) 2014, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
*/
/**
* echarts
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, linzhi... |
export { default } from 'ember-fhir/models/code-system-property-1'; |
'use strict';
angular.module('chkrApp')
.config(function ($stateProvider) {
$stateProvider
.state('to-do', {
url: '/to-do',
templateUrl: 'components/to-do/to-do.html',
controller: 'ToDoCtrl'
});
}); |
(function() {
'use strict';
angular
.module('app.database')
.factory( 'databaseDataservice', databaseDataservice )
databaseDataservice.$inject = ['serviceDatabaseApi', '$location', '$rootScope', '$q', 'logger']
function databaseDataservice( serviceDatabaseApi, $location, $rootScope, $q, logger ) ... |
/**
* Created by Eric Barb on 9/18/2015.
*/
(function () {
angular
.module('app')
.controller('accountCtrl', function($scope){
console.log("Hello from the Account Controller");
})
})(); |
/**
* Setup arrow head and define the marker. The result is appended to the svg.
*/
// import { log } from '../logger';
// Only add the number of markers that the diagram needs
const insertPatterns = (elem, patternArray, type, id) => {
patternArray.forEach(patternName => {
patterns[patternName](elem, type, id... |
'use strict'
const tap = require('tap')
const nodeLabels = require('../../lib/node-labels')
tap.test('label: "test" when only ./test/ files has been changed', (t) => {
const labels = nodeLabels.resolveLabels([
'test/debugger/test-debugger-pid.js',
'test/debugger/test-debugger-repl-break-in-module.js',
... |
// Copyright 2015 Joyent, Inc.
module.exports = Key;
var assert = require('assert-plus');
var algs = require('./algs');
var crypto = require('crypto');
var Fingerprint = require('./fingerprint');
var Signature = require('./signature');
var DiffieHellman = require('./dhe');
var errs = require('./errors');
v... |
version https://git-lfs.github.com/spec/v1
oid sha256:b5bf7ad687562398af88fc4d7921cee449a0405fd69b11a49dbd8b35ce18a71d
size 50434
|
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import ImagePicker from "../../App/Components/Common/ImagePicker";
test('ImagePicker renders correctly', () => {
const tree = renderer.create(
<ImagePicker
buttonText=""
onPickerCancelled={() => {}}
onPicke... |
module.exports = function () {
'use strict';
var keu = {};
keu.machine = require('./machine');
keu.messenger = require('./messenger');
return keu;
}();
|
'use strict';
const isNil = require('lodash.isnil');
const {
util: { invalidParam }
} = require('../../core');
const MonoFieldQueryBase = require('./mono-field-query-base');
const { validateRewiteMethod } = require('../helper');
const ES_REF_URL =
'https://www.elastic.co/guide/en/elasticsearch/reference/curr... |
/*
Copyright (c) 2007-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://cksource.com/ckfinder/license
*/
var config = {};
// Set your configuration options below.
// Examples:
// config.language = 'pl';
// config.skin = 'jquery-mobile';
config.skin = 'bootstrapck'... |
/* globals
enums factories communication gUserModel models repositories services
*/
import { mean } from 'math-statistics';
import utils from './utils';
import priceTiers from './priceTiers';
import { Logger } from './logger';
import { PinEvent } from './pinEvent';
import { ListItemError } from './errors';
export cla... |
(function ($) {
"use strict";
var automationInterval = 5000;
var availableSongsUrl = "https://raw.github.com/filhit/renaissanceriver-playlist/master/songs.json";
var availableSongIds;
var Grooveshark = function () {
function runInWindowContext(func, param) {
var actualCode = '('... |
import React from 'react';
require('../css/Default');
export default class Default extends React.Component{
render() {
return (
<div className="Default">
<h1>404</h1>
</div>
);
}
} |
/**
* Created by hzq on 2015/12/3.
*/
(function () {
var module = angular.module('thld.garage.controller', [
'thld.garage.service',
'ui.bootstrap',
'thld.common.dialog',
'ngStorage',
'ui.router'
]);
module.controller('garage.MainCtrl', ['$scope', 'Garage', '$log', ... |
var foldersUtils = {};
/**
* Checks if given folder exists in sendspace already. This method uses saved JSON of folders and does not
* make any requests straight to the sendspace API
* @param folderPath whole path to the folder
* @return {boolean} true if folder exists, false otherwise
*/
foldersUtils.folderExist... |
"use strict";
var Connection = require('../lib/Connection');
var Configuration = require('../lib/Configuration');
var MissingParameterError = require('./Error/MissingParameterError');
var DataTypeError = require('./Error/DataTypeError');
var InstantiationUnAllowedError = require('./Error/InstantiationUnAllowedError');... |
/*jslint node: true */
"use strict";
var $ = require('gulp-load-plugins')();
var argv = require('yargs').argv;
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var merge = require('merge-stream');
var sequence = require('run-sequence');
var colors = ... |
/*
* ScaleRaphael 0.8 by Zevan Rosser 2010
* For use with Raphael library : www.raphaeljs.com
* Licensed under the MIT license.
*
* www.shapevent.com/scaleraphael/
*
* Modified 2/4/2011 Mikhail Wolfson (wolfsonm@addgene.org) (MYW)
*/
(function(){
window.ScaleRaphael = function(container, width, height){
... |
export class <%= upCaseName %> extends React.Component {
static propTypes = {
// initialCount: React.PropTypes.number.isRequired
}
render(){
<div>
<p> I am the <%= upCaseName %> Component</p>
<div>
}
};
|
"use strict";
var gulp = require("gulp"),
path = require("path"),
connect = require("gulp-connect"),
vulcanize = require("gulp-vulcanize"),
crisper = require("gulp-crisper");
gulp.task("serve", function () {
connect.server({
root: "./",
livereload: false
});
});
gulp.task("bu... |
import routeContext from '../routecontext'
const factory = (opts = {}) => {
const getUrl = routeContext(opts.path || '')
// an object that maps action names onto functions
// each function will return a URL to redirect the app to
const routeHandlers = {
// get the route to view an item
open:(item = {... |
/**
* This file automatically generated from `pre-publish.js`.
* Do not manually edit.
*/
module.exports = {
"area": true,
"base": true,
"br": true,
"col": true,
"embed": true,
"hr": true,
"img": true,
"input": true,
"link": true,
"meta": true,
"param": true,
"source": true,
"track": true,... |
var pg = require('pg');
var path = require('path');
var connectionString = require(path.join(__dirname, '../../', 'config')).connectionString;
var client = new pg.Client(connectionString);
client.connect();
var query = client.query(
'CREATE TABLE IF NOT EXISTS ProdutoCompra(' +
'idCompra integer REFEREN... |
var Boom = require('boom');
var Joi = require('joi');
var Hoek = require('hoek');
var AuthPlugin = require('../auth');
var internals = {};
internals.applyRoutes = function (server, next) {
var Status = server.plugins['hapi-mongo-models'].Status;
server.route({
method: 'GET',
path: '/statu... |
export default function (fn) {
let wait = false, frame
function debounced (...args) {
if (wait) { return }
wait = true
frame = requestAnimationFrame(() => {
fn.apply(this, args)
wait = false
})
}
debounced.cancel = () => {
window.cancelAnimationFrame(frame)
wait = false
... |
import { AUTO_COMPLETE_MAX_LENGTH } from '../GeneralAppSettings';
import grey900 from 'material-ui/styles/colors';
// General
export const HEAD_INPUT_MAXLENGTH = AUTO_COMPLETE_MAX_LENGTH;
// Head width and style
export const INIT_HEAD_WIDTH = 30;
export const INIT_HEAD_HEIGHT = 30;
export const INIT_HEAD_LEFT_OFFSET ... |
/**
* Webpack config for the project
*
* This file tells webpack how to build your project, and includes instructions for both development and production
* environments. For an understanding of what each setting is for, see the official webpack documentation:
*
* https://webpack.js.org/configuration/
*
* If you... |
javascript: (function () {
const css = `
:root {
--filter-chain: sepia(90%) invert(100%) hue-rotate(180deg) blur(0.2px) brightness(170%);
}
body {
background-blend-mode: overlay;
background-color: #0A0A0A;
text-shadow:
0 0 5px rgba(1, 1, 1, 0.8),
0 0 1em rgba(255, ... |
ScalaJS.is.scala_scalajs_test_TestOutput = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_scalajs_test_TestOutput)))
});
ScalaJS.as.scala_scalajs_test_TestOutput = (function(obj) {
if ((ScalaJS.is.scala_scalajs_test_TestOutput(obj) || (obj === null))) {
return obj
} els... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zm-8.64 6.25c-.39.39-1.02.39-1.41 0L7.2 14.2a.995... |
import * as React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import { green } from '@material-ui/core/colors';
import Button from '@material-ui/core/Button';
import Fab from '@material-ui/core/Fab';
imp... |
var mainTemplate = require('../templates/layouts/main.hbs');
module.exports = AppLayoutView = Backbone.Marionette.LayoutView.extend({
template: mainTemplate,
regions: {
menuRegion: '#menu-region',
contentRegion: '#content-region'
},
onRender: function () {
$("body").prepend(App.views.layout.el);
... |
import PIXI from 'libs/pixi.min.js';
import MapModel from 'src/model/pixi/map/MapModel.js';
import MapCharacter from 'src/model/pixi/map/MapCharacter.js';
import Player from 'src/model/Player.js';
import { PixiMapView, } from 'src/view/pixi/PixiMapView.js';
import { DEFAULT_TILE_SIZE } from 'src/model/pixi/map/MapMo... |
'use strict';
// use predefined logger (function colorConsole) with predefined color settings
let logger = require('../js-logging.umd.js').colorConsole();
logger.debug('Hello World!');
logger.info('Hello World!');
logger.notice('Hello World!');
logger.warning('Hello World!');
logger.error('Hello World!');
logger.critic... |
import chai from 'chai';
import chaiHttp from 'chai-http';
import { serverStart, serverStop } from '../lib';
import sources from './sources';
chai.use(chaiHttp);
const should = chai.should();
describe('websocket API', () => {
let server;
before(() => {
server = serverStart(sources, { port: 1337, webSocketEn... |
import {analysisPanelText as text} from 'js/config';
import {modalActions} from 'actions/ModalActions';
import React from 'react';
// Info Icon Markup for innerHTML
let useSvg = '<use xlink:href="#shape-info" />';
const showBasicModal = () => {
modalActions.showBasicModal(text.watershedSummeryInfo, text.watershedSu... |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// 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, merge... |
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* ... |
function ResourceController(ResourceService, BoardService, $scope, $rootScope) {
var ctrl = this;
ctrl.kinds = ['link', 'idea', 'image link'];
ctrl.sortType = 'name';
ctrl.form = false;
ctrl.boardForm = false;
ctrl.search = '';
ctrl.resources = [];
ctrl.showForm = function () {
ctrl.form = true;
... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('fd-ucd', 'Unit | Model | fd-ucd', {
// Specify the other units that are required for this test.
needs: [
'model:fd-ad',
'model:fd-aggregation',
'model:fd-application-user',
'model:fd-association',
'model:fd-auth-type',
'mod... |
angular.module('app', [
'chart.js',
'firebase',
'frapontillo.gage',
'pascalprecht.translate'
]); |
import { combineReducers } from 'redux';
import * as actions from './actions';
import { cleanArtifacts } from '../models/artifacts';
export default {
menuOpen: (state=false, action) => {
if (action.type === actions.MENU_VISIBILITY) {
return action.value;
}
return state;
},
artifacts: combineR... |
var assert = require('chai').assert,
Path = require('path'),
fs = require('fs'),
findup = require('..');
describe('find-up', function(){
var fixtureDir = Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c', 'b', 'a');
it('accept a function', function(done){
findup(fixtureDir, function(dir, cb){
retu... |
import {Guid} from '../_helpers/Guid';
export class Task {
constructor(title, category, id){
this.id = id || Guid.new();
this.title = title || '';
this.category = category || '';
this.startTime = void 0;
}
start(){
this.startTime = new Date();
}
stop(){
this.stopTime = new Date();
... |
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 BABYLON;
(function (BABYLON) {
var StereoscopicInterla... |
export default function createTapeTest({actions, imports, reducer, equalityFunction}) {
const asserts = actions.map((action, index) => {
return `test('${action.action.type} (action index ${index}) should correctly update state', function(assert) {
var action = actions[${index}];
var result = reducer(action.pr... |
const _ = require('lodash');
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const expect = chai.expect;
chai.use(chaiAsPromised);
chai.should();
const { mockFetch } = require('../../../util');
const { handleTokens } = require('../../../../src/server/routes/enrichment/visualization/pa... |
/*
* bucketdb
*
* Copyright(c) 2015 André König <andre.koenig@posteo.de>
* MIT Licensed
*
*/
/**
* @author André König <andre.koenig@posteo.de>
*
*/
'use strict';
var storage = require('../')(require('path').join(process.cwd(), 'database'));
var expect = require('expect.js');
describe('The storage layer s... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '// ==========================================================================\n' +
'// Project: <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n' +... |
quail.aAdjacentWithSameResourceShouldBeCombined = function (quail, test, Case) {
function findAdjacent (index, element) {
var $element = $(element);
// Find all the links
var $links = $element.find('a');
// Sort them into singletons and coupletons.
var $singletons = $();
var $coupletons = $()... |
var _ = require('lodash')
var BufferTools = require('./buffers')
var internals = {
compileShader : function( gl, source, type ) {
var shader = gl.createShader( type )
gl.shaderSource( shader, source )
gl.compileShader( shader )
if (! gl.getShaderParameter(shader, gl.COMPILE_STATUS) ) {
var typeNam... |
(function () {
'use strict';
define(
[
'lodash',
'chai',
'config/collections/library/searchInputFields'
],
function (_, chai, searchInputFields) {
var expect = chai.expect;
describe('The `library/searchInputFields` module', fu... |
$(function () {
// Use the same scale for all participants to make comparing them easier
var tournamentStart = Number.MAX_VALUE;
var tournamentMaxPoints = 3;
function plotScoreHistory(element) {
var scoreHistory = element.scoreHistory || [];
var deficitHistory = element.deficitHistory ... |
angular.module('material.components.menu')
.provider('$mdMenu', MenuProvider);
/*
* Interim element provider for the menu.
* Handles behavior for a menu while it is open, including:
* - handling animating the menu opening/closing
* - handling key/mouse events on the menu element
* - handling enabling/dis... |
var moment = require("../../moment");
exports.string_prototype = {
"string prototype overrides call" : function (test) {
test.expect(1);
moment.lang('en');
var prior = String.prototype.call, b;
String.prototype.call = function () { return null; };
b = moment(new ... |
/**
* Define function to send email by sendgrid.
* @function sendBySendgrid
* @returns {function}
*/
'use strict'
/** @lends sendBySendgrid */
function sendBySendgrid (apiKey) {
const sendgrid = require('sendgrid')(apiKey)
return function send ({ subject, to, from, text, html }) {
let request = sendgrid.e... |
import * as M from "@effectful/core";
(function () {
var i, j, len, ref;
ref = [1, 2, 3];
i = 0;
return M.jump(void 0, _1);
function _1() {
if (i < 3) {
return M.chain(eff(i), _2);
} else {
return M.jump(void 0, _9);
}
}
function _2() {
j = 0, len = ref.length;
return M.... |
// TODO Add in pre and post skipping options
module.exports = {
/**
* Declares a new hook to which you can add pres and posts
* @param {String} name of the function
* @param {Function} the method
* @param {Function} the error handler callback
*/
hook: function (name, fn, errorCb) {
i... |
export default {
path: '/shop-cart',
name: 'shopCart',
meta: {
requiresQuery: ['merchantId']
},
component(resolve) {
require.ensure([], require => resolve(require('../modules/shopCart')));
}
};
|
(function() {
'use strict';
angular
.module('bibalDenisApp')
.factory('DateUtils', DateUtils);
DateUtils.$inject = ['$filter'];
function DateUtils ($filter) {
var service = {
convertDateTimeFromServer : convertDateTimeFromServer,
convertLocalDateFromSe... |
var Helper = require('./Helper');
var _super = Helper.prototype;
var _ = require('lodash');
module.exports = Helper.extend({
'run': function (params) {
var self = this;
params = params || {};
return JSON.stringify(params);
}
}); |
// google.maps.event.addDomListener(window, 'load', initialize);
// Adding 500 Data Points
// var map, pointarray, heatmap;
// var noiseData;
// function createData() {
// noiseData = collection.collect { |obj|
// new google.maps.LatLng(obj.latitude, obj.longitude)
// }
// noiseData = [
// new google.m... |
/**
*
* @param {$scope} $scope
* @param {$state} $state
* @param {$stateParams} $stateParams
* @param {Configuration} Configuration
*
* @constructor
*/
function maFilterController($scope, $state, $stateParams) {
'use strict';
this.$scope = $scope;
this.$state = $state;
this.$stat... |
(function() {
var mod = {};
// TODO: Should also plug the CocoonJs app extensions with CocoonJS.App.DeviceInfo
// There is multiple things on the object navigator aslo
/**
* window.force.modules.environment.isEjecta()
*/
mod.isEjecta = function () {
return ((window.ejecta && window.ejecta... |
var MriAtlasHelper = function(){
var bh;
var modal_projects;
var grid_projects;
var members;
var bindings;
var Init = function()
{
bh = BootstrapHelper();
modal_projects = {};
grid_projects = {};
members = {};
this.bindings = {};
... |
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var paths = require('../helpers/paths');
var env = require('../helpers/env');
var HappyPack = require('happypack');
var babelConfig = require('../helpers/babelConfig');
var globals = require('../helpers... |
//Title: Hovercard plugin by PC
//Documentation: http://designwithpc.com/Plugins/Hovercard
//Author: PC
//Website: http://designwithpc.com
//Twitter: @chaudharyp
//
//Version 1.0 Aug 31st 2011 -First Release.
//Version 1.1 Sep 29th 2011
//Bug fixed: When using hovercard in hovercard, the inner hovercard sho... |
'use strict';
angular.module('confRegistrationWebApp')
.factory('httpUrlInterceptor', function (apiUrl) {
return {
request: function (config) {
var passthroughRegexs = [
/https?:\/\/.*/,
/^views\/.*/,
/template\/.*/
];
var match = function (regexp) {
... |
// Karma configuration
// Generated on Wed Mar 05 2014 14:22:42 GMT-0800 (PST)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: [
'mocha',
'chai-jquery',
'sinon-chai',
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
fm.Package("jfm.lang");
fm.Class("System");
System = function (me){this.setMe=function(_me){me=_me;};
this.shortHand = "System";
this.Static.out = {
print:function(data){Server.getInstance("clientS... |
import Ember from 'ember';
import layout from '../templates/components/em-tgraph';
import fullscreen from '../utils/fullscreen';
import GraphView from '../utils/graph-view';
import DataProcessor from '../utils/data-processor';
export default Ember.Component.extend({
layout: layout,
classNames: ['dag-view-conta... |
'use strict';
/**
* Simplifies dealing with AWS's ECS taskServices
*
* @module aws/taskServiceManager
*/
const SERVICE_POLL_DELAY = 15000;
const q = require('q');
const R = require('ramda');
const util = require('../util');
const TaskDefinitionManager = require('./taskDefinitionManager');
function getTaskServic... |
/**
* Created by v.stokolosa on 10/31/14.
*/
function LBlock() {
'use strict';
this.position_1 = [ [1, 0],
[1, 0],
[1, 1] ];
this.position_2 = [ [0, 0, 1],
[1, 1, 1] ];
this.position_3 = [ [1, 1],
[0, 1]... |
// Compiled by ClojureScript 1.7.228 {:target :nodejs}
goog.provide('clojure.walk');
goog.require('cljs.core');
/**
* Traverses form, an arbitrary data structure. inner and outer are
* functions. Applies inner to each element of form, building up a
* data structure of the same type, then applies outer to the r... |
// Team scraper
var request = require('request'),
cheerio = require('cheerio'),
validate = require('./validate');
// Fetch league information
exports.get = function(leagueType, leagueId, teamId, season, callback) {
var url;
// Validate a callback exists if not then we are expecting a URL
if (typeof ca... |
function Problem(){
this.givens = {}
this.find = [];
}
Problem.prototype.solution = function(answer){
return true;
}
function ProblemFindY(rand){
this.change = {x:(rand.nextInteger(18)-9), y:(rand.nextInteger(18)-9)}
this.point = {x:(rand.nextInteger(18)-9), y:(rand.nextInteger(18)-9)}
this.xval = (rand.nextIn... |
var request = require('request');
var cheerio = require('cheerio');
var Promise = require('promise');
// source : https://www.digitalocean.com/community/tutorials/how-to-use-node-js-request-and-cheerio-to-set-up-simple-web-scraping
function scrape(url, json) {
'use strict';
json = json || false;
return new Promi... |
'use strict';
var assert = require('assert');
var gutil = require('gulp-util');
var lesshint = require('../');
var Stream = require('stream');
it('should check less files', function (cb) {
var stream = lesshint();
stream.on('error', function (error) {
if (/spaceBeforeBrace/.test(error) && /spaceAfter... |
import state from './state';
import mutations from './mutations';
import * as actions from './actions';
import * as getters from './getters';
export default {
namespaced: true,
state,
mutations,
actions,
getters,
};
|
function splitify(str) {
// Add your code below this line
return str.split(/[\s-,.]/);
// Add your code above this line
}
splitify("Hello World,I-am code"); |
const Benchmark = require('benchmark');
const suite = new Benchmark.Suite;
const removeDiacritics = require('diacritics').remove;
const deburr = require("lodash").deburr;
const memoize = require("lodash").memoize;
const data = 'Cualquier cosa me avisás. #hash';
const regexA = /([^A-Z])([A-Z])/g
const regexB = /(\-|\_)... |
// Zepto 1.1.4 (generated with Zepto Builder) - zepto event ajax callbacks deferred ie touch - zeptojs.com/license
// Zepto.js
// (c) 2010-2014 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
var Zepto = (function() {
var undefined, key, $, classList, emptyArray = [], slice = e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.