code stringlengths 2 1.05M |
|---|
/**
* 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.
*
*
* @format
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var React = _interopRequireWildcard(require(... |
// Platform: android
// commit f50d20a87431c79a54572263729461883f611a53
// File generated at :: Tue Feb 26 2013 13:37:51 GMT-0800 (PST)
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
... |
/* @flow */
"use strict";
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"];
var _index = require("./index");
var _index2 = _interopRequireDefault(_index);
_index2["default"]("AssignmentPattern", {
visitor: ["left", "right"],
aliases: ["Pattern", "LVal"],
fields... |
// Copyright 2006 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
//
// Unless requ... |
YUI.add('anim-node-plugin', function(Y) {
/**
* Binds an Anim instance to a Node instance
* @module anim
* @namespace plugin
* @submodule anim-node-plugin
*/
var NodeFX = function(config) {
config = (config) ? Y.merge(config) : {};
config.node = config.host;
NodeFX.superclass.constructor.apply(this,... |
Package.describe({
summary: "Meteor's client-side datastore: a port of MongoDB to Javascript",
version: '1.0.9'
});
Package.onUse(function (api) {
api.export('LocalCollection');
api.export('Minimongo');
api.export('MinimongoTest', { testOnly: true });
api.use(['underscore', 'ejson', 'id-map', 'ordered-dict... |
/**
* Magellan module.
* @module foundation.magellan
*/
!function(Foundation, $) {
'use strict';
/**
* Creates a new instance of Magellan.
* @class
* @fires Magellan#init
* @param {Object} element - jQuery object to add the trigger to.
* @param {Object} options - Overrides to the default plugin s... |
/*
Language: Rust
Author: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
*/
function(hljs) {
var TITLE = {
className: 'title',
begin: hljs.UNDERSCORE_IDENT_RE
};
var QUOTE_STRING = {
className: 'string',
begin: '"', end: '"',
contains: [hljs.BACKSLASH_ESCAPE],
relevance: 0
};
var N... |
(function () {
var image = (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var hasDimensions = function (editor) {
return editor.settings.image_dimensions === false ? false : true;
};
var hasAdvTab = function (editor) {
return editor.settings.image_advt... |
'use strict';
var StreamReader = function() {
this._queue = [];
this._queueSize = 0;
this._cursor = 0;
};
StreamReader.prototype.put = function(buffer) {
if (!buffer || buffer.length === 0) return;
if (!buffer.copy) buffer = new Buffer(buffer);
this._queue.push(buffer);
this._queueSize += buffer.... |
describe('Google Calendar plugin', function() {
var options;
var currentRequest;
beforeEach(function() {
affix('#cal');
options = {
defaultView: 'month',
defaultDate: '2014-05-01',
events: 'http://www.google.com/calendar/feeds/notarealfeed/public/basic'
};
// workaround. wanted to use mockedAja... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v13.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
import ElOption from '../select/src/option';
/* istanbul ignore next */
ElOption.install = function(Vue) {
Vue.component(ElOption.name, ElOption);
};
export default ElOption;
|
!function(){var a="undefined"!=typeof window?this.numeral:require("../numeral");a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(); |
Ext.define("Ext.theme.neptune.Titlebar",{override:"Ext.TitleBar",config:{defaultButtonUI:"alt"}});Ext.define("Ext.theme.neptune.tip.ToolTip",{override:"Ext.tip.ToolTip",bodyBorder:false});Ext.namespace("Ext.theme.is").Neptune=true;Ext.theme.name="Neptune";Ext.theme.getDocCls=function(){return Ext.platformTags.desktop?"... |
/**
* jsPDF AutoTable plugin v2.0.32
* Copyright (c) 2014 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*
* @preserve
*/
(function (jsPDF) {
'use strict';
jsPDF = 'default' in jsPDF ? jsPDF['default']... |
(function () {
'use strict';
module.exports = function () {
// You can use normal require here, cucumber is NOT run in a Meteor context (by design)
var url = require('url');
var path = require('path');
this.Given(/^I am a new user$/, function () {
// no callbacks! DDP has been promisified ... |
(function($angular) {
"use strict";
// The truest wisdom is a resolute determination...
var module = $angular.module('ngDroplet', []).directive('droplet', ['$rootScope', '$window', '$timeout', '$q',
function DropletDirective($rootScope, $window, $timeout, $q) {
return {
/**
... |
import "../interpolate/ease";
import "../selection/each";
import "transition";
d3_transitionPrototype.ease = function(value) {
var id = this.id, ns = this.namespace;
if (arguments.length < 1) return this.node()[ns][id].ease;
if (typeof value !== "function") value = d3.ease.apply(d3, arguments);
return d3_selec... |
/**
* Disallows an extra comma following the final element of an array or object literal.
*
* Type: `Boolean`
*
* Value: `true`
*
* JSHint: [`es3`](http://jshint.com/docs/options/#es3)
*
* #### Example
*
* ```js
* "disallowTrailingComma": true
* ```
*
* ##### Valid
*
* ```js
* var foo = [1, 2, 3];
* ... |
var _ref;
console.log((_ref = [123], x = _ref[0], _ref));
|
'use strict';
/* jshint -W030 */
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/support')
, dialect = Support.getTestDialect()
, Promise = require(__dirname + '/../../lib/promise')
, Transaction = require(__dirname + '/../../lib/transaction')
, sinon = require('sinon')
... |
//jshint node:true, eqnull:true
/*global describe, it, before*/
'use strict';
var esformatter = require('esformatter');
var fs = require('fs');
var path = require('path');
var plugin = require('../');
var disparity = require('disparity');
var basePath = path.join(__dirname, 'compare');
esformatter.register(plugin);
... |
'use strict';
module.exports = {
set: function (v) {
this.setProperty('-webkit-line-align', v);
},
get: function () {
return this.getPropertyValue('-webkit-line-align');
},
enumerable: true
};
|
hljs.registerLanguage("dockerfile",function(e){return{aliases:["docker"],cI:!0,k:"from maintainer expose env arg user onbuild stopsignal",c:[e.HCM,e.ASM,e.QSM,e.NM,{bK:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{e:/[^\\]$/,sL:"bash"}}],i:"</"}}); |
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
/*
Project: angular-gantt v1.2.13 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: https://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
!function(){"use strict";angular.module("gantt.resizeSensor",["gantt"]).directive("gant... |
CKEDITOR.plugins.setLang("autoembed","zh-cn",{embeddingInProgress:"正在尝试嵌入粘贴的 URL 里的媒体内容...",embeddingFailed:"此 URL 无法自动嵌入媒体内容。"}); |
/*
* ng-tasty
* https://github.com/Zizzamia/ng-tasty
* Version: 0.2.7 - 2014-09-08
* License: MIT
*/
angular.module("ngTasty", ["ngTasty.tpls", "ngTasty.filter","ngTasty.service","ngTasty.table"]);
angular.module("ngTasty.tpls", ["template/table/head.html","template/table/pagination.html"]);
/**
* @ngdoc
* @na... |
angular.module('templates-files_object_default_options', ['../test/fixtures/one.tpl.html']);
angular.module("../test/fixtures/one.tpl.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("../test/fixtures/one.tpl.html",
"1 2 3");
}]);
|
/*
* JCF directive for basic AngularJS 1.x integration
*/
angular.module("jcf",[]).directive("jcf",function(){return{restrict:"A",link:function(c,n,e){jcf.replace(n),c.$watch(e.ngModel,function(c){jcf.refresh(n)}),c.$on("$destroy",function(){jcf.destroy(n)})}}}); |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
chalk = require('chalk'),
glob = require('glob'),
fs = require('fs'),
path = require('path');
/**
* Get files by glob patterns
*/
var getGlobbedPaths = function (globPatterns, excludes) {
// URL paths regex
var urlRegex = new RegEx... |
import settings from "./_settings";
export default () => {
return settings;
} |
/**
* Japanese translation
* @author Tomoaki Yoshida <info@yoshida-studio.jp>
* @author Naoki Sawada <hypweb@gmail.com>
* @version 2016-03-25
*/
if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.jp = {
translator : 'Tomoaki Yoshida <info@yoshida-studio... |
typeof module !== "undefined"
|
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* German language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of lang... |
// Copyright 2006 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
//
// Unless requ... |
//! moment.js locale configuration
//! locale : Estonian [et]
//! author : Henry Kehlmann : https://github.com/madhenry
//! improvements : Illimar Tambek : https://github.com/ragulka
import moment from '../moment';
function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = {
's' : [... |
/*
AnythingSlider v1.4.5
By Chris Coyier: http://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
based on work by Remy Sharp: http://jqueryfordesigners.com/
To use the navigationFormatter function, you must have a function that
accepts two paramaters, and returns a string of HTML... |
YUI.add('uploader-html5', function (Y, NAME) {
/**
* This module provides a UI for file selection and multiple file upload capability using
* HTML5 XMLHTTPRequest Level 2 as a transport engine.
* The supported features include: automatic upload queue management, upload progress
* tracking, dra... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
/**
* @author: Dennis Hernández
* @webSite: http://djhvscf.github.io/Blog
* @version: v1.0.0
*
* @update zhixin wen <wenzhixin2010@gmail.com>
*/
!function ($) {
'use strict';
$.extend($.fn.bootstrapTable.defaults, {
keyEvents: false
});
var BootstrapTable = $.fn.bootstrapTable.Construc... |
YUI.add('swf', function (Y, NAME) {
/**
* Embed a Flash applications in a standard manner and communicate with it
* via External Interface.
* @module swf
*/
var Event = Y.Event,
SWFDetect = Y.SWFDetect,
Lang = Y.Lang,
uA = Y.UA,
Node = Y.Node,
Escape = Y.Escape,
... |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
"use s... |
/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Layer/Grid.js
* @requires OpenLayers/Til... |
import authConfig from './common/constants/authConfig';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-auth', (baseConfig) => {
baseConfig.configure(authConfig);
});
aurelia.start().then(() => aurelia.setRoot('root'));
}... |
import {sqrt} from "../math.js";
const sqrt3 = sqrt(3);
export default {
draw(context, size) {
const y = -sqrt(size / (sqrt3 * 3));
context.moveTo(0, y * 2);
context.lineTo(-sqrt3 * y, -y);
context.lineTo(sqrt3 * y, -y);
context.closePath();
}
};
|
import * as d3 from 'd3';
import _ from 'lodash';
import { geoExtent, geoPointInPolygon } from '../geo/index';
import { modeSelect } from '../modes/index';
import { uiLasso } from '../ui/index';
export function behaviorLasso(context) {
var behavior = function(selection) {
var lasso;
function mo... |
var packageData = require('./package.json')
var userValidate = require('npm-user-validate')
var MockTransport = function (options) {
this.options = options || {}
this.sentMail = []
this.name = 'Mock'
this.version = packageData.version
}
function validate (addr) {
try {
var err = userValidate.email(addr)... |
import mod1970 from './mod1970';
var value=mod1970+1;
export default value;
|
iD.svg.Lines = function(projection) {
var highway_stack = {
motorway: 0,
motorway_link: 1,
trunk: 2,
trunk_link: 3,
primary: 4,
primary_link: 5,
secondary: 6,
tertiary: 7,
unclassified: 8,
residential: 9,
service: 10,
f... |
module.exports = {
xstream: {
run: '@cycle/run',
import: 'import xs from \'xstream\'',
stream: 'xs'
},
rxjs: {
run: '@cycle/rxjs-run',
import: 'import Rx from \'rxjs/Rx\'',
stream: 'Rx.Observable'
},
most: {
run: '@cycle/most-run',
import: 'import * as most from \'most\'',
... |
import fs from 'fs';
import del from 'del';
import shell from 'shelljs';
import gulp from 'gulp';
import git from 'gulp-git';
import paths from '../paths';
const version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
let cloneRepo = () => new Promise((resolve, reject) => {
git.clone('git@github.... |
const request = require('request');
const debug = require('debug')('NURSE_TRAIN');
const Orders = require('../models/order.model');
const Patient = require('../models/patients.model');
const Hospital = require('../models/hospital.model');
const wechatPatient = require('./wechat-patient.controller');
// 环境变量
co... |
'use strict';
var mongoose = require('mongoose');
mongoose.Promise = Promise;
var logger = require('./logger');
var mongoURI = require('./config').get('database.mongoURI');
mongoose.connect(mongoURI);
var db = mongoose.connection;
db.on('error', logger.error.bind(logger, 'connection error'));
module.exports = {
... |
import setPath from './setPath'
import ipc from 'ipc'
export default function requestPathDialog () {
return (dispatch, getState) => {
ipc.once('pathDialogResponse', response => {
if (response.error) {
console.log('pathDialogResponse', response)
} else {
dispatch(setPath(response.path... |
var ffi = require('ffi'),
ref = require('ref'),
RefArray = require('ref-array'),
Struct = require('ref-struct'),
Union = require('ref-union'),
_library = require('./../../');
loadDependentSymbols();
_library._preload['zif_fsockopen'] = ['zval', 'pointer', 'zval', function () {
_library.zif_fso... |
import mod521 from './mod521';
var value=mod521+1;
export default value;
|
/**
* This is a test for packaging the components as separate modules
*/
'use strict';
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: __dirname,
debug: true,
devtool: '#source-map',
// NOTE: when ru... |
const { green, red } = require('chalk')
const { EOL } = require('os')
module.exports = class Result {
constructor (matcher, error) {
this.matcher = matcher
this.error = error
}
toString () {
const status = this.error ? '✗' : '✓'
const color = this.error ? red : green
const item = color(`${s... |
module.exports = {
/**
* The main entry point for the Dexter module
*
* @param {AppStep} step Accessor for the configuration for the step using this module. Use step.input('{key}') to retrieve input data.
* @param {AppData} dexter Container for all data used in this workflow.
*/
run: f... |
var _ = require('lodash');
var async = require('async');
var bignum = require('bignumber.js');
var radr = require('radr-lib');
var transactions = require('./transactions');
var validator = require('./../lib/schema-validat... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BSONSymbol = void 0;
/**
* A class representation of the BSON Symbol type.
* @public
*/
var BSONSymbol = /** @class */ (function () {
/**
* @param value - the string representing the symbol.
*/
function BSONSymbol(... |
import 'babel-polyfill';
import {pre} from './tool/run';
import Koa from 'koa'
import Cheerio from 'cheerio'
import Router from 'koa-router';
import router from './router';
import config from '../config.json';
import favicon from 'koa-favicon';
import ResType from './router/type/ResType';
import cors from 'kcors';
impo... |
const MongoClient = require('mongodb').MongoClient;
const pino = require('pino')();
const config = require('../config');
module.exports = {
client: null,
collection: name => module.exports.client.collection(name)
};
MongoClient.connect(config.mongodb).then(function (client) {
pino.info('MongoDB connecte... |
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './Notification.css';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { showNotification } from 'actions/componentActions.js';
const... |
//
// Handles the intent to take or ignore a suggestion in training mode
//
'use strict';
const playgame = require('../PlayGame');
const bjUtils = require('../BlackjackUtils');
module.exports = {
canHandle: function(handlerInput) {
const request = handlerInput.requestEnvelope.request;
const attributes = ha... |
(function() {
'use strict';
// Development
/*$(document).on('click', 'a.clang', function(e) {
e.preventDefault();
var code = $(this).attr('data-lang');
if (!code) return;
$.ajax({
type: "POST",
url: config.ajax_url+'/change_language',
data... |
require('../../dist/litespeed');
document.body.innerHTML = '<input type="text" id="test1" data-ls-bind="{{service.title}}" />' +
'<input type="text" id="test2" data-ls-bind="{{service.author.name}}" />';
const element1 = document.getElementById('test1');
const element2 = document.getElementById('test2');
const v... |
// (The MIT License)
//
// Copyright (c) 2012 Richard S Allinson <rsa@mountainmansoftware.com>
//
// 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, includ... |
const config = require('../config');
const gulp = require('gulp');
const svgstore = require('gulp-svgstore');
const svgmin = require('gulp-svgmin');
const path = require('path');
const size = require('gulp-size');
const rename = require('gulp-rename');
gulp.task('svg', function () {
return gulp
... |
/**
* Messages model methods file
*/
// module dependencies
var Q = require('q');
var settings = require('../../settings');
var socketsLib = require('../../socket');
var commonUtils = require('../../utils/common');
/**
* Messages model static methods
*/
exports.static = {
/**
* Create message instance with ... |
/*jslint browser: true*/
/*global Tangram */
var picking = false;
map = (function () {
// (function () {
// 'use strict';
// defaults
var map_start_location = [0, 0, 2]; // world
var style_file = 'schools.yaml';
/*** URL parsing ***/
// leaflet-style URL hash pattern:
// #[zoom],[lat],[ln... |
const dao = require('./dao/Users');
const log = require('./log');
const Users = {};
Users.getOrCreateUser = data => {
return new Promise((resolve, reject) => {
dao.getUserAETs(data.email, (err, user) => {
if (err) {
reject(err);
} else if (user) {
lo... |
/**
* The main AWS namespace
*/
var AWS = { util: require('./util') };
/**
* @api private
* @!macro [new] nobrowser
* @note This feature is not supported in the browser environment of the SDK.
*/
var _hidden = {}; _hidden.toString(); // hack to parse macro
module.exports = AWS;
AWS.util.update(AWS, {
/**
... |
/*
Remove empty variable declarations created by CoffeeScript
Example:
```coffeescript
a = 1
# Translates to:
# var a;
# a = 1;
```
```javascript
var a = 1;
```
This transform finds all assignments and replaces them with variable declarators.
*/
module.exports = function(file, api) {
const j = api.jscodeshift;
... |
'use strict';
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const GulpSSH = require('gulp-ssh');
const config = require('config');
gulp.task('lint', () => {
return gulp.src(['**/*.js', '!node_modules/**'])
.pipe(eslint({ useEslintrc: true }))
.pipe(eslint.format());
});
let sshConfig... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import LoginPage from './LoginPage.js';
storiesOf('Research/LoginPage', module) //eslint-disable-line no-undef
.add('normal', () => {
return <LoginPage />;
}); |
/* global jsio, assert, describe, beforeEach, it,
Model, ModelPool
*/
jsio('import DevkitHelper.model as Model');
jsio('import DevkitHelper.modelpool as ModelPool');
var pool,
setup = function () {
'use strict';
pool = new ModelPool({
ctor: Model,
initCount: 2
});
};
describe('ModelPool... |
'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('home', {
url: '/',
temp... |
'use strict';
const chai = require('chai');
const expect = chai.expect;
const Support = require(__dirname + '/support');
const InstanceValidator = require('../../lib/instance-validator');
const sinon = require('sinon');
const Promise = Support.sequelize.Promise;
const SequelizeValidationError = require('../../lib/erro... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
myApp.constant('CORE_CONFIG',
{
HTTP_PROTOCOL: 'http://',
SERVER_IP: WEB_URL,
WEB_SERVICE: WEB_URL+'index.php/api'
}
);
m... |
/**
* grunt-submodule – copyright © 2014, Jonas Pommerening
* Released under the MIT license.
* https://github.com/jpommerening/grunt-submodule.git
*/
'use strict';
var fs = require('fs');
var path = require('path');
var grunt = require('grunt');
if (process.argv.length < 5) {
console.error('Usage: node ' + __f... |
/* js-model JavaScript library, version 0.10.0
* (c) 2010-2011 Ben Pickles
*
* Released under MIT license.
*/
var Model=function(a,c){var b=function(e){this.attributes=jQuery.extend({},e);this.changes={};this.errors=new Model.Errors(this);this.uid=[a,Model.UID.generate()].join("-");jQuery.isFunction(this.initial... |
import Sequelize from 'sequelize'
import { sequelize } from '../adapters/db'
const Versions = sequelize.define('versions',
{
id: {
type: Sequelize.UUID,
defaultValue: Sequelize.UUIDV4,
primaryKey: true,
allowNull: false
},
version_number: {
type: Sequelize.INTEGER,
al... |
function validateLocationFilter() {
var radius = document.forms["filter"]["radius"].value;
var latitude = document.forms["filter"]["latitude"].value;
var longitude = document.forms["filter"]["longitude"].value;
if ((radius != "") || (latitude != "") || (longitude != "")) {
if ((radius.length > 0) && (latitu... |
/*
Define y exporta el modelo de la colección Archivos
*/
// Dependencias
var mongoose = require('mongoose'); // controlador de la base de datos
var Schema = mongoose.Schema; // "Modelo" de la colección
var fs = require('fs'); // File system utility
var filesize = require('filesize'); // Human readable file size strin... |
exports = module.exports = function(req, res) {
var keystone = req.keystone;
keystone.render(req, res, 'home', {
section: 'home',
page: 'home',
title: keystone.get('name') || 'Keystone',
orphanedLists: keystone.getOrphanedLists()
});
};
|
'use strict';
var fs = require('fs');
var gulp = require('gulp');
var sass = require('gulp-sass');
var cssmin = require('gulp-cssmin');
var mocha = require('gulp-spawn-mocha');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var jshint = require('gulp-jshint');
var source = require('vin... |
var globalEnv = require('./environment').globalEnv;
var Env = require('./environment').Env;
function evaluate(expr, env) {
env = env || globalEnv;
if (typeof expr === 'string') {
return env.find( expr.valueOf() )[ expr.valueOf() ];
}
else if (typeof expr === 'number') {
return expr;
}
else if (... |
(function(){
"use strict";
class CrawlerManager {
constructor() {
this.runningCrawlers = [];
};
register(crawler) {
this.runningCrawlers.push(crawler)
return this.runningCrawlers.length;
};
static get singletonInstance () {
if(CrawlerManager._singletonInstance==null) {
CrawlerManager._singlet... |
"use strict";
angular.module("snippetShare").controller("ShowMembersModalCtrl", function ($scope, $modalInstance,Board,board,members) {
console.log("ShowRequestsModal is open. board/members", board, members);
$scope.members = members;
$scope.board = board;
$scope.cancel = function () {
$modal... |
version https://git-lfs.github.com/spec/v1
oid sha256:2d5ccb2e5374e712e8454089ef6bbcbbd0e7b11cdecae3dd75fa40d5b7efe130
size 27581
|
///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJS - http://autobahn.ws, http://wamp.ws
//
// A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
// Copyright (C) 2011-2014 Tavendo GmbH, http://tavendo.com
//
// Licensed under the MIT License.
/... |
var ControllerHandler = require( "./controllerhandler" );
var Keyboard = ControllerHandler.extend({
initialize: function() {
this.handlers = {};
},
/**
* Load configuration.
* @param {object} config - An mapping of keyboard keys to controller buttons.
*/
_configure: function() {
this.initKeyCodes();
},... |
import { addEmptyDays } from './../../frontend/src/utils/getDateUtil';
import { cummulative } from './../../frontend/src/utils/cummulativeUtil';
import arrayByKey from './arrayByKey';
import arrayByKeyFiltered from './arrayByKeyFiltered';
import arrayByKeyFilteredGreaterThan from './arrayByKeyFilteredGreaterThan';
impo... |
import {
UI_OPEN_SIDEBAR,
UI_CLOSE_SIDEBAR,
UI_WINDOW_RESIZE,
LOCATION_CHANGE,
APPLICATION_INIT
} from 'actions'
export const initialState = {
sidebarOpened: false,
isMobile: false,
isMobileXS: false,
isMobileSM: false
}
export function layout (state = initialState, action) {
c... |
/* global Vuex */
import auth from '~/modules/Auth/Client/Assets/js/auth.store'
import conversation from '~/modules/Conversation/Client/Assets/js/conversation.store'
import message from '~/modules/Message/Client/Assets/js/message.store'
import createLogger from 'vuex/dist/logger'
const debug = process.env.NODE_ENV !=... |
import { expect } from 'chai';
import { Record, Map } from 'immutable';
import mutator from '../../src/util/mutator';
describe('@mutator decorator', () => {
it('should allow property sets on nested mutable Records', () => {
class A extends Record({ thing: 'stuff', stuff: 'things' }) {}
class Test... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.