code stringlengths 2 1.05M |
|---|
// Karma configuration
// Generated on 2017-04-26
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// base path, that will be used to resolve files and exclude
basePath: '../',
// t... |
(function() {
var timeouts = [];
var messageName = "zero-timeout-message";
// Like setTimeout, but only takes a function argument. There's
// no time argument (always zero) and no arguments (you have to
// use a closure).
function setZeroTimeout(fn) {
timeouts.push(fn);
window.... |
import { getItem, setItem, removeItem } from './localStorage';
const localStorage = global.localStorage;
const localStorageGetItem = localStorage.getItem;
const localStorageSetItem = localStorage.setItem;
const localStorageRemoveItem = localStorage.removeItem;
describe('localStorage', () => {
beforeEach(() => {
... |
const LoaderInterface = Jymfony.Component.Metadata.Loader.LoaderInterface;
const MappingException = Jymfony.Component.Validator.Exception.MappingException;
/**
* Loads validation metadata from multiple {@link LoaderInterface} instances.
*
* Pass the loaders when constructing the chain. Once
* {@link loadClassMetad... |
import getCompiler from 'cerebral-url-scheme-compiler/get'
import toDisplayName from '../helpers/toDisplayName'
export default function (path) {
const pop = getCompiler(path, 'pop')
pop.displayName = `pop(${toDisplayName(path, pop)})`
return pop
}
|
import immutable from 'immutable'
import { connect } from 'react-redux'
import React, { Component } from 'react'
import PureRender, { shouldComponentUpdate } from '../plugins/PureRender.js'
import SearchInput from '../components/SearchInput.jsx'
const ActiveListWrap = (ItemComponent) => class extends Component{
co... |
functions.addMultiple({
"test-comment": function() {
return new tree.Combinator(' ');
},
"test-directive": function(arg1, arg2) {
return new tree.Directive(arg1.value, new tree.Anonymous(arg2.value));
},
"test-extend": function() {
//TODO
},
"test-import":... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
import moment from 'moment';
import {config} from './';
export class ReviewsStats {
constructor(reviews, period) {
this.startDate = period[0].format('YYYY-MM-DD');
if (moment(config.startDate).isAfter(this.startDate)) {
this.startDate = config.startDate;
}
this.endDate = period[1].format('YYYY-... |
/*
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/*global assert*/
var rfs = require("../lib/rfs")
, fs = require("fs")
, jn = require("path").join
;
exports.name = "references";
exports.landscape = "Unused bibliographical references are dropped; some are changed to match W3C preferences.";
exports.transform = function (data) {
// drop unused references
... |
version https://git-lfs.github.com/spec/v1
oid sha256:d4325673b45a3a7d5e6cc190b462eef5fd34fdb26d841342c710cb6691740479
size 2294
|
Ink.createModule('App.Tasks.Home', '1', ['App.Tasks', 'Pink.Data.Binding_1', 'App.Tasks.DataProvider', 'Pink.Data.Grid_1'], function(app, ko, dataProvider, Grid) {
var Module = function() {
this.moduleName = 'App.Tasks.Home';
this.tasks = ko.observableArray();
this.todoTasks = ko.observableA... |
'use strict';
describe('Service: Authentication', function () {
beforeEach(module('MobcastApp.services', 'AppConstants', 'mock_api', 'MobcastApp.mocks.error'));
var $httpBackend,
scope,
Authentication,
mockAPI,
MOCK_AUTH_OAUTH2,
MOCK_AUTH_PASSWORD,
MOCK_AUTH_USERS,
mockPasswords,
... |
/**
* This file is part of the Stippers project (available here: https://github.com/Stannieman/stippers/).
* The license and all terms en conditions that apply to Stippers also apply to this file.
*
* @author Stan Wijckmans
*
* This file contains code to validate a form.
*/
function validateEnterTransactionFo... |
/*
* Swampfile.js
*
* This file is a Swamp configurations file generated automatically
*
* Copyright (c) 2014 Udi Talias
* Licensed under the MIT license.
* https://github.com/uditalias/swamp/blob/master/LICENSE
*/
module.exports = function(swamp) {
swamp.config({
params : {
base_path:proces... |
/* global node */
'use strict'
var remote = require('remote');
var dialog = remote.require('dialog');
var organizer = require('./js/organizer');
window.$ = window.jQuery = require('./js/jquery-1.11.3.min.js');
$(function() {
(function load_target_dir() {
var directory = localStorage.getItem('target_directory... |
module.exports = function(deployTarget) {
return {
pagefront: {
app: 'dubtrack',
key: process.env.PAGEFRONT_KEY
}
};
};
|
#!/usr/bin/env node
'use strict';
var hapi = require('hapi'),
app = new hapi.Server(),
path = require('path'),
fs = require('fs'),
config = require('./config.json'),
colors = require('colors'),
ls = require('./lib/ls'),
list = ls(),
current = {name: 'Rock on air!'},
launch = require(... |
// Generated by CoffeeScript 1.12.6
(function() {
var AVStream, AVStreamGenerator, Bits, EventEmitterModule, MP4Stream, aac, api, createStreamId, crypto, eventListeners, fs, h264, logger, mp4, path, recordedAppToDir, streamGenerators, streams,
extend = function(child, parent) { for (var key in parent) { if (hasPr... |
module.exports = function(grunt) {
grunt.initConfig({
// Configuration to be run (and then tested).
version_bump: {
files: [ __dirname + '/tmp/success_json_with_version.json' ],
versionStructureFile: __dirname + '/tmp/failure_version_structure_missing_field.json',
... |
$(function(){
var person_tab_flag = true;
get_follow_person();
$('.nav-item').click(function(){
var tab_name = $(this).find('a').attr('href');
if ((person_tab_flag && (tab_name == '#follow_person')) || (!person_tab_flag && (tab_name == '#follow_post'))){
return;
}
... |
import { pushWait, pushClear } from 'react-redux-provide';
import { pushReplication, unshiftMiddleware } from 'react-redux-provide';
import defaultRenderDocumentToString from './defaultRenderDocumentToString';
import { extractServerStates, extractClientStates } from './extractStates';
import getProviders from './getPro... |
export default function router(router) {
return function* (next) {
try {
yield router.handle(this);
return yield next;
}
catch (e) {
throw e;
}
};
}
|
import GamePad from "./GamePad"
export default class Engine {
constructor(width, height, timestamp) {
this.width = width;
this.height = height;
this.timestamp = timestamp;
this.lastTime = timestamp;
let canvas = document.createElement("canvas");
canvas.width = width;
canvas.height = hei... |
'use strict'
module.exports = mos => mos.useRemarkPlugin('foo')
|
/** @babel */
/** @jsx etch.dom */
import etch from 'etch'
import { Disposable } from 'atom'
import Message from './message'
export default class Panel extends Disposable {
constructor(latex) {
super()
this.latex = latex
this.showPanel = true
this.view = new PanelView(latex)
this.provider = atom... |
/* **********************************************
Begin prism-core.js
********************************************** */
/// <reference lib="WebWorker"/>
var _self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)... |
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 { unstable_composeClasses as composeClasses } from '@materia... |
"use strict";import"../../Series/ParetoSeries.js"; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventListeners = void 0;
var ClickMode_1 = require("../Enums/Modes/ClickMode");
var InteractivityDetect_1 = require("../Enums/InteractivityDetect");
var Constants_1 = require("./Constants");
var EventListeners = (function () {
func... |
// webpack.config.js
var webpack = require('webpack')
var NpmInstallPlugin = require('npm-install-webpack-plugin')
module.exports = {
// Load `demo/index.js`
entry: './demo',
// Generate `demo/bundle.js`
output: {
path: './demo',
filename: 'bundle.js'
},
module: {
loaders: [
{
... |
/**
* @fileoverview restrict values that can be used as Promise rejection reasons
* @author Teddy Katz
*/
"use strict";
const astUtils = require("../util/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//----------------------------------------------... |
var productsDirectives = angular.module('productsDirectives', ['productsServices']);
productsDirectives.directive('index', function() {
return {
restrict: 'E',
templateUrl: 'modules/products/views/index.html'
};
});
productsDirectives.directive('products', function(Products, $q) {
return {
restric... |
version https://git-lfs.github.com/spec/v1
oid sha256:42b5231eec147065eb22b5b26fa9c06bbbd1c45e9107e033fce79c2e475fd96c
size 5854
|
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
"use strict";
/* global describe,it,before*/
require("requirish")._(module);
var should = require("should");
var UAMethod = require("lib/address_space/ua_method").UAMethod;
var StatusCodes = require("lib/datamodel/opcua_status_code").StatusCodes;
var DataType = require("lib/datamodel/variant").DataType;
var AttributeId... |
(function($) {
var filters;
$.filters = filters = {
append: function(options) {
options = options || {};
var field_label = options['label'];
var field_name = options['name'];
var field_type = options['type'];
var field_value = options['value'];
var field_operator = option... |
/**
* Base class for InlineEditor. Instead to use an iframe, uses content editable element via ContentEditable Plugin.
*
* var editor = new Y.InlineEditor({
* content: 'Foo'
* });
* editor.render('#demo');
*
* @class InlineEditor
* @extends EditorBase
* @module editor
* @main editor
... |
module.exports = function EscapeStore(placeholderRoot) {
placeholderRoot = 'ESCAPED_' + placeholderRoot + '_CLEAN_CSS';
var placeholderToData = {};
var dataToPlaceholder = {};
var count = 0;
var nextPlaceholder = function() {
return '__' + placeholderRoot + (count++) + '__';
};
var pattern =... |
export {default} from "can-view-scope";
|
// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
/*
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
describe('The date format filter', function () {
'use strict';
var $filter,
moment;
beforeEach(function() {
module('retrospectApp');
inject(function(_$filter_) {
$filter = _$filter_;
});
});
it('Should fuzzify datestrings', function () {
var str... |
define([
'jquery',
'underscore',
'mustache',
'text!/templates/about.html',
'json!/configure.json',
'js/FooterView',
'mdown!/info/about.md'
],function($, _, Mustache, aboutTemplate, configure, FooterView, aboutMD){
var AboutView = Backbone.View.extend ({
el: $("#content"),
... |
/* */
(function(Buffer, process) {
module.exports = Readable;
var isArray = require("isarray");
var Buffer = require("buffer").Buffer;
Readable.ReadableState = ReadableState;
var EE = require("events").EventEmitter;
if (!EE.listenerCount)
EE.listenerCount = function(emitter, type) {
return emitte... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isHexadecimal;
var _assertString = _interopRequireDefault(require("./util/assertString"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var hexadecimal = /^[0-9A-F]+$/i... |
'use strict';
var React = require('react');
var LINE_WIDTH = 2;
function getColor(type) {
var blue500 = '#2196F3';
var red500 = '#F44336';
var lightGreen500 = '#8BC34A';
switch (type) {
case 0: // normal
return blue500;
case 1: // acc
return red500;
case 2: // scenery
return lig... |
module.exports = {
env: {
jasmine: true,
atomtest: true
}
};
|
/**
* Based on IMUFilter.cpp/IMUFilter.h by Aaron Berk, originally written in C++
*
* @section LICENSE
*
* Copyright (c) 2010 ARM Limited
*
* 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 Sof... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React, {useDebugValue, useEffect, useState} from 'react';
export function Component() {
const [count, setCou... |
var extend = require("xtend"),
EventEmitter = require("events").EventEmitter.prototype,
test = makeTest(),
currentEmitter
test.makeTest = makeTest
process.on("uncaughtException", reportError)
module.exports = test
function makeTest(parent) {
extend(test, {
nodes: [],
parent: parent
... |
(function() {
d3.simplify = function() {
var projection = d3.geo.albers();
function simplify(feature) {
if (feature.type !== "MultiPolygon") throw new Error("not yet supported");
var heap = minHeap(),
maxArea = 0,
triangle;
feature.coordinates = feature.coordinates.map(function(polyg... |
"use strict";
const path = require("path");
const execa = require("execa");
// Contains all relevant git config (user, commit.gpgSign, etc)
const TEMPLATE = path.resolve(__dirname, "template");
module.exports.gitInit = gitInit;
function gitInit(cwd, ...args) {
return execa("git", ["init", "--template", TEMPLATE, ... |
var assert = require('assert');
var _ = require('@sailshq/lodash');
var SchemaBuilder = require('../lib/waterline-schema/schema');
describe('Schema Builder :: ', function() {
describe('Validating Identity', function() {
it('should throw an error when a collection is missing an identity', function() {
var c... |
var fw = require('knockout/build/output/knockout-latest');
var _ = require('footwork-lodash');
var privateDataSymbol = require('../../misc/util').getSymbol('footwork');
var entityDescriptors = require('../entity-descriptors');
var viewModelBootstrap = require('../viewModel/viewModel-bootstrap');
var routerTools = req... |
const employees = [
'Alex',
'Kevin',
'Nige',
'Phil',
'Don',
'Ross',
'Vitaly'
],
days = [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday'
];
export function refreshData(iCount=employees.length, jCount=days... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... |
export async function usingEval() {
// eslint-disable-next-line no-eval
return { value: eval('100') }
}
export async function notUsingEval() {
return { value: 100 }
}
export function usingEvalSync() {
// eslint-disable-next-line no-eval
return { value: eval('100') }
}
|
define( [ "Ember", "utils/ember/ObjectBuffer" ], function( Ember, ObjectBuffer ) {
var get = Ember.get;
return Ember.Route.extend({
settings: Ember.inject.service(),
model: function() {
var settings = get( this, "settings.content" );
return ObjectBuffer.create({
content: settings.toJSON()
});
},... |
declare module 'hoist-non-react-statics' {
/*
S - source component statics
TP - target component props
SP - additional source component props
*/
declare module.exports: <TP, SP, S>(
target: React$ComponentType<TP>,
source: React$ComponentType<SP> & S,
blacklist?: { [key: $Keys<S>]: boolean... |
import Vue from 'vue';
import {
PopupManager
} from 'element-ui/src/utils/popup';
const PopperJS = Vue.prototype.$isServer ? function() {} : require('./popper');
const stop = e => e.stopPropagation();
/**
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
* @pa... |
define({
"_widgetLabel": "Потоковий сервіс",
"noStreamLayer": "Попередньо налаштовані опції потокового шару недоступні.",
"streamControls": "Елементи управління потоковим режимом",
"startStreaming": "Розпочати потоковий запис",
"stopStreaming": "Зупинити потоковий запис",
"clearObservation": "Очистити попер... |
version https://git-lfs.github.com/spec/v1
oid sha256:a14c206020151878bc794b019bfb76145048bef0007fe91f2532a6b339a64ab5
size 935
|
angular.module('dashboard.directives.ModelFieldReference', [
"dashboard.Config",
"dashboard.services.GeneralModel",
"ui.select"
])
.directive('modelFieldReferenceView', function($compile) {
return {
restrict: 'E',
template: '<b>{{ options.model }}</b>: {{ data[options.key] }}',
scope: {
optio... |
Clazz.declarePackage ("J.util");
Clazz.load (null, "J.util.Eigen", ["JU.V3"], function () {
c$ = Clazz.decorateAsClass (function () {
this.n = 3;
this.d = null;
this.e = null;
this.V = null;
Clazz.instantialize (this, arguments);
}, J.util, "Eigen");
Clazz.makeConstructor (c$,
function () {
});
$_M(c$, "set",
functio... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
//>>built
define("dojox/editor/plugins/nls/eu/TextColor",{setButtonText:"Ezarri",cancelButtonText:"Utzi"}); |
var config = require('../package');
var des = require('./des');
var appKey = config.appKey;
var sysId = config.sysId;
exports.info = function() {
var random = Math.floor(Math.random() * 10000);
var timestamp = Math.round(Date.now() / 1000);
var data = 'random' + random + 'timestamp' + timestamp;
var key = (sysId ... |
function validateForm(formData, jqForm, options) {
// formData is an array of objects representing the name and value of each field
// that will be sent to the server; it takes the following form:
//
// [
// { name: username, value: valueOfUsernameInput },
// ... |
import Helper, { states } from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Has Many | Many to Many | association #create', function(hooks) {
hooks.beforeEach(function() {
this.helper = new Helper();
});
/*
The model can create a has-many association, for all states
*... |
var Migroose = require('migroose');
var async = require('async');
var Room = require('./../app/models/room');
var migration = new Migroose.Migration('1421181064775-add-room-slugs');
migration.load({
rooms: {
collection: 'rooms',
query: {
slug: {$exists: false }
}
}
});
migr... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v20.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var turnOrder = require('./turn-order-5293b0d0.js');
var transport = require('./transport-6284017b.js');
var base = require('./base-3237f024.js');
var master = require('./master-5c931fba.js... |
'use strict';
angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormFields', '$uibModal',
function ($rootScope, FormFields, $uibModal) {
return {
templateUrl: 'modules/forms/admin/views/directiveViews/form/edit-form.client.view.html',
restrict: 'E',
transclu... |
var TypedObjects = (function () {
"use strict";
var TYPED_OBJECT = {}
function Storage(arrayBuffer, isOpaque) {
this.arrayBuffer = arrayBuffer;
this.opaque = isOpaque;
if (isOpaque)
// we pretend reference type size is 1 byte
this.opaqueBuffer = new Array(this.arrayBuffer.byteLength);
}
function setRe... |
'use strict';
/**
* @file base class. Contains methods specific to both
* processing new queries and queries in cache. Contains generic
* methods implemented by child classes.
*/
const {deepGet} = require('lodash-deep');
const {isType} = require('../utils');
module.exports = class Preprocessor {
constructor(s... |
$(function(){
var bs3Wysihtml5Templates = {
"emphasis": function(locale, options) {
var size = (options && options.size) ? ' btn-'+options.size : '';
return "<li>" +
"<div class='btn-group'>" +
"<a class='btn btn-" + size + " btn-default' data-wy... |
// This is modified from Mozilla Reflect.parse test suite (the file is located
// at js/src/tests/js1_8_5/extensions/reflect-parse.js in the source tree).
//
// Some notable changes:
// * Removed unsupported features (destructuring, let, comprehensions...).
// * Removed tests for E4X (ECMAScript for XML).
// * Re... |
angular
.module('theme.demos.ui_components', []); |
/* *
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import H from './Globals.js';
import './Utilities.js';
import './Chart.js';
import './Options.js';
import './Legend.js';
import './Point.js';
import './Series.js';
var addEvent = H.addEvent,
Chart = H.Chart,
crea... |
'use strict';
var Type = require('../../type');
function resolveJavascriptUndefined() {
return true;
}
function constructJavascriptUndefined() {
/*eslint-disable no-undefined*/
return undefined;
}
function representJavascriptUndefined() {
return '';
}
function isUndefined(object) {
retu... |
it("should handle the less loader (piped with raw loader) correctly", function() {
expect(
require("!raw-loader!less-loader!./less/stylesheet.less").default
).toContain(".less-rule-direct");
expect(
require("!raw-loader!less-loader!./less/stylesheet.less").default
).toContain(".less-rule-import1");
expect(
r... |
/**
* console object (fix)
*/
global.console = OBJECT({
init : function(inner, self) {
'use strict';
var
// log wrapper
logWrapper,
// log count
logCount = 0,
// log.
log;
self.log = log = function() {
var
// args
args = arguments,
// msg
msg,
// p
p;
msg = '';
... |
/**
* Created by Andrey Gayvoronsky on 13/04/16.
*/
import moment from 'moment';
moment.locale('ru');
import Pagination from 'rc-pagination/es/locale/ru_RU';
import DatePicker from '../date-picker/locale/ru_RU';
import TimePicker from '../time-picker/locale/ru_RU';
import Calendar from '../calendar/locale/ru_RU';
exp... |
/**
* Created by pepe on 3/12/16.
*/
(function(){
var searchFilter = {
options: { valueNames: ['name'] },
init: function() {
var userList = new List('people-list', this.options);
var noItems = $('<li id="no-items-found">No items found</li>');
userList.on('upd... |
Ext.define('Fiddle.ReportRecordsFilter', {
extend: 'Ext.util.Filter',
config: {
criteria: '',
field: '',
filterFn: function (record) {
var me = this;
return Ext.Array.contains(me.getCriteria(), record.get(me.getField()));
}
}
});
|
import Vue from 'vue';
import headerCi from '~/vue_shared/components/header_ci_component.vue';
describe('Header CI Component', () => {
let HeaderCi;
let vm;
let props;
beforeEach(() => {
HeaderCi = Vue.extend(headerCi);
props = {
status: {
group: 'failed',
icon: 'ci-status-faile... |
/* */
"format cjs";
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery', 'sammy'], factory);
} else {
(window.Sammy = window.Sammy || {}).NestedParams = factory(window.jQuery, window.Sammy);
}
}(function ($, Sammy) {
function parseValue(value) {
value = unescap... |
window.Vowels = {}
window.Vowels.isVowel = function ( theLetter ) {
if ( !theLetter ) {
return false;
} else if ( theLetter.length > 1 ) {
return false;
}
theLetter = theLetter.toUpperCase();
switch(theLetter) {
case "A":
case "E":
case "I":
case "... |
var utils = require("../utils.js");
var fs = require('fs');
var method = 'PUT';
var request_url = 'storage/file/' + 'sample1.xlsx';
var input_file = 'sample1.xlsx';
var input_path = getPath(__filename, input_file);
var buffer = fs.readFileSync(input_path);
UploadFileBinary(
method,
Sign(request_url),
buff... |
'use strict';
const fixtures = require('haraka-test-fixtures');
const dns = require('dns');
const _set_up = function (done) {
this.plugin = new fixtures.plugin('mail_from.is_resolvable');
this.plugin.register();
this.connection = fixtures.connection.createConnection();
this.connection.... |
'use strict';
var assert = require('assert');
var should = require('should');
var fs = require('fs');
var twitter = require('../index');
var noCache = new twitter('xxx', 'xxx', 'xxx', 'xxx', false);
var cache = new twitter('xxx', 'xxx', 'xxx', 'xxx', 3600);
//mockups
noCache.oa = {};
cache.oa = {};
noCache.oa.get = fu... |
import {rebindAll} from '@d3fc/d3fc-rebind';
import multiBase from '../multiBase';
export default () => {
let context = null;
let pixelRatio = 1;
const base = multiBase();
const multi = (data) => {
const mapping = base.mapping();
const series = base.series();
const xScale = ba... |
module.exports={A:{A:{"2":"H D G E A B fB"},B:{"2":"1 C p J L N I"},C:{"1":"0 2 5 6 7 8 9 u v w x y z BB CB DB","2":"1 dB FB F K H D G E A B C p J L N I O P Q R S T bB VB","194":"l m n","450":"3 U V W X Y Z a b d e f g h i j k","2242":"o M q r s t"},D:{"1":"0 2 5 6 7 8 9 z BB CB DB GB PB KB IB gB LB MB NB","2":"1 3 F K... |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
... |
import { useEffect } from 'react'
function MyApp({ Component, pageProps }) {
useEffect(() => {
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js').then(
function (registration) {
console.log(
... |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = ... |
//= require jquery
//= require refile
"use strict";
if(document.addEventListener) {
document.addEventListener("DOMContentLoaded", function() {
var form = document.querySelector("form#direct");
if(form) {
var input = document.querySelector("#post_document");
form.addEventListener("upload:start"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.