code stringlengths 2 1.05M |
|---|
// jshint esversion: 6, globalstrict: true, strict: true
'use strict';
var FW = require('../index');
//pipe:0 = stdin, pipe:1 = stdout, pipe:2 = stderr, all pipes can be used to stream data from ffmpeg, -loglevel should be set to "quiet" to utilize stderr
var params = [
'-loglevel',
'quiet',
'-max_delay',... |
// Karma configuration
// Generated on Mon Mar 06 2017 11:02:37 GMT-0500 (EST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword... |
/**
* @fileoverview Vitals model, will aggregate and compute the vital information.
*/
var _ = require('underscore');
var kickq = require('kickq');
var log = kickq.logg.getLogger('kickq-vitals.model.Vitals');
var VitalsItem = require('./vitals.item');
/**
* Will aggregate and compute the vital information.
*
* ... |
io();
io.connect("/messages");
|
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
babel: {
options: {
sourceMap: true
},
dist: {
files: {
'web/dist/app.js': 'web/src/app.js',
'we... |
import { Serializer } from 'ember-cli-mirage';
import { isArray } from '@ember/array';
import { assign } from '@ember/polyfills';
export default Serializer.extend({
serialize(object) {
if (isArray(object.models)) {
return {
'@type': 'features',
'@href': '/features',
'@representation... |
/**
* Policy Mappings
* (sails.config.policies)
*
* Policies are simple functions which run **before** your controllers.
* You can apply one or more policies to a given controller, or protect
* its actions individually.
*
* Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
* below by its f... |
(function() {
var Ajax, CodeViewInterface, DesignViewInterface, Dialog, Dropdown, Editor, Form, FullscreenToggle, ImageEditor, MainNav, Notification, PreviewInterface, ProgressBar, Slider, SplitViewInterface, TabSwitcher, Toggle, Upload, base64Encode,
__bind = function(fn, me){ return function(){ return fn.... |
/*
* PLUGIN LookAt
*
* Ukrainian language file.
*
* Author:
*/
theUILang.lookAtDesc = "Find at (Format: name|url)";
theUILang.lookAt = "Find at";
thePlugins.get("lookat").langLoaded(); |
// @flow
/* eslint-disable no-use-before-define */
import type { ChildProcess } from 'child_process'
import type { Chalk } from 'chalk'
export type PackageVersions = { [string]: string }
export type PackageWatcher = {
start: () => void,
stop: () => void,
}
export type PackagePaths = {
monoRepoRoot: string,
... |
'use strict';
/**
* Test function.
*/
function foo() {
} // end FUNCTION foo()
// EXPORTS //
module.exports = foo;
|
// Agent Class
//======================================
class Agent {
constructor(i, x, y, creator) {
this.i = i;
this.x = x;
this.y = y;
this.Xpos, this.Ypos;
// set random direction 0-5
this.dir = Math.floor(random(0, 6));
// set its morality
this.creator = creator;
}
upda... |
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| For up-to-date information about the options:
| http://www.browsersync.io/docs/options/
|
| There are more options than you... |
let React = require('react');
React.render();
|
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h10v-2H4v-6h18V6c0-1.11-.89-2-2-2zm0 4H4V6h16v2zm4 9v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3z"
}), 'AddCardOutlined... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
"use strict"
// Module for running a tutorial introducing a user to Context
// This tutorial shows popups on whatever page they're on to show them
// how context can be used
var context = context || {};
context.runTutorial = (function($) {
// we can't return the funtion directly, because we need jQuery
return fun... |
// @flow
import type { PlayerDescriptor } from "./PlayerDescriptor";
export type PlayerState = {
// The player's immutable descriptor
descriptor: PlayerDescriptor,
// The UUID of the player
id: string,
// The ID of the zone of this player's hand
handZone: string,
// The ID of the zone of this player's libra... |
/**
* 命名空间构造器
* @returns {Function}
* @constructor
* @require System,Object;
*/
function Namespace(prefix, uri)
{
this.__prefix__ = prefix || '';
this.__uri__ = uri || '';
}
Namespace.valueOf=Namespace.toString=function () {return '[object Namespace]'};
Namespace.prototype = Object.create( Object.prototype... |
import React, {Component} from 'react';
import {render} from 'react-dom';
import Switch from 'react-toggle-switch';
import 'styles/styles.scss';
class Example extends Component {
constructor(props) {
super(props);
this.state = {
on: true
}
}
render() {
return (
<div className="row">
... |
import express from 'express';
import { twitterService } from '../service';
import createCachedRouterCallback from '../helper/routerHelper';
const router = express.Router();
router.get('/feed', createCachedRouterCallback(twitterService.getLatestTweetForHashtag.bind(twitterService)));
export default router;
|
/* eslint-env mocha */
/* eslint-disable padded-blocks, no-unused-expressions */
import React from 'react';
import chaiEnzyme from 'chai-enzyme'
import chai, { expect } from 'chai';
import { render } from 'enzyme';
chai.use(chaiEnzyme());
import App from '../App';
import Layout from '../Layout';
import ImageToolbar ... |
// Variable wrapper
(function (require, module) {
'use strict';
var logger = require('./logger.js');
var Ref = function (val) {
var that = this;
this.internalValue = val;
this.internalType = typeof (val);
Object.defineProperty(this, 'value', {
get: function () {
return that.intern... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
/*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
var Configuration = {};
Configuration.configuration_file = 'config.json';
Configuration.load = function() {
if (!fs.existsSync(this.configuration_file)) {
this.data = {};
} else {
var data = fs.readFileSync(this.configuration_file, {encoding: 'utf8'});
this.data = JSON.parse(data);
}
return this.data;
};
C... |
(function(JsSIP) {
var Logger = function(logger, category, label) {
this.logger = logger;
this.category = category;
this.label = label;
};
Logger.prototype.debug = function(content) {
this.logger.debug(this.category, this.label, content);
};
Logger.prototype.log = function(content) {
this.logger.log(this.... |
/**
* @module batcher
* @summary: Provides batcher.chunk to chunk a collection and do something with each chunk.
*
* @description:
*
* Author: justin
* Created On: 2015-03-27.
* @license Apache-2.0
*/
module.exports = (function construct() {
var m = {};
m.chunk = function(collection, chunkSize, func) {
... |
var chai = require('chai'),
expect = chai.expect,
sinon = require('sinon'),
sinonPromise = require('sinon-promise'),
proxyquire = require('proxyquire');
chai.use(require('sinon-chai'));
describe('lib/bowerDependencies', function () {
var bwd, exec, log, spinner, fs, installLog;
beforeEach(function () {
... |
// All symbols in the `Osmanya` script as per Unicode v6.2.0:
[
'\uD801\uDC80',
'\uD801\uDC81',
'\uD801\uDC82',
'\uD801\uDC83',
'\uD801\uDC84',
'\uD801\uDC85',
'\uD801\uDC86',
'\uD801\uDC87',
'\uD801\uDC88',
'\uD801\uDC89',
'\uD801\uDC8A',
'\uD801\uDC8B',
'\uD801\uDC8C',
'\uD801\uDC8D',
'\uD801\uDC8E',
... |
// LICENSE : MIT
"use strict";
import React from "react"
import {Table} from "reactable"
import moment from "moment";
export default class DataTableView extends React.Component {
_calc(data) {
if (!data) {
return [];
}
let keywords = Object.keys(data);
if (keywords.length... |
'use strict'
const { MessageEmbed } = require('discord.js');
const Matcher = require('did-you-mean');
const stripIndents = require('common-tags').stripIndents;
const config = require('config.json')('./config.json');
const abilities = require("../data/abilities.js");
const aliases = require("../data/aliases.js");
cons... |
export default {
today: 'Сьогодні',
now: 'Зараз',
backToToday: 'Поточна дата',
ok: 'Ok',
clear: 'Очистити',
month: 'Місяць',
year: 'Рік',
timeSelect: 'Обрати час',
dateSelect: 'Обрати дату',
monthSelect: 'Обрати місяць',
yearSelect: 'Обрати рік',
decadeSelect: 'Обрати десятиріччя',
yearFormat:... |
const
Processor = require("./"),
{date} = require('../util'),
extend = require('extend'),
jsexpr = require("jsexpr");
const DEF_CONF = {
input : '${timestamp}',
format : 'YYYY-MM-DD HH:mm:ss',
output : 'date',
fields : []
};
class DateformatProcessor extends Processor {
constructor(id,type) {
super(id,type... |
'use strict';
angular.module('services.config', [])
.constant('configuration', {
backend: '@@backend'
});
|
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const ssri = require("ssri");
const fs = require("fs");
const { version } = require("./package.json");
const readmeMdFilePath = "./README.md";
const cdnUsageFilePath = "./docs/cdn-usage.md";
const sriTableMarker = "... |
'use strict';
const resourcePath = 'node_modules/';
const normalizeCssResource = resourcePath + 'normalize.css/normalize.css';
let destBase = 'build/';
let dest = {
base: destBase,
css: destBase + 'css/',
js: destBase + 'js/',
views: destBase + 'views/',
static: destBase
};
let appBase = 'app/';
let client... |
'use strict';
describe('Function Expressions', function () {
/*Function Expressions*/
/*We can build functions within code execution rather than at program load time*/
it('Normal functions are built in memory when the program loads', function () {
expect(typeof addTwoNumbers).toBe("function");
});
funct... |
"use strict";
var fs = require('fs');
var path = require('path');
var errh = require('ncbt').errh;
var Canvas = require('canvas');
var Image = Canvas.Image;
var async = require('async');
var Grid = require('./grid');
var Abc = require('./abc');
var Page = function (data, opt_outPath) {
this.data = data;
this.outPat... |
/////////////////////////////////////////////////
// Map
// Initialise the map, set center, zoom, etc.
/////////////////////////////////////////////////
var map = L.map('map').setView(mobilesConfig.mapInitialView, 12);
var filterLibrariesMap = function () { };
L.tileLayer('http://{s}.tiles.mapbox.com/v3/librarieshack... |
import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import { assert } from '@ember/debug';
import { computed } from '@ember/object';
import { getOwner } from '@ember/application';
import Configuration from './../configuration';
/**
__This mixin is used to make routes accessib... |
var WILL = {
backgroundColor: Module.color.WHITE,
color: Module.color.from(204, 204, 204),
strokes: new Array(),
init: function(width, height) {
this.initInkEngine(width, height);
this.initEvents();
},
initInkEngine: function(width, height) {
this.canvas = new Module.InkCanvas(width, height);
this.stro... |
/**
* lark - log.js
* Copyright(c) 2014 mdemo(https://github.com/demohi)
* MIT Licensed
*/
'use strict';
module.exports.log = {
files: {
debug: {
path: './examples/logs/debug.log',
options: {
encoding: 'utf8'
}
}
}
};
|
var React = require('react');
var Firebase = require('firebase');
var gameConfig = require('../../game-constants');
var Game = require('../../game');
var Board = require('../board/board');
var FirebaseIntegration = require('../../firebase-integration');
var GameContainer = React.createClass({
getInitialState: funct... |
const asyncAdd = (a,b)=>{
return new Promise((resolve,reject)=>{
if(typeof a==='number' && typeof b=== 'number'){
resolve(`Your result is ${a+b}`);
}else{
reject('Your input arguments is not correct');
}
});
};
asyncAdd(10,20).then((data)=>{
console.log(data)... |
'use strict';
module.exports = {
multiplayerLobby: [
{name: 'matchId', type: 'int16'},
{name: 'inProgress', type: 'boolean'},
{name: 'matchType', type: 'byte'},
{name: 'activeMods', type: 'uint32'},
{name: 'gameName', type: 'string'},
{name: 'gamePassword', type: 'st... |
function getSum(...values) {
// Sequentially sum all elements in 'values'
// Initial total = 0
return values.reduce((x, y) => x + y, 0);
}
console.log(getSum(1,2,3)); // 6
|
/**
* This file is part of vue-boilerplate.
* @link : https://zhaiyiming.com/
* @author : Emil Zhai (root@derzh.com)
* @modifier : Emil Zhai (root@derzh.com)
* @copyright: Copyright (c) 2018 TINYMINS.
*/
/* eslint no-param-reassign: ["error", { "props": false }] */
import rateModule from './rate';
import li... |
/**
@namespace Nehan.BoxCorner
*/
Nehan.BoxCorner = (function(){
var __sort = function(dir1, dir2){
var order = {top:0, bottom:1, left:2, right:3};
return [dir1, dir2].sort(function (c1, c2){
return order[c1] - order[c2];
});
};
return {
/**
get normalized(and camel-cased) corner p... |
import React from 'react';
import { ServicesSection } from '~/components/services';
export default ({className, data}) => {
const services = data ? data.services.edges.map(x => ({...x.node.frontmatter, id:x.node.id, slug: x.node.fields.slug })) : [];
return (<ServicesSection services={services}>
</Services... |
'use strict';
const fs = require('mz/fs');
const path = require('path');
const assert = require('assert');
const mock = require('egg-mock');
describe('test/app/service/images.test.js', () => {
let app;
let ctx;
before(async function() {
app = mock.app();
await app.ready();
ctx = app.mockContext();
... |
/**
* Demo.js
*
* Released under LGPL License.
* Copyright (c) 1999-2016 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*eslint no-console:0 */
define("tinymce.media.Demo", [
"tinymce.media.Plugin",
"global!ti... |
module.exports = function centreColourCollator(data) {
const dataPerPixel = 4;
const length = data.data.length;
const i = Math.floor(length / dataPerPixel / 2) * dataPerPixel;
return {
r: data.data[i],
g: data.data[i + 1],
b: data.data[i + 2]
};
};
|
var test = require('tape');
var omit = require('./omit');
test('amp-omit', function (t) {
var result;
result = omit({a: 1, b: 2, c: 3}, 'b');
t.deepEqual(result, {a: 1, c: 3}, 'can omit a single named property');
result = omit({a: 1, b: 2, c: 3}, 'a', 'c');
t.deepEqual(result, {b: 2}, 'can omit se... |
/**
* 对话框
* @author Brian Li
* @email lbxxlht@163.com
* @version 0.0.2.1
*/
define(function (require) {
var React = require('react');
var ReactDOM = require('react-dom');
var AlertContent = require('./components/dialog/Alert.jsx');
var ConfirmContent = require('./components/dialog/Confirm.jsx')... |
import React, { Component } from 'react'
import { Link } from 'react-router'
export default class ChildInfoQuestion extends Component {
constructor(props) {
super(props)
this.state = {
indexOfActive: 0
}
}
render() {
let question = this.props.question
let heading = this.props.heading
let onYes... |
angular.module("TestService", []).factory("Test", ["$http", function ($http) {
return {
get: function () {
return $http.get("/api/test");
},
create: function (testData) {
return $http.post("/api/test", testData);
},
delete: function (id) {
return $http.delete("api/test/" + id);
}
}
}]);
|
module.exports = function(grunt) {
// Configure Grunt
grunt.initConfig({
requirejs: {
compile: {
options: {
mainConfigFile: "build.js"
}
}
},
// minify the optimized library file
min: {
"dist/sheep.min.js": "dist/sheep.js"
},
// kick off jasmine,... |
$(document).ready(function () {
$('#shellcatch_timeliner').timeliner({
containerwidth: 450,
containerheight: 450,
timelinewidth: 370,
timelineheight: 5,
timelineverticalmargin: 0,
autoplay: false,
showtooltiptime: true,
repeat: false,
showtota... |
module.exports = function(sequelize, DataTypes) {
var JQueryDoc = sequelize.define("JQueryDoc", {
name: {
type: DataTypes.STRING,
// AllowNull is a flag that restricts a todo from being entered if it doesn't
// have a text value
allowNull: false,
defaultValue: "test",
// len is... |
'use strict';
const logger = require('./log');
const pph = require('./pseudopattern_hunter');
// This is now solely for analysis; loading of the pattern file is
// above, in loadPatternIterative()
module.exports = function (pattern, patternlab) {
//look for a pseudo pattern by checking if there is a file
//contai... |
module.exports = {
yellow: { r: 255, g: 226, b: 108 },
red: { r: 255, g: 85, b: 83 },
green: { r: 136, g: 233, b: 128 },
blue: { r: 055, g: 180, b: 255 },
purple: { r: 190, g: 112, b: 255 },
black: { r: 0, g: 0, b: 0 },
white: { r: 255, g: 255, b: 255 },
gray: { r: 50, g: 50, b: 50 ... |
#!/usr/bin/nodejs
//process.env.NODE_ENV = process.env.NODE_ENV || 'development'
var config=require('./config/config.json')['development']
var simplify=require('vis-why')
var _ = require('underscore')
var CSV = require('csv-string')
var sprintf = require("sprintf-js").sprintf
Promise=require("bluebird")
var fs = req... |
'use strict';
angular.module('myApp.service', [])
//product service data pulling from json
.service('productReview', [ function(){
var reviewList = [];
var addReview = function(newObj) {
reviewList.push(newObj);
};
var getReview = function(){
return reviewList;
};
return {
addReview: add... |
import {Map} from 'immutable'
import composeFields from '../src/composeFields'
import expect from 'expect'
import fieldType from '../src/fieldCreators/fieldType'
describe(`redux-uniform`, () => {
describe(`composeFields`, () => {
it(`should compose fields`, () => {
const fields = {
... |
var gulp = require("gulp4"),
concat = require("gulp-concat"),
size = require("gulp-filesize"),
tap = require("gulp-tap");
//merge all files in /dist/js to dist/bundle.js
gulp.task("merge", function()
{
return gulp.src([config.path.dist_js+config.select.js])
.pipe(tap(func... |
$(function () {
if (!Modernizr.inputtypes.date) {
$.datepicker.regional["cs"] = {
closeText: "Zavřít",
prevText: "<Dříve",
nextText: "Později>",
currentText: "Dnes",
monthNames: ["leden", "únor", "březen", "duben", "květen", "červen", "č... |
const EventEmitter = require('events')
const pg = require('pg')
class Db extends EventEmitter {
constructor (config) {
super()
config.application_name = config.application_name || 'pgboss'
this.config = config
}
async open () {
this.pool = new pg.Pool(this.config)
this.pool.on('error', err... |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('jiraNow.services', ['ngResource'])
.factory('Week', function($resource) {
return $resource('api/changes?user=:users&since=:since', {}, {
query: {method:'GET', par... |
export default {
Goods: 'Goods',
'Cart Item': 'Cart Item',
Quantity: 'Quantity',
Price: 'Price',
Discount: 'Discount',
Currency: 'Currency',
'SKU Desc': 'SKU Desc'
};
|
/* eslint-env node */
/* eslint camelcase: 0, no-process-env: 0, no-var: 0 */
var funnel = require('broccoli-funnel'),
mergeTrees = require('broccoli-merge-trees'),
renameFiles = require('broccoli-rename-files'),
uglify = require('broccoli-uglify-js'),
babel = require('broccoli-babel-transpiler'),
browserify... |
/*
Highmaps JS v1.1.9 (2015-10-07)
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file)
(c) 2011-2014 Torstein Honsi
License: www.highcharts.com/license
*/
(function (l) {
function J(a, b) {
var c, d, e, f, g = !1, h = a.x, i = a.y;
for (c = 0,... |
var class_symp_1_1_sound_manager =
[
[ "clearSoundArray", "class_symp_1_1_sound_manager.html#af80ac26864c4c5ce194ba9a83c8c77eb", null ],
[ "deleteSound", "class_symp_1_1_sound_manager.html#a698683e6aba812834d9a9e08cadd2587", null ],
[ "errCheck", "class_symp_1_1_sound_manager.html#aa82b83dfbd0b594da8373304e... |
//PageBlock Directive
//Requires: jQuery, jQueryUI
//Scope is controllers
schedulerWebApp.directive('availableBlock', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs){
//console.log(attrs);
element.draggable({
//revert:true,
helper: function(){
return '<div id="ui-he... |
// @flow
import { type Position } from "../util/location";
import {
tokenIsLiteralPropertyName,
tokenLabelName,
tt,
type TokenType,
} from "../tokenizer/types";
import Tokenizer from "../tokenizer";
import State from "../tokenizer/state";
import type { Node } from "../types";
import { lineBreak, skipWhiteSpace... |
var LEVEL = {
panic: 0, emerg: 0, alert: 1, crit: 2, err: 3, error: 3, warning: 4, warn: 4, notice: 5, info: 6, debug: 7
}
function Acceptor (accept, chain) {
this._root = {}
this._append([{ path: '.', accept: !! accept }])
this._append(chain)
}
function select (entry, path) {
var objects = [ entr... |
/*
* Scroller
* http://github.com/zynga/scroller
*
* Copyright 2011, Zynga Inc.
* Licensed under the MIT License.
* https://raw.github.com/zynga/scroller/master/MIT-LICENSE.txt
*
* Based on the work of: Unify Project (unify-project.org)
* http://unify-project.org
* Copyright 2011, Deutsche Telekom AG
* Licen... |
/**
* dependencies
*/
var express = require('express'),
async = require('async'),
Search = require('./book/book-search.js').Search,
DataProvider = require('./book/book-data-provider.js').BookProvider,
LOG = require('./lib/log.js'),
_config = require('./configuration'),
config = _config.getConf... |
var _noArgsException = require('./internal/_noArgsException');
var _slice = require('./internal/_slice');
/**
* Calls the specified function on the supplied object. Any additional arguments
* after `fn` and `obj` are passed in to `fn`. If no additional arguments are passed to `func`,
* `fn` is invoked with no argu... |
// # Task automation for Ghost
//
// Run various tasks when developing for and working with Ghost.
//
// **Usage instructions:** can be found in the [Custom Tasks](#custom%20tasks) section or by running `grunt --help`.
//
// **Debug tip:** If you have any problems with any Grunt tasks, try running them with the `--verb... |
module.exports = function(){
var express = require('express'),
authenticate = require('../lib/auth/authenticate'),
signup = require('../lib/auth/signup'),
logout = require('../lib/auth/logout'),
app = express();
app.post('/signup',
signup,
function(req,res){
res.send({
status:... |
import V3Adapter from 'travis/adapters/v3';
export default V3Adapter.extend({
includes: 'owner.installation',
pathForType: function () {
return 'orgs';
},
});
|
module.exports = (function(win) {
var eveData = [], eveUUID = 1, EventObj, Event = {}, fixpara, fixevent;
fixpara = ("target type pageX pageY clientX clientY keyCode keyChar "+
"offsetX offsetY path timeStamp screenX screenY touches "+
"altKey ctrlKey shiftKey changedTouches targe... |
/*!
* jQuery JavaScript Library v2.1.3
* 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/license
*
* Date: 2014-12-18T15:11Z
*/
(function( global, factory ) {
if (... |
var express = require('express');
var app = express();
var routes = express();
var bodyParser = require('body-parser');
var morgan = require('morgan');
var mongoose = require('mongoose');
var server = require('http').Server(app);
var io = require('socket.io')(server);
var allClients = [];
var config = require('./confi... |
(function () {
/**
* Directive
*
* @returns {object} directive definition object
*/
function contentfulEntryDirective() {
return {
restrict: 'EA',
scope: true,
controller: 'ContentfulDirectiveCtrl'
};
}
// Inject directive dependencies
contentfulEntryDirective.$inject... |
/**
* Created by luiz.alberto on 11/11/2014.
*/
$(function () {
/*$('[data-toggle="popover"]').popover();*/
$('[data-toggle="tooltip"]').tooltip();
adjustLayout();
$(window).resize(adjustLayout);
});
function adjustLayout(){
var nav = $('.navbar');
var con = $('#content');
$(window).scr... |
Package.describe({
name: "aldeed:autoform",
summary: "Easily create forms with automatic insert and update, and automatic reactive validation.",
git: "https://github.com/aldeed/meteor-autoform.git",
version: "4.2.2"
});
Package.on_use(function(api) {
// Dependencies
api.versionsFrom(['METEOR@0.9.3', 'METEO... |
import database from './database'
import search from './search'
module.exports = {
'database': database,
'search': search
};
|
LAN.RenderableFace = function (points, c) {
this.type = 'RenderableFace';
this.id = 0;
this.color = c;
this.points = points;
this.frame = false;
this.renderOrder = 0;
this.z = 0;
}
LAN.RenderableLine = function (p1, p2, c) {
this.type = 'RenderableLine';
this.id = 0;
this.li... |
var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$raise = $M.raise,
$brk = $M.brk,
$mcall = $M.mcall,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require... |
import {List, Map, fromJS} from 'immutable'
import {
FETCH_SPELLBOOKS_STARTED,
FETCH_SPELLBOOKS_SUCCESS,
FETCH_SPELLBOOKS_FAILURE,
CREATE_NEW_SPELLBOOK_STARTED,
CREATE_NEW_SPELLBOOK_SUCCESS,
CREATE_NEW_SPELLBOOK_FAILURE,
} from '../actions/action-types'
const initialState = fromJS({
fetchin... |
import React from 'react';
import { SizeMeasurer } from './SizeMeasurer';
/**
* Wrap the given component to make it expandable.
* @param {React.Component} Component - The component to be wrapped.
* @return {React.Component} The wrapped component.
*/
export default function beExpandable(Component) {
const compone... |
'use strict';
module.exports = function random(length) {
var randomLength = length || 1;
var randomCollection = this.slice().shuffle().take(randomLength);
if (randomLength === 1) {
return randomCollection.first();
}
return randomCollection;
}; |
(function fyUIModalFramer(){}).subClass(fyFrame,
function(application,$,isClass) {
this.initializeInstanceWith(
function(application,$) {
var thisProtected;
this.defineConstructor(
function Create() {
thisProtected=this.protectedData;
this.inherited(argu... |
'use strict'
const globby = require('globby')
const fs = require('fs')
const matchTime = (file) => new Promise((resolve, reject) => {
let currentLogs
try {
let content = fs.readFileSync('watermill.json')
currentLogs = JSON.parse(content)
} catch(err) {
console.log('errored')
reject()
}
if (... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version'
]).config(['$routeProvider', '$httpProvider',
function ($routeProvider, $httpProvider) {
$routeProvider.otherwise({redirectTo: '/view1'});
//$http... |
angular.module("leaflet-directive")
.factory('leafletEventsHelpers', function ($rootScope, $q, $log, leafletHelpers) {
var safeApply = leafletHelpers.safeApply,
isDefined = leafletHelpers.isDefined;
var _fire = function(scope, broadcastName, logic, event, lObject, model, modelName, layerNam... |
/*Simple socket based server
Author: Ketan Bhardwaj
*/
var net = require('net');
var fs = require('fs');
var buffer = require('buffer');
var settings = {};
try {
settings = require("konphyg")(__dirname)("config");
} catch (e) {
console.error(e);
}
var debug = settings.debug;
var verbose = settings.verbose;
var ... |
var dir_7d66b2a9f733c5300d1bf1bda6559cfd =
[
[ "RoleWidget.php", "_role_widget_8php_source.html", null ],
[ "WidgetBase.php", "_widget_base_8php_source.html", null ],
[ "WidgetManager.php", "_widget_manager_8php_source.html", null ]
]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.