code stringlengths 2 1.05M |
|---|
$(function () {
function tally(selector) {
$(selector).each(function () {
var total = 0,
column = $(this).siblings(selector).andSelf().index(this);
$(this).parents().prevUntil(':has(' + selector + ')').each(function () {
total += parseFloat($('td.sum:... |
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);
client.sip
... |
module.exports = {
plugins: [
require('postcss-custom-media'),
require('postcss-media-minmax'),
require('autoprefixer')
]
} |
/* 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 {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
var uuidGen = Cc["@mozilla.org/uuid-gener... |
var blockControl = (function(){
var blockArr=[],
lineSpacing = 20;
return {
createBlock : function( lines ) {
var txtArr = [],
lineArr = lines,
yLoc = this.randomY(),
i=0,l=lines.length;
f... |
const getIdentifier = require('../lib/replacer/getIdentifier'),
v8 = require('v8-natives')
const bits = [0],
symbols = [
'a',
'b',
'c'
],
symbolsLastIndex = symbols.length - 1
for (let i = 0; i <= 7; i++) {
getIdentifier(bits, symbols, symbolsLastIndex)
}
getIdentifi... |
var ElementType = require("domelementtype");
var re_whitespace = /\s+/g;
var NodePrototype = require("./lib/node");
var ElementPrototype = require("./lib/element");
function DomHandler(callback, options, elementCB){
if(typeof callback === "object"){
elementCB = options;
options = callback;
callback =... |
/*!
* Timemap.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT License (see LICENSE.txt)
*/
/**
* @overview
*
* <p>Timemap.js is intended to sync a SIMILE Timeline with a web-based map.
* Thanks to Jorn Clausen (http://www.oe-files.de) for initial concept and code.
* Timemap.js is licensed under t... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-8.9-5h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42... |
<script type="text/javascript">
var check = null;
function printDuration() {
if (check == null) {
var cnt = 0;
check = setInterval(function () {
cnt += 1;
document.getElementById("para").innerHTML = cnt;
... |
var _ = require('lodash'),
sinon = require('sinon'),
Collection = require('postman-collection').Collection,
Runner = require('../../../index.js').Runner;
describe('Control Flow', function () {
this.timeout(10 * 1000);
var timeout = 1000,
runner,
spec,
callbacks;
before... |
module.exports = function sendOK (data, options) {
// Get access to `req`, `res`, & `sails`
var req = this.req;
var res = this.res;
var sails = req._sails;
sails.log.silly('res.ok() :: Sending 201 ("CREATED") response');
// Set status code
res.status(201);
// If appropriate, serve data as JSON(P)
... |
export default class Icosahedron extends THREE.Object3D {
constructor() {
super()
const geometry = new THREE.IcosahedronBufferGeometry( 50, 2 )
const material = new THREE.MeshStandardMaterial({
color: 0xAAAAAA,
emissive: 0xAAAAAA,
roughness: 0.7,
metalness: 1,
wireframe: t... |
function Pointers () {
// Neeed mouse to perform click
var mouse = require('./mouse.js');
var utils = require('../utils.js');
// Consts
// Buttons : http://msdn.microsoft.com/en-us/library/ie/ff974878(v=vs.85).aspx
this.LEFT_BUTTON = 1;
this.RIGHT_BUTTON = 2;
this.MIDDLE_BUTTON = 4;
this.BACK_BUTTON... |
/*
* jsPlumb
*
* Title:jsPlumb 1.4.1
*
* Provides a way to visually connect elements on an HTML page, using either SVG, Canvas
* elements, or VML.
*
* This file contains the base functionality for DOM type adapters.
*
* Copyright (c) 2010 - 2013 Simon Porritt (http://jsplumb.org)
*
* http://jsplumb.o... |
/**
* @author Maximilian Greschke <maximilian@veyo-care.com>
*/
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined... |
import TestContainer from 'mocha-test-container-support';
import { act } from '@testing-library/preact';
import {
bootstrapPropertiesPanel,
changeInput,
inject
} from 'test/TestHelper';
import {
query as domQuery
} from 'min-dom';
import {
getBusinessObject
} from 'bpmn-js/lib/util/ModelUtil';
import {
... |
var profile = (function () {
return {
resourceTags : {
copyOnly : function (filename, mid) {
return copyOnly(filename, mid);
},
amd : function (filename, mid) {
return !copyOnly(filename, mid) && /\.js$/.test(filename);
}
}
};
})();
|
module.exports = {
initialize: global.Packages.Ephemeral.initialize
}; |
// Generated on 2016-08-26 using generator-angular 0.15.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
/** @jsx jsx */
import { jsx } from "@emotion/core";
import { useRef, useEffect } from "react";
import { useSpring, animated, config } from "react-spring";
/*
Explanation for Triangle's seemingly convoluted animation:
- The biggest problem with Triangle is that if the animation goes from 0deg to 180deg then the op... |
require('babel-register');
require('babel-polyfill');
require('./src/build-html.js');
|
/*
* 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 0.12.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerate... |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* 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/LIC... |
const path = require("path");
const util = require("util");
const fs = require("fs");
const rimraf = require("rimraf");
const vm = require("vm");
const webpack = require("../");
const readdir = util.promisify(fs.readdir);
const writeFile = util.promisify(fs.writeFile);
const utimes = util.promisify(fs.utimes);
const m... |
'use strict';
angular.module('cpZenPlatform')
.filter('inputPrefix', function () {
return function (input, prevValue, prefixValue) {
if (input.indexOf(prefixValue) === 0) {// We don't reapply the prefix
return input;
} else {
if (prevValue && prevValue.indexOf(prefixValue) === 0) { // Avoid modiic... |
/**
*
*/
(function (window, angular) {
'use strict';
//TO_DEV *0* : $('#first').val() -> test via $element('#id')
//TO_READ : javascript `atomic` single-thread :
//handles flow via queue (ARRAY)
//TO_MEM (tested):
... |
import * as challengeActions from '../actions/challenge_actions';
import _ from 'lodash';
//TODO: write tests
export default function(state, action) {
if (!state){
state = {
isRetrievingChallenges: false, //TODO: Make this better, we should have one for every player
challenges: []
... |
// Copyright (c) 2013-2014 Turbulenz Limited
;
var CascadedShadowOccluder = (function () {
function CascadedShadowOccluder(drawParameters, rendererInfo) {
this.drawParameters = drawParameters;
this.rendererInfo = rendererInfo;
}
CascadedShadowOccluder.prototype.clear = function () {
... |
var connect = require("connect"),
sweetroll = require("../sweetroll.js");
var app = sweetroll();
app.at("/")
.data(function(req) {
return "test";
})
.render(function(req, data) {
return data + " " + req.url;
});
connect()
.use(app)
.use(function(req, res) {
res.end... |
function sortObject(o) {
var sorted = {},
key, a = [];
for (key in o) {
if (o.hasOwnProperty(key)) {
a.push(key);
}
}
a.sort();
for (key = 0; key < a.length; key++) {
sorted[a[key]] = o[a[key]];
}
return sorted;
};
module.exports = {
sortObject: sortObject... |
var crypto = require('crypto'),
ed = require('ed25519'),
shuffle = require('knuth-shuffle').knuthShuffle,
Router = require('../helpers/router.js'),
slots = require('../helpers/slots.js'),
schedule = require('node-schedule'),
util = require('util'),
constants = require('../helpers/constants.js'),
TransactionType... |
import Ember from 'ember';
export
default Ember.Component.extend({
tagName: '',
actions: {
selectItem: function(item) {
this.sendAction('select', item);
},
showDetails: function(item) {
this.sendAction('details', item);
},
select: function() {
var item = this.get('item');
this.sendActi... |
//=require vendor/jquery.js
//=require _map.js
var MapAllTheThings = {};
//=require data/slip_data.js
//=require data/Localphotostories2009-2014-JSON.js
|
// ==UserScript==
// @name vkmin
// @description Vk interface vkmin.hider
// @version 1.3
// @match https://vk.com/*
// ==/UserScript==
//
window.onkeydown = function(e){
var stuff_ids = [
"page_header",
"side_bar",
"im_nav_wrap",
"im_user_holder",
"im_peer_holders",
"im_send_... |
class Survey {
constructor(client) {
this.client = client;
}
create(options, callback) {
this.client.perform("GET", "/survey/add", options, callback);
}
delete(surveyId, callback) {
this.client.perform("GET", "/survey/delete", {publicSurveyID: surveyId}, callback);
}
export(options, callback) {
this.c... |
export const FETCH_WEB_MODE = 'fetch_web_mode';
export const fetchWebMode = (data) => async(dispatch) => {
const res = data;
dispatch({
type: FETCH_WEB_MODE,
payload: res
});
};
|
/* global S */
define({
options: {
displaySearchbox: !0,
displayQuickAddButton: !0,
title: S.lang["my-sheets"].capitalize(),
titleInSearch: S.lang.search.capitalize()
},
route: {
data: function() {
return S.user._current.isAdmin() && (S.vue.router.app.$chi... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_cloud_queue = exports.ic_cloud_queue = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.... |
require('./setting.less');
var appFunc = require('../utils/appFunc'),
template = require('./setting.tpl.html');
var settingView = {
init: function(){
settingView.bindEvents();
},
renderSetting: function(){
if($$('#settingView .page-content')[0]) return;
Jellyfish.showIndicator... |
require('./models/Todo.js');
require('./models/TodoList.js');
require('./views/TodoView.js'); |
import React from 'react';
export default class Slide extends React.Component {
render() {
return (
<div>
<h1>phase 3: one repo to rule them all?</h1>
<ul>
<li>We think repos should be separated by deploy boundaries, and the
client app service should be deployable o... |
var expect = chai.expect;
var assert = chai.assert;
describe('Flyweight Pattern', function() {
it('should exist', function() {
assert.isDefined(Flyweight);
});
it('should have Color property in the prototype object of the constructor', function() {
assert.property(Flyweight.prototype, 'Col... |
import React, { Component } from 'react';
import { Link } from 'react-router';
import classNames from 'classnames';
class Sidebar extends Component {
constructor(props){
super(props);
this.eventCloseSidebar = this.eventCloseSidebar.bind(this)
}
eventCloseSidebar (e) {
this.props.toggleSidebar(!this.props... |
import { default as requireDir } from 'require-dir';
import { RuleAttribute } from './ruleAttribute.js';
export class Behavior extends RuleAttribute {
constructor(name, options, valueMap) {
super();
return Behavior.create(name, options, valueMap);
}
process() {
// override
}
... |
export * from './nav.js'
export * from './articles.js' |
import React, {Component, PropTypes} from 'react'
import {connect} from 'react-redux'
import * as wordActions from '../actions/wordActions'
import {exportWords, newTab} from '../actions/manageActions'
import View from '../components/View.react'
class BackgroundContainer extends Component {
render () {
const {dis... |
var inherits = require('util').inherits;
var clone = require('./util/clone').clone;
var EventEmitter = require('events').EventEmitter;
var Characteristic = require('./Characteristic').Characteristic;
'use strict';
module.exports = {
Service: Service
}
/**
* Service represents a set of grouped values necessary to ... |
import React from 'react';
const Tile = ({text}) => {
return (
<div className="tile">
{text}
</div>
)
}
export default Tile;
|
version https://git-lfs.github.com/spec/v1
oid sha256:bd7bfebbb8722961020163fb0d98fa709f06a0111869be3d8d8d11638da3c4eb
size 86147
|
/*
* Copyright (c) Michael Polyak. All rights reserved.
*/
"use strict";
const util = require("util");
const Transform = require("stream").Transform;
const seconds = require("./seconds.js");
util.inherits(Logger, Transform);
function Logger(reporter)
{
Transform.call(this, {objectMode: true});
this.ops... |
var Block, Layout, SpecialString, layoutConfig, object, prop, _fn, _i, _len, _ref;
Block = require('./layout/Block');
object = require('utila').object;
layoutConfig = require('./layout/config');
SpecialString = require('./layout/SpecialString');
module.exports = Layout = (function() {
var self;
self = Layout;... |
/* eslint no-unused-expressions: 0, no-unused-vars: 0 */
import { expect } from 'chai'
import { observable, isObservable, observe, raw } from '@nx-js/observer-util'
import { spy } from '../utils'
describe('Set', () => {
it('should be a proper JS Set', () => {
const set = observable(new Set())
expect(set).to... |
var express = require('express');
var bodyParser = require('body-parser');
var users = require('./routes/users');
var app = express();
app.use( bodyParser.json() );
app.use('/user', users);
app.set('port', (process.env.PORT || 5000));
var server = app.listen(app.get('port'), function () {
console.log("app started!... |
ace.define("ace/snippets/json5",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "json5";
}); (function() {
ace.require(["ace/snippets/json5"], function(m) {
if (typeof module =... |
let _ = require('lodash');
let async = require('async');
/**
*
* @param {String} name
* @param {String} namespace
* @param {Object=} data
* @param {Array[Object]} events
* @param {Object=} meta
*/
let createEvent = function (name, namespace, data, events, meta) {
// If the model or the actions are empty th... |
module.exports = {
'-v' : require('./commands/version'),
'--version' : require('./commands/version'),
help : require('./commands/help'),
add : require('./commands/add'),
rm : require('./commands/rm'),
touch : require('./commands/touch'),
list : require('./com... |
/**
* Module : Kero yearmonth adapter
* Author : Kvkens(yueming@yonyou.com)
* Date : 2016-08-10 14:11:50
*/
import {
YearMonth
} from 'tinper-neoui/src/neoui-yearmonth';
var YearMonthAdapter = u.BaseAdapter.extend({
init: function() {
var self = this;
this.validType = 'yearmonth';
... |
export default {
goto(stack) {
let jumpTo = stack.pop();
return {
stack,
jumpTo
};
},
jumpIfTrue(stack) {
let jumpTo = stack.pop(),
operand = stack.pop();
if (operand) {
return {
stack,
... |
export Ticker from './ticker';
// export * as Ticker from './ticker'
|
Statistics.ConfigurationEditor.ChartConfigEditor =
Statistics.Class(Statistics.ConfigurationEditor, {
/**
* @private
* @property {JQueryElement}
* Contains the element to choose the dimension axis from
*/
dimensionSelect: null,
/**
* @override
* Called to draw the configuration editor
*
* @p... |
/**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/10 by Heaven
*/
export default (content, wrapWidthNumber, contentSyle, languageName) => {
if (typeof content !== 'undefined' && typeof wrapWidthNumber !== 'undefined') {
const brTagCount = content.match(/<br>/g).length / 2; // at least two tags will caus... |
var Plotly = require('@lib/index');
var Plots = require('@src/plots/plots');
var Lib = require('@src/lib');
var d3Select = require('../../strict-d3').select;
var d3SelectAll = require('../../strict-d3').selectAll;
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/dest... |
/*
* grunt-timestamp-release
* https://github.com/kyrstenkelly/grunt-timestamp-release
*
* Copyright (c) 2014 Kyrsten
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.c... |
version https://git-lfs.github.com/spec/v1
oid sha256:c4643b6aa9f78824dad93fb7dcda185b074be81a6d65262cdc0caf03a4fdfcc2
size 5146
|
function errorMessage(configObj){
this.timeToDisappear = configObj.timeToDisappear;
this.messageType = configObj.messageType || 0;
this.message = configObj.message;
this.messagePos = configObj.pos;
this.messageRot = configObj.rot || new THREE.Quaternion();
if(typeof configObj.scale !== 'und... |
var exec = require('cordova/exec');
var customPlugin = {};
customPlugin.echo = function(successCallback, errorCallback, args) {
exec(successCallback, errorCallback, "customPlugin", "echo", args);
};
module.exports = customPlugin; |
const { api_key, url } = require('../config/giphy');
const { debounce } = require('lodash');
const Events = require('../events/search.events');
const Dispatcher = require('../dispatcher/dispatcher');
const agent = require('superagent');
module.exports = function SearchActions() {
return {
search: debounce... |
var Stream = require('stream').Stream;
var createNode = require('./node');
module.exports = function (parser, opts) {
var stream = new Stream;
stream.writable = true;
stream.readable = true;
var selectors = [];
stream.select = function (s, fn) {
var sel = createSelector(s, fn, opt... |
var homeModule = require("./home");
describe('home section', function() {
it('should have a dummy test', inject(function() {
expect(true).toBeTruthy();
}));
});
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var windows = exports.windows = { "viewBox": "0 0 1664 1792", "children": [{ "name": "path", "attribs": { "d": "M682 1006v651l-682-94v-557h682zM682 263v659h-682v-565zM1664 1006v786l-907-125v-661h907zM1664 128v794h-907v-669z" } }] }; |
var shortener = {
el: {
input : $('input#url'),
btn : $('button#short'),
content: $('#shortened'),
table : $('#link-table tbody')
},
init: function () {
shortener.el.btn.on('click', shortener.shorten);
shortener.el.input.on('keyup', function() {
sh... |
// All symbols in the CJK Compatibility Ideographs Supplement block as per Unicode v5.1.0:
[
'\uD87E\uDC00',
'\uD87E\uDC01',
'\uD87E\uDC02',
'\uD87E\uDC03',
'\uD87E\uDC04',
'\uD87E\uDC05',
'\uD87E\uDC06',
'\uD87E\uDC07',
'\uD87E\uDC08',
'\uD87E\uDC09',
'\uD87E\uDC0A',
'\uD87E\uDC0B',
'\uD87E\uDC0C',
'\uD8... |
'use strict';
(function() {
// product Controller Spec
describe('Product Controller Tests', function() {
// Initialize global variables
var productController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating and deleting ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var MASTER_KEY = exports.MASTER_KEY = '_MASTER_';
var EVENTS = exports.EVENTS = {
TICK: 'Tick',
I_AM_MASTER: 'IAmNewMaster',
I_AM_SLAVE: 'IAmSlave',
STOP: 'Stop'
}; |
var should = require('should');
var dump = require('../../../lib/iptables').dump;
module.exports = function () {
describe('#dump', function () {
it('should be defined', function () {
should.exist(dump);
});
it('should throw an error when invoked without `options` argument', function () {
du... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import Navigation from '../Navigation';
import { navigate } from '../..... |
/* Black BaaS demo
* Distributed under an GPL_v4 license, please see LICENSE in the top dir.
*/
/*global requirejs, require*/
requirejs.config({
baseUrl : '/',
paths: {
lib : '../lib',
client: '../basic',
jquery : '../lib/jquery',
},
map: {
'lib': {
ba... |
'use strict';
module.exports = {
echo: async function (req, res, next) {
res.json('ok');
},
echoPost: async function (req, res, next) {
res.json('ok');
}
};
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const PurifyCSSPlugin = require('purifycss-webpack-plugin');
const StyleLintPlugin = require('stylelint-webpack-plugin');
exports.setup = function (include) {
return {
module: {
loaders: [
{
test: /\.s?(a|c)ss$/,
... |
'use strict';
var gutil = require('gulp-util');
var through = require('through2');
var cssresources = require("css-resources");
var fs = require("fs");
var path = require("path");
var mkdirp = require("mkdirp");
var cssResourcesMove = function(options) {
options = options || {};
return through.obj(function(file,... |
var THREE = require('three');
function Repere(material) {
if (material === undefined) {
material = new THREE.MeshPhongMaterial({
color: 0x0ddeed,
});
}
var repere = new THREE.Object3D();
var x = new THREE.Mesh(new THREE.BoxGeometry(10, 1, 1), material);
x.position.x += 5;
repere.add(x);
... |
var Emery = require('./emery').Emery;
var class = require('./class').class;
var Enumerable = require('./enumerable').Enumerable;
var EString = require('./string').EString;
var ENumber = require('./number').ENumber;
var EArray = require('./array').EArray;
var RangeError = require('./exception').RangeError;
var Argumen... |
window.addEvent('domready',function(){
var loader = new Mif.Tree.Loader(function(node){
// if node name 'empty' load from url 'empty.json'
if(!(node instanceof Mif.Tree.Item)) return {};
return node.get('name')=='empty' ? 'Tree/files/empty.json' : 'Tree/files/mediumTree.json';
});
var tree = new Mi... |
const sprkFormatPhone = (value) => {
const newValue = `${value}`.replace(/\D/g, '');
const m = newValue.match(/^(\d{3})(\d{3})(\d{4})$/);
return m === false || m === null ? '' : `(${m[1]}) ${m[2]}-${m[3]}`;
};
export { sprkFormatPhone as default };
|
/**
* Nested Record Array of SC.Records Unit Test
*
* @author Evin Grano
*/
// ..........................................................
// Basic Set up needs to move to the setup and teardown
//
var NestedRecord, store, testParent, testParent2;
var initModels = function(){
NestedRecord.ParentRecordTest = SC... |
import axios from 'axios';
import * as constants from '../constants/chatroomConstants';
export function joinChatroom(user) {
return {
type: constants.JOIN_CHATROOM,
user
};
}
export function leaveChatroom(userId) {
return {
type: constants.LEAVE_CHATROOM,
userId
};
}
export function refreshCh... |
export { default } from 'ember-moment/helpers/moment-calendar';
|
/**
* @author Ryan Johnson <ryan@livepipe.net>
* @copyright 2007 LivePipe LLC
* @package Control.Rating
* @license MIT
* @url http://livepipe.net/projects/control_rating/
* @version 1.0.1
*/
if(typeof(Control) == 'undefined')
Control = {};
Control.Rating = Class.create();
Object.extend(Control.Rating,{
instan... |
var audioContext = require('../core/audioContext');
var Module = require('../core/Module');
var map = require('../core/utils').map;
//▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
function Fade() {
this.target = 0.5;
this.duration = 4;
Module.call(th... |
import { describe, it } from 'flow-typed-test';
import createEnturService, { FeatureCategory } from '@entur/sdk'
describe('createEnturService', () => {
it('creates a service', () => {
const service = createEnturService({
clientName: 'flow-typed'
})
});
it('fails if using wrong typefor service', ()... |
define({
"_widgetLabel": "Traçat de xarxes",
"_featureAction_NetworkTraceSkip": "Omet al traçat",
"_featureAction_NetworkTraceUnskip": "Elimina de les ubicacions d'exclusió",
"removedFromSkipLocations": "S'ha eliminat de les ubicacions d'exclusió",
"alreadyRemovedFromSkipLocations": "Ja s'ha eliminat de les u... |
JSONEditor.Validator = Class.extend({
init: function(schema, options) {
this.original_schema = schema;
this.options = options || {};
this.refs = this.options.refs || {};
this.ready_callbacks = [];
this.translate = this.options.translate || JSONEditor.defaults.translate;
if(this.options.ready... |
$("#contactForm").validator().on("submit", function (event) {
if (event.isDefaultPrevented()) {
// handle the invalid form...
formError();
submitMSG(false, "Form working has been disabled here. It will work on a PHP enabled server!");
} else {
// everything looks good!
event.preventDefault();
... |
const createRemoveField = (fieldPath, removeField) =>
index => removeField(fieldPath, index)
export default createRemoveField |
/*
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('starter', ['ionic'])
.run(function(... |
'use strict';
/* jasmine specs for filters go here */
describe('filter', function() {
beforeEach(module('phonecatFilters'));
describe('checkmark', function() {
it('should convert boolean values to unicode checkmark or cross',
inject(function(checkmarkFilter) {
expect(checkmarkFilter(true)).toBe('\u2713');
e... |
import { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { isElloAndroid } from '../lib/jello'
import { selectIsLoggedIn } from '../selectors/authentication'
import {
selectAllowsAnalytics,
selectAnalyticsId,
selectCreatedAt,
selectCreatorTypes,
selectI... |
function binom(nn, pp, rng) {
let c, fm, npq, p1, p2, p3, p4, qn;
let xl, xll, xlr, xm, xr;
let psave = -1;
let nsave = -1;
let m;
let f, f1, f2, u, v, w, w2, x, x1, x2, z, z2;
let p, q, np, g, r, al, alv, amaxp, ffm, ynorm;
let i, ix, k, n;
r = Math.round(nn);
if (r < 0 || pp < 0 || pp > 1) {
throw new... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.