code stringlengths 2 1.05M |
|---|
process.env.DISABLE_NOTIFIER = true;
var elixir = require('laravel-elixir'),
path = require('path'),
webpack = require('webpack');
require('laravel-elixir-livereload');
require('laravel-elixir-webpack-ex');
/*
|--------------------------------------------------------------------------
| Elixir Asset Manage... |
/* eslint-disable react/react-in-jsx-scope, react/jsx-no-undef */
const a = <Test_component />;
const b = <TEST_COMPONENT />;
const c = <testComponent />;
|
search = function () {
return {
init: function () {
},
linear: function(a, val){
var n = a.length
for(var i=0; i < n; ++i)
if(a[i] == val)
return i
},
binary: function(a, val){
var i=0,
... |
/***********************************************************************************************************************
*
* gulp.watch report change formatter
* @type {Module}
*
**********************************************************************************************************************/
const chal... |
// server.js
/**
* BASE SETUP
*/
var mongoose = require('mongoose');
var DB_HOST = process.env.DB_HOST;
var DB_USER = process.env.DB_USER;
var DB_PASSWORD = process.env.DB_PASSWORD;
var DB_DATABASE = process.env.DB_DATABASE;
var connectionString = 'mongodb://' +
DB_USER +
... |
var should = require('should');
var app = require('../../app');
var session = require('supertest-session');
var _ = require('lodash');
// session
var testSession = session(app);
var articleId = null;
var testData = { title: 'test', contents: '123' };
describe('Articles router testing', function() {
it('should sign ... |
import chai, { expect } from "chai";
import path from "path";
import sinon from "sinon";
import sinonChai from "sinon-chai";
import Number from "../lib/Number";
import HttpClient from "../lib/HttpClient";
import Credentials from "../lib/Credentials";
import ResourceTestHelper from "./ResourceTestHelper";
chai.use(si... |
'use strict';
var createDist = require( './../lib' );
// Define the distribution parameters...
var lambda = 10,
k = 20;
// Create a vector...
var vec = new Array( 1000 ),
len = vec.length;
for ( var i = 0; i < len; i++ ) {
vec[ i ] = lambda * Math.pow( -Math.log( 1 - Math.random() ) , 1/k );
}
// Create a Weibu... |
/**YEngine2D
* author:YYC
* date:2014-02-09
* email:395976266@qq.com
* qq: 395976266
* blog:http://www.cnblogs.com/chaogex/
* homepage:
* license: MIT
*/
(function(){
YE.Node = YYC.AClass(YE.Entity, {
Private: {
ye_parent: null,
ye_zOrder: 0,
ye_setZOrder: functi... |
/**
* Creates a new Screen
*
* @class Screen
* @description todoc
**/
function Screen() {
this.pos = new Vector2();
}
/** @lends Screen# **/
var screenProto = Screen.prototype = Object.create(null);
screenProto.constructor = Screen;
/**
* The position of the screen
*
* @type Vector2
* @default null
* @reado... |
/**
* Created by Josias Montag on 13/10/16.
*/
(function () {
'use strict';
angular
.module('artemisApp')
.component('editorFileBrowser', {
bindings: {
participation: '<',
file: '=',
onCreatedFile: '&',
onDeletedFile:... |
/*
* grunt-tailor
* https://github.com/felixlaumon/grunt-custom
*
* Copyright (c) 2013 Felix Lau
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
all: [
... |
/**
* @file 图像二值化相关的阈值处理函数
*
* 代码来源于:
* http://blog.csdn.net/laviewpbt/article/details/11306685
*
* @author mengke01(kekee000@gmail.com)
*/
/**
* 检测直方图是否为双峰
*
* @param {Array} HistGram 灰度数据
* @return {boolean} 是否为双峰
*/
function isDimodal(HistGram) {
// 对直方图的峰进行计数,只有峰数位2才为双峰
let Count = 0;
for (... |
/*!
*
* Super simple wysiwyg editor v0.8.17
* https://summernote.org
*
*
* Copyright 2013- Alan Hong. and other contributors
* summernote may be freely distributed under the MIT license.
*
* Date: 2020-05-19T19:23Z
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === '... |
var gulp = require('gulp');
var gulpif = require('gulp-if');
var config = require('../config');
var path = require('path');
var handleErrors = require('../lib/handleErrors');
var browserSync = require('browser-sync');
var changed = require('gulp-changed');
var paths = {
src: path.join(config.root.src, config.tasks.i... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('implementation-guide-global', 'Unit | Model | ImplementationGuide_Global', {
needs: [
'model:meta',
'model:narrative',
'model:resource',
'model:extension',
'model:reference'
]
});
test('it exists', function(assert) {
const m... |
(function (factory) {
if (typeof define === 'function' && define.amd) {
/*
In AMD environments, you will need to define an alias
to your selector engine. i.e. either zepto or jQuery.
*/
define(['$'], factory);
} else {
/*
Browser globals
*/
... |
import {
RecursiveTranslationChain
}
from '../../../../src/core/chain/recursive-translation-chain';
import {
CircularTranslationChain
}
from '../../../../src/core/chain/circular-translation-chain';
import {
TranslationChain
}
from '../../../../src/core/chain/translation-chain';
import {
Magnitude,
OrderOfM... |
(function () {
"use strict";
var app = angular.module("dashboard-app");
app.directive("stopwatch", ["$interval", function ($interval) {
return {
restrict: "E",
replace: "true",
templateUrl: '/app/dashboard/stopwatch/stopwatch.html',
scope: {
... |
// Include here files without reverse dependencies
define([
'app/components/greeting'
], function() {
'use strict';
});
|
//~ name c663
alert(c663);
//~ component c664.js
|
Template[getTemplate('nav')].helpers({
headerClass: function () {
var headerClass = "";
var bgBrightness = tinycolor(Settings.get('headerColor')).getBrightness();
if (bgBrightness < 50) {
headerClass += " dark-bg";
} else if (bgBrightness < 130) {
headerClass += " medium-dark-bg";
} el... |
'use strict';
angular.module('friends').directive('friendList', ['Friends', 'Notify',
function(Friends, Notify) {
return {
restrict: 'E',
transclude: true,
templateUrl: 'modules/friends/views/friend-list-template.html',
link: function(scope, element, attrs){... |
'use strict';
import React, {PropTypes} from 'react';
class {{component}} extends React.Component {
constructor(props) {
super(props);
}
componentWillMount() {
// component has not been rendered to DOM yet
// process any data here if needed
}
componentDidMount() {
// component has been rend... |
/**
* Set Connections Request event
* @module daemon/events/set-connections-request
*/
const NError = require('nerror');
const Base = require('./base');
/**
* Set Connections Request event class
*/
class SetConnectionsRequest extends Base {
/**
* Create service
* @param {App} app ... |
/** @jsx React.DOM */
var React = require('react');
var Router = require('react-router');
var express = require('express');
var exphbs = require('express-handlebars');
var favicon = require('serve-favicon');
var config = require('./config')
var app = express();
app.use(express.static(__dirname + '/build'));
app.use(e... |
/**
* Created by choizhang on 16/6/1.
*/
export function range(data) {
let $range = $(`
<div class="setting-component">
<div>${data.label}</div>
<input type="range" max="${data.max}" min="${data.min}" value="${data.value}" step="${data.step || 1}">
</div>
`);
$ran... |
'use strict';
const common = require('../../common');
const spy = common.spy;
const expect = common.expect;
const BaseDomainService = require('../../../domain/base-domain-service');
const target = new BaseDomainService('', 'user');
describe('BaseDomainService-save-test', function () {
before(function () {
});
... |
version https://git-lfs.github.com/spec/v1
oid sha256:9d9075a06453b7257c6309a4e9067f5e69325b3b8666459bccdece15e6ca91ab
size 212644
|
const { rollup } = require('rollup'),
babel = require('rollup-plugin-babel'),
nodeResolve = require('rollup-plugin-node-resolve'),
postcssExport = require('rollup-plugin-postcss-export'),
postcssImport = require('postcss-import'),
postcssRebem = require('rebem-css'),
postcssNested = require('pos... |
UI.buttonGroup = function(title,buttonsInfo){
var me = UI.panel();
me.hide();
var titleBar = UI.scale9Panel(0,0,20,20,UI.Assets.panelDarkGreyScale9);
titleBar.ignoreEvents = true;
me.addChild(titleBar);
var titleLabel = UI.label({
label: title,
font: fontSmall,
width: 60,
top: 1
});
me.addChild(title... |
(function(){
function iter$(a){ return a ? (a.toArray ? a.toArray() : a) : []; };
// The Imba parser is generated by [Jison](http://github.com/zaach/jison)
// from this grammar file. Jison is a bottom-up parser generator, similar in
// style to [Bison](http://www.gnu.org/software/bison), implemented in JavaScri... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
var data = require('../data.json');
var userdata = require('../public/js/userdata');
exports.decline = function(req, res){
var id = parseInt(req.query.id);
//Find the user_id currently logged on
var user_id = -1;
for(var i = 0; i < data['users'].length; i++){
if(data['users'][i]['active']){
user_id... |
"use strict"
var tape = require("tape")
var brutal = require("../bench/brute_force")
var rblsi = require("../bench/rblsi")
var cases = require("../bench/cases")
cases.forEach(function(testCase) {
tape(testCase.name, function(t) {
var expected = brutal(testCase.red, testCase.blue)
expected.sort()
va... |
var Toast = Notification.extend({
className: 'dialog dialog--toast',
});
|
define([
'views/products/steps/stepsTemplate',
'text!templates/products/steps/variations.html'
],
function (stepTemplate, template) {
var ProductsEditVariationsView = stepTemplate.extend({
events: {
'click #save_and_continue': 'saveAndContinue',
'click #colors.sin... |
/**
UTF8(BOM) LGPL trydofor.com May.2007
===========================================================
void parse(a9dom)
*/
var AreaTableParser = function()
{
A9Dom.type.area_table = {
$border:"area_table$border",
$width:"area_table$width",
$height:"area_table$height",
... |
import {fireEvent} from '@testing-library/dom';
import {h} from '../../utils';
import delegate from '../../../src/addons/delegate';
import {getFormattedMessage} from '../../../src/validation';
import {normalizeToArray} from '../../../src/utils';
let instance;
let delegateElement = h();
afterEach(() => {
if (instan... |
var app = app || {};
app.modal = (function () {
function createModal(modalId, title, content, btns) {
this.modalId = modalId;
this.title = title;
this.content = content;
this.btns = btns;
var modal = this;
this.Open = function () {
var htmlBody = '<div ... |
app.controller('ProfileCtrl', function($scope, $location, auth, identity) {
$scope.user = {
firstName: identity.currentUser.firstName,
lastName: identity.currentUser.lastName
}
$scope.update = function(user) {
auth.update(user).then(function() {
$scope.firstName = user.f... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
class Logger {
static error(...msg) {
Logger.logger.error("\x1b[31m%s\x1b[0m", ...msg);
}
static success(...msg) {
Logger.logger.log("\x1b[32m%s\x1b[0m", ...msg);
}
static info(...ms... |
/**
* command.js
*/
/* api */
import { runSetup } from './setup.js';
import { version as hostVersion } from './version.js';
import { program as commander } from 'commander';
import {
CMD_BROWSER, CMD_BROWSER_DESC, CMD_CONFIG_PATH, CMD_CONFIG_PATH_DESC,
CMD_EDITOR_ARGS, CMD_EDITOR_ARGS_DESC, CMD_EDITOR_PATH, CMD_... |
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Editor.insertText(editor, 'a')
}
export const input = (
<editor>
<block>
<anchor />
one
</block>
<block>
<focus />
two
</block>
</editor>
)
// TODO: the hanging ... |
/***************************************************
- TEACOMMERCE CLASS
***************************************************/
if (typeof TC === 'undefined') { var TC = {}; }
(function () {
/***************************************************
- ORDER
***************************************************/
TC.ge... |
/**
* 1. Type checks
* 2. Field enforcement
*
* var MyStruct = new Struct({
* fieldA: Struct.Types.string,
* fieldB: Struct.Types.object,
* FieldC: function contract(value) {
* if (value >= 99) {
* return 'precondition violated, expected value to be < 99, got: ' + value;
... |
var express = require('express');
var router = express.Router();
var knox = require('knox');
var Jimp = require('jimp');
var fs = require('fs');
var defaults = require("./../config/defaults.json");
var presets = require("./../config/presets.json");
var crypto = require('crypto');
var sendOptions = {
root: __dirnam... |
// 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... |
function factorialize(num) {
var arr = [];
if (num === 0) {
return 1;
} else {
for (var i = 1; i <= num; i++) {
arr.push(i);
}
var newNum = arr.reduce(function(sum , value){
return sum * value;
});
return newNum;
}
}
module.exports.factorialize = fact... |
import React from 'react';
import {Nav, Navbar, NavDropdown} from 'react-bootstrap';
import {LinkContainer} from 'react-router-bootstrap';
import {AuthConsumer} from './AuthContext'
function Menu() {
return (
<AuthConsumer>
{({isAuth, name, logout}) => (
<Navbar bg="light" expan... |
/**
* Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
* Author: Felix Vera (felix.vera@gmail.com)
* Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
* Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018).
* Revisión: Ricardo González (rickygzz85@gmail.com) (20/Oct/2021)
*... |
var storageEngine = require('./lib/storageEngine');
var interface = require('./lib/interface');
function create(options) {
var engine = storageEngine.create(options);
return interface.wrap(engine);
}
module.exports.create = create;
module.exports.createClient = create;
|
const isp2p = room => room && room.toLowerCase().indexOf('p2p') > -1;
angular.module('opentok-meet-login', [])
.controller('MainCtrl', ['$scope', '$window', function MainCtrl($scope, $window) {
$scope.room = '';
$scope.roomType = 'normal';
$scope.advanced = false;
$scope.joinRoom = () => {
let ... |
define(function () {'use strict';
var array = Array;
return array;
}); |
import React, { Component } from 'react';
import loremIpsum from 'lorem-ipsum';
import moment from 'moment';
import './styles.css';
const msgGengerator = (count, ids=[]) => {
// console.log("msgGengerator:", count, ids);
return [...Array(count).keys()].map(idx => {
const who = Math.floor(Math.random() * ids.l... |
import React, { PropTypes } from "react";
import { FormGroup, Input, Label, FormFeedback } from "reactstrap";
import Immutable from "immutable";
import cuid from 'cuid';
class AuthInput extends React.Component {
static propTypes = {
label: PropTypes.string,
value: PropTypes.string,
errors: PropTypes.obje... |
function get(o, path, defaultValue) {
var props = path.split('.'),
i,
// iterative variable
p,
// current property
success = true;
for (i = 0; i < props.length; i += 1) {
p = props[i];
if (has(o, p)) {
o = o[p];
} else {
su... |
var Mediator = require('../index'),
mediator = new Mediator(),
// Add a couple of members
member0 = {},
member1 = {};
//add the members to the mediator
mediator.add(member0,"testEvent0",member0Callback);
mediator.add(member1,"testEvent0",member1Callback);
//inline callback
mediator.add(member1,"testE... |
import React, { Component } from 'react'
import firebase from 'firebase'
import SignIn from './SignIn'
export default class Auth extends Component {
signIn() {
const provider = new firebase.auth.GoogleAuthProvider()
provider.addScope('https://www.googleapis.com/auth/userinfo.email')
firebase.auth().signI... |
var express = require('express');
var bodyParser = require('body-parser');
var fs = require('fs');
var app = express();
// simple logger
app.use(function(req, res, next){
console.log('%s %s', req.method, req.url);
next();
});
// parse application/json and application/x-www-form-urlencoded
app.use(bodyParser({limi... |
var Entity = ring.create({
constructor: function()
{
this.parent = null;
this.state = null;
this.position = new Point(0, 0);
this.dimensions = new Point(0, 0);
this.speed = 0;
this.renderedManually = false;
this.zIndex = 0;
this.clickable = false;
this.draggable = false;... |
import { Serializer as CommentSerializer } from '../mixins/regenerated/serializers/ember-flexberry-dummy-comment';
import __ApplicationSerializer from './application';
export default __ApplicationSerializer.extend(CommentSerializer, {
});
|
/**
* @fileoverview Skype Emoticons
* @author Thibault Martin-Lagardette
* @version 1.0
*/
/*
* Copyright (c) 2012 Skype Technologies S.A. All rights reserved.
*/
function elementIsInViewport(elm) {
var r = elm.getBoundingClientRect();
return (
(r.top + r.height) >= 0 && (r.bottom - r.height) <= window.inne... |
'use strict'
import React from 'react'
import cx from 'classname'
import moment from 'moment'
import ApplicantActions from '../../actions/applicant-actions'
class ApplicantCard extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
let {
className,
item... |
'use strict'
const AuthRequest = require('./auth-request')
const debug = require('./../debug').accounts
class PasswordResetEmailRequest extends AuthRequest {
/**
* @constructor
* @param options {Object}
* @param options.accountManager {AccountManager}
* @param options.response {ServerResponse} express r... |
'use strict';
var SearchParameters = require('../../../src/SearchParameters');
describe('removeDisjunctiveFacet', function() {
test('removeDisjunctiveFacet(attribute), multiple refinements', function() {
var state = new SearchParameters({
disjunctiveFacets: ['attribute', 'other'],
disjunctiveFacetsR... |
const d2utils = require('./../d2utils')
const unitFileMenu = [{
label: 'Add Unit',
click (menuItem, currentWindow) {
donkey.nav.newDataDialog(menuItem.target.dataset.path, 'Dota2Unit', 'Enter the name of the new unit.', null, '//DOTAUnits//')
}
}, {
label: 'Edit Unit Metadata',
click (menuItem, currentWi... |
webpackHotUpdate(0,{399:function(module,exports){eval('"use strict";\n\nObject.defineProperty(exports, "__esModule", {\n value: true\n});\nvar generateMinefield = function generateMinefield(f, x, y, z) {\n return Array.apply(null, Array(x)).map(function () {\n return Array.apply(null, Array(y)).map(function () {\n... |
/*
* Copyright (C) 2013-2015 Uncharted Software Inc.
*
* Property of Uncharted(TM), formerly Oculus Info Inc.
* http://uncharted.software/
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (... |
"use strict";
const express = require('express');
const router = express.Router();
const AuthMiddleware = require('../../authentication/src/AuthMiddleware');
// =========================================================================
// Engine - GET ============================================================
// ====... |
(function () {
//TODO(whomever wrote this): This won't ever work; it violates Chrome security by loading the ga.js script.
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('sc... |
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:promise/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
... |
module.exports=require("../mercenaries/bot")
("irc.rizon.net","#Exiled-Destiny?","E-D|Himari"); |
/*
* top-level keys: name of public method to chart object that can be called
*
* key-value-pairs inside these:
* methods that are called when calling the top-level one
*
* key: name of property of the internal chart object that gets the
* return value of this function assigned
*
* keys starting with an un... |
import $ from 'jquery';
import ExportValues from './ExportValues';
export default class InputSelect {
constructor(id, defaultVal, callback, gui) {
this.id = id;
this.gui = gui;
this.input = $(`<input id="${id}_inp">`).on('change.jsorrery', callback);
this.display = $('<div class="display">');
this.list = $... |
import ListRoute from 'routes/RandomList';
describe('(Route) RandomList', () => {
let _component;
beforeEach(() => {
_component = ListRoute.component;
});
it('should return a route', () => {
expect(typeof ListRoute).to.equal('object');
expect(ListRoute.path).to.equal('randomise-list');
});
i... |
'use strict';
/*
* This file was autogenerated
* Any changes made here will be overriten!
*/
exports.EMOJI_PICKER_PATH = '.popouts';
exports.SETTINGS_CLASSES = undefined;
exports.SWITCH_CLASSES = 4736;
exports.FLEX_CHILD_CLASSES = 660;
exports.FLEX_CLASSES = 619;
exports.HEADER_CLASSES = 1324;
exports.SWITCH_ITEM... |
const assert = ::console.assert;
async function life() {
return 42;
}
const answer = life();
assert(answer !== 42);
assert(answer instanceof Promise);
answer.then(value => assert(value === 42));
|
/*
* Copyright 2014, Digium, Inc.
* All rights reserved.
*
* This source code is licensed under The MIT License found in the
* LICENSE file in the root directory of this source tree.
*
* For all details and documentation: https://www.respoke.io
*/
'use strict';
var Respoke = require('../../index');
var should ... |
'use strict';
/**
* Generates random strings
*
* @param {Object} [options] options
* @param {Number} [options.length=6] length of the string to produce
* @param {Boolean} [options.onlyDigits=false] make helper return string containing numbers only
* @param {Boolean} [options.withWhitespaces=false] make helper re... |
/*
* <%= props.name %>
* <%= props.homepage %>
*
* Copyright (c) <%= currentYear %><% if (props.authorName) { %> <%= props.authorName %><% } %>
* Licensed under the <%= props.license %> license.
*/
'use strict';
module.exports = function() {
return 'awesome';
};
|
'use strict';
const path = require('path');
const borders = require(path.join(process.cwd(), 'src/tokens/borders.json'));
const breakpoints = require(path.join(process.cwd(), 'src/tokens/breakpoints.json'));
const fonts = require(path.join(process.cwd(), 'src/tokens/fonts.json'));
const layers = require(path.join(proc... |
const ContractA = artifacts.require("ContractA");
const ContractB = artifacts.require("ContractB");
contract("contracta", function(accounts) {
let a,b;
before(async () => {
a = await ContractA.new();
b = await ContractB.new();
})
it('a:addFive', async function(){
await a.addFive();
});
it('a... |
var helpers = require('../helpers'),
_ = require('underscore');
/**
* for
*/
module.exports = function (indent, parentBlock, parser) {
var thisArgs = _.clone(this.args),
operand1 = thisArgs[0],
operator = thisArgs[1],
operand2 = parser.parseVariable(thisArgs[2]),
out = '',
... |
/*global todomvc, angular */
'use strict';
/**
* The main controller for the app. The controller:
* - retrieves and persists the model via the todoStorage service
* - exposes the model to the template and provides event handlers
*/
todomvc.controller('TodoCtrl', function TodoCtrl($scope, $routeParams, todoStorage,... |
'use strict';
var config = require('../config');
var gulp = require('gulp');
// var del = require('del');
gulp.task('clean', function(cb) {
// del([config.dist.root], cb);
});
|
"use strict";
// NON PUBLIC METHODS BELOW
const defaultComparator = (x, y) => x - y;
const D = function(callback) {
callback.call(this);
};
const L = function(callback, orderName) {
if (this.left) this.left.depthFirst(callback, orderName);
};
const R = function(callback, orderName) {
if (this.right) this.right.... |
'use strict';
var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
var _app = null;
function _configure() {
var User = _app.models.User;
var UserProvider = _app.models.UserProvider;
var passport = _app.passport;
var googleConfig = {
clientID : _app.config.get('auth.google.client... |
'use strict';
var expect = require('chai').expect;
var describe = require('mocha').describe;
var it = require('mocha').it;
var parser = require('../lib/parser');
var xlsx = require('xlsx');
var workbook = xlsx.readFile("tests/data/testdata.xlsx");
var jsobject = parser.parseWorkbook(workbook, 0, 0);
describe("xlso",... |
var Taints = {};
var HOOKISH_TAG = "34758";
Taints.XHR_JSON_RESPONSE = HOOKISH_TAG + "_XHR_JSON_RES";
Taints.XHR_RESPONSE = HOOKISH_TAG + "_XHR_RES";
function getTaintName(tag) {
for (x in Taints) {
if (tag === Taints[x]) {
return x;
}
}
console.warn("Error finding Taint Name");
return "!! Error... |
var DebugInventory = {
init: function() {
$.each(Data.getGame('categoryOrder'), function() {
DebugInventory.addCategory(this.toString());
});
$('#setButton').click(DebugInventory.setCurrency);
$('#currencyBox').val(GameState.getCharacter().getCurrency());
DebugSupport.addBackButton();
... |
'use strict'
var config = require('../config')
var generateUrl = require('../lib/generate-url')
/*!
*
* Public
*
*/
function getPublicResponse (request, reply) {
var message = {
message: '(Nothing but) Flowers'
}
reply(message)
}
/*!
*
* EWS
*
*/
function resizeImage (src, type, size, callback) {... |
'use strict';
var typo = require('typo')({
output: process.stdout
});
var rgb = require('typo-rgb');
typo.plugin(rgb);
typo.log(
'{{rgb:#f26d7d peach font}}' +
'{{bg.rgb:#f26d7d|rgb:#000 peach bg and black font}}' +
'{{bg.rgb:#f26d7d peach bg and white font}}'
); |
// Data from Overview API - in clear text for now
// var myUrl = window.location.href.split("documentSetId=")[1];
// var documentSetId = myUrl.split("&")[0];
// var token = myUrl.split("&apiToken=")[1];
// Fallback for iFrametesting
// var documentSetId = 1;
// var token = "bqm7pzbxdeg0zgjew5ogmcfga";
// For inside I... |
webpackJsonp([0],{
/***/ 0:
/***/ function(module, exports, __webpack_require__) {
var Vue = __webpack_require__(1)
window.app = new Vue(__webpack_require__(3));
/***/ },
/***/ 3:
/***/ function(module, exports, __webpack_require__) {
var __vue_script__, __vue_template__
__vue_script__ = __webpack_require__(4... |
$(function () {
'use strict';
var accumulateCallTimes = require('../../../callgraph/accumulateCallTimes');
var collapseCallGraph = require('../../../callgraph/collapse');
var data = {};
var commander = {};
var templateSource = $('#template').remove().html().replace(/^\s*/, '').replace(/\s*$/, '');
var r... |
/*****
Reviews redux set will deal with single and multiple reviews.
Single review in state.reviews.selected.
Multiple reviews in state.reviews.list.
*****/
/* -------------------< ACTIONS >--------------------- */
const SET_REVIEWS_LIST = 'SET_REVIEWS_LIST';
const SET_CURRENT_REVIEW = 'SET_CURRENT_REVIEW';... |
var searchData=
[
['where',['Where',['../struct_where.html',1,'']]],
['wheretype',['WhereType',['../query_8h.html#a5f007a3fe5613ea1d283e0f5b9b1fdf6',1,'WhereType(): query.h'],['../query_8h.html#a958c451ac635cb3879268c0eeebde48b',1,'WhereType(): query.h']]]
];
|
/* globals describe, expect, it, beforeEach, TASK_CONFIG, ENV */
var forEach = require("lodash/forEach");
var getEnabledTasks = require("../get-enabled-tasks");
var keys = require("lodash/keys");
describe("getEnabledTasks", function () {
describe("when env == development", function () {
beforeEach(function () {
... |
'use strict';
angular.module('appManagerApp')
.controller('NavbarCtrl', function ($scope, $location, Auth) {
$scope.menu = [
{
'title': 'Home',
'link': '/'
},
{
'title': 'Strings',
'link': '/strings'
},
{
'title': '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.