code stringlengths 2 1.05M |
|---|
/*!
* ui-grid - v4.10.1 - 2021-05-28
* Copyright (c) 2021 ; License: MIT
*/
(function () {
'use strict';
/**
* @ngdoc overview
* @name ui.grid.selection
* @description
*
* # ui.grid.selection
* This module provides row selection
*
* <div class="alert alert-success" role="alert"><strong... |
/*global define*/
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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
//
... |
/*!
* jQuery JavaScript Library v2.1.1 -deprecated,-event-alias,-css/hiddenVisibleSelectors,-effects/animatedSelector
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/l... |
import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
/**
* An html id attribute, necessary for accessibility
* @type {st... |
// BH adjusted to have only one sort method.
// BH 4/7/2017 1:49:45 PM fixing "instanceof Comparable"
// BH adding copyOf 7/12/2016 10:35:01 AM
Clazz.load(["java.util.AbstractList","$.RandomAccess"],"java.util.Arrays",["java.lang.ArrayIndexOutOfBoundsException","$.IllegalArgumentException","$.NullPointerException"],... |
import { ReactiveVar } from 'meteor/reactive-var';
import { Tracker } from 'meteor/tracker';
import { TabBar } from './TabBar';
export class RocketChatTabBar {
constructor() {
this.template = new ReactiveVar();
this.id = new ReactiveVar();
this.group = new ReactiveVar();
this.state = new ReactiveVar();
thi... |
if ( !window.frameElement && window.location.protocol !== 'file:' ) {
// If the page is not yet displayed as an iframe of the index page (navigation panel/working links),
// redirect to the index page (using the current URL without extension as the new fragment).
// If this URL itself has a fragment, append it with... |
/*
* 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.
*/
'... |
Clazz.declarePackage ("J.script");
Clazz.load (["J.thread.JmolThread"], "J.script.ScriptDelayThread", null, function () {
c$ = Clazz.decorateAsClass (function () {
this.millis = 0;
this.seconds = 0;
this.doPopPush = false;
this.isPauseDelay = false;
Clazz.instantialize (this, arguments);
}, J.script, "ScriptDelayThread... |
//jscs:disable maximumLineLength
var extraItems = {
npc_streetspirit_alchemical_goods: {
has_infopage: true,
name_single: 'Street Spirit - Alchemical Goods',
name_plural: 'Street Spirits - Alchemical Goods',
description: 'Fizzling and clinking gently as it bobs up and down, this street spirit (endorsed by all-... |
var _ = require('underscore')
var low = require('lowdb')
var utils = require('./utils')
var routes = {}
// GET /db
routes.db = function(req, res, next) {
res.jsonp(low.db)
}
// GET /:resource
// GET /:resource?q=
// GET /:resource?attr=&attr=
// GET /:parent/:parentId/:resource?attr=&attr=
// GET /*?*&_end=
// GET... |
'use strict';
var $ = require('jquery');
var App = require('../../app');
var Backbone = require('backbone');
var Marionette = require('backbone.marionette');
var NUSMods = require('../../nusmods');
var _ = require('underscore');
var selectResultTemplate = require('../templates/select_result.hbs');
var template = requi... |
/* */
define(['exports', 'core-js'], function (exports, _coreJs) {
'use strict';
exports.__esModule = true;
exports.json = json;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function json(body) {
... |
function fn() {
return <a.b.div id="id" />;
}
|
import Promise from "./promise";
// Wraps our calls to velocity.js so they always return a promise
// (there's a PR in velocity upstream to add native promise support --
// once that's ready we can eliminate a lot of this).
export function animate(view, props, opts) {
return new Promise(function(resolve) {
var e... |
define([
'client/controllers/services',
'backbone'
], function (ServicesController, Backbone) {
describe('Services Controller', function () {
var controller, model;
beforeEach(function () {
model = new Backbone.Model({
filter: '',
departmentFilter: '',
serviceGroupFilter: ... |
import Delta from 'quill-delta';
import DeltaOp from 'quill-delta/lib/op';
import Parchment from 'parchment';
import CodeBlock from '../formats/code';
import CursorBlot from '../blots/cursor';
import Block, { bubbleFormats } from '../blots/block';
import clone from 'clone';
import equal from 'deep-equal';
import extend... |
this.click = function(e) {
alert('Hello!')
}.bind(this)
this.click = function(a,b) { alert('World!') }.bind(this)
this.click = function(a) {alert('World!')
}.bind(this)
this.click = function(
a,
b) {
alert('World!')
}.bind(this)
this.click = function(
a,
b) {
alert('World!... |
var React = require('react-native');
var api = require('./webapi');
var self = this;
var {
View,
TextInput,
Text,
Image,
StyleSheet,
PixelRatio,
AlertIOS,
AsyncStorage,
TouchableOpacity,
TouchableHighlight
} = React;
//just do nothing
var noop = () => {};
var Login = React.createClass({
getDef... |
version https://git-lfs.github.com/spec/v1
oid sha256:4f1e15b0480d23bc6ef0094219c8d0c92ca712107e58ce44b1307ba2b46b78b0
size 13712
|
define(function () {
function F(){}
/**
* Do fn.apply on a constructor.
*/
function ctorApply(ctor, args) {
F.prototype = ctor.prototype;
var instance = new F();
ctor.apply(instance, args);
return instance;
}
return ctorApply;
});
|
NEJ.define([
'util/dispatcher/dispatcher?v=123'
],function(){
var a = 'aaaaa';
console.log(a);
}); |
import Backburner from '../lib/backburner';
module('deferOnce');
test('when passed a function', function() {
expect(1);
var bb = new Backburner(['one']);
var functionWasCalled = false;
bb.run(function() {
bb.deferOnce('one', function() {
functionWasCalled = true;
});
});
ok(functionWasCal... |
/**
@description Check if an object is a Deferred.
@function can.isDeferred
@parent can.util
@signature `can.isDeferred(subject)`
@param {*} subject The object to check.
@return {Boolean} Whether __subject__ is a Deferred.
@body
`can.isDeferred` returns if an object is an instance of [can.Deferred].
## Example
Conver... |
// Get Programming with JavaScript
// Listing 20.03
// A module for loading JS Bin data
(function () {
"use strict";
function loadData (bin, callback) {
var xhr = new XMLHttpRequest();
var url = "http://output.jsbin.com/" + bin + ".json";
xhr.addEventListener("load", function () {
var data = ... |
define({
"_widgetLabel": "Vodič za reakciju u hitnom slučaju",
"ergMainPageTitle": "Zasnovan na vodiču za reakciju u hitnom slučaju 2016",
"coordInputLabelStart": "Lokacija prolivanja",
"coordInputLabel": "Lokacija prolivanja",
"addPointToolTip": "Dodaj lokaciju prolivanja",
"drawPointToolTip": "Kliknite da... |
version https://git-lfs.github.com/spec/v1
oid sha256:030a547508bd528d7a961986a7a1a199f76fe7f7dc734ddfe0989915501bad56
size 3243
|
/**
* 通过node在电脑上创建一个HTTP的服务器
* 1 HTTP 只能接收HTTP请求
* 2 服务器 能在特定IP特定端口上监听客户端的连接
**/
var fs = require('fs');
// https://www.npmjs.com/package/mime
//https://github.com/zhufengnodejs/2016jsnode
var mime = require('mime');
var http = require('http');//核心模块,直接加载即可
//创建一个HTTP服务器,并在客户端连接到来的时候执行回应的回调函数
// request 代表客户端的请求,可以... |
'use strict';
const castFilterPath = require('../query/castFilterPath');
const cleanPositionalOperators = require('../schema/cleanPositionalOperators');
const getPath = require('../schema/getPath');
const modifiedPaths = require('./modifiedPaths');
module.exports = function castArrayFilters(query) {
const arrayFilt... |
/**
* $Id: editor_plugin_src.js 6572 2009-02-25 02:46:35Z Garbin $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.Save', {
init : function(ed, url) {
var t = this;
... |
var fs = require('fs');
var nomnom = require('nomnom');
var Compiler = require('angular-gettext-tools').Compiler;
function main(inputs) {
var compiler = new Compiler({format: 'json'});
var contents = [];
inputs.forEach(function(input) {
// ignore un existing files
fs.exists(input, function(exists) {
... |
/**
* $Id: editor_template_src.js 6566 2009-02-24 10:44:41Z Garbin $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.ut... |
//require('./common');
require("./lib/digest.js");
exports["md5"] = function(test) {
test.assert
};
var files = ["smalltext", "dictionary", "cat.jpg", "oranga_thumb.jpg"];
files.forEach(function (file) {
var disc_filename = path.join(settings.default_host.root, file);
var fileText = fs.readFileSync(disc_fil... |
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
export { SpecialCasedStyles as ɵangular_packages_animations_browser_browser_a } from './src/render/special_cased_styles';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2V... |
/**
* @fileoverview Rule to flag use of an empty block statement
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require(".... |
module.exports = function allowCrossDomain (req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,POST');
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
next();
};
|
angular.module( 'ngbps.shopGateway.checkout', [
'ui.router'
])
.config(function config( $stateProvider ) {
$stateProvider.state( 'checkout', {
url: '/checkout',
views: {
"main": {
controller: 'CheckoutCtrl',
templateUrl: 'shopGateway/checkout.tpl.html'
}
}
});
})
.contr... |
Lawnchair.adapter('webkit-sqlite', (function () {
// private methods
var fail = function (e, i) { console.log('error in sqlite adaptor!', e, i) }
, now = function () { return new Date() } // FIXME need to use better date fn
// not entirely sure if this is needed...
if (!Function.prototype.bind) {
... |
Ink.createExt('Ghink', 1, ['Ink.Dom.Browser_1'], function( Browser ) {
var Ghink = function() {
this.init();
};
Ghink.prototype = {
init: function() {
// Fadein all the "fadein" classes
var fades = document.getElementsByClassName("fadein");
for (var i =... |
'use strict'
const ipcMain = require('electron').ipcMain
const webContents = require('electron').webContents
// Doesn't exist in early initialization.
let webViewManager = null
const supportedWebViewEvents = [
'load-commit',
'did-attach',
'did-finish-load',
'did-fail-load',
'did-frame-finish-load',
'did-... |
// Copyright (c) 2020 Uber Technologies, Inc.
//
// 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... |
var flow = require('../index').flow;
flow('mainFlow')(
function step1() {
console.log(this.stepName);
this.next();
},
flow('subFlow')(
function subStep1() {
console.log(this.stepName);
this.next();
},
function subStep2() {
console.log(this.stepName);
this... |
version https://git-lfs.github.com/spec/v1
oid sha256:641d756dd06b966993480a1da7a48a74f020ebbe298f023619185c531260b56b
size 53843
|
/**
* @fileoverview Responsible for loading ignore config files and managing ignore patterns
* @author Jonathan Rajavuori
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------... |
/** @babel */
import {CompositeDisposable} from 'atom'
let reporter
function getReporter () {
if (!reporter) {
const Reporter = require('./reporter')
reporter = new Reporter()
}
return reporter
}
export default {
activate() {
this.subscriptions = new CompositeDisposable()
if (!atom.config.g... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _base = _interopRequireDefault(require("./base"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function last(stack) {
return stack[stack.length - 1];
}
... |
import Ember from 'ember';
export default Ember.Route.extend({
title: function(tokens) {
var base = 'My Blog';
var hasTokens = tokens && tokens.length;
return hasTokens ? tokens.reverse().join(' - ') + ' - ' + base : base;
}
});
|
/**
* Copyright 2015 Google Inc. 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
*
* Unless required by applic... |
module.exports = {
'desc' : 'Mark A Pending Submission As Complete',
'examples' : [{ cmd : 'fhc appforms environments submissions complete --environment=<Environment Id> --id=<Submission Id> ', desc : 'Mark A Pending Submission As Complete'}],
'demand' : ['environment', 'id'],
'alias' : {},
'describe' : {
... |
/**
* 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.
*
* @emails oncall+relay
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
const {
getM... |
// micro-module to test functionality
(function() {
'use strict';
var hello = function () {
return "hello";
}
module.exports = hello;
}()); // benalman.com/news/2010/11/immediately-invoked-function-expression
|
it("should not evaluate __dirname or __filename when node option is false", function(done) {
if (typeof __dirname !== "undefined") {
done.fail();
}
if (typeof __filename !== "undefined") {
done.fail();
}
done();
});
|
define (
[
'kbwidget',
'bootstrap',
'jquery',
'kbaseAuthenticatedWidget',
'kbaseTabs',
'jquery-dataTables',
'jquery-dataTables-bootstrap'
], function(
KBWidget,
bootstrap,
$,
kbaseAuthenticatedWidget,
kbaseTabs,
jquery_dataTables,
bootstrap
) {
return KBWidget({
name: "Fba... |
class CountUp {
constructor(startVal, endVal, decimals, duration, options = {}, page = getCurrentPages()[getCurrentPages().length - 1]) {
Object.assign(this, {
page,
startVal,
endVal,
decimals,
duration,
options,
})
this... |
/*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
define([
'aeris/util',
'mocks/mockfactory',
'aeris/model',
'aeris/promise',
'aeris/errors/apiresponseerror'
], function(_, MockFactory, Model, Promise, ApiResponseError) {
/**
* @class MockAerisApiModel
* @extends aeris.Model
*/
var MockAerisApiModel = MockFactory({
methods: [
'fetch'
... |
export type User = {
name: string;
location: Location;
};
export type Location = {
address: string;
}
//export type address = string;
export default function demo (input: User): string {
return input.location.address;
} |
angular.module('webui.services.rpc.helpers', [
'webui.services.deps', 'webui.services.rpc', 'webui.services.alerts'
])
.factory('$rpchelpers', ['$_', '$rpc', '$alerts', function(_, rpc, alerts) {
var miscellaneous = {version: '', enabledFeatures: []};
rpc.once('getVersion', [], function(data) { miscellaneous = da... |
/**
* Copyright 2014 Telerik AD
*
* 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
*
* Unless required by applicable law or agreed to ... |
/*
* Translated default messages for bootstrap-select.
* Locale: DE (German, deutsch)
* Region: DE (Germany, Deutschland)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Bitte wählen...',
noneResultsText: 'Keine Ergebnisse für {0}',
countSelectedText: function (numSelected, numTot... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.charting.themes.Tufte"]){dojo._hasResource["dojox.charting.themes.Tufte"]=true;dojo.provide("d... |
/**
* @class Generic map of IDs to items - can generate own IDs or accept given IDs. IDs should be strings in order to not
* clash with internally generated IDs, which are numbers.
* @private
*/
var SceneJS_Map = function(items, _baseId) {
/**
* @property Items in this map
*/
this.items = items |... |
// Load global config and gulp
import config from '../foley.json'
import gulp from 'gulp'
// Specific task modules
import { argv as argv } from 'yargs'
import debug from 'gulp-debug'
import gulpif from 'gulp-if'
import browserSync from 'browser-sync'
import imagemin from 'gulp-imagemin'
import pngquant from 'imagemin-... |
goog.provide('ol.dom');
goog.require('goog.asserts');
goog.require('goog.userAgent');
goog.require('goog.vec.Mat4');
goog.require('ol');
/**
* Create an html canvas element and returns its 2d context.
* @param {number=} opt_width Canvas width.
* @param {number=} opt_height Canvas height.
* @return {CanvasRenderi... |
/**
* Rangy, a cross-browser JavaScript range and selection library
* https://github.com/timdown/rangy
*
* Copyright 2015, Tim Down
* Licensed under the MIT license.
* Version: 1.3.0-alpha.20150122
* Build date: 22 January 2015
*/
(function(factory, root) {
if (typeof define == "function" && define.amd) {
... |
'use strict'
const npa = require('npm-package-arg')
const semver = require('semver')
module.exports = pickManifest
function pickManifest (packument, wanted, opts) {
opts = opts || {}
const spec = npa.resolve(packument.name, wanted)
const type = spec.type
if (type === 'version' || type === 'range') {
wante... |
var fs = require('fs');
module.exports = function(grunt) {
// Bower filenames:
bowerRcFilename = '.bowerrc';
bowerRcFilenameDefault = 'component.json';
// Define root paths to 3party assets and this app's custom assets:
var gruntBowerDir = './grunt-bower-lib';
var customAssetsDir = './assets';
// Order... |
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var EditorInsertComment = React.createClass({
displayName: 'EditorInsertComment',
mixins: [PureRenderMixin],
render: function render() {
return React.create... |
/*!
* jQuery JavaScript Library v2.0.3 -event-alias,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-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/licen... |
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||... |
var Blob = require('blob');
if (global.ArrayBuffer) {
require('./arraybuffer.js');
}
if (Blob) {
require('./blob.js');
}
require('./base64_object.js');
// General browser only tests
var parser = require('../../');
var encode = parser.encodePacket;
var decode = parser.decodePacket;
var encPayload = parser.encode... |
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import CodeExample from '../_common/CodeExample';
import PayloadStates from '../../constants/PayloadStates';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
import { Card } from 'mater... |
/**
* Legend-related functionality.
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Component } from "../core/Component... |
var Code = require('code'),
Lab = require('lab'),
lab = exports.lab = Lab.script(),
describe = lab.experiment,
beforeEach = lab.beforeEach,
afterEach = lab.afterEach,
before = lab.before,
after = lab.after,
it = lab.test,
expect = Code.expect,
nock = require("nock"),
sinon = require("sinon"),
ca... |
angular.module('umbraco.resources')
.factory('nuPickers.Shared.RelationMapping.RelationMappingResource',
['$http', 'editorState',
function ($http, editorState) {
return {
getRelatedIds: function (model) {
return $http({
method... |
$(function() {
$('form').submit(function() {
if (validateUsername() && validateUserPassword()) {
$.post('auth.php',$('form').serialize(),function(response) {
if (response == 'true') {
showSuccess('You will be redirected in a moment');
} else {
showError(response);
}
});
}
function va... |
/**
*Base.js 提供统一的接口,与具体的功能无关
*/
/**
* 全局变量对象
*/
var MECHAT = {};
/**
* 定义命名空间的变量
*/
MECHAT.namespace = function(str) {
var arr = str.split("."),
o = MECHAT;
for (i = (arr[0] == "MECHAT") ? 1 : 0; i < arr.length; i++) {
o[arr[i]] = o[arr[i]] || {};
o = o[arr[i]];
}
};
/**
* Do... |
// Copyright 2011 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... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
define({
"showLegend": "Hiện chú giải",
"controlPopupMenuTitle": "Chọn tác vụ sẽ được hiển thị trên menu ngữ cảnh lớp.",
"zoomto": "Phóng tới",
"transparency": "Độ trong suốt",
"controlPopup": "Bật / Tắt Cửa sổ pop-up",
"moveUpAndDown": "Di chuyển lên / Di chuyển xuống",
"attributeTable": "Mở Bảng Thuộc t... |
var moose = require("../../../../lib"),
mysql = moose.adapters.mysql,
types = mysql.types;
exports.up = function() {
moose.createTable("employee", function(table) {
table.column("id", types.INT({allowNull : false, autoIncrement : true}));
table.column("firstname", types.VARCHAR({len... |
var util = require('util'),
JavaScript = require('../assets/JavaScript'),
uglifyJs = JavaScript.uglifyJs,
uglifyAst = JavaScript.uglifyAst,
extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
Relation = require('./Relation');
function JavaScriptGetStaticUrl(config) {
R... |
/*
* 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.
*/
'... |
//! moment.js locale configuration
//! locale : Swedish [sv]
//! author : Jens Alm : https://github.com/ulmus
import moment from '../moment';
export default moment.defineLocale('sv', {
months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
monthsSh... |
var urls = require("../../urls");
var url = require("url");
var path = require("path");
var fs = require("fs");
var Immutable = require("immutable");
const PLUGIN_NAME = "Connections";
/**
* Use heart-beated data to decorate clients
* @param clients
* @param clientsInfo
* @returns {*}
*/
f... |
// import * as actions from '../examples/actions';
// import Component from '../components/component.react';
// import DocumentTitle from 'react-document-title';
// import Editable from '../components/editable.react';
// import React from 'react';
// import immutable from 'immutable';
// import {msg} from '../intl/stor... |
var net = require('net');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var shared = require('../shared/tcp');
// Client Transport's data handling function, bound to the TcpTransport
// instance when attached to the data event handler
function onDataCallback(message) {
if(message &... |
/*global defineSuite*/
defineSuite([
'Core/GeometryInstance',
'Core/BoundingSphere',
'Core/Cartesian3',
'Core/ComponentDatatype',
'Core/Geometry',
'Core/GeometryAttribute',
'Core/GeometryInstanceAttribute',
'Core/Matrix4',
'Core/Primitive... |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
http://www.cocos2d-x.org
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 w... |
'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will
//... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.9.4.1_A1_T3;
* @section: 15.9.4.1;
* @assertion: The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes;
* @description: Checking DontEnum at... |
require([
'gridx/Grid',
'gridx/core/model/cache/Async',
'gridx/modules/RowLock',
'gridx/modules/RowHeader',
// 'gridx/tests/support/data/MusicData',
'gridx/tests/support/data/TestData',
'gridx/tests/support/stores/ItemFileWriteStore',
// 'gridx/tests/support/stores/JsonRest',
'gridx/tests/support/TestPane'... |
import Ember from 'ember';
import GoogleArrayMixin from 'ember-google-map/mixins/google-array';
import helpers from 'ember-google-map/core/helpers';
var computed = Ember.computed;
/**
* @class GoogleMapPolylinePathController
* @extends Ember.ArrayController
*/
export default Ember.ArrayController.extend(GoogleArra... |
version https://git-lfs.github.com/spec/v1
oid sha256:6a3349ea92d42c45ab6b3c4609eb49e26176ac1643c00933213096dfc4086ebd
size 856
|
/**
@license
* @pnp/odata v1.1.5-5 - pnp - provides shared odata functionality and base classes
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https:github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import {... |
const globalSetup = require("../global-setup");
const app = globalSetup.app;
describe("Clock module", function () {
this.timeout(20000);
describe("with default 24hr clock config", function() {
before(function() {
// Set config sample for use in test
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/... |
/*
* Coroutine with initial bound function.
*/
/*===
mythread starting
object mythis
["FOO","BAR","foo"]
1
2
3
undefined
===*/
function test() {
function mythread(a,b,c) {
print('mythread starting');
print(typeof this, this);
print(JSON.stringify([a,b,c]));
Duktape.Thread.yield(... |
QUnit.test( "Binding", function( assert ){
assert.expect(10);
Q.innerHTML = '<div class="slider"></div>';
var sliders = Q.querySelectorAll('.slider'),
slider = sliders[0];
noUiSlider.create(slider, {
start: [ 2, 5 ],
range: {
'min': 0,
'max': 10
}
});
var count = 0;
// Fires on... |
module.exports = 'okok'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.