code stringlengths 2 1.05M |
|---|
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './card-content.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:5000',
'webpack/hot/dev-server',
'./index'
],
output: {
path: path.join(__dirname, '/'),
filename: 'bundle.js',
publicPath: '/'
},
resolve: {
exten... |
app.directive('fileModel', ['$parse', function ($parse) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var model = $parse(attrs.fileModel);
var modelSetter = model.assign;
element.bind('change', function(){
scope.$apply(function... |
(function($)
{
var defauts=
{
"noms" : {},
"separateur": "rect-",
"margeRect" : 15,
"largeurRect" : 80,
"hauteurRect" : 60,
"paddingProfondeur" : 60,
"orientation" : "paysage",
"onAdd" : function(id,e) { return formUserInstrumentConcert(1,id,e); },
"onEdit" : function(id,e) { return form... |
$(function () {
<<<<<<< HEAD
module('tooltip')
test('should provide no conflict', function () {
var tooltip = $.fn.tooltip.noConflict()
ok(!$.fn.tooltip, 'tooltip was set back to undefined (org value)')
$.fn.tooltip = tooltip
})
test('should be defined on jquery object',... |
var https = require('https');
module.exports = {
shorten: function(url, cb) {
https.get('https://is.gd/create.php?format=simple&url=' + encodeURIComponent(url), function (res) {
var body = '';
res.on('data', function(chunk) { body += chunk; });
res.on('end', function() {... |
$(function() {
$('.tabbed').tabs();
$('.help-inner').hide();
$('.help .secondary').on('click', function(e) {
e.preventDefault();
$('.help-inner').toggle();
});
$('#resultsGoMapView').on('click', function(e) {
e.preventDefault();
$('a[href="#tabs-2"]').click();
});
/*var map = L.map('... |
var blessed = require('blessed');
var copyPaste = require('copy-paste');
var screen;
var terminal;
function build(channelName) {
var channelUrl = 'http://termcast.xyz/' + channelName;
this.screen = blessed.screen({
smartCSR: true
});
copyPaste.copy(channelUrl);
this.terminal = blessed.terminal({... |
import {ChangeAction} from "../../../../history/action/ChangeAction.js";
import {Editor} from "../../../../Editor.js";
import {Slider} from "../../../../components/input/Slider.js";
import {PassNode} from "./PassNode.js";
function HueSaturationPassNode(parent)
{
PassNode.call(this, parent, "HueSaturation");
var sel... |
/**
* This file is part of the RedKite CMS Application and it is distributed
* under the GPL LICENSE Version 2.0. To use this application you must leave
* intact this copyright notice.
*
* Copyright (c) RedKite Labs <info@redkite-labs.com>
*
* For the full copyright and license information, please view the LICEN... |
/**
* Module dependencies.
*/
var util = require('util')
, OAuthStrategy = require('passport-oauth').OAuthStrategy
, InternalOAuthError = require('passport-oauth').InternalOAuthError;
/**
* `Strategy` constructor.
*
* The Xing authentication strategy authenticates requests by delegating to
* Xing using the ... |
importScripts('../command-block-utils.js', '../main.js')
const log = console.log
onmessage = function(e) {
if (e.data === 'ENABLE_DEBUG') {
console.log = log
console.log('Enabled console logging!')
return
} else if (e.data === 'DISABLE_DEBUG') {
console.log = () => {}
log('Disabled console log... |
'use strict';
module.exports = function (t, a) {
var anchor;
a.throws(function () {
t({});
}, "Other");
if (typeof document !== 'undefined') {
anchor = document.createElement('a');
a(t(anchor), anchor, "Anchor");
}
};
|
import Ember from 'ember';
export default Ember.Route.extend({
model: function () {
return Ember.RSVP.hash({
posts: this.store.findAll('post'),
pages: this.store.findAll('page'),
events: this.store.findAll('event'),
todos: this.store.findAll('todo'),
opportunities: this.store.findAl... |
exports.Router = require('./router');
exports.Client = require('./client');
exports.Server = require('./server');
exports.Proxy = require('./proxy');
exports.Publisher = require('./publisher');
exports.Subscriber = require('./subscriber');
|
var searchData=
[
['memorylocation',['MemoryLocation',['../struct_memory_location.html',1,'']]]
];
|
var gamma = require('gamma')
function factorialln(n) {
if (n < 0) {
return -1.0
} else if (n === 0 || n === 1) {
// prevents rounding errors due to gamma approximation
return 0.0
} else {
return gamma.log(n + 1.0)
}
}
module.exports = factorialln
|
import React, { Component, PropTypes } from 'react';
import THREE from 'three';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import {
commonResources, gameResources, PausedScreenResources,
StaticEntitiesResources, TitleScreenResources,
} from '../../resources';
@connect... |
/*
* jquery.localLanding
* https://github.com/matt/jquery.localLanding
*
* Copyright (c) 2012 Matt McManus
* Licensed under the MIT, GPL licenses.
*/
/*
options = {
css : '',
languages: {
es: {
url: '',
text: '',
src: ''
},
ar: {
url: '',
text: '',
src: ''
... |
arr = [
"thumb",
"index",
"middle",
"ring",
"pinky",
"ring",
"middle",
"index"
];
list = [];
for (var i = 1, j=0; i < 100; ++i) {
list[i] = arr[j];
if (j === 7)
j = 0;
else
++j;
}
function count(n) {
// 1: thumb
// 2: index
// 3: middle
// 4:... |
module.exports = {
'...': {
unary: {
name: 'spread',
direction: 'right',
precedence: 19
}
},
'..': {
binary: {
name: 'range',
precedence: 3
}
},
'+': {
binary: {
name: 'add',
f... |
var ada__pmmh_8h =
[
[ "AdaPmmh", "classAdaPmmh.html", "classAdaPmmh" ],
[ "Mat", "ada__pmmh_8h.html#ae601f56a556993079f730483c574356f", null ],
[ "Vec", "ada__pmmh_8h.html#a4c7df05c6f5e8a0d15ae14bcdbc07152", null ]
]; |
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
document.write('<p id="value">0</p>');
function SliderInput(element, min, max, callback) {
this.element = typeof element !== 'undefined' ? element : document;
this.min = min;
this.max = max;
this.maxWidth = element.width || element.offsetWidth || element.clientWidth || window.innerWidth;
this.callb... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
var mongoose = require('mongoose');
var ListSchema = require('../schemas/list');
var List = mongoose.model('List',ListSchema);
module.exports = List; |
(function() {
'use strict';
b3e.nodes.Vector2GetRightVector = b3e.node.create('Vector2GetRightVector',
b3e.MODULATOR, {
group: 'vector2',
title: 'Get Right Vector',
image: 'modulators/Vector2',
});
})();
|
/*
* ModelFactory module
* @lastmodifiedBy ChengFuLin(chengfulin0806@gmail.com)
* @lastmodifiedDate 2015-08-06
*/
var Model = require('./model');
/**
* ModelFactory
* @constructor
*/
function ModelFactory() {
}
/* start-public-methods */
/**
* Factory method of Model
* @returns {Model}
*/
ModelFactory.proto... |
import { expect } from "chai";
import React from "react";
import {
locationOfOffer,
transform,
sortOffers,
insertOffer
} from "containers/ExchangeOffers/utils";
function t(offer) {
let data = {};
for (let key in offer) data[key] = parseFloat(offer[key] + "")
return data
}
describe("ExchangeOffers utils"... |
// flow-typed signature: 04c5870b5fe5aee349b372d22630ffcc
// flow-typed version: 43bc56fd02/@storybook/react_v4.x.x/flow_>=v0.72.x
type NodeModule = typeof module;
declare module '@storybook/react' {
declare type Context = { kind: string, story: string };
declare type Renderable = React$Element<*>;
declare type... |
var read = require('read'),
path = require('path'),
util = require('util'),
fs = require('fs');
var version = require('./package.json').version;
var Commands = [
'all',
'cd',
'cp',
'current',
'help',
'ls',
'pwd',
'use',
'version',
];
var Services = ['baidu'];
var ConfigFileName = '.baoh... |
var Vector2 = function()
{
this.x = 0;
this.y = 0;
}
Vector2.prototype.set = function(x,y)
{
this.x = x;
this.y = y;
}
//return a single value
Vector2.prototype.Magnitude = function()
{
return Math.sqrt(this.x * this.x + this.y * this.y);
}
//returns a Vector2
Vector2.prototype.Normalize = function()
{
var len... |
c['1703']=[['1704',"ApplicantVideoVm Constructor","topic_000000000000059B.html",0],['1705',"Properties","topic_000000000000059A_props--.html",1]]; |
const storage = {};
storage.set = (key, object) => {
sessionStorage[key] = (typeof object) === 'string' ? object : JSON.stringify(object);
}
storage.get = (key) => {
if (!sessionStorage[key]) {
return null;
}
try {
const parsed = JSON.parse(sessionStorage[key]);
return parsed;... |
/****************************************************************************
jquery-bootstrap-modal-backdrop.js,
(c) 2017, FCOO
https://github.com/fcoo/jquery-bootstrap
https://github.com/fcoo
Global methods to provide backdrop for modal windows and noty
***************************************************... |
/*jshint multistr:true, quotmark:false */
var fireNative, originaljQuery, original$,
baseURL = "",
supportjQuery = this.jQuery,
// see RFC 2606
externalHost = "example.com";
this.hasPHP = true;
this.isLocal = window.location.protocol === "file:";
// Setup global variables before loading jQuery for testing .noCon... |
import { Directive, ElementRef, EventEmitter, HostListener, Input, Output, Renderer, ViewContainerRef } from '@angular/core';
import { NgControl } from '@angular/forms';
import { TypeaheadContainerComponent } from './typeahead-container.component';
import { TypeaheadUtils } from './typeahead-utils';
import { Observable... |
(function () {
'use strict';
angular.module('common').factory('logger', ['$log', logger]);
function logger($log) {
var service = {
getLogFn: getLogFn,
log: log,
logError: logError,
logSuccess: logSuccess,
logWarning: logWarning
};
... |
'use strict';
var data = require('../data.js'),
util = require('./util.js');
exports.isTorsoUp = function (skillTree) {
if (skillTree === '胴系統倍加') return true;
if (skillTree === '胴系統倍化') return true;
return false;
};
exports.hasTorsoUp = function (skillComb) {
if (skillComb == null) return false;
... |
import AWS from 'aws-sdk/dist/aws-sdk-react-native';
import Storage from './Storage';
import StorageKeys from './StorageKeys.js';
import Util from'./MobileAnalyticsUtilities';
import { Constants } from 'expo';
/**
* @typedef AMA.Client.Options
* @property {string} appId - The Application ID from ... |
/* @flow */
const { createAction } = require('redux-actions')
const { get_body } = require('app/http')
const { format } = require('app/transform_dated')
const { compose, concat, reduce, map, negate, lensPath, flip, over, prop,
view, set, append, identity, objOf, propOr, mergeAll, converge, unapply,
assoc, pick, con... |
const { flattenArrayToString } = require('../generator-utils');
function UULangCompiler() {
function compile(ast) {
if (ast.typeName !== 'Program')
throw new TypeError('Compilers.UULangCompiler.compile: First node must be of typeName `Program`');
return ast;
}
return {
compile
};
}
module.... |
var should = require('should');
var sinon = require('sinon');
var fs = require('fs');
var path = require('path');
var rimraf = require('rimraf');
var touch = require('touch');
var regen = require('../src/index');
describe('Integration', function() {
before(cleanup)... |
(function () {
'use strict';
angular.module('blocks.auth')
.factory('loginRedirect', loginRedirect)
.config(configureLoginRedirect);
function loginRedirect($q, $injector) {
return {
responseError: responseError
};
function responseError(response) {
... |
/* jshint node: true */
/* jshint sub: true */
/* global window,document, $,alert,history */
"use strict";
if (typeof(window) === 'undefined')
{
console.log('pureworld in node/iojs');
global.window = global;
}
else
{
console.log('pureworld in browser');
}
// unit :: a -> IO a
var unit = function(x)
{
return... |
var express = require('express');
var router = express.Router();
var videos = require('../../models/videos');
router.get('/', function(req, res) {
res.render('APP/uploadVideos');
});
router.get('/app', function(req, res) {
res.render('APP/app');
});
router.get('/myUploads', function(req, res) {
res.render('APP... |
'use strict';
import React from 'react/addons';
import {Link} from 'react-router';
let Footer = React.createClass({
render() {
return (
<div id="envuelve_pie" style={this.props.style}>
<div className="footer">
<div className="container-fluid">
<div clas... |
"use strict";
/* global describe, it */
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}], no-void: 0 */
import { expect } from "chai";
import isFunction from "lodash/isFunction";
import actionFn from "../src/actionFn";
function fetchSuccess() {
return new Promise(function(resolve) {... |
process.env.NODE_ENV = 'test'
// The following allows you to require files independent of
// the location of your test file.
// Example:
// var User = require(__server + '/models/user.js')
//
global.__server = __dirname + '/../server'
global.__app = __dirname + '/../app'
global.__actions = __dirname + '/../actions'
... |
var path = require('path')
var jsreport = require('jsreport-core')
var wkhtmltopdf = require('../')
var debug = require('jsreport-debug')
require('should')
describe('wkhtmltopdf', function () {
var reporter
beforeEach(function () {
reporter = jsreport()
reporter.use(wkhtmltopdf())
reporter.use(debug()... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DataObject = exports.Defaults = exports.Types = undefined;
var _types = require('./types');
var _types2 = _interopRequireDefault(_types);
var _defaults = require('./defaults');
var _defaults2 = _interopRequireDefault(_defaults... |
'use strict';
const Generator = require('yeoman-generator');
const path = require('path');
const chalk = require('chalk');
const yosay = require('yosay');
const rename = require("gulp-rename");
const _ = require("lodash");
module.exports = class extends Generator
{
constructor(args, opts) {
super(args, opts... |
/*
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertThrows, assertSyntaxError, assertInstanceOf, fail
} = Assert;
System.load("lib/promises.jsm");
const {
reportFailure
} = System.get("lib/p... |
(function ($, Backbone) {
'use strict';
var Page = Backbone.View.extend({
tagName: 'section',
events: {
'click .slideInRight': function () {
stackView.push(new Page(), 'slideInRight', 'fadeOut');
},
'click .slideOutRight': function () {
stackView.pop('slideOutRight', 'fad... |
/*! angular-phonecat 2016-01-30 */
"use strict";var phonecatApp=angular.module("phonecatApp",["ngRoute","phonecatControllers","phonecatFilters","angular.backtop"]);phonecatApp.config(["$routeProvider",function(a){a.when("/index",{templateUrl:"partials/video-list.html",controller:"PhoneListCtrl"}).when("/detail/:detailI... |
/**
* ActionFieldLayouts are used with OO.ui.FieldsetLayout. The layout consists of a field-widget,
* a button, and an optional label and/or help text. The field-widget (e.g., a
* {@link OO.ui.TextInputWidget TextInputWidget}), is required and is specified before any optional
* configuration settings.
*
* Labels ... |
/**
*
* @returns {string}
* @private
*/
jDoc.Engine.prototype._getHalfTabAsSpaces = function () {
return "\u2000\u2000";
}; |
/*
* spa.shell.preface.js
* Preface module for Shell
*/
/*jslint browser : true, continue : true,
devel : true, indent : 2, maxerr : 50,
newcap : true, nomen : true, plusplus : true,
regexp : true, sloppy : true, vars : false,
white : true
*/
/*global $, spa ... |
/******/ (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... |
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const sinon = require('sinon');
const sinonChai = require('sinon-chai');
const log4Js = require('log4js');
const config = require('./config');
const uwpws = require('../../src/index');
const logger = log4Js.getLogger();
logger.level = co... |
import React from "react";
import PropTypes from "prop-types";
import Helmet from "react-helmet";
import { useStaticQuery, graphql } from "gatsby";
function SEO({ description, lang, meta, title, image }) {
const { site } = useStaticQuery(
graphql`
query {
site {
siteMetadata {
... |
const { userDal } = require('./dal');
/**
* 通过查询组成员包含userId的组,来查出用户加入的组
* @param {*} ctx
*/
const getUserGroupList = async ctx => {
const userId = +ctx.params.userId;
const groups = await userDal.getUserGroupList(userId);
ctx.body = groups;
};
/**
* 通过两次查询,获取用户的好友列表
* @param {*} ctx
*/
const getUserFriend... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
/*
@author Ilya Shubentsov
MIT License
Copyright (c) 2017 Ilya Shubentsov
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 u... |
$(document).ready(function() {
$('[data-form="monthly-materials-report-form"]').submit(function() {
var dateInput = $('[data-input="date"]').val();
setDialogLoader();
openDialog();
setDialogHtmlContent('Monthly Materials Report', '<iframe class="pdf-frame" src="requests/generate_mo... |
// All symbols with the `Logical_Order_Exception` property as per Unicode v4.0.1:
[
'\u0E40',
'\u0E41',
'\u0E42',
'\u0E43',
'\u0E44',
'\u0EC0',
'\u0EC1',
'\u0EC2',
'\u0EC3',
'\u0EC4'
]; |
"use strict";
module.exports = function(grunt) {
var settings = grunt.config.get("settings"),
shell = require("shelljs")
grunt.registerTask("gitPushCommit", "Commit the ftpush json", function(){
var command = grunt.template.process('git add <%=logFilePath%><%=logFilename%>.log && git commit -m... |
const express = require('express')
const bodyParser = require('body-parser')
const compression = require('compression')
const path = require('path')
const emojiFavicon = require('emoji-favicon')
const uuid = require('uuid')
const morgan = require('morgan')
const _ = require('lodash')
const AuthenticationClient = requir... |
import Ember from 'ember';
export default Ember.Controller.extend({
winningResult: function() {
if(this.get("isComplete")) {
var tally = Ember.Object.create();
var selections = this.get("selections");
Object.keys(selections).forEach(function(qid) {
var answer = selections[qid];
... |
/* exported MockSIMSlot */
'use strict';
var MockSIMSlot = function(conn, index) {
this._smsc = '0123456789';
this.conn = conn;
this.index = index;
this.absent = false;
this.locked = false;
this.simCard = {
cardState: null
};
this.update = function() {};
this.isAbsent = function() { return this.a... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"
}), 'TransformOutlined'); |
const subNotes = require('./sub-notes')
const argv = require('./argv')
const json = require('./json')
// console.log(`Yor age is ${subNotes.age}`)
/**
* При обычном присваивании переменная передается по ссылке
* Демонстрация внизу:
*/
var _notes = subNotes.notes
console.log('_notes: ',_notes)
subNotes.addNot... |
var swagger = require('../../../'),
expect = require('chai').expect,
_ = require('lodash'),
files = require('../../fixtures/files'),
helper = require('./helper');
describe('Mock Response', function() {
'use strict';
var api;
beforeEach(function() {
api = _.cloneDeep(... |
var status = require("../status.json");
exports.home = function(req, res)
{
if (status["loginStatus"]["loggedIn"]=="false")
{
res.redirect('/');
}
else if(status["loginStatus"]["loggedIn"]=="true" && status["loginStatus"]["userType"]=="student")
{
res.redirect('/student');
}
else if(status["loginStatus"]... |
"use strict";
var mambo = require('mambo'),
Schema = mambo.Schema,
StringField = mambo.StringField,
NumberField = mambo.NumberField,
JSONField = mambo.JSONField,
DateField = mambo.DateField;
var Comment = new mambo.Model(new Schema(
'Comments', ['post_id', 'created'],
{
... |
/*
@ author leeenx
@ version 1.0.0
@ data: 2015-12-07
@ 页面翻页
@ 用法:
$.cardslider(
{
container: "#wrap",
direction:'Y',
cover: 0,//封面索引
scale:true,
offset:50,
duration:300,
infinite:true,
oncha... |
var stage;
var queue;
var grid;
function init() {
//var $j = jQuery.noConflict();
$(window).resize(function(e) {
// Make canvas full screen
var canvas = document.getElementById('canvas');
canvas.height = window.innerHeight - 5;
canvas.width = window.innerWidth;
// Make canvas not blurry
var context =... |
/*
* Google search pagemod functions
*
* @author Arend-Jan Tetteroo <aj@thegreenwebfoundation.org>
* @copyright Cleanbits/The Green Web Foundation 2010-2014
*/
/**
* On Request, find all hrefs and assign green or grey icon
*/
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
... |
var config = require(__dirname + '/../config.json');
var _ = require('lodash');
var Q = require('q');
var mongoose = require("mongoose");
var InventoryModel = require("../models/inventory.model");
var UserModel = require("../models/user.model");
var service = {};
service.getInventories = getInventories;
service.getI... |
"use strict"
module.exports = function(sequelize, DataTypes) {
var Accounts = sequelize.define("Accounts", {
username: {
type: DataTypes.STRING,
primaryKey: true
},
name: {
type: DataTypes.STRING
},
email_id: {
type: DataTypes.... |
var numeral = require('../../numeral'),
language = require('../../locale/sk');
numeral.locale('sk', language);
exports['language:sk'] = {
setUp: function (callback) {
numeral.locale('sk');
callback();
},
tearDown: function (callback) {
numeral.locale('en');
callback();... |
/*eslint-env node, mocha */
/*global expect */
/*eslint no-console: 0*/
'use strict';
// Uncomment the following lines to use the react test utilities
// import TestUtils from 'react-addons-test-utils';
import createComponent from 'helpers/shallowRenderHelper';
import CarrierComponent from 'components//CarrierCompone... |
"use strict";
// load up the badge model
const BadgeModel = require('../models/badge');
// =============================================================================
// Creates a new badge =========================================================
// =================================================================... |
const assert = require('assert');
const convertQueryToMap = require('./convert-query-to-map');
let q = 'user.name.firstname=Bob&user.name.lastname=Smith&user.favoritecolor=Light%20Blue';
let out = {
'user': {
'name': {
'firstname': 'Bob',
'lastname': 'Smith'
... |
function Keeper(id, seeds, transport, options) {
this.id = id;
this.seeds = seeds;
this.transport = transport;
this.options = options || {};
}
module.exports=function(id, seeds, transport, options){
return new Keeper(id, seeds, transport, options);
};
|
'use strict'
var PurchaseOrder = require('./purchase-order');
var map = require('../map');
module.exports = class POGarmentGeneral extends PurchaseOrder {
constructor(source) {
super(source, map.po.type.POGarmentGeneral);
this.iso = 'FM-6.00-06-005/R2';
}
} |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* SHA-256 (FIPS 180-4) implementation in JavaScript (c) Chris Veness 2002-2017 */
/* MIT Licence */
/* www.movable-ty... |
IntlMessageFormat.__addLocaleData({locale:"tn",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"}}); |
'use strict';
//var procClinFreeApp = angular.module('procClinFreeApp', ['pageFactory', 'clientFactory', 'drugFactory']);
var pcsApp = angular.module('procClinSafeApp', ['ngRoute','ui.bootstrap','ngMaterial', 'material.svgAssetsCache',
'pageFactory', 'reportService', 'clientService', 'drugService','studyService', ... |
'use strict';
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var istanbul = require('gulp-istanbul');
var coveralls = require('gulp-coveralls');
var mocha = require('gulp-spawn-mocha');
var batch = require('gulp-batch');
var betterConsole = require('better-console');
var jsdoc = require('gulp-jsdoc');... |
window.addEventListener('load', function() {
var menu_open = false;
window.awe.init({
device_type: awe.AUTO_DETECT_DEVICE_TYPE,
settings: {
container_id: 'container',
fps: 30,
default_camera_position: { x:0, y:0, z:0 },
default_lights: [{
id: 'point_light',
type: 'po... |
(function () {
'use strict';
var strip = require('cli-color/strip');
var fs = require('fs');
var prompt = require('prompt-sync');
var child_process = require('child_process');
var defaultOptions = { encoding: 'utf-8' };
exec([
'git checkout master',
'rm -rf /tmp... |
for (let f of Array.from(document.querySelectorAll('.framed'))){
f.style.setProperty('--edgeLength', Math.floor(Math.random() * 100) + '%');
} |
/*
* Copyright (c) 2015 Interactive Intelligence
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
var express = require('express')
var app = express();
var fs = req... |
// XXX dups packages/minimongo/uuid.js
// Meteor.random() -- known good PRNG, replaces Math.random()
// Meteor.uuid() -- returns RFC 4122 v4 UUID.
// see http://baagoe.org/en/wiki/Better_random_numbers_for_javascript
// for a full discussion and Alea implementation.
// Copyright (C) 2010 by Johannes Baagøe <baagoe@b... |
import React, { Component } from 'react';
import {Button, Glyphicon, Tooltip, OverlayTrigger} from 'react-bootstrap';
import {step} from '../types/step';
export default class ImportButton extends Component {
constructor(props){
super(props);
}
componentDidMount(){
let {addSteps} = this.props;
se... |
// -------------------------------------------------------------------------------------------
// Copyright 2014-2015 by ChartIQ LLC
// -------------------------------------------------------------------------------------------
(function(){
function _stxSymLookup_Xignite_js(_exports) {
var STX=_exports.STX;
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{214:function(t,e,n){"use strict";var i=n(73);n.n(i).a},228:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props,i=e.slots;return t("sp... |
$(document).ready(function() {
var scrambleDot = function()
{
var dotPosition = 0;
var randomNum = Math.random();
console.log(randomNum);
if (randomNum <= 0.33)
{
console.log("Less than 0.33, greater than 0");
dotPosition = 50;
... |
'use strict';
import * as _ from 'lodash';
import { NumberExt } from './number-ext';
export function Color(r, g, b) {
this._r = r;
this._g = g;
this._b = b;
}
Object.defineProperties(Color.prototype, {
r: {
get: function() {
return this._r;
},
enumerable: true
},
g: {
get: function()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.