code stringlengths 2 1.05M |
|---|
import {
moduleForModel,
test
} from 'ember-qunit';
moduleForModel('employee', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});
|
/*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... |
(function () {
angular.module("MonitorAppDir", [])
.directive("node", function () {
return {
restrict: 'E',
replace: true,
scope: {
ax: '=',
ay: '=',
bx: '=',
by: '=',
... |
import { setOptions, geoJSON, DomEvent } from 'leaflet';
var capitalizeFirstLetter = function (string) {
if (!string || typeof string.charAt !== 'function') {
return string;
}
return string.charAt(0).toUpperCase() + string.slice(1);
};
var propsBinder = function (vueElement, leafletElement, props, options) ... |
var errorMessageConstant = require("../../technical/constants/errorMessageConstant.js"),
models = require('../../new/model/Models.js'),
bcrypt = require('bcrypt-nodejs'); // Middleware de chiffrage des mots de passe
var getUserBy = function(param, callback) {
models.User.find({
where: param
}).... |
'use strict';
const baseAssert = require('assert');
const AssertionError = baseAssert.AssertionError;
const assert = exports = module.exports = function assert(value, message) {
return baseAssert(value, message);
};
Object.assign(assert, baseAssert);
assert.bounded = function (value, range, message) {
if (value >=... |
"use strict";
const Condition = require("./condition.js");
const misc = require("../utils/misc.js");
const keys = Object.keys;
class RedundantCondition extends Condition {
constructor(conditionNode) {
super(conditionNode);
this.truthTable = {};
}
parse() {
super.parse();
this.generateTruthTab... |
include("shared/lib.js");
include("shared/path.js");
include("shared/notify.js");
var URL_PREFIX = 'http://gfycat.com/';
function runWithPaths(paths) {
return paths.map(function(path) {
var dest = upload(path);
return dest !== false ? {
"title": URL_PREFIX + dest,
"subtitle... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.combine = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototy... |
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports KmlTimePrimitive
*/
define([
'./KmlObject'
], function (KmlObject) {
"use strict";
/**
* Constructs an KmlTimePrimitiv... |
var btcBuffer = require('bitcoin-buffer');
var InvVector = require('../structures/invvector.js');
module.exports = Inv;
function Inv(payload) {
var pos = 0;
var countAndPos = btcBuffer.readVarInt(payload, pos);
pos = countAndPos.offset;
this.count = countAndPos.res;
this.invVectors = [];
for (var i = 0; i... |
'use strict';
const sax = require('sax');
const fs = require('fs');
const express = require('express')
const app = express()
const fileUpload = require('express-fileupload');
const stream = require('stream');
const mustacheExpress = require('mustache-express');
const Viz = require('viz.js');
let dot;
let state;
cons... |
import Socket from './socket';
import StatefulMixin from 'ivy-stateful/mixins/stateful';
import computed from 'ember-computed';
import get from 'ember-metal/get';
import { bind } from 'ember-runloop';
import { guidFor } from 'ember-metal/utils';
import { isEmpty } from 'ember-utils';
const retrieveFromCurrentState = c... |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import c from 'classnames';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
impo... |
var nps = require('path')
module.exports = {
fixturePath(subPath){
return nps.join(__dirname, '../fixture', subPath)
}
} |
// Archivist bindings for the MemoryVault API
function sortIndexes(indexes, sort) {
function compare(a, b) {
return a > b ? -1 : (b > a ? 1 : 0);
}
// format: [{ name: 'colName', direction: 'asc' }, { name: 'colName2', direction: 'desc' }]
// direction is 'asc' by default
indexes.sort(function (a, b) {
var ... |
const should = require('should');
const spamPrevention = require('../../../../../../../core/server/web/shared/middlewares/api/spam-prevention');
describe('Spam Prevention', function () {
it('exports a contentApiKey method', function () {
should.equal(typeof spamPrevention.contentApiKey, 'function');
})... |
'use strict';
import Preference from '../../core/models/preference.js';
import Swap from '../../core/models/swap.js';
import formUtil from '../formUtil.js';
import './form.html';
/** Convert function: String to Number. */
const TO_FLOAT = formUtil.to.float;
/** Convert function: String to integer (number). */
cons... |
import Icon from '../components/Icon.vue'
Icon.register({"folder-open-o":{"width":1920,"height":1792,"paths":[{"d":"M1781 931q0-35-53-35h-1088q-40 0-85.5 21.5t-71.5 52.5l-294 363q-18 24-18 40 0 35 53 35h1088q40 0 86-22t71-53l294-363q18-22 18-39zM640 768h768v-160q0-40-28-68t-68-28h-576q-40 0-68-28t-28-68v-64q0-40-28-68... |
//~ name c676
alert(c676);
//~ component c677.js
|
(function() {
"use strict";
var math = require('mathjs');
var clr = require('./color');
// var chalk = require('chalk');
var R = require('ramda');
var Rp = require('./plus-fp/plus-fp');
var minHslStats = {
h: {
std: 0.20
},
s: {
std: 0.25,
mean: 0.6
},
l: {
... |
// ==UserScript==
// @name SyndPtsAnalyser
// @namespace https://github.com/MyRequiem/comfortablePlayingInGW
// @description Анализ расхода PTS синдиката. Сортировка данных по купленным гранатам, чипам, выданным званиям и знакам, общему количеству PTS. Вывод переводов синдикатного опыта за PTS.
// ... |
var tap = require("../")
tap.test("timeout test with plan only", function (t) {
console.error("timeout test")
t.plan(2)
console.error("t.plan="+t._plan)
setTimeout(function () {
console.error("a assert")
t.ok(true, "a")
}, 1000)
setTimeout(function () {
console.error("b assert")
... |
this.NesDb = this.NesDb || {};
NesDb[ '77272C0C0E821E9BB1EA416EF1C983BD46188D68' ] = {
"$": {
"name": "Last Armageddon",
"altname": "ラストハルマゲドン",
"class": "Licensed",
"catalog": "SHI-LT",
"publisher": "Yutaka",
"developer": "Brain Grey",
"portdeveloper": "Advance Communication",
"region": "Japan",
"p... |
'use strict';
var level = require('level');
var Sublevel = require('level-sublevel');
var crypto = require('crypto');
var KEY = 'personality!';
var WHITELIST = ['hash', 'display', 'meta'];
Number.prototype.toRad = function () {
return this * Math.PI / 180;
};
var Personality = function (options) {
var self... |
import React from 'react';
import { connect } from 'react-redux';
import { unselectAll, selectAll } from '../actions';
class FileProps extends React.Component {
constructor(props){
super(props);
}
handleSelect(e){
let ele = $(e.target).find('span').andSelf();
let checkboxs = $('.file-list-item a.check-box s... |
L.Control.Measure = L.Control.extend({
options: {
position: 'topleft'
},
initialize: function (baseLayers, overlays, options) {
L.setOptions(this, options);
},
onAdd: function (map) {
this._map = map;
var className = 'leaflet-control-zoom leaflet-bar leaflet-control',
container = L.DomUtil.create('div',... |
module.exports = function(grunt){
var banner = '/*\n<%= pkg.name %> <%= pkg.version %>\n' +
'<%= pkg.description %>\n' +
'Built on <%= grunt.template.today("yyyy-mm-dd") %>\n*/\n';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:banner,
jshint:{
options:{
... |
require('./system')
require('./commands')
|
const {scriptEnv, cljsbuild, resetScriptEnv} = require('./test');
describe('the basic options', () => {
beforeEach(() => {
resetScriptEnv();
});
describe('"--version"', () => {
it('should print the version and exit', function * () {
const {stdout} = yield cljsbuild('--version'... |
$(function() {
var $previews = $('.articlePreviews');
var $form = $('form');
var $submitBtn = $form.find('button[type=submit]');
var $articles = $('.articles');
var $previews = $('.articlePreviews');
var $searchBar = $('.searchBar');
var $modal = $('.fwModal.articleEditor')
var main... |
var fs = require("fs");
var webpack = require("webpack");
var TerserPlugin = require("terser-webpack-plugin");
var packInfo = require("./package.json");
var srcJsDir = __dirname + "/src/js",
buildDir = __dirname + "/build",
head = fs
.readFileSync(srcJsDir + "/user-js-headers.txt", "utf8")
.replace("<VERSI... |
'use strict';
var svgicons2svgfont = require('svgicons2svgfont');
var gutil = require('gulp-util');
var Stream = require('readable-stream');
var path = require('path');
var plexer = require('plexer');
var fileSorter = require('svgicons2svgfont/src/filesorter');
module.exports = function(options) {
var filesBuffer =... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:auth/group/members', 'Unit | Route | auth/group/members', {
// 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);
});
|
'use strict';
var assert = require('assert');
var _compile = require('htmlbars').compile;
describe('Ember template compiler', function() {
var astPlugins;
function compile(template) {
return _compile(template, {
rawSource: template,
plugins: {
ast: astPlugins
}
});
}
before... |
/**
* Created by leven on 17/2/10.
*/
const K = require('parse/node');
const env = require('../../config/environment');
console.log(env.get('PARSE_SERVER_URL'));
K.initialize(env.get('PARSE_SERVER_APPLICATION_ID'), env.get('PARSE_SERVER_MASTER_KEY'));
K.serverURL = env.get('PARSE_SERVER_URL');
module.exports = K... |
"use strict"
var Get = require("../services/gets");
var Post = require("../services/posts");
var $ = require("jquery");
var Bluebird = require("bluebird");
class UploadServerInfo{
constructor(el){
this.el = $(el);
this.render();
}
render(){
var serverName = $("<input type='text'></input>");
var... |
// 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... |
// @flow
import React from 'react';
import styled from 'styled-components';
import { darken } from 'polished';
import Animated from 'animated/lib/targets/react-dom';
const Row = styled.div`
width: 100%;
height: 50px;
display: flex;
align-items: center;
justify-content: flex-start;
box-sizing: content-box;
... |
var Types = require('./types.js');
/**
* A class which unpacks an object when passed to its .serialize function
* @class OutDescription
* @constructor
* @param {Bitstream} bs The Bitstream to send data trough
* @param {Object} target The object to write values to
* @param {Function} serialize Optional serialize f... |
import {
JetView,
} from 'webix-jet';
export default class AceView extends JetView {
config() {
return {
view: 'ace-editor',
theme: 'tomorrow',
mode: 'html',
cdn: '//cdnjs.cloudflare.com/ajax/libs/ace/1.4.12',
};
}
init(ace) {
ace.getEditor(true).then((editor) => {
cons... |
$(function() {
var $docs = $('.docs');
$items = $docs.find('.docs-item');
$('.accordion h5, .accordion li').click(function(e) {
var lang = e.target.lang;
$items.hide();
$docs.find('.'+lang).show();
})
var initEditor = function(id, height) {
var $dom = ... |
var B = require('../lib/index')
var walkdir = require('walkdir')
var path = require('path')
var _ = require('lodash')
var fs = require('fs')
var alce = require('alce')
var mkdirp = require('mkdirp').sync
var dataDir = path.resolve(__dirname, '../data')
var staticDir = path.resolve(__dirname, '../browser')
var stringif... |
// flow-typed signature: 919d721ee788421f5bcc11c26177d34d
// flow-typed version: <<STUB>>/npm-release_v^1.0.0/flow_v0.42.0
/**
* This is an autogenerated libdef stub for:
*
* 'npm-release'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with th... |
/**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
export const hashRE = /#.*$/
export const extRE = /\.(md|html)$/
export const endingSlashRE = /\/$/
export const outboundRE = /^[a-z]+:/i
export function normalize (path) {
return decodeURI(path)
.replace(hashRE, '')
.replace(extRE, '')
}
export function getHash (path) {
const match = path.match(hashRE)
... |
/**
*
* Secure Hash Algorithm (SHA1)
* http://www.webtoolkit.info/
*
**/
function SHA1 (msg) {
function rotate_left(n,s) {
var t4 = ( n<<s ) | (n>>>(32-s));
return t4;
};
function lsb_hex(val) {
var str="";
var i;
var vh;
var vl;
for( i=0; i<=6; i+=2 ) {
vh = (val>>>(i*4+4... |
"use strict";
var fx = require("framework");
var Class = fx.import("framework.Class");
var App = fx.import("framework.app.App");
var CompositeView = fx.import("framework.ui.view.CompositeView");
var TextView = fx.import("framework.ui.view.TextView");
var TapRecognizer = fx.import("framework.ui.gesture.TapRecognizer");
... |
search_result['677']=["topic_000000000000016C_vars--.html","TestController Fields",""]; |
//
// Lansite Server Box Template
// By Tanner Krewson
//
//Ctrl+H replace TemplateBox with what you will be calling your custom box,
// and make sure to name your file the same name.
var Box = require('./shared/Box');
var Dispatcher = require('./shared/Dispatcher');
TemplateBox.prototype = Object.create(Box.prot... |
function isEmpty(str) {
return (!str || 0 === str.length);
}
function pad2(number) {
return (number < 10 ? '0' : '') + number
};
function secToTimeStr(number) {
var date = new Date(null);
date.setSeconds(number);
// var utc = date.toUTCString();
var hourStr = "";
if (number >= 3600) {
hourStr = date.ge... |
'use strict';
module.exports = {
REGISTER_PLURALIZER : 'REGISTER_PLURALIZER',
REGISTER_TRANSLATION: 'REGISTER_TRANSLATION',
SET_BASE_LOCALE : 'SET_BASE_LOCALE',
SET_LOCALE : 'SET_LOCALE'
};
|
import { getRectanglePoints } from 'pura/geometry/tuple';
import { mapList, addList, addListSet, subtract, scaleList, magnitudeSqr } from 'pura/vector/tuple';
import { fillOval, strokeOval } from 'pura/canvas/tuple';
import { perspective2d } from '../camera.js';
const createPool =
(baseColor, shoreColor) =>
(ba... |
var searchData=
[
['startcompmsg',['StartCompMsg',['../group__grpStartCompMsg.html',1,'']]]
];
|
import mongoose from 'mongoose';
let AccountSchema = new mongoose.Schema({
address: {type: String, index: true, required: true, unique: true},
publicKey: {type: String, index: true},
balance: {type: Number, default: 0, index: true},
blocks: {type: Number, default: 0, index: true},
lastBlock: {type: Number, defaul... |
export const registerValidation = {
fields: {
username: {
identifier: 'username',
rules: [
{
type: 'empty',
prompt: 'Bitte geben sie einen Benutzernamen ein.'
}
]
},
password: {
identifier: 'password',
rules: [
{
type: 'em... |
module.exports = Tile;
Tile.$inject = ['sailsResource', 'sailsSocket'];
function Tile(sailsResource, sailsSocket) {
return sailsResource('tile', {}, { socket: sailsSocket });
}
|
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import PropTypes from 'lib/PropTypes';
import React from 'react';
import ReactDOM ... |
(function(){
/* global module, inject */
'use strict';
describe('Factory: socket', function(){
beforeEach(module('app.core'));
beforeEach(module('app.common'));
var socket;
beforeEach(inject(function($injector){
socket = $injector.get('socket');
}));
it('should do nothing', ... |
var searchData=
[
['fulfillment_1687',['Fulfillment',['../class_shopify_1_1_unity_1_1_fulfillment.html',1,'Shopify::Unity']]],
['fulfillmentlineitem_1688',['FulfillmentLineItem',['../class_shopify_1_1_unity_1_1_fulfillment_line_item.html',1,'Shopify::Unity']]],
['fulfillmentlineitemconnection_1689',['FulfillmentL... |
export const userAdd = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M9 14c1.381 0 2.631-.56 3.536-1.465.904-.904 1.464-2.154 1.464-3.535s-.56-2.631-1.464-3.535c-.905-.905-2.155-1.465-3.536-1.465s-2.631.56-3.536 1.465c-.904.904-1.464 2.154-1.464 3.535s.56 2.631 1.464 3.535c.905.905 2.155 1.465 3.536... |
/// <reference path="./global.d.ts" />
// @ts-check
/**
* Get the first card in the given deck
*
* @param {Card[]} deck
*
* @returns {Card} the first card in the deck
*/
export function getFirstCard(deck) {
throw new Error('Implement the getFirstCard function');
}
/**
* Get the second card in the given deck
... |
(function() {
var log = '';
console.log = appendToLog;
alert = appendToLog;
window.addEventListener('message', function (e) {
var mainWindow = e.source;
log = '';
try {
eval(e.data);
} catch (e) {
appendToLog(e);
}
mainWindow.postMessage(log, event.origin);
});
function... |
'use strict';
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var eslint = require('gulp-eslint');
var through = require('through2');
gulp.task('coverage', function() {
return gulp.src(['index.js', 'utils.js'])
.pipe(istanbul({includeUntested: true}))
... |
GLOBAL_ID=0
ObjectWithAccessors.createSubclass('JQElementWrapper',{
accessors:['jqew_id'],
init: function(args) {
if (this._super(args) === false) { return false }
this.set_jqew_id()
var this_element = $(this.original_html());
this_element.attr({'data-jqew-id': this.jqew_id()})
this_element.data('o',thi... |
import React, { Component, PropTypes } from 'react';
import './ActiveItem.scss';
export default class ActiveRepos extends Component {
constructor (props) {
super(props);
this.state = {
}
}
static propTypes = {
};
render() {
let itemStyle = {
marginLeft: '10px'
}
let buttonStyle = {
textAlign... |
'use strict';
// Use local.env.js for environment variables that grunt will set when the server starts locally.
// Use for your api keys, secrets, etc. This file should not be tracked by git.
//
// You will need to set these on the server you deploy to.
module.exports = {
DOMAIN: 'http://localhost:9000',
... |
"use strict";
describe("Screen", function () {});
exports.create = function create(_ref) {
var document = _ref.document;
return document.data;
}; |
/*! http://mths.be/placeholder v2.1.1 by @mathias */
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function($... |
export const styles = {
wrapper: {
}
}; |
/**
* MIT License
*
* Copyright (c) 2013-present, Facebook, 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 us... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RemoteBuilder = undefined;
var _bluebirdLst;
function _load_bluebirdLst() {
return _bluebirdLst = require("bluebird-lst");
}
var _bluebirdLst2;
function _load_bluebirdLst2() {
return _bluebirdLst2 = _interopRequireDefa... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {
ElementTypeClass,
ElementTypeFunction,
ElementTypeRoot,
ElementTypeHostComponent,
ElementTypeOtherO... |
;(function(context) {
var updateCssPaths = function(cssText, callback) {
return cssText.replace(/url\(\s*(["']?)(.+)\1\s*\)/g,
function(match, quote, url, index, cssText) {
return ['url(', quote, callback(url), quote, ')'].join('');
});
};
if (requ... |
(function () {
var _keyListeners = {};
namespace("YE").EventManager = {
_getEventType: function (event) {
var eventType = "",
e = YE.Event;
switch (event) {
case e.KEY_DOWN:
eventType = "keydown";
break;
... |
'use strict';
var express = require('express');
var router = express.Router();
var userController = require('./controller');
/**
* 路由转发
*/
// router.post('/', userController.insert);
// router.get('/all', userController.findAll);
// router.get('/:userID', userController.getByID);
//邮件激活
module.exports = route... |
var support = require('../support')
, _ = require('lodash')
, PolicyRegistry = require('./registry');
function normalizeValues(value) {
return (_.isString(value))
? support.stringToArray(value).map(_.camelCase)
: value;
}
function readConfig(config) {
try {
return (support.isObject(config))
... |
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function() {
var _this = this;
if(this.get('session.isAuthenticated')) {
this.transitionTo('admin.dashboard');
} else {
Ember.$.post('/active').then(function(state) {
if(state... |
import React, { Component } from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { Button, Card, CardSection, Input, Spinner } from './components';
class LoginForm extends Component {
constructor(props) {
super(props);
this.state = {... |
import React from 'react';
import LayoutContent from './layout/Content';
import HelloWorldDocs from './components/HelloWorldDocs';
const Documentation = () => {
return (
<div>
<LayoutContent>
<HelloWorldDocs />
</LayoutContent>
</div>
);
}
export default Documentation;
|
'use strict';
let write = require('./write');
module.exports = {
writeTree: write.writeTree
};
|
//
// Copyright (c) 2018 DDN. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
import _ from "@iml/lodash-mixins";
export default function roundData(s) {
return s.map(function roundData(x) {
x.data = _.mapValues(x.data, Math.round);
... |
'use strict';
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var es = require('event-stream');
var semver = require('semver');
var util = require('util');
var vfs = require('vinyl-fs');
/**
* Finds the location of a bower library relative to a bower.json file. Uses .bowerrc if present... |
var $c = function() {
this.els = [];
};
var slice = Array.prototype.slice;
$c.fn = $c.prototype;
$c.fn.on = function( type, handle ) {
this.els.forEach(function( el ) {
if( el.addEventListener ){
el.addEventListener (type,handle);
} else {
el.attachEvent('on'+type,function() {
handle(w... |
// flow-typed signature: a6fcb7f229c41e5d562f95b4bb11d1e2
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-arrow-functions_v^6.8.0/flow_v0.33.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-es2015-arrow-functions'
*
* Fill this stub out by replacing all the `any` types... |
/* jshint ignore:start */
})();
|
var pathLib = require('path');
function resolve(url) {
var args = [__dirname, '..', 'lib', 'phantom'].concat(url.split('/'));
var result = pathLib.join.apply(null, args);
return pathLib.resolve(result);
}
var validatorConfig = require('./validatorConfig.js');
module.exports = {
parentUrl: resolve('re... |
(function () {
'use strict';
angular.module('macroApp').controller('macroAppCtrl', ['$scope', '$translate',
function ($scope, $translate) {
$scope.changeLanguage = changeLanguage;
function changeLanguage(langKey) {
$translate.use(langKey);
... |
var path = require('path');
var rootPath = path.normalize(__dirname + '/../..');
module.exports = {
root : rootPath,
env : process.env.NODE_ENV,
port : process.env.PORT || 3000
}; |
smartApp.controller('CancelOrderController', function ($scope,SystemService, SaleService, $timeout) {
$scope.isAuthorize = false;
var runTime = new Date().getTime();
$scope.template = {
"landingheader": "app/views/landingPageHeader.html?" + runTime,
"customerprofile": "app/... |
/** Called automatically by JsDoc Toolkit. */
function publish(symbolSet) {
publish.conf = { // trailing slash expected for dirs
ext: ".html",
outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
stylesheetsDir: "stylesheets/",
... |
// Generated on 2014-05-24 using generator-webapp 0.4.9
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks a... |
define([], function() {
return function(c) {
var constants = {
clientAuth: {
client_id: '9d440de30aed58dd6f5d2ecd754ab5a6',
redirect_uri: 'http://localhost:9999/callback.html'
},
periodMap: {
'today': 'Today',
'yesterday': 'Yesterday',
'thisW... |
'use strict';
describe('Controller: HackCtrl', function () {
// load the controller's module
beforeEach(module('hackshareApp'));
var HackCtrl, scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Ha... |
/**
* Uppercase event
* @module udp/events/uppercase
*/
const NError = require('nerror');
const Base = require('./base');
/**
* Uppercase event class
*/
class Uppercase extends Base {
/**
* Create service
* @param {App} app The application
* @param {object} confi... |
export const layerTypes = {
PRIMARY: 'PRIMARY',
FLOOR: 'FLOOR',
}
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isValidJSValue = isValidJSValue;
var _iterall = require('iterall');
var _invariant = require('../jsutils/invariant');
var _invariant2 = _interopRequireDefault(_invariant);
var _isNullish = require('../jsutils/isNullish');
var _... |
const notifier = require('../');
const nc = new notifier.NotificationCenter();
const trueAnswer = 'Most def.';
nc.notify(
{
title: 'Notifications',
message: 'Are they cool?',
sound: 'Funk',
// case sensitive
closeLabel: 'Absolutely not',
actions: trueAnswer
},
function(err, response, met... |
"use strict";
var should = require('chai').should();
var expect = require('chai').expect;
var _ = require('underscore');
var deepCompare = require('../deepCompare');
var deepClone = require('../deepClone');
describe('nox.deepClone', () => {
describe('- usage without extension or directives : ', () => {
des... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.