code stringlengths 2 1.05M |
|---|
'use strict';
var minimatch = require('minimatch');
/**
* Constants
*/
exports.DEFAULT_DELAY = 100;
exports.CHANGE_EVENT = 'change';
exports.DELETE_EVENT = 'delete';
exports.ADD_EVENT = 'add';
exports.ALL_EVENT = 'all';
/**
* Checks a file relative path against the globs array.
*
* @param {NodeWatcher|PollWatc... |
'use strict'
import wolfram from 'wolfram'
/**
* Seek an answer? Look it up.
*/
export default function(bot) {
const WOLFRAM_APP_ID = process.env.WOLFRAM_APP_ID
const LOOKUP_DELAY = 30
let CAN_LOOKUP = true
// create a store
const store = bot.createStore('wolfram')
const buildMessage = (results) => {... |
// @flow
import React from 'react'
import { Animated } from 'react-native'
type Props = {
children?: *,
duration?: number,
opacity?: number
}
type State = {
opacity: Animated.Value
}
export default class Fade extends React.PureComponent<Props, State> {
state = {opacity: new Animated.Value(0)}
defaultDura... |
/*!
Material Components for the web
Copyright (c) 2017 Google Inc.
License: Apache-2.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory)... |
/**
* Thai translation for bootstrap-datepicker
* Suchau Jiraprapot <seroz24@gmail.com>
*/
;(function($){
// en-th - (rare use) english language with thai-year
$.fn.datepicker.dates['en-th'] =
// en-en.th - english language with smart thai-year input (2540-2569) conversion
$.fn.datepicker.dates['en-... |
/* flow */
import React from 'react';
import R from 'ramda';
const exportFn = () => {
const Container = () => {
const html = <div data-id="<%= kabobName %>"></div>;
return html;
};
const mapDispatch = () => ({});
const mapStateToProps = (state) => {
const newState = {};
return newState;
};... |
function createEditor() {
"use strict";
var editor = null,
editorOptions,
loadedFilename;
/**
* @return {undefined}
*/
function startEditing() {
}
/**
* extract document url from the url-fragment
*
* @return {?string}
*/
function guessDocUrl... |
/**
* super-config
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
var assert = require('assert');
var path = require('path');
var utils = require('lei-utils');
global.assert = assert;
exports.utils = utils;
exports.SuperConfig = require('../');
exports.configPath = function (name) {
return path.resolve(_... |
//This removes the only instance of the object
var Object = require('./object');
var world = module.exports = new Object();
world.connections = {};
//Temporarily Broadcasting.
world.send = function(message) {
message = JSON.stringify(message);
for(var i in this.connections) {
this.connections[... |
import chai, { expect } from 'chai'
import lodash from 'lodash/index'
import ramda from 'ramda/src/index'
import sinon from 'sinon'
import { configure, shallow, mount, render } from 'enzyme'
import ReactSixteenAdapter from 'enzyme-adapter-react-16'
import snap from 'enzyme-to-json'
import { Helmet } from 'react-helmet-... |
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const webpack = require("webpack");
const pkg = require("./package.json");
const rootDir = path.join(__dirname, "../..");
const outputDir = path.join(__dirname, "build");
... |
var playList = [];
playList.push('I Did It My Way');
playList.push('Respect', 'Imagine');
playList.unshift('Born to Run');
playList.unshift('Louie Louis', 'Maybelline');
printList( playList ); |
/* @flow */
import { InputTypeComposer } from 'graphql-compose';
import { getTypeName, type CommonOpts, desc } from '../../../utils';
import { getCommonsScriptITC } from '../../Commons/Script';
import { getNumericFields } from '../../Commons/FieldNames';
export function getExtendedStatsITC<TContext>(
opts: CommonOp... |
TestCase('callbacks', (function () {
var testCase = {
'test Callbacks(options) - options are copied': function () {
expectAsserts(1);
var options = {
"unique": true
},
cb = new Prototype.Callbacks(options),
count =... |
var express = require('express');
var router = express.Router();
var PokedexLib = require('../pokedex');
var Pokedex = new PokedexLib();
/* GET home page. */
router.get('/', function(req, res, next) {
renderContent('1', req, res); //default to master-ball
});
/* GET home page. */
router.get('/:id', function(req, res... |
const controllers = require('../controllers/index');
const permissions = require('./permissions');
const authenticate = require('../utilities/authentication');
module.exports = (app) => {
app.post('/user/register', controllers.user.register.post);
app.post('/user/login', controllers.user.login.post);
app.p... |
routes.inject = ['$stateProvider'];
export default function routes($stateProvider) {
$stateProvider
.state('home', {
url: '/',
template: require('./home.html')
})
}
|
const HttpStatus = require('http-status-codes')
module.exports = (req, res, next) => {
const body = req.body
const motionsBody = body.motions
let roundBody = body.round
const match = []
let returnMotions
return global.models.create(
global.db.asians.Motions,
motionsBody,
match
).then(motio... |
/*!
* Flowtime.js
* http://marcolago.com/flowtime-js/
* MIT licensed
*
* Copyright (C) 2012-now Marco Lago, http://marcolago.com
*/
var Flowtime = (function ()
{
/**
* test if the device is touch enbled
*/
var isTouchDevice = false;
if (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) ||... |
define(["jquery","underscore","knockout","./config"],function($,_,ko,config) {
var Img = function(){}
Img.prototype.protect = function(img) {
var ratio = img.width/img.height;
var maxSquare = 5000000; // ios max canvas square
var maxSize = 4096; // ie max canvas dimensions
var maxW = Math.floor(Math.sqrt(... |
/**
* Capitalize a string
* @param {string} string
*/
function capitalize(string) {
return string ? `${string[0].toUpperCase()}${string.slice(1)}` : string;
}
/**
* Transform kebab-case icon name to PascalCase
* e.g. access-alarm => AccessAlarm
* @param {string} iconName
*/
function pascalize(iconName) {
re... |
var Checker = require('../../lib/checker');
var assert = require('assert');
describe('rules/disallow-multiple-line-breaks', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
});
it('should report multiple line break', function() {... |
var hmac = require("crypto").createHmac,
https = require('https');
function coinspot(key, secret) {
var self = this;
self.key = key;
self.secret = secret;
var request = function(path, postdata, callback) {
var nonce = new Date().getTime();
var postdata = postdata || {};
postdata.nonce = nonce;
va... |
'use strict';
module.exports = {
test: /\.embed\.scss$/,
loaders: ['style-loader', 'css-loader', 'sass-loader']
};
|
import React, { PureComponent } from 'react';
import { Input, Icon } from 'antd';
import styles from './index.less';
export default class EditableItem extends PureComponent {
state = {
value: this.props.value,
editable: false,
};
handleChange = (e) => {
const { value } = e.target;
this.setState({... |
/*!
* datastructures-js
* linkedList
* Copyright(c) 2015 Eyas Ranjous <eyas@eyasranjous.info>
* MIT Licensed
*/
var llNode = require('./nodes/linkedListNode');
function linkedList() {
'use strict';
var self = {};
self.head = null;
self.nodesCount = 0;
self.findNode = function(val) {
... |
import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
//import { Code } from '../styles/style';
//import s from '../styles/home.style';
import Icon from 'react-icons-kit';
//import icons
import { arrowLeft } from 'react-icons-kit/icomoon';
function Con... |
QUnit.module("Basic functionality");
QUnit.test("scuba can be run", function (assert) {
var done = assert.async();
var scuba = $.scuba({
namespace: generateDatabase(),
noConflict: true
});
assert.ok(scuba, "$.scuba() should return an object");
scuba.onofflineready(function (offlineReady) {
var clean = scu... |
/* Javascript for Stack Loop Demo 5 */
//get stackloop's current version and write it to the screen.
document.getElementById("curr_version").innerHTML = stackloop.version;
//the data we'll be iterating over.
var data = "abcdefghijk";
//utility function to write to screen.
function write(id, str) {
document.getEleme... |
"use strict";
const should = require("should");
const _ = require("underscore");
const BinaryStream = require("node-opcua-binary-stream").BinaryStream;
const date_time = require("..");
const offsetFactor1601 = date_time.offsetFactor1601;
const randomDateTime =date_time.randomDateTime;
const decodeDateTime =date_time.... |
'use strict';
// a grammar in JSON
var grammar = {
'comment': 'Nineplate template language definition',
'lex': {
'rules': [
['\\s+', 'return "WhiteSpace"'],
['\\<', 'return "LT"'],
['\\>', 'return "GT"'],
['\\/', 'return "SL"'],
['\\=', 'return "EQ"'],
['\\\\', 'return "_BackSlash"'],
['\\\''... |
/**
* Created by yuliang on 2017/1/9.
*/
"use strict"
module.exports = {
login: function *() {
var userId = this.checkBody("userId").notEmpty().value;
var passWord = this.checkBody("passWord").notEmpty().value;
this.errors && this.validateError()
},
logout: function *() {
... |
const ObjUtil = {
findInPropArrayByPropItem(propArr, propItem, obj, value){
return obj[propArr].find((item, index) => {
return item[propItem] === value;
})
}
};
export default ObjUtil
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
/**
* Sample Application - ng-scaffold
* @module application.config
*/
angular.module('application.config', [
'user',
'ui.router',
'template.app'
])
.constant('NAV_ITEMS', [
{title: 'Home', state: 'home', sref: 'home', icon: 'glyphicon-home'},
{title: 'About', state: ... |
import superagent from 'superagent';
import config from '../../config';
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__) {
// Prepend host and port of the API server to the path.
return 'http://' + ... |
export const GOOGLE_MAP_SCRIPT_BASE_URL =
"https://maps.googleapis.com/maps/api/js";
|
import { connect } from 'react-redux'
import {
deletingDashboardSelector,
confirmDashboardDeletion,
cancelDashboardDeletion,
} from '../../../dashboard'
import DeleteDashboardDialog from './MediaDeletionDialog'
const mapStateToProps = state => ({
isDeletingDashboard: !!deletingDashboardSelector(state),
})
con... |
var DateEvent = require('./dateEvent');
function DatesModel() {
this.dateEvents = require('./dateEvents');
this.eventStorage = require('./eventStorage');
}
DatesModel.prototype.removeAllDatesWithEventId = function (id) {
this.dateEvents.removeEventsWithId(id);
};
DatesModel.prototype.getEventIdForDate = fu... |
import { CacheRealCookiesEarned } from '../../Cache/VariablesAndData';
import CalculateGains from '../Calculations/CalculateGains';
import CheckOtherAchiev from '../Calculations/CheckOtherAchiev';
import CopyData from '../SimulationData/CopyData';
import SimWin from '../SimulationData/SimWin';
import { SimAchievementsO... |
var path = require("path");
module.exports = {
entry: "./app2/src/index.tsx",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "dist/js"),
publicPath: "/js/"
},
// Enable sourcemaps for debugging webpack's output.
devtool: "cheap-eval-source-mapService",
devServer: {
content... |
/**
* CMD: grunt test
*
* ---------------------------------------------------------------
*
* Runs unit tests and `grunt hint`
*
*/
module.exports = function(grunt) {
grunt.registerTask('test', [
'karma:single',
'jshint:src',
'flow:src',
'jscs:src'
]);
};
|
document.addEventListener('DOMContentLoaded', function(){
const cards = document.getElementsByClassName('card')
Object.keys(cards).forEach( key => {
cards[key].addEventListener('mouseover', e => {
if(e.target === e.currentTarget) {
e.target.className = 'card selected'
getSiblings(e.target... |
var MongoClient = require('mongodb').MongoClient
, assert = require('assert');
// Connection URL
var url = 'mongodb://192.168.12.212:27017/LPR-annotator';
exports.getSession = function(id, callback) {
// Use connect method to connect to the Server
MongoClient.connect(url, function(err, db) {
assert.equal(nu... |
/**
* Created by jerek0 on 06/05/2015.
*/
import gulp from 'gulp';
import config from '../config';
import less from 'gulp-less';
import clean from 'gulp-clean';
import path from 'path';
import plumber from 'gulp-plumber';
import handleErrors from '../util/handleErrors';
import minifyCSS from 'gulp-minify-css';
import... |
var path = require('path')
var test = require('tape')
var fileStream = require('../')
test('streams file contents', function (t) {
t.plan(2)
var stream = fileStream()
var chunks = []
var text = []
stream.on('data', function (data) {
chunks.push(data.chunk)
text.push(data.data)
})
stream.on('... |
{
"translatorID":"04a25cf0-172c-73af-5eac-10c4a56d7a32",
"translatorType":3,
"label":"@ResearchNotes_SMW_citation",
"creator":"Darek Bobak",
"target":"txt",
"minVersion":"1.0",
"maxVersion":"",
"priority":200,
"inRepository":false,
"configOptions": {
"getCollections": true
},
"displayOptions": {
"expo... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['3475',"Tlece.WebApp.Helpers Namespace","topic_000000000000002A.html"],['3476',"HtmlContentExtentions Class","topic_000000000000002B.html"],['3477',"Methods","topic_000000000000002B_methods--.html"],['3478',"Checked ... |
Package.describe({
name: 'numtel:pg-server',
version: '1.0.1',
summary: 'Run PostgreSQL server inside your Meteor app',
git: 'https://github.com/numtel/meteor-pg-server',
documentation: 'README.md'
});
function determinePlatformNpmPackage() {
switch(process.platform + '_' + process.arch) {
case 'linux_... |
"use strict";
var express = require('express');
var router = express.Router();
var db = require('../services/db');
var common = require('../services/common');
var streamStore = require('../services/stream');
var docker = require('../docker');
var async = require('async');
/* GET home page. */
router.get('/createimage... |
function receiveFishFunction()
{
currentNation.food += .25;
currentNation.approval += .2;
}
function farmsDone()
{
currentNation.food += .5;
currentNation.approval+= .3;
}
function farmDecision()
{
addUpcomingEvent(currentNation, currentNation.turnCount + 2, farmsDone, "Your farmland expansion is complete a... |
import RcModule from '../RcModule';
import { Library } from '../di';
import { prefixEnum } from '../Enum';
import SynchronizedStorage from '../../lib/SynchronizedStorage';
import actionTypesBase from './actionTypesBase';
import moduleStatuses from '../../enums/moduleStatuses';
import getStorageReducer from './getStor... |
/*jslint node:true*/
/// REQUIRE
var yaml = require ('js-yaml'),
_ = require ('underscore'),
fs = require ( 'fs' );
///
var conf = function (confFile) {
var confData = {};
this.configFile = confFile;
if (this.configFile && fs.existsSync(this.configFile))
this.reload();
return this;
};... |
/**
* @author Batch Themes Ltd.
*/
(function() {
'use strict';
$(function() {
var config = {
name: 'Marino',
theme: 'palette-2',
palette: getPalette('palette-2'),
layout: 'horizontal-navigation-3',
direction: 'ltr', //ltr or rtl
... |
Ext.define("FindMe.ui.status.Status", {
extend: "Ext.container.Container",
alias: 'widget.app-status',
requires: [],
controller: 'FindMe.ui.status.StatusController',
map:null,
initComponent: function () {
Ext.applyIf(this, {
});
return this.callParent(arguments);
}... |
googletag.cmd.push(function () {
googletag.defineSlot('/423694368/Today_728x90_2', [[728, 90], [320, 50]], 'div-gpt-ad-1428998314536-0').addService(googletag.pubads());
googletag.defineSlot('/423694368/Today_728x90_3', [728, 90], 'div-gpt-ad-1428998314536-1').addService(googletag.pubads());
googletag.def... |
//import {computedFrom} from 'aurelia-framework';
export class Welcome {
heading = 'أهلا بك في موقع النخبة';
firstName = '';
lastName = '';
previousValue = this.fullName;
//Getters can't be directly observed, so they must be dirty checked.
//However, if you tell Aurelia the dependencies, it no longer need... |
/**
* Module dependencies.
*/
var mongoose = require('mongoose');
var Imager = require('imager');
var config = require('config');
var imagerConfig = require(config.root + '/config/imager.js');
var utils = require('../../lib/utils');
var Schema = mongoose.Schema;
/**
* Getters
*/
var getTags = function (tags) ... |
var StyleManager = function(gmx) {
this.gmx = gmx;
this.deferred = new L.gmx.Deferred();
this._maxVersion = 0;
this._maxStyleSize = 0;
this._styles = [];
this._deferredIcons = [];
this._parserFunctions = {};
this._serverStylesParsed = false;
var minZoom = Infinity,
maxZoom ... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _Checkbox = require('./Checkbox');
var _Checkbox2 = _interopRequireDefault(_Checkbox);
exports['default'] = _Checkbox2['default'];
mod... |
angular.module('ngZoom').directive('zoom', [
'ZoomLens', 'ZoomLensW', 'DOMImage', 'ZoomWindows',
function (ZoomLens, ZoomLensW, DOMImage, ZoomWindows) {
return {
restrict: 'A',
scope: {
zoom: '@',
zoomFull: '@',
zoomWindowName: '@'
},
link: link,
templateUr... |
"use strict";module.metadata={"stability":"unstable"};const{events}=require("../window/events");const{filter}=require("../event/utils");const{isBrowser}=require("../window/utils");
exports.events=filter(events,function({target})isBrowser(target)); |
/**
* Created by Administrator on 2015/7/13.
*/
/*html代码示例
* */
/*
<div class="col-lg-6">
<div class="gallery ">
<div class="main-pic">
<a>
<span>
<img src="{$goods['goods_albums'][0]['origin']}" id="show-origin">
</span>
</a>
</div>
<div style="display: block">
<div class="tab-pic">
<ul class="list-inl... |
angular.module('calculator', [])
.controller('CalcController', function($scope) {
let entry = '';
let ans = '';
let current = '';
let log = '';
let decimal = true;
let reset = '';
$scope.answer = 0;
$scope.history = 0;
// round function if answer includes a decimal
function r... |
function getTranslated(transformed) {
var transKey = [];
$.each(transformed, function (index) {
transKey[index] = $(this).attr('translate');
});
return transKey;
}
langAdd = function(data, instanceUrl) {
$.each($("[translate]"), function (index, value) {... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
/**
* Commands for managing timeouts
* http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/lib/webdriver_exports_Timeouts.html
*/
// const Targets = require('../targets');
//
// const TYPES = [
// 'script',
// 'page load',
// ];
/**
* Set timeout for some type
*
* @param {Obje... |
// loading = !complete
function albumBrowser(state = {
complete: false,
loading: false,
model: 'Album',
nextPage: 0,
items: [],
letter:null,
searchText:null,
cover_ref:null,
}, action) {
switch (action.type) {
case "ALBUMBROWSER_BROWSE_ALL":
return Object.assign({... |
angular.module('openeApp.groups', [ 'ngMaterial', 'pascalprecht.translate']); |
// Modules
var _ = require("lodash");
var culinary = require("culinary");
var cook = culinary.style;
// Source
var utils = require("../lib/utils");
module.exports = function(arguments) {
character = arguments.join();
character = (_.isString(character))?character:"_";
var spices = [];
if(this.markerAttributes.bac... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var MeetingTimeZone_1 = require("../Comple... |
/*! JSON v3.2.5 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
;
(function () {
var o = !0, w = null;
(function (B) {
function v(a) {
if ("bug-string-char-index" == a)return"a" != "a"[0];
var f, c = "json" == a;
... |
Mariposta = {}
Mariposta.Support = {
bindRepoNoticeButtons: function() {
$('button[data-behavior=publish-site]').on('click', function() {
var commitMsg = prompt('Enter a short summary of your changes for version control history:');
if (commitMsg != null) {
$('body > .alert').html('<p class="... |
module.exports = {
all: ['<%= paths.dist %>']
};
|
// The MIT License (MIT)
//
// Copyright (c) 2015-2021 Camptocamp SA
//
// 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... |
var $ = require('jquery');
var itAsync = require('mocha-promises-kit').itAsync;
var Q = require('q');
require('../attr-change');
describe('Attr-change', function() {
// Stupid simple test to make sure this works
itAsync ('fires an attribute change event', function() {
var $div = $('<div>', { class: 'abc' });
... |
import _ from 'lodash';
import React, {Component} from 'react';
import { connect } from 'react-redux';
import { fetchPosts, selectPost, deselectPost } from "../actions/index";
import selectedPostsSelector from "../selectors/selected_posts";
import { Link } from 'react-router-dom';
import Modal from './modal';
class P... |
/**
* Extension for jQuery.Validate plugin
*
* @package sfJqueryFormValidationPlugin
* @subpackage JS
* @author Alexandr Shuboff <a.shuboff@gmail.com>
*/
(function($) {
$.extend($.fn, {
// http://docs.jquery.com/Plugins/Validation/validate
validateExt: function( options ) {
var validator = $.data(... |
'use strict';
angular.module('app.controllers').controller('timeCardCtrl', function ($scope, timeCard) {
var vm = this;
$scope.$on('refresh', function () {
$scope.$apply();
});
vm.getTimes = function () {
return timeCard.getTimes();
};
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9... |
'use strict';
// Declare app level module which depends on filters, and services
var osBeer = angular.module('osBeer', [
'osBeer.services',
'osBeer.controllers'
]);
|
var assert = require('assert');
var sinon = require('sinon');
var rewire = require('rewire');
var model = rewire('../lib/model');
var context = new function() {
this.host = "http://localhost/"
this.model = model;
}
var fun = function() { return "funfunfun"}
var TestModel = context.model({
name: "fruits",
fun: f... |
module.exports = [
{ id: 1, title: 'my first task', completed: false },
{ id: 2, title: 'my second completed task', completed: true },
{ id: 3, title: 'conquer the world', completed: false },
{ id: 4, title: 'feed the kitten', completed: false }
]; |
import _ from 'underscore';
import { createSelector } from 'reselect';
function selectSuppliersWithProducer(suppliers, producers) {
const entities = _.map(suppliers.entities, (supplier) => {
const producer = producers.byId[supplier.producer_id];
return {
...producer,
...supplier,
};
});
... |
import _ from 'underscore';
import $ from 'jquery';
var GreenLantern = Make.It.Happen({
url: 'internet'
});
|
/* eslint-disable no-unused-vars */
exports.<%= className %> = class <%= className %> {
constructor (options) {
this.options = options || {};
}
async find (params) {
return [];
}
async get (id, params) {
return {
id, text: `A new message with ID: ${id}!`
};
}
async create (data, p... |
// OPCUA 1.03 : Part 3 $ 8.40 page 65
// This Structured DataType is used to represent a human-readable representation of an Enumeration.
// When this type is used in an array representing human-readable representations of an enumeration,
// each Value shall be unique in that array.
const EnumValueType_Schema = {
... |
import { disableRandomMock, initRandomMock } from '../mockRandomValues';
import { load, save, mergeParts, separateParts } from '../../lib/helpers/secureSessionStorage';
describe('secureSessionStorage', () => {
beforeAll(initRandomMock);
afterAll(disableRandomMock);
it('should be able to save and load dat... |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
import React, {Component} from 'react';
import {Jsx, Js, JsBuildIn} from 'components/JsxAndJsTransform';
class JsxAndJsTransformParent extends Component {
render() {
return (
<div>
<Jsx />
<Js />
<JsBuildIn />
</div>
);
}
}
export default JsxAndJsTransformParent;
|
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child... |
(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[135],{1647:function(s,t,i){s.exports=i.p+"static/media/illustration-spotlight-currency.8e73b5e1.svg"}}]);
//# sourceMappingURL=135.8f13aaf0.chunk.js.map |
(function() {
'use strict';
angular
.module('App')
.directive('animateChange', animateChange);
animateChange.$inject = ['$timeout'];
function animateChange($timeout) {
return {
restrict: 'A',
scope:{
animateChange: '='
},
... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'uicolor', 'et', {
title: 'Värvivalija kasutajaliides',
preview: 'Automaatne eelvaade',
config: 'Aseta see sõne oma confi... |
const db = require('../models');
const Boom = require('boom');
const Joi = require('joi');
exports.getAllStatus = {
handler(request, reply) {
db.Status.all().then(data => reply(data))
.error(err => reply(Boom.badData(err.detail)));
},
};
exports.getStatus = {
validate: {
params: {
id: Joi.nu... |
import fetch from 'isomorphic-fetch'
import moment from 'moment'
import {
selectedWeekComicsSelector,
selectedWeekIsInvalidatedSelector,
selectedWeekLastUpdatedSelector,
selectedWeekTotalSelector
} from './week.selectors'
import { normalizeComics } from '~/src/features/Common/Helpers/comicsNormalizer'
/**
*... |
import React, { Component } from 'react';
import THREE from 'three';
export default class Wall extends Component {
render() {
const {
position, rotation, quaternion, scale, materialId,
} = this.props;
return <group
position={ position }
quaternion={ qu... |
export {default} from './TextInputCSSModule' |
'use strict';
const expect = require('chai').expect;
const projectLocalizationFramework = require('../../lib/utils/project-localization-framework');
describe('project-localization-framework', function() {
function Project(addons) { this.addons = addons; }
it('returns falsey when no addons have the `isLocalizatio... |
chrome.extension.sendMessage({}, function(response) {
var readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(readyStateCheckInterval);
// ----------------------------------------------------------
// This part of the script triggers when page is done load... |
"use strict";
// better be verbose then sorry
function isin(array, thing) {
if (!Array.isArray(array))
return false;
return array.indexOf(thing) !== -1;
}
function notin(things, thing) {
if (!Array.isArray(things))
return true;
return things.indexOf(thing) === -1;
}
module.exports =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.