code stringlengths 2 1.05M |
|---|
import {
isArray,
isMaybeThenable
} from './utils';
import {
noop,
reject,
fulfill,
subscribe,
FULFILLED,
REJECTED,
PENDING,
handleMaybeThenable
} from './-internal';
import then from './then';
import Promise from './promise';
import originalResolve from './promise/resolve';
import originalThen fro... |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the p... |
/*! jQuery UI - v1.9.2 - 2014-06-04
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.he={closeText:"סגור",prevText:"<הקודם",nextText:"הבא>",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי... |
/*
* Copyright (c) 2006-2007 Erin Catto http:
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* includin... |
function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
ej.addCulture( "ar-BH",{
name: "ar-BH",
englishName: "Arabic (Bahrain)",
nativeName: "العربية (البحرين)",
language: "ar",
isRTL: true,
numberFormat: {
pattern: ["n-"],
decimals: 3,
"NaN": "ليس برقم",
negativeInfinity: "-لا نهاية",
positiveInfinity: "+لا نهاية",
percent: {
decimals: 3
},
currenc... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'quicktable', 'bs', {
more: 'Više...'
} );
|
// npm build command
// everything about the installation after the creation of
// the .npm/{name}/{version}/package folder.
// linking the modules into the npm.root,
// resolving dependencies, etc.
// This runs AFTER install or link are completed.
var npm = require("./npm.js")
, log = require("npmlog")
, chain ... |
/*! algoliasearch 3.22.1 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof g... |
var isObjectLike = require('../internal/isObjectLike');
/** `Object#toString` result references. */
var errorTag = '[object Error]';
/** Used for native method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object... |
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M368 175.2c0-19.5-1-81.7-19.3-115.6C344.2 51.4 336.2 48 317 48H195c-19.3 0-27.2 3.4-31.7 11.6-18.3 33.9-19.3 96.5-19.3 116 0 91 32 93.1 32 167.8 0 36.7-16 66.7-16 92.7 0 25.1 9 27.8 32 27.8h128c23 0 32-2.9 32-27... |
/**
* Model for a books review.
*/
Ext.define('Books.model.Review', {
extend: 'Ext.data.Model',
requires: ['Ext.data.association.HasMany', 'Ext.data.association.BelongsTo'],
fields: [
'product_id',
'author',
'rating',
'date',
'title',
'comment'
],
b... |
export default from './Drawer';
|
(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["VueMaterial"] = factory();
else
root["V... |
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.squel = factory();
}
}(this, function() {
'use strict';
var _get = function get(object, property, receiver) { if (ob... |
/**
* sp-pnp-js v1.0.2 - A reusable JavaScript library targeting SharePoint client-side development.
* Copyright (c) 2016 Microsoft
* MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof wi... |
/*!
* OOjs UI v0.9.2
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2015 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2015-03-12T23:43:45Z
*/
/**
* @class
* @extends OO.ui.Theme
*
* @constructor
*/
OO.ui.ApexTheme = function OoUiAp... |
var demand = require('must');
var SelectType = require('../SelectType');
exports.initList = function (List) {
List.add({
select: { type: SelectType, options: 'one, two, three' },
nested: {
select: { type: SelectType, options: 'one, two, three' },
},
extraProps: { type: SelectType, options: [
{ value: 'o... |
module.exports={title:"Shotcut",slug:"shotcut",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Shotcut</title><path d="M0 0h6.667v24H0v-.889h5.778V.889H0V0zm7.556 0v24H24v-.889H8.444V.889H24V0H7.556zm1.388 22.611H24V1.389H8.944v21.222zM5.278 1.389H0v21.222h5.278V1.389z"/></svg>',get p... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
'use strict';
exports.__esModule = true;
/**
* Safe chained function
*
* Will only create a new function if needed,
* otherwise will pass back existing functions or null.
*
* @param {function} functions to chain
* @returns {function|null}
*/
function createChainedFunction() {
for (var _len = arguments.length... |
/*
* Translated default messages for the jQuery validation plugin.
* Locale: UK (Ukrainian; українська мова)
*/
$.extend($.validator.messages, {
required: "Це поле необхідно заповнити.",
remote: "Будь ласка, введіть правильне значення.",
email: "Будь ласка, введіть коректну адресу електронної пошти.",
url: "Будь... |
/**
* Requires commas as last token on a line in lists.
*
* Type: `Boolean`
*
* Value: `true`
*
* JSHint: [`laxcomma`](http://www.jshint.com/docs/options/#laxcomma)
*
* #### Example
*
* ```js
* "requireCommaBeforeLineBreak": true
* ```
*
* ##### Valid
*
* ```js
* var x = {
* one: 1,
* two: 2... |
//>>built
define("dojox/mobile/ValuePickerDatePicker",["dojo/_base/declare","dojo/dom-class","dojo/dom-attr","./_DatePickerMixin","./ValuePicker","./ValuePickerSlot"],function(_1,_2,_3,_4,_5,_6){
return _1("dojox.mobile.ValuePickerDatePicker",[_5,_4],{readOnly:false,yearPlusBtnLabel:"",yearPlusBtnLabelRef:"",yearMinusB... |
/**
* An Angular module that gives you access to the browsers local storage
* @version v0.2.7 - 2016-03-16
* @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (window, angular) {
var isDefined = a... |
/*!
* inferno-hyperscript v1.0.0-beta8
* (c) 2016 undefined
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.h = factory())... |
/*! jQuery-ui-Slider-Pips - v1.8.3 - 2015-04-06
* Copyright (c) 2015 Simon Goellner <simey.me@gmail.com>; Licensed MIT */
// PIPS
(function($) {
"use strict";
var extensionMethods = {
pips: function( settings ) {
var i,
p,
slider = this,
... |
var _ = require('../util')
var templateParser = require('../parsers/template')
var textParser = require('../parsers/text')
var compiler = require('../compiler')
var Cache = require('../cache')
var cache = new Cache(1000)
// v-partial reuses logic from v-if
var vIf = require('../directives/if')
module.exports = {
l... |
require('babel-polyfill');
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
var projectRootPath = p... |
//! moment.js locale configuration
//! locale : Esperanto [eo]
//! author : Colin Dean : https://github.com/colindean
//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
//! comment : miestasmia corrected the translation by colindean
//! comment : Vivakvo corrected the translation by colindean and mi... |
module.exports = {
"name": "de_CH",
"day": {
"abbrev": [
"Son",
"Mon",
"Die",
"Mit",
"Don",
"Fre",
"Sam"
],
"full": [
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag"
]
},
"month": ... |
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function b(a,b,c){var h=n[this.id];if(h)for(var f=this instanceof CKEDITOR.ui.dialog.checkbox,e=0;e<h.length;e++){var d=h[e];switch(d.type){case 1:if(!a)continue;i... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js
*
* Copyright (c) 2009-2014 The MathJax Consortium
*
* 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
*
* ... |
describe('alert:', function() {
beforeEach(function() {
this.addMatchers({
// Place alert-specific matchers here...
});
var origFunc = $.fn.foundation;
spyOn($.fn, 'foundation').andCallFake(function() {
var result = origFunc.apply(this, arguments);
jasmine.Clock.tick(1000); // Let t... |
CKEDITOR.plugins.setLang("templates","bg",{button:"Шаблони",emptyListMsg:"(Няма дефинирани шаблони)",insertOption:"Замяна на актуалното съдържание",options:"Опции за шаблона",selectPromptMsg:"Моля изберете шаблон за отваряне в редактора",title:"Шаблони"}); |
module.exports={title:"C++",slug:"cplusplus",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>C++ icon</title><path d="M22.393 6c-.167-.29-.398-.543-.652-.69L12.925.22c-.508-.293-1.339-.293-1.847 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.68... |
for (var i = (1 in []) in []);
for (var i = 1 in ([] in []));
for (var i = (10 * 10 in []) in []);
for (var i = (10 + 10 in []) in []);
for (var i = 10 + (10 in []) in []);
for (var i = 10 + 10 in ([] in []));
for (var i = (1 in []);;);
for ((1 in []);;);
for (1 * (1 in []);;);
for (1 * (1 + 1 in []);;);
for (1 * (1 + ... |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLaye... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ReplaceSource = require("webpack-core/lib/ReplaceSource");
var RawSource = require("webpack-core/lib/RawSource");
function DependenciesBlockVariable(name, expression, dependencies) {
this.name = name;
this.express... |
YUI.add('editor-base', function(Y) {
/**
* Base class for Editor. Handles the business logic of Editor, no GUI involved only utility methods and events.
* @module editor
* @submodule editor-base
*/
/**
* Base class for Editor. Handles the business logic of Editor, no GUI involved... |
hljs.registerLanguage("go",function(a){var b={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer",constant:"true false iota nil",typename:"bool byte complex64 complex128 float32 float64 int8 int16 int32 int64... |
/*!
* Qoopido.js library v3.3.7, 2014-5-26
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(o){window.qoopido.register("pool/dom",o,["../pool"])}(function(o,t,e,r,n,i){"use strict";var p=o.pool.extend({_initPool:function(){return{}},_getPool:function(o){var t=... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize underscore exports="node" -o ./underscore/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentClou... |
/*!
Plottable v0.3.0 (https://github.com/palantir/plottable)
Copyright 2014 Palantir Technologies
Licensed under MIT (https://github.com/palantir/plottable/blob/master/LICENSE)
*/
///<reference path="reference.ts" />
var Plottable;
(function (Plottable) {
(function (Utils) {
/**
* Checks if x is be... |
// Browser specific code for the OAuth package.
// Open a popup window, centered on the screen, and call a callback when it
// closes.
//
// @param url {String} url to show
// @param callback {Function} Callback function to call on completion. Takes no
// arguments.
// @param dimensions {optional Object(width, heigh... |
require('./angular-locale_bg');
module.exports = 'ngLocale';
|
var baseSlice = require('../internal/baseSlice'),
createWrapper = require('../internal/createWrapper'),
replaceHolders = require('../internal/replaceHolders');
/** Used to compose bitmasks for wrapper metadata. */
var PARTIAL_RIGHT_FLAG = 64;
/**
* This method is like `_.partial` except that partially applie... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v14.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
|
/**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
/*
* NotFoundPage Messages
*
* This contains all the text for the NotFoundPage component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.components.NotFoundPage.header',
defaultMessage: 'This is NotFoundPage component!',
},
});
|
/*
AngularJS v1.4.3
(c) 2010-2015 Google, Inc. http://angularjs.org
License: MIT
*/
(function(A,h,B){'use strict';function v(h){return["$animate",function(q){return{restrict:"AE",transclude:"element",terminal:!0,require:"^^ngMessages",link:function(m,e,a,g,k){var c=e[0],n,l=a.ngMessage||a.when;a=a.ngMessageExp||a.wh... |
/*
* /MathJax/localization/ia/HTML-CSS.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* 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/licen... |
(function() {
var Bacon, Bus, CompositeUnsubscribe, Dispatcher, End, Error, Event, EventStream, Initial, Next, None, Observable, Property, PropertyDispatcher, PropertyTransaction, Some, addPropertyInitValueToStream, assert, assertArray, assertEvent, assertEventStream, assertFunction, assertNoArguments, assertString, ... |
/*jslint browser: true*/
/*globals window, define, Class*/
define('yaga-dummy', ['yaga'], function (Yaga) {
'use strict';
var Dummy;
Dummy = new Class({
Extends: Yaga,
initialize: function (opts) {
Dummy.init.call(this, opts);
},
functions: function (value) {
... |
#!/usr/bin/env node
"use strict";
const Consolist = require("../consolist");
const fs = require("fs");
const path = require("path");
const imagePath = path.join(__dirname, "dman.raw");
const data = fs.readFileSync(imagePath);
console.log("24-bit mode:");
Consolist.log({
width: 48,
height: 92,
data: data... |
import * as ReactLinkStateVM from 'react-link-state-vm';
import React from 'react';
// For LiveEditor
global.require = dependency =>
({
react: React,
'react-link-state-vm': ReactLinkStateVM
}[dependency]);
|
'use strict'
var Base = require('../base')
/**
* @namespace Emitter
* @class
* @augments base
* @param {*} val
* difference with base -- sets listeners for each key
* if there is a function will set a listener on fn val
* @return {base}
*/
module.exports = new Base({
inject: [
require('./storage'),
... |
describe("Internal values are not exposed: ", function() {
const GLOBAL = (typeof global == "object") ? global : window;
const PRIVATE_KEYS =
[
// source/moduleUtilities.js
"valueType",
"ShadowKeyMap",
"makeShadowTarget",
"getRealTarget",
"inGraphHandler",
"NOT_YET_DETERMINED",
"... |
var util = require('util'),
Tab = require('../client/tab').Tab;
var GoldTab = function ()
{
Tab.call(this);
};
util.inherits(GoldTab, Tab);
GoldTab.prototype.tabName = 'gold';
GoldTab.prototype.mainMenu = 'fund';
GoldTab.prototype.angularDeps = Tab.prototype.angularDeps.concat(['qr']);
GoldTab.prototype.gene... |
"use strict";
const resolve = require("./resolve");
const { promise } = require("@xmpp/events");
async function fetchURIs(domain) {
const result = await resolve(domain, {
srv: [
{
service: "xmpps-client",
protocol: "tcp",
},
{
service: "xmpp-client",
protocol: "... |
var title = require('./lib/title');
var TennuTitle = {
configDefaults: {
"title": {
"liveTitle": false
}
},
requiresRoles: ['dblogger', 'dbcore'],
init: function(client, imports) {
const helps = {
"title": [
"{{!}}title",
... |
import React, { Component } from "react";
import { Text, View, ViewPagerAndroid } from "react-native";
import { connect } from "react-redux";
import LinkButton from "../components/LinkButton";
import PopUp from "../components/PopUp";
import PopUpLink from "../components/PopUpLink";
import { MediaQueryStyleSheet } from ... |
require.config({
baseUrl: '/base', //karma servers files from base
paths: {
knockout: 'bower_components/knockout.js/knockout'
}
});
require(['spec/<%=name%>'], window.__karma__.start);
|
import func from '../../../../src/evaluate-by-operator/operator/minus';
describe('minus operator', () => {
it('should set SYMBOL const', () => {
expect(func.SYMBOL).to.eq('-');
});
it('should correctly process values', () => {
expect(func(2, 8.8)).to.eq(-6.8);
expect(func('2', 8.8)).to.eq(-6.8);
... |
/**
* NodeJs Server-Side Example for Fine Uploader (traditional endpoints).
* Maintained by Widen Enterprises.
*
* This example:
* - handles non-CORS environments
* - handles delete file requests assuming the method is DELETE
* - Ensures the file size does not exceed the max
* - Handles chunked upload reque... |
import {merge} from 'lodash';
const DeviceCollection = {
devices: {},
get(deviceId) {
return this.devices[deviceId];
},
set(device) {
const deviceId = device.id || device.identity && device.identity.id;
// check if the device is already existing, if so then merge else add
const existingDevice... |
'use strict';
module.exports = {
BLANK: '_blank',
SELF: '_self',
PARENT: '_parent',
TOP: '_top'
};
|
/**
* Created by markus.candido on 19/07/15.
* public/js/controllers/grupos-controller.js
*/
angular.module('alurapic')
.controller('GruposController', function($scope, $http){
$http.get('/v1/grupos')
.success(function(grupos) {
console.log(grupos);
$scope.grupos = grupos;
console.log($scope.grupos)... |
/**
* Created by moses on 12/6/14.
*/
'use strict';
var Config = {};
Config.yearDirBase = '/Volumes/MoBucket/Users/Dean\ Moses/Pictures/raw';
Config.jsonDirBase = '/Users/moses/devgit/tacocat-gallery-data';
Config.targetDirBase = '/Users/moses/devgit/albums';
module.exports = Config; |
export const boldUp = {"viewBox":"0 0 20 20","children":[{"name":"path","attribs":{"d":"M10,2.5l7.5,7.5H14v7H6v-7H2.5L10,2.5z"}}]}; |
// xStrRepeat r1, Copyright 2010 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xStrRepeat(s, n)
{
for (var r = s, i = 1; i < n; ++i) r += s;
return r;
}
|
var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config.js');
var app = express();
var compiler = webpack(config);
app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
}));
app.use(r... |
const imager = require('../src/imager');
const readPath = '../resources/snail.bmp';
imager.binaryScale(readPath, './output/_binary_pic.bmp');
imager.grayScale(readPath, './output/_gray_pic.bmp');
imager.negative(readPath, './output/_negative_pic.bmp');
imager.captureScreen('./output/_captureScreen.bmp'); |
var settings = {
API: 'http://176.58.113.253:8090/api/'
}
|
/**
* MULTIPLAYER ASTEROIDS GAME CLIENT
*/
/**
* Game variables
*/
var canvas, // Canvas DOM element
ctx, // Canvas rendering context
keys, // Keyboard input
localPlayer, // Local player
remotePlayers, // Remote players
asteroids, // Asteroids
smoke, ... |
game.PlayScreenVictory = me.ScreenObject.extend({
/**
* action to perform on state change
*/
onResetEvent: function() {
me.levelDirector.loadLevel("victory-level");
me.timer.setTimeout(function () {me.state.change(me.state.SPORT)},20000);
},
/**
* action to per... |
const sequelize = require('../db/connection');
const SQ = require('sequelize');
var MessageRoom = sequelize.define('messageStatus', {
number: {
type: SQ.INTEGER,
}
});
module.exports = MessageRoom;
|
/**
* Table 数值型单元格渲染器
* @author Brian Li
* @email lbxxlht@163.com
* @version 0.0.2.1
*/
define(function (require) {
var React = require('react');
return React.createClass({
/**
* @properties
* @param {String} className 加在单元格td上的类
* @param {String} style 加在单元格td上的样式表
... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.addColumn(
'Channels',
'TeamId',
{
type: Sequelize.STRING
}
);
},
down: function (queryInterface, Sequelize) {
// remove user reference
return queryInterface.removeC... |
// 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... |
var tests = require('./test-fns');
var testOK = tests.testOK, testFail = tests.testFail, testSkip = tests.testSkip;
module.exports = {
'evaluation': {
'should eval nothing':
testOK('', ''),
'should eval comments, i.e. nothing':
testOK(';aaaa', ''),
'should eval definition':
testOK('(de... |
import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './march-2019-update.md';
function Page() {
return <MarkdownDocs markdown={markdown} blog disableAd disableToc disableEdit /... |
/*global define, Backbone, _ */
define([], function () {
'use strict';
// setting underscore delimiters
_.templateSettings = {
interpolate: /\{\{(.+?)\}\}/g
};
var RabbitTask = {
Views: {},
Models: {},
Collections: {},
Helpers: {}
};
/* Template helper */
RabbitTask.Helpers.template = function (sele... |
import styled from 'styled-components'
import { transparentize, darken } from 'polished'
import * as colors from './colors'
const StyledButton = styled.button`
/*-webkit-border-radius: 4px;
-moz-border-radius: 4px;*/
border-radius: 4px;
font-family: ${(props) => props.theme.font || 'Source Sans Pro'};
... |
const Paginator = require('../../../lib/domain/paginator');
const expect = require('chai').expect;
describe('Paginator', () => {
describe('when there are no items to paginate', () => {
const paginator = new Paginator();
paginator.isValid();
it('should show an error', () => {
expect(paginator.erro... |
//--------------------------------------------------------------------------------------------------------
// Mercer Evolution - Core v3.0 - Accordion JS
// DATE - June 3, 2015
// AUTHOR - Doug Fraize, Matthew Holmes
//-----------------------------------------------------------------------------------------------------... |
import test from 'ava';
var fs = require('fs')
var exec = require('co-exec');
test('init()', function * (t) {
var commit = yield exec('node index.js -i');
t.true(fs.existsSync('.travis.yml'));
});
test('badge()', function * (t) {
var commit = yield exec('node index.js -b');
var cfg = require('get-git-... |
/**
* Created by mattjohansen on 11/19/13.
*/
var shorturl = require('../scripts/short-url-expander.coffee');
var HttpClient = require('scoped-http-client');
describe('short url expander', function() {
var robot, msg = null;
beforeEach(function(){
robot = {
respond: function(regex, callback){},
... |
#!/usr/bin/env node
// Parse process.argv
var argv = require("yargs")
.alias("f", "file")
.alias("u", "user")
.alias("p", "password")
.alias("h", "hash")
.alias("e", "expire")
.alias("i", "id")
.alias("v", "verbose")
.argv;
// Import utils
var fs = require("fs"),
Path = require("path"),
detectLang = require... |
/***/
var Server = require('./server');
var Socket = require('./socket');
module.exports = Socket;
// var WebSocket = require('websockets');
Socket.Server = Server;
Socket.WebSocket = Socket;
Socket.createServer = function(opts) {
return new Server(opts);
};
Socket.connect = function(opts) {
return new Socket(o... |
$( document ).ready(function() {
// Add scrolling to Nav-Bar links
$('.navbar [href^=#]').click(function (e) {
e.preventDefault();
var div = $(this).attr('href');
$("html, body").animate({
scrollTop: $(div).position().top
}, "slow");
});
// Init Masonry
$masonryContainer = $('.reviews');
$masonryContai... |
const Module = require('quantum/core/Module');
const devices = new Set();
module.exports = class DeviceManager extends Module {
install (device) {
device.connect(this[ Module.host ]);
devices.add(device);
}
find (name) {
return Array.from(devices).find(device => device.kind === n... |
const puppeteer = require('puppeteer');
const CREDS = require('./creds');
const MAJORS = require('./majors');
/* Get Started:
* 1. Run `npm i --save puppeteer`
* 2. Make creds.js with module.exports = {
username: '<USERNAME>',
password: '<PASSWORD>'
}
* 3. node emailScraper.js
*/
async functi... |
'use strict'
const assert = require('chai').assert
const uuid = require('uuid').v4
const index = require('./../src/index')
// Files must be in cwd so babel can load the plugins and presents
const fsify = require('fsify')({
persistent: false
})
describe('index()', function() {
it('should return an error when calle... |
var w2ui = w2ui || {};
var w2obj = w2obj || {}; // expose object to be able to overwrite default functions
/************************************************
* Library: Web 2.0 UI for jQuery
* - Following objects are defines
* - w2ui - object that will contain all widgets
* - w2obj ... |
const test = require('tape');
const _ = require('lodash');
module.exports = (compose) => {
const build = (num) => {
const composable = function () {};
composable.compose = function () {};
composable.compose.initializers = [() => {
return {num};
}];
return composable;
};
const buildI... |
/*
main module setup...
*/
define(function (require) {
'use strict';
/**
* Module dependencies
*/
var sections = require('model/sections');
var playbox = require('component/playbox');
var toolbar = require('component/toolbar');
var thumbnails = require('component/thumbnails');
var centralstage ... |
var mainapp = angular.module('mainapp', ['ui.router', 'ui.bootstrap', 'ngResource'])
.config(function($stateProvider, $urlRouterProvider, $interpolateProvider, $httpProvider){
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
$urlRouterProvider.otherwise("... |
/**
*
*/
$(document)
.ready(
function() {
var taskCount = $('#tasktable tbody>tr').length;
$('.ui.dropdown').dropdown();
$("#datepicker-input").datepicker();
$('#datepicker-btn').click(function() {
$("#datepicker-input").focus();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.