code stringlengths 2 1.05M |
|---|
!function(){function e(){var e=Reveal.getCurrentSlide(),a=e.querySelector("aside.notes"),o={notes:"",markdown:!1,socketId:n,state:Reveal.getState()};e.hasAttribute("data-notes")&&(o.notes=e.getAttribute("data-notes")),a&&(o.notes=a.innerHTML,o.markdown="string"==typeof a.getAttribute("data-markdown")),t.emit("statechan... |
'use strict';
var NG_ANIMATE_ATTR_NAME = 'data-ng-animate';
var NG_ANIMATE_PIN_DATA = '$ngAnimatePin';
var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
var PRE_DIGEST_STATE = 1;
var RUNNING_STATE = 2;
var rules = this.rules = {
skip: [],
cancel: [],
join: []
};
fun... |
/**
* Disallows sticking unary operators to the right.
*
* Types: `Array` or `Boolean`
*
* Values: Array of quoted operators or `true` to require space after prefix for all unary operators
*
* #### Example
*
* ```js
* "requireSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"]
* ```
*
* #####... |
// Backbone.js 0.9.1
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(h,e){typeof exports!=="undefined"?e(h,exports,require("underscore")):typeof define==="function"&&define.amd?def... |
/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
(function (window, document, Math) {
var rAF = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function (ca... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["expect"] = factory();
else
root["expect... |
/*!
* angular-formly JavaScript Library v7.3.7
*
* @license MIT (http://license.angular-formly.com)
*
* built with ♥ by Astrism <astrisms@gmail.com>, Kent C. Dodds <kent@doddsfamily.us>
* (ó ì_í)=óò=(ì_í ò)
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module =... |
import*as React from"react";import Appearance from"../Appearance";export default function useColorScheme(){var e=React.useState(Appearance.getColorScheme()),r=e[0],a=e[1];return React.useEffect(function(){function e(e){a(e.colorScheme)}return Appearance.addChangeListener(e),function(){return Appearance.removeChangeList... |
describe('onCleanUp function in the config', function() {
it('should not be affected by tests', function() {
expect(true).toBe(true);
});
});
|
Prism.languages.ada = {
'comment': /--.*/,
'string': /"(?:""|[^"\r\f\n])*"/i,
'number': [
{
pattern: /\b\d(?:_?\d)*#[0-9A-F](?:_?[0-9A-F])*(?:\.[0-9A-F](?:_?[0-9A-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i
},
{
pattern: /\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i
}
],
'attr-name': /\b'\w+/i,
'ke... |
/*! UIkit 2.7.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
!function(a){var b;jQuery&&jQuery.UIkit&&(b=a(jQuery,jQuery.UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-select",["uikit"],function(){return b||a(jQuery,jQuery.UIkit)})}(function(a,b){return b.component("formSelect",{de... |
/*
Highcharts JS v6.0.3 (2017-11-14)
Wind barb series module
(c) 2010-2017 Torstein Honsi
License: www.highcharts.com/license
*/
(function(g){"object"===typeof module&&module.exports?module.exports=g:g(Highcharts)})(function(g){var x=function(f){var g=f.each,n=f.seriesTypes,r=f.stableSort;return{translate:functi... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* 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 conditio... |
YUI.add('pluginhost-base', function(Y) {
/**
* Provides the augmentable PluginHost interface, which can be added to any class.
* @module pluginhost
*/
/**
* Provides the augmentable PluginHost interface, which can be added to any class.
* @module pluginhost-base
*/
/**
... |
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function(){var b=CryptoJS,a=b.lib,f=a.Base,k=a.WordArray,a=b.algo,l=a.EvpKDF=f.extend({cfg:f.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(a){this.cfg=this.cfg.exten... |
/**
* @license MelonJS Game Engine
* @copyright (C) 2011 - 2014 Olivier Biot, Jason Oster, Aaron McLeod
* http://www.melonjs.org
*
* melonJS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
*
*/
/**
* (<b>m</b>)elonJS (<b>e</b>)ngine : All melonJS functions are defined i... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'basicstyles', 'ar', {
bold: 'عريض',
italic: 'مائل',
strike: 'يتوسطه خط',
subscript: 'منخفض',
superscript: 'مرتفع',
underline: 'تسطير'
});
|
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'sv', {
euro: 'Eurotecken',
lsquo: 'Enkelt vänster citattecken',
rsquo: 'Enkelt höger citattecken',
ldquo: 'Dubbe... |
/**
* Copyright 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule focus... |
/**
* Module dependencies.
*/
var Suite = require('../suite');
var Test = require('../test');
/**
* TDD-style interface:
*
* exports.Array = {
* '#indexOf()': {
* 'should return -1 when the value is not present': function() {
*
* },
*
* 'should return the correct index whe... |
/*
* log-test.js: Tests for cliff.
*
* (C) 2010, Nodejitsu Inc.
*
*/
var assert = require('assert'),
vows = require('vows'),
eyes = require('eyes'),
cliff = require('../lib/cliff');
vows.describe('cliff').addBatch({
"When using cliff module": {
"the columnMajor() method": {
"should r... |
var common = require('../common');
var assert = common.assert;
var FormData = require(common.dir.lib + '/form_data');
(function testOneBoundaryPerForm() {
var form = new FormData();
var boundary = form.getBoundary();
assert.equal(boundary, form.getBoundary());
assert.equal(boundary.length, 50);
})();
(funct... |
define("lamp", {
color: "blue"
});
|
// Backbone.BabySitter
// -------------------
// v0.1.5
//
// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
//
// http://github.com/marionettejs/backbone.babysitter
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['backbone', 'undersc... |
(function($){$.fn.datepicker.dates["hu"]={days:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo","Vas"],daysMin:["Va","Hé","Ke","Sz","Cs","Pé","Sz","Va"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus"... |
!function(e){e.fn.datepicker.language.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],daysShort:["Ne","Po","Út","St","Čt","Pá","So"],daysMin:["Ne","Po","Út","St","Čt","Pá","So"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],m... |
/**
* @author alteredq / http://alteredqualia.com/
*
* Simple fake tilt-shift effect, modulating two pass Gaussian blur (see above) by vertical position
*
* - 9 samples per pass
* - standard deviation 2.7
* - "h" and "v" parameters should be set to "1 / width" and "1 / height"
* - "r" parameter control where "f... |
// Backbone.BabySitter
// -------------------
// v0.1.3
//
// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
//
// http://github.com/marionettejs/backbone.babysitter
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports', 'backbone... |
var moment = require("../../moment");
/**************************************************
Galego
*************************************************/
exports["lang:gl"] = {
setUp : function (cb) {
moment.lang('gl');
cb();
},
tearDown : function (cb) {
moment.lang('en... |
var assert = require('assert');
var hbs = require('..');
var path = require('path');
var H = require('./helpers');
var fs = require('fs');
describe('options', function() {
var dirname = path.join(__dirname, 'views/beautify');
it('should pretty print HTML', function(done) {
var hb = hbs.create();
var ren... |
'use strict';
module.exports = function (t, a) {
var x = {}, y = {};
a.deep(t(3), [undefined, undefined, undefined], "Just length");
a.deep(t(0, 'x'), [], "No repeat");
a.deep(t(1, x, y), [x], "Arguments length larger than repeat number");
a.deep(t(3, x), [x, x, x], "Single argument");
a.deep(t(5, x, y), [x, y, ... |
/**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
'use strict';
module.exports = require('./lib/router'); |
// @author vita10gy
// @name Highlight portals that need recharging
// @category Highlighter
// @version 0.1.2
// @description Use the portal fill color to denote if the portal needs recharging and how much. Yellow: above 85%. Orange: above 50%. Red: above 15%. Magenta: below 15%.
//... |
module.exports = [
{
'id': 'gl-draw-polygon-fill-inactive',
'type': 'fill',
'filter': ['all',
['==', 'active', 'false'],
['==', '$type', 'Polygon'],
['!=', 'mode', 'static']
],
'paint': {
'fill-color': '#3bb2d0',
'fill-outline-color': '#3bb2d0',
'fill-opacity': ... |
let _detected;
export function utilDetect(refresh) {
if (_detected && !refresh) return _detected;
_detected = {};
const ua = navigator.userAgent;
let m = null;
/* Browser */
m = ua.match(/(edge)\/?\s*(\.?\d+(\.\d+)*)/i); // Edge
if (m !== null) {
_detected.browser = m[1];
_detected.version =... |
'use strict'
var painless = require('../../assertion/painless')
var test = painless.createGroup('Test function/noop')
var t = painless.assert
var noop = require('../../../src/function/noop')
test('should do nothing', () => {
t.is(noop(), undefined)
t.is(noop('foo'), undefined)
}) |
var gulp = require('gulp');
var babel = require('gulp-babel');
var paths = {
src: 'src/**/*.js',
dest: 'dist',
test: 'test/**/*.js'
};
gulp.task('watch', function() {
return gulp.watch(paths.src, ['build']);
});
gulp.task('build', function () {
return gulp.src(paths.src)
.pipe(babel())
.pipe(gulp.d... |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var React = require('react');
function stubCo... |
var App = {
messages : [],
subscriptions : [],
};
App.connect = function(args) {
App.client = new MqttClient(args);
App.client
.on('connect', function() {
console.info('connected to ' + App.client.broker.host + ':' + App.client.broker.port + ' as ' + App.client.broker.clientId);
m.route('... |
var ffi = require('ffi'),
ref = require('ref'),
RefArray = require('ref-array'),
Struct = require('ref-struct'),
Union = require('ref-union'),
_library = require('./../../');
loadDependentSymbols();
_library._preload['zif_iptcparse'] = ['zval', 'pointer', 'zval', function () {
_library.zif_ipt... |
/*
_ ____ _
/ \ _ __ _ _ / ___|___ __| | ___
/ _ \ | '_ \| | | | | | / _ \ / _` |/ _ \
/ ___ \| | | | |_| | | |__| (_) | (_| | __/
/_/ \_\_| |_|\__, | \____\___/ \__,_|\___|
|___/
stream-transform... |
/*jshint node:true*/
'use strict';
var mediaThumbStore = require('../index');
var myMedia;
// Create a thumbnail generator for images
var imageThumbnailer = new mediaThumbStore.gmThumbnailer({
thumbDir: __dirname
});
// Create a thumbnail generator for images
var videoThumbnailer = new mediaThumbStore.ffmpegThumbn... |
/*jslint node: true */
"use strict";
module.exports = function(filesEEG, winston) {
var rmdir = require('rmdir');
var path = 'temp';
var path2 = 'scan';
rmdir(path, function(err, dirs, files) {
winston.info(dirs);
winston.info(files);
winston.info('all temp directory files are... |
var controllers = {};
// load models
require("fs").readdirSync(process._basePath + '/app/controllers').forEach(function (file) {
if (file != 'controller.js') {
controllers[file.replace('.js', '')] = require(process._basePath + '/app/controllers/' + file);
}
});
module.exports = controllers; |
'use strict';
const ALLOWED_COLORS = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'gray', 'white'];
class ServerMessagesManager {
constructor (clientList) {
this.clientList = clientList;
this.introduceTimout = {};
}
/**
* Introduse new connected user to all particip... |
var forOwn = require('./forOwn')
function reject (obj, fn) {
var result = {}
forOwn(obj, function (val, key) {
if (!fn(obj[key], key, obj)) result[key] = obj[key]
})
return result
}
module.exports = reject
|
'use strict';
module.exports = (sequelize, DataTypes) => {
const Genre = sequelize.define('genre', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true,
},
name: {
type: DataTypes.STRING,
allowNull: false,
},
}, {
classMethods: {
associate: ... |
const test = require('tape')
const sinon = require('sinon')
const helpers = require('../test/helpers')
const bindFunc = helpers.bindFunc
const isFunction = require('../core/isFunction')
const unit = require('../core/_unit')
const fl = require('../core/flNames')
const constant = x => () => x
const identity = x => x
... |
const dbManagerFactory = require('../lib').databaseManagerFactory;
const expect = require('chai').expect;
describe('Testing dialect aliases', function() {
const aliases = [
'pg',
'postgres',
'postgresql',
'mysql',
'maria',
'mariadb',
'mariasql',
'sqlite',
'sqlite3',
];
aliase... |
var test = require('tape')
var jsonify = require('../')
var fs = require('fs')
var path = require('path')
test('standard-json', function (t) {
t.plan(1)
var data = fs.readFileSync(path.join(__dirname, 'data.txt'), {encoding: 'utf8'})
var dataJson = [{'filePath': '/someplace/index.js', 'messages': [{'line': '5', ... |
import tap from 'tap'
import common from './common'
const plugin = function (req, res) {
return {
onResponse: (proxyResponse, next) => {
proxyResponse.headers['x-test-header'] = 'test'
return next()
}
}
}
tap.test('modify response headers', (test) => {
test.plan(1)
common.setup({ plugins:... |
'use strict';
exports.tableName = function(name) {
if (typeof name !== 'string') {
throw new Error('illegal type of tableName:' + name);
}
};
exports.schema = function(schema) {
if (typeof schema !== 'object') {
throw new Error('illegal type of object:' + schema);
}
if (!schema.partitionKeyType) {
... |
var testRule = require('./lib/test-rule');
var multiline = require('multiline');
testRule('comma-spacing', [
{
msg: 'rule off',
rules: { 'comma-spacing': 0 },
input: multiline.stripIndent(function () {/*
var foo = 1 ,
bar = 2;
var arr = [1 , 2];
var obj = {
"foo": "bar"... |
require('chai').should()
const nock = require('nock'),
QS = require('../index'),
config = require('../config')
describe('Log in ', function () {
var qs = new QS('token')
var loginData = {
remember_token: 'token',
user: {
id: 1,
username: '001122',
email: 'mr@example.com... |
/* Requires jQuery */
$(document).ready(function() {
// Preload all rollovers
$("a.rollover img, input.rollover, img.rollover").each(function() {
// Set the original src
rollsrc = $(this).attr("src");
rollON = rollsrc.replace(/.gif$/ig,"_OVER.gif").replace(/.jpg$/ig,"_OVER.jpg");
$("<img>").attr... |
// Quijibo Query Executor for JavaScript Arrays. Given an Array to be queried,
// this Executor interprets Quijibo Query Trees and returns result rows in
// Arrays.
define(function (require) {
var _ = require('underscore');
// exports
return {
expand_meta: expand_meta,
execute_query: execute_query,
... |
/**
* @author: @AngularClass
*/
module.exports = function(config) {
var testWebpackConfig = require('./webpack.test.js')({env: 'test'});
var configuration = {
// base path that will be used to resolve all patterns (e.g. files, exclude)
basePath: '',
/*
* Frameworks to use
*
* availa... |
import FetchUtil from '../utils/fetchUtil';
import Exception from "../exceptions/exception";
import FetchException from "../exceptions/fetchException";
import sweetAlert from "../../../node_modules/bootstrap-sweetalert/dev/sweetalert.es6.js"; // eslint-disable-line max-len
export default class NewYear {
constructor(... |
"use strict";
const webpack = require("..");
describe("Validation", () => {
const createTestCase = (name, config, fn) => {
it("should fail validation for " + name, () => {
try {
webpack(config);
} catch (err) {
if (err.name !== "ValidationError") throw err;
expect(err.message).toMatch(/^Invalid ... |
import * as etg from '../src/etg.js';
function* iterSplit(src, str) {
let i = 0;
while (true) {
const j = src.indexOf(str, i);
yield src.slice(i, ~j ? j : src.length);
if (j === -1) return;
i = j + str.length;
}
}
function readCost(coststr, defaultElement) {
if (!coststr) return new Int8Array([0, 0]);
if... |
const mockTraceSVG = jest.fn(
async () => `data:image/svg+xml,%3csvg 'MOCK SVG'%3c/svg%3e`
)
jest.mock(`gatsby-plugin-sharp`, () => {
return {
fluid({ file, args }) {
return Promise.resolve({
aspectRatio: 0.75,
presentationWidth: 300,
originalImg: file.absolutePath,
src: f... |
'use strict';
module.exports =
'<div class="r">' +
'<a href="http://www.filestube.to/details.html" class="rL">' +
'Zbych Andrzej - Stawka wieksza niz zycie Cz 17 Akcja Lisc Debu' +
'</a>' +
'</div>' +
'<div class="r">' +
'<a href="http://www.filestube.to/details.html" class="rL">' +
'Zby... |
//
// react-dropdown-input
// Displays a ReactBootstrap.Input element
// with a ReactBootstrap.DropdownMenu of possible options.
//
'use strict';
var React = require('react');
var cx = require('classnames');
var DropdownMenu = require('react-bootstrap/lib/DropdownMenu');
var FormControl = require('react-bootstrap... |
import React from 'react';
import { render } from 'react-dom';
import Tooltip from './Tooltip';
const TestComponent = () => <button />;
it('renders without crashing', () => {
const div = document.createElement('div');
render(
<Tooltip target={<TestComponent />}>
<TestComponent />
</Tooltip>,
di... |
#!/usr/bin/env node
/**
* Node.js API Starter Kit (https://reactstarter.com/nodejs)
*
* Copyright © 2016-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
const fs = require('fs');
cons... |
"use strict";
var screenWidth;
var screenHeight;
var context;
var fps;
var camera;
var formationManager = new FormationManager(new DefensiveCirclePattern());
var target = new Circle();
$(document).ready(function() {
var canvas = $("#gameCanvas")[0];
screenWidth = canvas.width;
screenHeight = canvas.height;
... |
var Game = function(canvas, mainColor, colors, keys, duration, interval) {
var Game = {
canvas: canvas,
mainColor: mainColor,
colors: colors,
keys: keys,
duration: duration,
interval: interval,
key: {
space: {pressed: false, color: undefined},
up: {pressed: false, color: undefined},
right: {pres... |
function increment(cmd, evt) {
_fvr.i2c.counts[cmd].push(evt.toString());
}
var openSync = function(address) {
_fvr.i2c = new MockObj(address);
increment('open', 1);
return _fvr.i2c;
};
var writeI2cBlock = function(address, cmd, length, val, cb) {
increment('writeI2cBlock',[address, cmd, Buffer.isBuffer(val)]);
... |
var path = require('path'),
mongojs = require('mongojs'),
config = require(path.resolve(__dirname, "../../../config.js")),
db = mongojs(config.db);
module.exports.searchQuery = function(query, callback) {
db.collection(config.collection).find(query, function (err, doc) {
callback(doc);
}); ... |
var searchData=
[
['dog_2ecpp',['Dog.cpp',['../_dog_8cpp.html',1,'']]],
['dog_2eh',['Dog.h',['../_dog_8h.html',1,'']]],
['driver_2ecpp',['Driver.cpp',['../_driver_8cpp.html',1,'']]]
];
|
'use strict';
var gulp = require("gulp");
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var config = require('../config');
var handleErrors = require('../utils/handleErrors');
var browserSync = require("browser-sync");
var cleanCSS = requ... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13 9c0-2.21-1.79-4-4-4-.36 0-.69.06-1.02.15l4.87 4.87c.09-.33.15-.66.15-1.02zm2.69 2.55l.13.13c.55.55 1.48.43 1.85-.25.82-1.49.81-3.26-.02-4.82-.37-.69-1.31-.83-1.86-.27l-.1.1c-.34.34-.42.85-.23... |
datab = [{},{"Attribute Name":{"colspan":"1","rowspan":"1","text":"Grid"},"Tag":{"colspan":"1","rowspan":"1","text":"(0018,1166)"},"Type":{"colspan":"1","rowspan":"1","text":"3"},"Attribute Description":{"colspan":"1","rowspan":"1","text":"Identifies the grid. May be multi-valued. Defined Terms: FIXED FOCUSED ... |
declare type MessageGenerator = (field: string, params: any[], data: MapObject) => string;
declare type Locale = {
messages: Object | { [string]: MessageGenerator },
attributes: Object | { [string]: string },
custom: Object | { [string]: MessageGenerator },
dateFormat: ?string
};
declare type PartialDictionar... |
// 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... |
'use strict';
const assert = require('assert');
const gitignoreToGlob = require('../lib/gitignore-to-glob');
const getProcessedArray = (gitignoreSuffixOrArray, dirsToCheck) =>
Array.isArray(gitignoreSuffixOrArray)
? gitignoreSuffixOrArray
: gitignoreToGlob(
`${__dirname}/fixtures/git... |
'use strict';
const express = require('express');
module.exports = class API {
constructor({HVAC}){
this.HVAC = HVAC;
this.PORT = 3000;
this.app = express();
this.setRoutes();
this.startServer();
}
setRoutes(){
this.app.get('/', function (req, res) {
res.send('Hello World!')
})... |
/*
Easy Cookie Law
Copyright (c) 2016-2017 Daniel Sedmak
Released under the MIT License
https://github.com/dansita/easy-cookie-law
*/
function getCookie(a){var b=document.cookie,c=a+"=",d=b.indexOf("; "+c);if(d==-1){if(d=b.indexOf(c),0!==d)return null}else{d+=2;var e=document.cookie.indexOf(";",d);e==-1&&(e=... |
(function () {
'use strict';
angular.module('psadmin').directive('sidenavEntry', function ($location) {
return {
restrict: 'E',
scope: true,
template: '<md-button class="text-left" href="admin.html#{{path}}" ng-class="{\'md-primary\': isActive()}">{{getLabel()}}</md-b... |
import React, { Component } from 'react';
import { data } from '../API/data';
import ProductHomePage from '../components/ProductHomePage';
class HomeContainer extends Component {
static propTypes = {
products: React.PropTypes.array,
product: React.PropTypes.object
}
state = {
products: ... |
var GridStore = require('./gridstore').GridStore,
ObjectID = require('../bson/objectid').ObjectID;
/**
* A class representation of a simple Grid interface.
*
* @class Represents the Grid.
* @param {Db} db A database instance to interact with.
* @param {String} [fsName] optional different root collection for Gri... |
'use strict';
let loginViewModel = require('./login-view-model');
let dialogs = require('ui/dialogs');
let frame = require('ui/frame');
let basePage = require('../../common/base-page').defaultInstance;
let viewModel;
function pageLoaded(args) {
let page = args.object;
viewModel = new loginViewModel.LoginViewModel... |
import { NOVEL_DETAIL } from '../constants/actionTypes';
export function fetchNovelDetailSuccess(entities, item, novelId) {
return {
type: NOVEL_DETAIL.SUCCESS,
payload: {
novelId,
entities,
item,
timestamp: Date.now(),
},
};
}
export function fetchNovelDetailFailure(novelId) {... |
version https://git-lfs.github.com/spec/v1
oid sha256:b75d5c738b30a1bf19f80bd859a1f3845d44aacc965c57281c2cb1b647a2db79
size 5761
|
version https://git-lfs.github.com/spec/v1
oid sha256:e311a9469171f6683008ea2d29c0befa0f87eaa5f35981096354b660d5da98b0
size 517241
|
// INCLUIDE GULP
var gulp = require('gulp');
// INCLUIDE PLUGINS
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
// TASK SASS
gulp.task('sass', function () {
return gulp.src(['./sass/main.scss'])
.pi... |
import React from 'react';
let Visualble = require('./visualble.js');
React.render(<Visualble />, document.querySelector("#myApp"));
|
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Check whether an element is a finite number
isFiniteNumber = require( 'validate.io-finite' ),
// Module to be tested:
mgf = require( './../lib/typedarray.js' );
// VARIABLES //
var expect ... |
'use strict';
var inherit = require('inherit'),
_ = require('lodash'),
q = require('q'),
Runner = require('../runner'),
RunnerEvents = require('../../constants/runner-events'),
PrivateEvents = require('../private-events'),
NoRefImageError = require('../../errors/no-ref-image-error'),
Stat... |
/* @flow */
/* eslint-disable flowtype/space-after-type-colon */
export type EBMLSchema = {
name: string,
type: 'm' | 'u' | 'i' | 'f' | 's' | '8' | 'd' | 'b' | null,
description: string,
level: number,
mandatory: boolean,
minver: number,
multiple: boolean,
webm: boolean,
// optional params start here
... |
// Separate Numbers with Commas in JavaScript **Pairing Challenge**
// I worked on this challenge with: Zach Schatz.
// Pseudocode
/*
What is the input? positive integer
What is the output? the integer separated by commas
What are the steps needed to solve the problem?
1. define a function separateComma
1a. pa... |
-My build Developer Programming Languages:
-Muhammad Adi Nugroho,S.Adm.Neg.:
-Via My Notepad (HTML Editor):
viewport_scroller.js
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @p... |
const merge = require('deepmerge');
class StyleLoader {
/**
* @param {YamlConfigLoader} configLoader
*/
constructor(configLoader) {
this._configLoader = configLoader;
}
/**
* @param {string} theme Theme name
* @return {Object} List of Webpack entry-points
*/
getThe... |
/*
RainbowVis-JS
Released under MIT License
*/
function Rainbow()
{
var gradients = null;
var minNum = 0;
var maxNum = 100;
var colours = ['ff0000', 'ffff00', '00ff00', '0000ff'];
setColours(colours);
function setColours (spectrum)
{
if (spectrum.length < 2) {
throw new Error('Rainbow must have two or... |
/* material.js --- model of material
*
* Maintainer: Mephis Pheies ( MephistoMMM )
* Email: mephistommm@gmail.com
*
* License:
* MIT License
*
* Description:
* This file was written according to https://mlssz.github.io/DocsV2/dev_docs/db_design/index.html
*/
let mongoose = require("./db.js")
let utils = requi... |
import interopRequireDefault from '@babel/runtime/helpers/interopRequireDefault'
import givenEvents from '@resolve-js/testing-tools'
import config from './config'
jest.setTimeout(1000 * 60 * 5)
describe('Read-model sample', () => {
const {
name,
resolvers: resolversModule,
projection: projectionModule,... |
window.onload = function() { // Wait for DOM to load.
var p = document.getElementById("my-p");
console.log(p); // Returns just one element
p.style.color = "red";
p.style.backgroundColor = "blue";
p.innerHTML = "Something funky!!"
var lis = document.getElementsByTagName("li"); /... |
var cwd = process.cwd();
/*
Example settings. Modify to your taste and save as settings.js
*/
module.exports = {
blog: {
title: 'Your blog',
postsPerPage: 10,
authKey: 'your-auth-key',
theme: 'basic'
},
session: {
key: 'nothingspecial',
ttl: 1000 * 3600 * ... |
var page = require('webpage').create();
page.open('http://pocae.tstgo.cl/PortalCAE-WAR-MODULE/', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.