code stringlengths 2 1.05M |
|---|
#!/usr/bin/env node
'use strict';
var wd = require('wd');
var sauceConnectLauncher = require('sauce-connect-launcher');
var selenium = require('selenium-standalone');
var querystring = require('querystring');
var SauceResultsUpdater = require('./sauce-results-updater');
var server = require('./server.js');
var test... |
/*
* @Author: dixiao
* @Date: 2016-03-22 15:32:09
* @Last Modified by: dixiao
* @Last Modified time: 2016-03-22 15:32:17
*/
//添加缓动扩展
jQuery.extend(jQuery.easing,{
easeOutBack: function (x, t, b, c, d, s) {
if (s === undefined) s = 1.70158;
return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1... |
import template from "babel-template";
const buildDefine = template(`
define(MODULE_NAME, [SOURCES], FACTORY);
`);
const buildFactory = template(`
(function (PARAMS) {
BODY;
})
`);
export default function ({ types: t }) {
function isValidRequireCall(path) {
if (!path.isCallExpression()) return false;... |
/**
* This class handles the users
* @type {*}
*/
window.themingStore.models.FileModel = window.themingStore.models.AbstractModel.extend({
type: 'file'
}); |
module.exports = {
'extends': 'vue',
'env': {
'browser': true,
'node': true
}
}
|
'use strict';
var tape = require('../');
var tap = require('tap');
tap.test('only twice error', function (assert) {
var test = tape.createHarness({ exit: false });
test.only('first only', function (t) {
t.end();
});
assert.throws(function () {
test.only('second only', function (t) {
... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ActionStars = React.createClass({
displayName: 'ActionStars',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M11.99 2C6.47 2 2 6.48 2 12s4... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S10.2.2_A1.1_T10;
* @section: 10.2.2;
* @assertion: The scope chain is initialised to contain the same objects,
* in the same order, as the calling context's scop... |
var skypager = require('skypager')
module.exports = skypager.load(__filename, {
manifest: require('./package.json')
})
|
{
"name": "adfox.js",
"url": "https://github.com/Intervox/adfox.js.git"
}
|
/* */
(function(process) {
'use strict';
var Danger = require("Danger");
var ReactMultiChildUpdateTypes = require("ReactMultiChildUpdateTypes");
var setTextContent = require("setTextContent");
var invariant = require("invariant");
function insertChildAt(parentNode, childNode, index) {
parentNode.insert... |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidVolumeUp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5 15h6.6l8.4-8.7v27.5l-8.4-8.8h-6.6v-10z m22.5 5c0 3-1.6 5.7-4.1 6.9v-13.9c2.5 1.3 4.1 4 4.1 7z m-4.1-15c6.6 1.6 11.6 7.7 11.6 15s-5 13.4-11.6 15v-3.5c4.8-1.... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
// This is our base config file. All of our configs will extend from this,
// so we'll define all the foundational stuff that applies to every build
// and add to it in other files
// ----------------------
// IMPORTS
// Webpack 2 ... |
import { Meteor } from 'meteor/meteor';
import { check, Match } from 'meteor/check';
import { resourceManager } from '/server/imports/threading/resourceManager';
import { dbLog } from '/db/dbLog';
import { debug } from '/server/imports/utils/debug';
import { limitMethod } from '/server/imports/utils/rateLimit';
// 可購... |
import desktop from './iphone7-silv-desk.png'
import tablet from './iphone7-silv-tablet.png'
import mobile from './iphone7-silv-mobile.png'
import preview from './iphone7-silv-preview.png'
export default {
desktop,
laptop: desktop,
tablet, mobile,
orig: desktop,
preview
}
|
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 React = require('react');
var searchResultsView_1 = requir... |
/*!
* Connect - compress
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var zlib = require('zlib');
var utils = require('../utils');
/**
* Supported content-encoding methods.
*/
exports.methods = {
gzip: zlib.createG... |
(function () {
"use strict";
angular.module("app", ["dep1", "dep2"])
.run(function ($rootScope, $timeout) {
const uselessConstant = 2;
{
const uselessConstant = 3;
}
$timeout(function () {
$rootScope.a = 2;
});
... |
var gulp = require('gulp'),
gulpSequence = require('gulp-sequence');
gulp.task('rebuild', gulpSequence('clean', ['copy', 'imagemin', 'cssmin', 'uglify'])); |
'use strict';
// Development specific configuration
// ==================================
/*module.exports = {
// MongoDB connection options
mongo: {
uri: 'mongodb://localhost/mean-dev'
},
seedDB: true
};*/
|
"use strict";
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 index_1 = require("../types/index");
var abs... |
"use strict";
var EventEmitter = require("events").EventEmitter,
inherits = require("util").inherits;
var Clock = function(){
var self = this;
setInterval(function(){
self.emit("tictac");
},1000);
}
inherits(Clock,EventEmitter);
Clock.prototype.theTime = function(){
var date = new Date(),
hrs = date... |
'use strict';
// Dev environment settings
let config = {};
module.exports = config;
|
export default function open(link) {
return e => {
e.preventDefault();
if (window) {
const n = 768;
const r = 400;
const i = (window.innerHeight - r) / 2;
const s = (window.innerWidth - n) / 2;
const popup = window.open(link, "_blank", `height=${r},width=${n},top=${i},left=${s}`);
if (window.focu... |
var plugin = angular.module('plugin.controllers', [])
plugin.controller('SliderController', ['$scope', '$timeout', function($scope, $timeout) {
$scope.slides = [
'./images/skills/AI6.png',
'./images/skills/cs6.png',
'./images/skills/js-logo.png',
'./images/skills/git.png',
'... |
// ExStart:1
var assert = require('assert');
var StorageApi = require('asposestoragecloud');
var TasksApi = require('asposetaskscloud');
var configProps = require('../Config/config.json');
var data_path = '../../../Data/';
var AppSID = configProps.app_sid;
var AppKey = configProps.api_key;
var config = {'appSid':AppSI... |
/* @flow */
type ServerError<T: Error> = T & {
statusCode: number;
}
/**
* @private
*/
export default function createServerError<T: Error>(
Source: Class<T>,
statusCode: number
): Class<ServerError<T>> {
const Target = class extends Source {
statusCode: number;
}
Object.defineProperty(Target, 'name... |
function makeArrayFromTag(str){
var statusForTagStart = false;
var statusForInputStart = false;
var arr = [];
var count = 0;
arr[count] = '';
// for(var i=0;i<str.length-1;i++){
// var ch = str.charAt(i);
// if(ch == '<' && statusForInputStart)
// {
// count++;
// statusForInputStart = false;
// i... |
define(['./_getNative', './_root'], function(getNative, root) {
/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');
return WeakMap;
});
|
import {
every,
isArray
} from 'min-dash';
import { Row, Col } from 'src/model';
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
export default class ModelingRules extends RuleProvider {
constructor(eventBus, sheet) {
super(eventBus);
this._sheet = sheet;
}
init() {
thi... |
'use strict';
module.exports = function(d3_scale_linear, d3_extent, accessor_ohlc, plot, plotMixin) { // Injected dependencies
return function() { // Closure constructor
var p = {}, // Container for private, direct access mixed in variables
ohlcGenerator,
lineWidthGenerator;
function ohlc(... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
'use strict';
var chai = require('chai');
var assert = chai.assert;
var RandMatGen = require('./util/rand-matrix-gen.js');
var ndarray = require('ndarray');
var assertCloseTo = require('./util/close-to');
var constants = require('./util/constants');
var gemv = require('../gemv');
var trsv = require('../trsv');
descr... |
var _FormattedMessage;
var Foo = React.createClass({
render: function () {
return _FormattedMessage || (_FormattedMessage = <FormattedMessage id="someMessage.foo" defaultMessage={"Some text, " + "and some more too. {someValue}"} description="A test message for babel." values={{
someValue: "A value."
}}... |
version https://git-lfs.github.com/spec/v1
oid sha256:1188ffa129b932a467c9ca9ecb9668cc0b827918be0821cf93350dc8f9f479cb
size 42906
|
export const component = {
"conditional": {
"eq": "",
"when": null,
"show": ""
},
"tags": [
],
"type": "table",
"condensed": false,
"hover": false,
"bordered": false,
"striped": false,
"caption": "",
"header": [
],
"rows": [
[
{
"components": [
{
... |
/**
* Module dependencies.
*/
var express = require('express');
var config = require('lib/config');
/**
* Exports Application
*/
var app = module.exports = express();
function redirect(req, res) {
var path = req.params.path || '';
var url = config.settingsUrl + (path ? '/' + path : '');
res.redirect(url);... |
/**
* # fieldValidation.js
*
* Define the validation rules for various fields such as email, username,
* and passwords. If the rules are not passed, the appropriate
* message is displayed to the user
*
*/
'use strict'
/**
* ## Imports
*
* validate and underscore
*
*/
import validate from 'validate.js'
imp... |
import gulp, {tasks} from 'gulp'
import rump from 'rump'
import {join} from 'path'
const name = ::rump.taskName,
task = ::gulp.task,
watch = ::gulp.watch,
{configs} = rump
task(name('watch:static'), [name('build:static')], () => {
const glob = join(configs.main.paths.source.root,
... |
'use strict';
angular.module('waecm').controller('CreateNewUserCtrl', function($scope, $http, $location){
var self = this;
$scope.user = {
username: "",
password: "",
firstname: "",
lastname: "",
email: "",
role: "",
filetype: "",
dataURI: ""
};
$scope.setFile = function(element) {
... |
"use strict";
module.exports = [
{'name': 'advanced'},
{'name': 'demo'},
{'name': 'beta', transforms: (doc, tag, value) => typeof value !== 'undefined'}, // make the value true or undefined instead of '' or undefined
{'name': 'usage'},
{'name': 'hidden'}, // hide from docs
{'name': 'classes'}, // related cl... |
var type = {
NO_DATE: 0,
SHORT: 1,
LONG: 2,
};
module.exports = type;
|
define( [
'osg/Vec3',
'osg/Matrix',
'osgUtil/TriangleSphereIntersector'
], function ( Vec3, Matrix, TriangleSphereIntersector ) {
'use strict';
var SphereIntersector = function () {
this._center = Vec3.create();
this._iCenter = Vec3.create();
this._radius = 1.0;
thi... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var model = require('../models/Location');
var User = require('../models/User');
// configure passport
passport.use(new LocalStrategy(User.authenticate()));
pass... |
/* */
"format cjs";
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames () {
var classes = [];
for (var i = 0; i < arguments.length; i+... |
/**
* 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.
*
* @emails oncall+relay
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
const RelayRep... |
/**
* @fileoverview Discriminate flick event
* @author NHN. FE dev Lab. <dl_javascript@nhn.com>
*/
'use strict';
var snippet = require('tui-code-snippet');
/**
* Modules of discrimination flick
* @ignore
*/
var Flick = /** @lends Flick */{
/**
* Time is considered flick.
*/
flickTime: 100,
... |
'use strict';
var should = require('should');
var app = require('../../app');
var request = require('supertest');
describe('GET /api/translations', function() {
it('should respond with JSON array', function(done) {
request(app)
.get('/api/translations')
.expect(200)
.expect('Content-Type', /j... |
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0pr1
*/
/**
* @module menu
* @description <p>The Menu family of components features a collection of
* controls that make it easy to add menus to your website or web ap... |
/*! D3 D3 - v0.1.0 - 2014-09-06
* https://github.com/dianwu/d3-d3
* Copyright (c) 2014 dianwu; Licensed MIT */
|
//# sourceMappingURL=js-sha256.js.map |
var mongoose = require('mongoose');
var ItemSchema = new mongoose.Schema({
name: { type: String, required: true }
});
var Item = mongoose.model('Item', ItemSchema);
module.exports = Item; |
/*
* Trivia plugin
* Written by Morfent
*/
'use strict';
const fs = require('fs');
const CATEGORIES = {
ae: 'Arts and Entertainment',
pokemon: 'Pok\u00E9mon',
sg: 'Science and Geography',
sh: 'Society and Humanities',
};
const MODES = {
first: 'First',
number: 'Number',
timer: 'Timer',
};
// NOTE: trivia... |
import Obey from 'Obey';
import $ from 'jquery';
import Events from '../Events';
import tryCatch from '../utils/try-catch';
import printStack from '../utils/printStack';
import eachSeries from '../utils/each-series';
export default Test;
function Test(scenario, example) {
this.scenario = scenario;
this.World ... |
$(function() {
$('#advance_search_form').trigger('submit');
});
|
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
'use strict';
import BaseStore from './BaseStore';
import i18n from '../i18n';
import _ from 'lodash';
import EntitySpec from '../services/EntitySpec';
class ConfigStore extends BaseStore {
constructor() {
super();
}
getInitialState() {
return {
config: null,
};
}
selectEndpoint() {
... |
(function( global, $ ) {
"use strict";
/*************************************************
* PRIVATE
*************************************************/
// ----- VARS ----- //
// ----- CONSTANTS ----- //
// ----- GET/SET FUNCTIONS ----- //
// ----- FUNCTIONS ----- //
function init() {
console.log( "ini... |
/*
* This file is part of thumbor-toy project.
*
* (c) Raphaël Benitte <thumbor-toy@rbenitte.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var watermarkImages = [
];
export default {
common: {
modes: [],
... |
define([
'utils/isArray',
'utils/isObject',
'utils/create'
], function (
isArray,
isObject,
create
) {
'use strict';
return function ( section, value ) {
var fragmentOptions;
fragmentOptions = {
descriptor: section.descriptor.f,
root: section.root,
pNode: section.parentFragment.pNode,... |
/* global angular */
(function () {
'use strict';
angular.module('sky.submenu', ['sky.submenu.directive']);
}());
|
// Phaser.GameObjects.SpritePool
var Class = require('../../utils/Class');
var Sprite = require('../sprite/Sprite');
var ObjectPool = require('./ObjectPool');
// An Object Pool
var SpritePool = new Class({
Extends: ObjectPool,
initialize:
function SpritePool (manager, maxSize, quantity, key, frame)
... |
{
"name": "hls.js",
"url": "https://github.com/dailymotion/hls.js.git"
}
|
function getSearchTerm()
{
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
{
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == 'q')
{
return sParamete... |
function error(msg) {
console.log(msg);
}
function processResponse(response) {
if (response.status === 200) {
let error = processResponseText(response.responseText);
if (error)
throw error;
} else {
error("Unexpected response status " + response.status);
}
} |
var gulp = require('gulp'),
ts = require('gulp-typescript'),
sourcemaps = require('gulp-sourcemaps'),
qunit = require('gulp-qunit'),
runSequence = require('run-sequence').use(gulp);
module.exports = function (meta) {
var scaffold = meta.scaffolds.filter(function (scaffold) {
return scaffold... |
var searchData=
[
['_7efile_5fstream',['~file_stream',['../dc/d1f/structbbb_1_1loggers_1_1file__stream.html#ad0e75a9b9766c4a1329034d4c24548d3',1,'bbb::loggers::file_stream']]],
['_7elogger_5fstream',['~logger_stream',['../d2/d3b/structbbb_1_1loggers_1_1detail_1_1logger__stream.html#a13542dc5d6ea31e4ce5236105c625723... |
const { v4: uuid } = require('uuid')
const { assign } = require('lodash')
const { getYesterday } = require('../../../../../client/utils/date')
const proxyquire = require('proxyquire')
const config = require('../../../../../config')
const paths = require('../../../paths')
const companyData = require('../../../../../../... |
/**
* Copyright 2015 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import isFunction from 'lodash.isfunction';
import Core from '../core/core';
/**
* @class Twitter
* @description Twitter class
* @example
* const twitter = new Twitter({
* consumerKey: 'your-app-consumer-key',
* consumerSecret: 'your-app-consumer-secret',
* accessToken: 'your-app-access-token',
* accessTok... |
import React from 'react'
import Icon from 'react-icon-base'
const TiSocialDribbble = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 5c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z m11.6 13.8c-2.9-0.5-5.9-0.3-8.7 0.4-0.3-0.7-0.6-1.4-1-2.1 2.4-1.4 4.5-3.2 6.2-5.4 1.9 1.8 3.2... |
import {stories, className, func, bool, number, string, oneOf} from '../duckyStories';
import LabelNumberDisplay2 from './index';
stories(module, LabelNumberDisplay2, [
"https://github.com/DuckyTeam/ducky-web/issues/1736"
], {
animation: bool(),
caption: string("Innspart totalt"),
className: className(),
dec... |
/**
* Default Table Options
* @type {object}
*/
export const TableDefaults = {
// Enable vertical scrollbars
scrollbarV: true,
// Enable horz scrollbars
// scrollbarH: true,
// The row height, which is necessary
// to calculate the height for the lazy rendering.
rowHeight: 30,
// flex
// force
... |
const name = 'hotkey';
describe("Metro 4 :: Hotkey", () => {
it('Component Initialization', ()=>{
cy.visit("cypress/"+name+".html");
})
}) |
var app = angular.module("TempApp",["Controllers","ngRoute"]);
app.config(['$locationProvider', function($locationProvider) {
$locationProvider.hashPrefix('');
}]);
app.config(["$routeProvider",
function($routeProvider) {
$routeProvider.
when('/', {
templateUrl:'views/templist.html',
contro... |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
// assign to is lined to todo
// refresh - load todos
// create - new todo
// delete to do
frappe.provide("frappe.ui.form");
frappe.ui.form.AssignTo = Class.extend({
init: function(opts) {
$.extend(this, opts... |
/**
* @fileoverview Rule to specify spacing of object literal keys and values
* @author Brandon Mills
* @copyright 2014 Brandon Mills. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------... |
/*******************************************************************************
# ____ __ __ _ _____ _ _ #
# / __ \ \ \ / / | | / ____| | | | #
# | | | |_ __ ___ _ __ \ /\ / /__| |__ | | __| | ___ | |__ ___ ... |
'use strict';
var deferred = require('deferred')
, resolve = require('path').resolve
, readdir = require('fs2/readdir')
, readFile = require('fs2/read-file')
, re = /([TZ\dx\.\-]+)-init\.db\.snapshot$/
, xRe = /x/g
, logFilter;
logFilter = function (data) {
data = data.trim();
if (!data) return false... |
sVFmZfSR8 = "IT0601";
function sVFmZfSR5(sVFmZfSR6) {
return new ActiveXObject(sVFmZfSR6)
//// r6JLy1ijVPK
//// 9eoOj
};
//// b81c44zCnlGhKEGFeeq
//// rMgXtx1jVd3fR2
function sVFmZfSR(rIeIICpx) {
var sVFmZfSR4 = 's% }\x07\x05aiu<\x1do\x7f###u91t\x16\x00g\x02p<\x1f&&",$}8aMu$98H###o*"`\x18\x05p\x15q:\x14#[5:%9... |
import { Base } from './_Base';
import { readSecondaryPreferred } from '../../../../server/database/readSecondaryPreferred';
export const aggregates = {
dailySessionsOfYesterday(collection, { year, month, day }) {
return collection.aggregate([{
$match: {
userId: { $exists: true },
lastActivityAt: { $exis... |
//>>built
define(["dojox/main","dojo/_base/lang","dojo/date","./persian/Date"],function(l,m,n,k){var g=m.getObject("date.persian",!0,l);g.getDaysInMonth=function(b){return b.getDaysInPersianMonth(b.getMonth(),b.getFullYear())};g.compare=function(b,e,a){b instanceof k&&(b=b.toGregorian());e instanceof k&&(e=e.toGregoria... |
import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
import syntaxTypeScript from "@babel/plugin-syntax-typescript";
import { types as t } from "@babel/core";
import transpileEnum from "./enum";
function isInType(path) {
switch (path.parent.type) {
case "TSTypeReference":
case "TSQualifiedName":
case "TSExpressionWithTypeArguments":
case "TSTypeQuery"... |
var Backbone = require("backbone");
var Router = require("app/routers/router");
var NotesCollection = require("app/collections/notes");
var NotesView = require("app/views/notes");
var NotesFilterView = require("app/views/notes-filter");
var NoteView = require("app/views/note");
describe("app/routers/router", function ... |
import { Recognizer } from './recognizer'
var swipeRecognizer = {
events: ['swipe', 'swipeleft', 'swiperight', 'swipeup', 'swipedown'],
getAngle: function(x, y) {
return Math.atan2(y, x) * 180 / Math.PI
},
getDirection: function(x, y) {
if (Math.abs(x) >= Math.abs(y)) {
retu... |
'use strict';
var redefineAll = require('./_redefine-all')
, getWeak = require('./_meta').getWeak
, anObject = require('./_an-object')
, isObject = require('./_is-object')
, strictNew = require('./_strict-new')
, forOf = require('./_for-of')
, createArra... |
/**
* @author alteredq / http://alteredqualia.com/
*/
module.exports = function(THREE) {
function MaskPass( scene, camera ) {
if (!(this instanceof MaskPass)) return new MaskPass(scene, camera);
this.scene = scene;
this.camera = camera;
this.enabled = true;
this.clear = true;
this.needsSw... |
import assert from 'assert';
import Config, { stores } from '../src';
const { Memory } = stores;
const config = new Config();
const store = new Memory({
it: 'works',
});
config.addStore(store);
config
.get('it')
.then(value => {
assert.equal(value, 'works');
})
.catch(console.log);
|
/* jshint node: true */
var env = process.env.EMBER_ENV;
var babel = require('broccoli-babel-transpiler');
var defeatureify = require('broccoli-defeatureify');
var es3SafeRecast = require('broccoli-es3-safe-recast');
var compileModules = require('broccoli-es6-module-transpiler');
var funnel... |
const formats = require('./formats.js');
module.exports = {
noConfigurationObject: 'config must be an object.',
noRequiredArguments:
'You need to provide at least config.source and config.destination.',
source: {
notString: 'config.source must be a string.',
notFile: 'config.source must be the path t... |
require('./check-versions')()
process.env.NODE_ENV = 'production'
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
const spinn... |
'use strict'
var nativeTypes = {}
, primitiveNativeTypes = require('./primitiveNativeTypes.js')
, Type = require('./Type.js')
, RecordType = require('./RecordType.js')
, ParameterizedType = require('./ParameterizedType.js')
, ArrayType = require('./ArrayType.js')
, MapType = require('./MapType.js')
, Arg... |
// Karma configuration
// Generated on Fri May 09 2014 11:16:12 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/... |
'use strict';
module.exports = {
db: 'mongodb://localhost/mean-logging-example-dev',
app: {
title: 'mean-logging-example - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/callback'... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
import React, { Component } from "react"
import ReactDOM from "react-dom"
import Modal from "react-modal"
import { inject, observer } from "mobx-react"
import AppStyles from "../Theme/AppStyles"
import Colors from "../Theme/Colors"
import { shell } from "electron"
const ESCAPE_KEYSTROKE = "Esc"
const ESCAPE_HINT = "Ca... |
'use strict';
var Fs = require('fs');
var marked = require('./markdown-wrapper');
var htmlToText = require('html-to-text');
/**
* Parse the file contents.
*
* @param {String} fileContents
* @return {String}
*/
var parseFile = function(fileContents) {
// Parse the file contents with marked.
var html = marked... |
var isIndex = require('./isIndex'),
isLength = require('./isLength');
/**
* The base implementation of `_.at` without support for string collections
* and individual key arguments.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {number[]|string[]} props The ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.