code stringlengths 2 1.05M |
|---|
/*
* mobile table unit tests
*/
(function($){
module( "Basic Table", {
setup: function(){
var hash = "#basic-table-test";
if( location.hash != hash ){
stop();
$(document).one("pagechange", function() {
start();
});
$.mobile.changePage( hash );
}
},
teardown: function() {
}... |
/**
* Why has this not been moved to e.g. @tryghost/events or shared yet?
*
* - We currently massively overuse this utility, coupling together bits of the codebase in unexpected ways
* - We want to prevent this, not reinforce it
* * Having an @tryghost/events or shared/events module would reinforce this bad patter... |
/*! jQuery UI - v1.9.2 - 2013-01-11
* http://jqueryui.com
* Includes: jquery.ui.datepicker-hy.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.hy={closeText:"Փակել",prevText:"<Նախ.",nextText:"Հաջ.>",currentText:"Այսօր",monthNames:["Հունվար"... |
import PropTypes, { configStyleValidator, styleValidator } from './PropTypes'
import Box from './components/Box'
import Email from './components/Email'
import Image from './components/Image'
import Item from './components/Item'
import Span from './components/Span'
import A from './components/A'
import renderEmail from ... |
import ResourceProcessorBase from './resource-processor-base';
class ManifestProcessor extends ResourceProcessorBase {
processResource (manifest, ctx, charset, urlReplacer) {
var lines = manifest.split('\n');
for (var i = 0; i < lines.length; i++) {
var line = lines[i].trim();
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'flash', 'fo', {
access: 'Script atgongd',
accessAlways: 'Altíð',
accessNever: 'Ongantíð',
accessSameDomain: 'Sama navnaøki',
alignAbsBo... |
/**
* @ngdoc filter
* @name map
* @kind function
*
* @description
* Returns a new collection of the results of each expression execution.
*/
angular.module('a8m.map', [])
.filter('map', ['$parse', function($parse) {
return function (collection, expression) {
collection = (isObject(collection))
... |
var successCount = 0;
for each (arg in args) {
if (process(arg)) {
successCount++;
}
}
write(successCount + " out of " + args.length + " benchmarks passed the test", "test.result");
exit();
function process(name) {
log = name + ".result";
s = "";
stgWork = import(name + ".g");
s += "Pr... |
(function () {
var common;
this.setAsDefault = function () {
var _external = window.external;
if (_external && ('AddSearchProvider' in _external) && ('IsSearchProviderInstalled' in _external)) {
var isInstalled = 0;
try {
isInstalled = _external.IsSearchProvide... |
define(
({
insertTableTitle: "Insertar tabla",
modifyTableTitle: "Modificar tabla",
rows: "Filas:",
columns: "Columnas:",
align: "Alinear:",
cellPadding: "Relleno de celda:",
cellSpacing: "Espaciado de celda:",
tableWidth: "Ancho de tabla:",
backgroundColor: "Color de fondo:",
borderColor: "Color de borde:",
... |
/* Copyright (c) 2015-2017 The Open Source Geospatial Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... |
/* @flow */
export default function extractSupportQuery(ruleSet: string): string {
return ruleSet
.split('{')[0]
.slice(9)
.trim()
}
|
// ## Globals
var argv = require('minimist')(process.argv.slice(2));
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync').create();
var changed = require('gulp-changed');
var concat = require('gulp-concat');
var flatten = require('gulp-flatten');
var gulp ... |
import {
moduleForComponent,
test
} from 'ember-qunit';
moduleForComponent('daterange-picker', 'DaterangePickerComponent', {
// specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
});
test('it renders', function() {
expect(2);
// creates the component instanc... |
/* Get Programming with JavaScript
* Listing 4.02
* Displaying information from similar objects
*/
var movie1;
var movie2;
var movie3;
movie1 = {
title: "Inside Out",
actors: "Amy Poehler, Bill Hader",
directors: "Pete Doctor, Ronaldo Del Carmen"
};
movie2 = {
title: "Spectre",
actors: "Daniel... |
'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; };
function _interopRequireDefault(obj) { return ... |
version https://git-lfs.github.com/spec/v1
oid sha256:ba35426ce7731b677aeb9fca46043dc31d9cd6a87abedb15382e4c3bc001b548
size 1760
|
// SocketStream 0.3
// ----------------
'use strict';
// console.log('CHECK');
// console.log(process.env);
// console.log('/CHECK');
require('colors');
var EventEmitter2 = require('eventemitter2').EventEmitter2;
// Get current version from package.json
var version = exports.version = require('./utils/file').loadPa... |
"use strict";
exports.__esModule = true;
exports["default"] = isDate;
function isDate(value) {
return value instanceof Date && !isNaN(+value);
}
//# sourceMappingURL=isDate.js.map
module.exports = exports["default"];
//# sourceMappingURL=isDate.js.map |
/**
* # wrap/modernizr
*
* Wrap global instance for use in RequireJS modules
*
* > http://draeton.github.io/stitches<br/>
* > Copyright 2013 Matthew Cobbs<br/>
* > Licensed under the MIT license.
*/
define(function () {
"use strict";
return Modernizr;
}); |
/*!
* Reference link dialog plugin for Editor.md
*
* @file reference-link-dialog.js
* @author pandao
* @version 1.2.1
* @updateTime 2015-06-09
* {@link https://github.com/pandao/editor.md}
* @license MIT
*/
(function () {
var factory = function (exports) {
var pluginNa... |
'use strict';
exports.__esModule = true;
exports['default'] = publish;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _Subject = require('../Subject');
var _Subject2 = _interopRequireDefault(_Subject);
var _multicast = require('./multicast');
var _multicast2 ... |
define(['underscore','backbone','aura'], function(_,Backbone,Aura) {
console.log('loading index.js')
var app=Aura({debug: { enable: true}});
app.components.addSource('aura', '../node_webkit/auraext');
app.components.addSource('kse', '../kse/aura_components');
app.use('../node_webkit/auraext/aura-backbone')
... |
;(function() {
var ValueDirective = function() {
};
_.extend(ValueDirective.prototype, {
matcher: function($el) {
return $el.data('value');
},
run: function($el) {
$el.html($el.data('value'));
}
});
window.app = new xin.App({
el: x... |
import getDocument from './get-document';
export default function(node) {
const _document = getDocument(node);
return _document.defaultView || window;
}
|
var expect = require('expect.js');
var helpers = require('../helpers');
var fakeRepositoryFactory = function () {
function FakeRepository() { }
FakeRepository.prototype.getRegistryClient = function () {
return {
unregister: function (name, cb) {
cb(null, { name: name });
... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
var searchData=
[
['embedderdatafields',['EmbedderDataFields',['../classv8_1_1Context.html#a8e8a8c567e2d193f25f1ec211db0b5f9',1,'v8::Context']]],
['empty',['Empty',['../classv8_1_1String.html#aa393d47baa54467fe57001065e49194b',1,'v8::String']]],
['endofstream',['EndOfStream',['../classv8_1_1OutputStream.html#a6c5... |
module.exports = function (app) {
app.get('/', function (req, res) {
if (req.logout) {
req.logout();
}
res.redirect('/');
});
}; |
define([
"require", // require.toUrl
"./main", // to export dijit.BackgroundIframe
"dojo/_base/config",
"dojo/dom-construct", // domConstruct.create
"dojo/dom-style", // domStyle.set
"dojo/_base/lang", // lang.extend lang.hitch
"dojo/on",
"dojo/sniff" // has("ie"), has("trident"), has("quirks")
], function(re... |
const getWebpackConfig = require('./get-webpack-config');
module.exports = {
globals: {
__DEV__: false,
__PROD__: false,
__DEVSERVER__: false,
__CLIENT__: false,
__SERVER__: false,
'process.env.NODE_ENV': false
},
settings: {
'import/resolver': {
webpack: {
config: getWe... |
var urlRegexp = /^(http|udp|ftp|dht)s?:\/\//;
/**
* Returns true if str is a URL.
*
* @param {String} str
* @return {Boolean}
*/
exports.isURL = function(str) {
return urlRegexp.test(str);
};
/**
* Returns true if n is an integer.
*
* @param {Number} n
* @return {Boolean}
*/
exports.isInteger = function(... |
/* eslint max-len: 0 */
import webpack from 'webpack';
import merge from 'webpack-merge';
import baseConfig from './webpack.config.base';
const port = process.env.PORT || 3000;
export default merge(baseConfig, {
debug: true,
devtool: 'cheap-module-eval-source-map',
entry: [
`webpack-hot-middleware/client?... |
export const API_FAIL = 'API_FAIL';
export const SAVE_TIMELINE_FAIL = 'SAVE_TIMELINE_FAIL';
|
/*global GLOBE, Em */
GLOBE.Top10Controller = Em.ArrayController.extend({
needs: ['application'],
relays: [],
actions: {
showRelayDetail: function(fingerprint) {
this.transitionToRoute('relayDetail', fingerprint);
}
}
}); |
import {default as getTeam} from './getTeam'
import {default as createTeam} from './createTeam'
import {default as addUserToTeam} from './addUserToTeam'
import {default as addCollaboratorToRepo} from './addCollaboratorToRepo'
import {default as getCollaboratorsForRepo} from './getCollaboratorsForRepo'
import {default a... |
/* ###########################################################################
GLOBAL ASSETS RELEASE v6.0.2
BUILD DATE: 20100224
########################################################################### */
// init values
hele = new Array();
newspause = 4; // time to pause news items in seconds
fx = op = ni = 0;
t... |
import * as chai from 'chai';
const expect = chai.expect;
const chaiAsPromised = require('chai-as-promised');
import * as sinon from 'sinon';
import * as sinonAsPromised from 'sinon-as-promised';
import { ClickReport } from '../src/models/click_report';
chai.use(chaiAsPromised);
describe('ClickReport', () => {
cons... |
/*!
* jQuery JavaScript Library v1.10.2 -wrap,-css,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-07T17:01Z
... |
'use strict';
//
// Data-forge enumerator for iterating a standard JavaScript array.
//
var TakeIterator = function (iterator, takeAmount) {
var self = this;
self._iterator = iterator;
self._takeAmount = takeAmount;
};
module.exports = TakeIterator;
TakeIterator.prototype.moveNext = function () {
var self = th... |
define([], function() {
/**
* A specialized version of `_.map` for arrays without support for callback
* shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the ne... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* SHA-1 implementation in JavaScript (c) Chris Veness 2002-2014 / MIT Licence */
/* */
/* - see http://... |
/**
@module ember
@submodule ember-routing-htmlbars
*/
import Ember from "ember-metal/core"; // Handlebars, uuid, FEATURES, assert, deprecate
import { uuid } from "ember-metal/utils";
import run from "ember-metal/run_loop";
import { readUnwrappedModel } from "ember-views/streams/utils";
import { isSimpleClick } from "... |
import './polyfills.js';
export { WebGLRenderTargetCube } from './renderers/WebGLRenderTargetCube.js';
export { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
export { WebGLRenderer } from './renderers/WebGLRenderer.js';
// export { WebGL2Renderer } from './renderers/WebGL2Renderer.js';
export { ShaderLi... |
import {
cachedData,
getCurrentHoverElement,
setCurrentHoverElement,
addInteractionClass,
} from '~/code_navigation/utils';
afterEach(() => {
if (cachedData.has('current')) {
cachedData.delete('current');
}
});
describe('getCurrentHoverElement', () => {
it.each`
value
${'test'}
${undefin... |
const path = require(`path`)
exports.chunkNamer = chunk => {
if (chunk.name) return chunk.name
let n = []
chunk.forEachModule(m => {
n.push(path.relative(m.context, m.userRequest))
})
return n.join(`_`)
}
|
var engine = require('../');
var express = require('express');
var path = require('path');
var app = express();
app.engine('dot', engine.__express);
app.set('views', path.join(__dirname, './views'));
app.set('view engine', 'dot');
app.get('/', function(req, res) {
res.render('index', { fromServer: 'Hello from serv... |
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var WSProcessor = require('./wsprocessor');
var TCPProcessor = require('./tcpprocessor');
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var HTTP_METHODS = [
'GET', 'POST', 'DELETE', 'PUT', 'HEAD'
];
var ST_STARTE... |
'use strict';
var app = angular.module('myApp.payloads.directives', []);
app.directive('runPayload', ['Payload', 'Command', '$routeParams', 'showToast', 'showErrors', 'gettextCatalog', function(Payload, Command, $routeParams, showToast, showErrors, gettextCatalog) {
var link = function( scope, element, attrs ) {
... |
/* flatpickr v4.6.0, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.flatpickr = factory());
}(this, function () { 'use st... |
define([
'gui/GuiTR'
], function (TR) {
'use strict';
var GuiConfig = function (guiParent, ctrlGui) {
this._ctrlGui = ctrlGui;
this._menu = null; // ui menu
this.init(guiParent);
};
GuiConfig.prototype = {
/** Initialize */
init: function (guiParent) {
// config stuffs
this.... |
import React, { memo } from 'react';
import SideBarItemTemplateWithData from '../RoomList/SideBarItemTemplateWithData';
import UserItem from './UserItem';
const Row = ({ item, data }) => {
const { t, SideBarItemTemplate, avatarTemplate: AvatarTemplate, useRealName, extended } = data;
if (item.t === 'd' && !item.u)... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.VueMask = {}));
}(this, function (exports) { 'use strict';
function _typeof(obj) {... |
module.exports = {
visionKey: 'AIzaSyAA14j-7sIJLDTRZd3bYpZrmCEoFA9IN40',
pairingID: 'b5378ca6',
pairingKey: '690be2968f8f08b26fcc1f2c9c8f5b90',
recipesKey: 'qAjqbB5sPamshJwWJJh01Y3exb3Jp1wBzcOjsnrqegcRf1PCXT',
backUpRecipesKey: 'jHbWfZqPEUmsh0NElMAPdMXlfPm1p1M9n5NjsnPD1l0Vjhsjng'
}
|
!function(o){"object"==typeof module&&module.exports?module.exports=o.default=o:"function"==typeof define&&define.amd?define("highcharts/themes/sunset",["highcharts"],function(e){return o(e),o.Highcharts=e,o}):o("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){function o(e,o,t,s){e.hasOwnProperty(o)||(e[o... |
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
chalk = require('chalk');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Bootstrap db connection
var db = mong... |
onOpenDialog = function(dialog) {
$('.ui-dialog').corner('6px').find('.ui-dialog-titlebar').corner('1px top');
$(document.body).addClass('hide-overflow');
}
onCloseDialog = function(dialog) {
$(document.body).removeClass('hide-overflow');
}
var wymeditor_inputs = [];
var wymeditors_loaded = 0;
// supply custom_... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { integerPropType, deepmerge } from '@material-ui/utils';
im... |
/* -----------------------------------------------
/* How to use? : Check the GitHub README
/* ----------------------------------------------- */
/* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */
/*
particlesJS.load('particles-js', 'particles.json', function() {
console.log... |
// Note: You must restart bin/webpack-watcher for changes to take effect
const merge = require('webpack-merge')
const sharedConfig = require('./shared.js')
module.exports = merge(sharedConfig, {
devtool: 'sourcemap',
stats: {
errorDetails: true
},
output: {
pathinfo: true
}
})
|
var global = require('../../global');
module.exports = function (packing, offset) {
var items = [].concat.apply([], packing.items);
var iso = "FM.FP-GJ-15-003";
// var number = packing.code;
// var colorName = packing.colorName;
var orderType = (packing.orderType || "").toString().toLowerCase() ... |
/**
* Interaction for the faq module
*
* @author Annelies Van Extergem <annelies@netlash.com>
* @author Jelmer Snoeck <jelmer.snoeck@netlash.com>
* @author Thomas Deceuninck <thomas@fronto.be>
*/
jsFrontend.faq =
{
// init, something like a constructor
init: function()
{
if($('#faqFeedbackForm').length > 0) ... |
/*
* jQuery File Upload Plugin 5.32.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global define, window, documen... |
// Copyright 2008 The Closure Library Authors. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... |
/*
* Copyright (c) 2012 Dmitri Melikyan
*
* 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, modify, merge, ... |
/*
* Version 0.1.14
* Made By Robin Kuiper
* Skype: RobinKuiper.eu
* Discord: Atheos#1095
* My Discord Server: https://discord.gg/AcC9VME
* Roll20: https://app.roll20.net/users/1226016/robin
* Roll20 Wiki: https://wiki.roll20.net/Script:Concentration
* Roll20 Thread: https://app.roll20.net/forum/post/6364317/sc... |
Polymer('selection-example', {
itemTapAction: function(e, detail, sender) {
this.$.selection.select(e.target);
},
selectAction: function(e, detail, sender) {
detail.item.classList.toggle('selected', detail.isSelected);
}
});
|
/**
* Browser platform description
*/
SB.createPlatform('browser', {
keys: {
RIGHT: 39,
LEFT: 37,
DOWN: 40,
UP: 38,
RETURN: 27,//esc
EXIT: 46,//delete
TOOLS: 32,//space
FF: 33,//page up
RW: 34,//page down
NEXT: 107,//num+
PREV... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Operator x <= y returns ToString(x) <= ToString(y), if Type(Primitive(x))
is String and Type(Primitive(y)) is String
es5id: 11.8.3_A3.2_T1.2
description: >
Type(... |
var _ = require('underscore');
var Backbone = require('backbone');
var GRAPHICS = require('../util/constants').GRAPHICS;
var VisBase = require('../visuals/visBase').VisBase;
var VisEdge = VisBase.extend({
defaults: {
tail: null,
head: null,
animationSpeed: GRAPHICS.defaultAnimationTime,
animationEas... |
require('../../support/spec_helper');
describe("Cucumber.Ast.Feature", function () {
var Cucumber = requireLib('cucumber');
var scenarioCollection, lastScenario;
var feature, keyword, name, description, uri, line;
beforeEach(function () {
lastScenario = createSpy("Last scenario");
scenarioCollection =... |
/*
* A reply to a screenshot comment made on a review.
*
* When created, this must take a parentObject attribute that points to a
* Review object.
*/
RB.ScreenshotCommentReply = RB.BaseCommentReply.extend({
rspNamespace: 'screenshot_comment'
});
|
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/store/Memory",
"dojo/query",
"dojo/dom-attr",
"dijit/_WidgetBase",
"dijit/_FocusMixin",
"dijit/_TemplatedMixin",
"dijit/form/FilteringSelect"
], function(declare, lang, Store, query, domAttr, _WidgetBase, _FocusMixin, _TemplatedMixin, FilteringSelect){
/... |
var should = require('should'),
sinon = require('sinon'),
rewire = require('rewire'),
path = require('path'),
Promise = require('bluebird'),
ampController = rewire('../lib/router'),
errors = require('../../../errors'),
configUtils = require('../../../../test/utils/configUtils'),
themes ... |
/** PeriodLister Class */
function PeriodDeltaChain(params) {
this.period_root_id = params.period_root_id;
this.date_format = this.set_or_default(params.date_format, '');
this.set_due_date(params.due_date);
this.period_class = this.set_or_default(params.period_class, 'period');
}
PeriodDeltaChain.prototype.re... |
var test = require("tape")
var add = require("../index.js")
test("add is a function", function (assert) {
assert.equal(typeof add, "function")
assert.end()
})
test("can add numbers", function (assert) {
assert.equal(add(3, 9), 12)
assert.end()
}) |
var parent = require('../../stable/string/match-all');
module.exports = parent;
|
const Combinatorics = require('js-combinatorics');
const widths = [null, 20, 60];
const heights = [null, 40, 80];
const horizontalAlignments = [null, 'left', 'right', 'center'];
const verticalAlignments = [null, 'bottom', 'top', 'center'];
const orients = [null, 'horizontal', 'vertical'];
const caps = [null, 10, ... |
"use strict";
const Utils = require("../../core/Utils");
const RequestQueue = require("./RequestQueue");
const ChainedBucket = require("./ChainedBucket");
class RequestQueueGroup {
constructor(bucketFactory) {
this.queues = {};
this.bucketFactory = bucketFactory || null;
if (!(bucketFactory instanceof... |
'use strict';
const {
Symbol
} = primordials;
const {
kUpdateTimer,
onStreamRead,
} = require('internal/stream_base_commons');
const { owner_symbol } = require('internal/async_hooks').symbols;
const { Readable } = require('stream');
const kHandle = Symbol('kHandle');
class HeapSnapshotStream extends Readable {
... |
import hasFeature from './has';
export function prop(path) {
return function(state, props) {
const names = path.split('.');
if (!(names[0] in props)) {
throw new Error(`Missing required prop ${names[0]}.`);
}
return names.reduce((p, name) => (p && p[name]), props);
};
}
export function has... |
const {addTable} = require('../../utils');
module.exports = addTable('snippets');
|
var inspector = require('../');
// Custom type schema
var personValidation = {
type: 'object',
properties: {
firstname: { type: 'string', minLength: 1 },
lastname: { type: 'string', minLength: 1 },
age: { type: 'integer', gt: 0, lte: 120 }
}
};
// Custom Validation ($type)
var customValidation = {
// $type w... |
/***** AVAILABLE JAVASCRIPT FUNCTIONS ******/
/* Function: GraphicsApp()
* --------------------------------
* Creates a new GraphicsApp object and returns it.
*
* Parameters: none
*/
function GraphicsApp() {}
/* Function: addButton(buttonName)
* -----------------------------------------------
* Creates and... |
/**
* Module dependencies.
*/
var Emitter = require('emitter');
var render = require('render');
var events = require('events');
var empty = require('empty');
var filter = require('laws-filter');
var template = require('./filter-container');
var o = require('query');
var closest = require('closest');
var classes = re... |
var ModelForm = {
init: function(options)
{
var ops = $.extend(true, this.getDefaultOptions(), options);
Validation.init(ops);
},
getDefaultOptions: function()
{
return {
src: '.form',
isAjax: false,
submitAjax: function(validation)
... |
import React, { Component } from "react";
import Home from "../components/home/";
import BlankPage2 from "../components/blankPage2";
import { DrawerNavigator } from "react-navigation";
import DrawBar from "../components/DrawBar";
export default (DrawNav = DrawerNavigator(
{
Home: { screen: Home },
BlankPage2:... |
describe('Demo test with Mocha', function() {
describe('for testing purposes', function() {
before(function(client, done) {
client.globals.test_calls++;
done();
});
after(function(client, done) {
setTimeout(function() {
client.globals.test_calls++;
done();
}, 100... |
;(function (global) {
if ("EventSource" in global) return;
var reTrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g;
var EventSource = function (url) {
var eventsource = this,
interval = 500, // polling interval
lastEventId = null,
cache = '';
if (!url || typeof url != 'string') {
throw new SyntaxE... |
import { RocketChat } from 'meteor/rocketchat:lib';
import { Random } from 'meteor/random';
import _ from 'underscore';
import s from 'underscore.string';
import hljs from 'highlight.js';
import _marked from 'marked';
const renderer = new _marked.Renderer();
let msg = null;
renderer.code = function(code, lang, escap... |
define('lodash/lang/isEqual', ['exports', 'lodash/internal/baseIsEqual', 'lodash/internal/bindCallback'], function (exports, _lodashInternalBaseIsEqual, _lodashInternalBindCallback) {
'use strict';
/**
* Performs a deep comparison between two values to determine if they are
* equivalent. If `customizer` is p... |
/*!
* VERSION: 0.2.1
* DATE: 2017-01-17
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your ... |
"use strict";import"../parts-3d/Math.js";import"../parts-3d/SVGRenderer.js";import"../parts-3d/Chart.js";import"../parts-3d/Axis.js";import"../parts-3d/Series.js";import"../parts-3d/Column.js";import"../parts-3d/Pie.js";import"../parts-3d/Scatter.js";import"../parts-3d/VMLRenderer.js"; |
/**
Breaks up a long string
@method breakUp
@for Handlebars
**/
Handlebars.registerHelper('breakUp', function(property, hint, options) {
var prop = Ember.Handlebars.get(this, property, options);
if (!prop) return "";
hint = Ember.Handlebars.get(this, hint, options);
return Discourse.Formatter.breakUp(pr... |
'use strict';
const styles = require('./styles');
const permsToString = require('./perms-to-string');
const sizeToString = require('./size-to-string');
const sortFiles = require('./sort-files');
const fs = require('fs');
const path = require('path');
const he = require('he');
const etag = require('../etag');
const url... |
'use strict'
const assert = require('assert')
const http = require('http')
const https = require('https')
const { kState, kOptions } = require('./symbols')
const {
codes: { FST_ERR_HTTP2_INVALID_VERSION }
} = require('./errors')
function createServer (options, httpHandler) {
assert(options, 'Missing options')
... |
module.exports={title:"LiveChat",slug:"livechat",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LiveChat</title><path d="'+this.path+'"/></svg>'},path:"M23.849 14.91c-.24 2.94-2.73 5.22-5.7 5.19h-3.15l-6 3.9v-3.9l6-3.9h3.15c.93.03 1.71-.66 1.83-1.59.18-3 .18-6-.06-9-.06-.... |
// PhantomJS is missing Function.prototype.bind:
// http://code.google.com/p/phantomjs/issues/detail?id=522
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== "function") {
// closest thing possible to the ECMAScript 5 internal IsCallable function
throw ... |
export default function identity(x) {
return x;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.