code stringlengths 2 1.05M |
|---|
var redis = require('redis'); //https://github.com/NodeRedis/node_redis
/*
* All optional
*
* config = {
* namespace: namespace,
* host: host,
* port: port
* }
* // see
* https://github.com/NodeRedis/node_redis
* #options-is-an-object-with-the-following-possible-properties for a full list of the valid opt... |
var util = require('util')
var AbstractIterator = require('abstract-leveldown').AbstractIterator
var ltgt = require('ltgt')
module.exports = Iterator
function Iterator (db, options) {
if (!options) options = {}
this.options = options
AbstractIterator.call(this, db)
this._order = options.reverse ? 'DESC': 'AS... |
/*
Highcharts JS v6.0.1 (2017-10-05)
Parabolic SAR Indicator for Highstock
(c) 2010-2017 Grzegorz Blachliski
License: www.highcharts.com/license
*/
(function(f){"object"===typeof module&&module.exports?module.exports=f:f(Highcharts)})(function(f){(function(f){f.seriesType("psar","sma",{name:"PSAR",lineWidth:0,m... |
/**
* Copyright (c) 2015-present, 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.
*
* @provides... |
import _ from 'lodash';
import createError from 'create-error';
import Sync from './sync';
import Helpers from './helpers';
import EagerRelation from './eager';
import Errors from './errors';
import ModelBase from './base/model';
import Promise from './base/promise';
/**
* @class Model
* @extends ModelBase
* @inh... |
'use strict';
module.exports = {
idb: require('./adapters/idb'),
websql: require('./adapters/websql')
}; |
"use strict";
var stub = require('./stub'),
vm_harness = require('./vm_harness'),
path = require('path'),
constants = require('../../constants'),
vm = require('vm'),
fs = require('fs');
function Plugin(name) {
if (false === (this instanceof Plugin)) {
retur... |
window.regionScoreboard = function() {
// TODO: rather than just load the region scores for the center of the map, display a list of regions in the current view
// and let the user select one (with automatic selection when just one region, and limited to close enough zooms so list size is reasonable)
var latLng... |
import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
export*from"../.internal/plugins/rangeSelector/RangeSelector";export*from"../.internal/plugins/rangeSelector/DateAxisRangeSelector"; |
(function($, window) {
var CLASS_ZOOM = $.className('zoom');
var CLASS_ZOOM_SCROLLER = $.className('zoom-scroller');
var SELECTOR_ZOOM = '.' + CLASS_ZOOM;
var SELECTOR_ZOOM_SCROLLER = '.' + CLASS_ZOOM_SCROLLER;
var EVENT_PINCH_START = 'pinchstart';
var EVENT_PINCH = 'pinch';
var EVENT_PINCH_END = 'pinchend';
... |
/*!
* json-schema-faker library v0.5.0-rc7
* http://json-schema-faker.js.org
* @preserve
*
* Copyright (c) 2014-2017 Alvaro Cabrera & Tomasz Ducin
* Released under the MIT license
*
* Date: 2017-06-24 09:28:22.082Z
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ... |
module.exports = {
creatureGlobal: {
src: require('../manifests/creature-global'),
dest: '<%= modules_dir %>/creature-global.js'
},
creatureGlobalSplit: {
src: require('../manifests/creature-global'),
dest: '<%= compile_dir %>/creature.js'
},
creature: {
sr... |
/*
* jQuery Tooltip plugin 1.2
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.tooltip.js 4569 2008-01-31 19:36:35Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* ht... |
/* Icelandic initialisation for the jQuery UI date picker plugin. */
/* Written by Haukur H. Thorsson (haukur@eskill.is). */
(function($) {
$.datepick.regional['is'] = {
clearText: 'Hreinsa', clearStatus: '',
closeText: 'Loka', closeStatus: '',
prevText: '< Fyrri', prevStatus: '',
prevBigText: '<... |
'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": [
"\u0442\u0430\u04a3\u043a\u044b",
"\u0442\u04af\u0448\u044... |
/*
* grunt-es6-module-transpiler
* https://github.com/joefiorini/grunt-es6-module-transpiler
*
* Copyright (c) 2013 Joe Fiorini
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var path = require('path');
function transpile(file, options) {
var src = file.src,
... |
/*
* Copyright (C) 2011 Google 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 of source code must retain the above copyright
* notice, this list of conditions ... |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file, and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying, or distributing this... |
/**
@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@ @@@@@@@@
@@@@@@@ @@@@@@@
@@@@@@@ @@@@@@@
@@@@@@@ @@@@@@@
@@@@@@@@ @ @@@@@@@@
@@@@@@@@@ @@@ @@@@@@@@@
@@@@@@@@@@@@@@ @@@@@@@@@@@
@@@@@@@@@@@@@ @@@@@@@
... |
module.exports = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.40... |
/*!
Knockout paged extender 0.3.1
By: Erik Schierboom (C) 2015
License: Apache 2
Adds the paged extender that can add paging functionality to an
observable array.
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['knockout'], factory);
} else if (typeof exports ... |
(function(window,undefined){"$:nomunge";var $=window.jQuery||window.Cowboy||(window.Cowboy={}),jq_throttle;$.throttle=jq_throttle=function(delay,no_trailing,callback,debounce_mode){var timeout_id,last_exec=0;if(typeof no_trailing!=="boolean"){debounce_mode=callback;callback=no_trailing;no_trailing=undefined}function wr... |
/*!
* autocomplete.js 0.21.6
* https://github.com/algolia/autocomplete.js
* Copyright 2016 Algolia, Inc. and other contributors; Licensed MIT
*/
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function ... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
|
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.0.5
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() {... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
/**
* @license Autofields v2.2.1
* (c) 2016 Justin Maier http://justmaier.github.io/angular-autoFields-bootstrap
* License: MIT
*/
'use strict';
/**
* @ngdoc overview
* @name autofields
* Core provider and directive for autofields
*/
angular.module('autofields.core', [])
.provider('$autofields', ... |
/* global angular */
angular.module('lumx.utils', [
'lumx.utils.transclude',
'lumx.utils.transclude-replace'
]);
angular.module('lumx', [
'lumx.utils',
'lumx.ripple',
'lumx.notification',
'lumx.dropdown',
'lumx.text-field',
'lumx.dialog',
'lumx.select',
'lumx.scrollbar',
'l... |
/**
* @license Highstock JS v4.2.3 (2016-02-08)
*
* (c) 2014 Highsoft AS
* Authors: Jon Arild Nygard / Oystein Moseng
*
* License: www.highcharts.com/license
*/
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
}(function (... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'sl', {
anchor: 'Sidro',
flash: 'Flash animacija',
hiddenfield: 'Skrito polje',
iframe: 'IFrame',
unknown: 'Neznan objekt'
} );
|
define(function(require, exports) {
exports.message = 'ÄãºÃ GBK'
});
|
/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jerem... |
/**
* API Bound Models for AngularJS
* @version v1.1.4 - 2014-11-26
* @link https://github.com/angular-platanus/restmod
* @author Ignacio Baixas <ignacio@platan.us>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
!function(a){"use strict";a.module("restmod").factory("AMSApi",["restmod","inflecto... |
/*!
Deck JS - deck.menu
Copyright (c) 2011 Caleb Troughton
Dual licensed under the MIT license.
https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt
*/
/*
This module adds the methods and key binding to show and hide a menu of all
slides in the deck. The deck menu state is indicated by the presence of... |
/**
* some JavaScript code for this blog theme
*/
/* jshint asi:true */
/////////////////////////header////////////////////////////
/**
* clickMenu
*/
(function() {
if (window.innerWidth <= 770) {
var menuBtn = document.querySelector('#headerMenu')
var nav = document.querySelector('#headerNav')... |
(function($) {
var id;
wp.media.wpUserAvatar = {
get: function() {
return wp.media.view.settings.post.wpUserAvatarId
},
set: function(a) {
var b = wp.media.view.settings;
b.post.wpUserAvatarId = a;
b.post.wpUserAvatarSrc = $('div.attachment... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
'use strict';
var defaultDiacriticsRemovalap = [
{'base':'A', 'letters':'\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F'},
{'base':'AA','letters':'\uA732'},
... |
/**
* @license AngularJS v1.0.0rc7
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(
/**
* @ngdoc interface
* @name angular.Module
* @description
*
* Interface for configuring angular {@link angular.module modules}.
*/
function setupModuleLoader(window) {
function ensure(obj, name, f... |
/*
* Translated default messages for bootstrap-select.
* Locale: ES (Spanish)
* Region: CL (Chile)
*/
(function($) {
$.fn.selectpicker.defaults = {
style: 'btn-default',
size: 'auto',
title: null,
selectedTextFormat : 'values',
noneSelectedText : 'No hay selección',
noneRe... |
/*
AngularJS v1.2.24
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(y,w,z){'use strict';function u(f,a,c){r.directive(f,["$parse","$swipe",function(m,p){var q=75,g=0.3,e=30;return function(h,n,l){function k(d){if(!b)return!1;var s=Math.abs(d.y-b.y);d=(d.x-b.x)*a;return v&&s<q&&0<d&&d>e&&s/... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'ko', {
toolbar: '포맷 지우기'
});
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'horizontalrule', 'eu', {
toolbar: 'Txertatu Marra Horizontala'
});
|
/*global self, document, DOMException */
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
// Full polyfill for browsers with no classList support
if (!("classList" in document.createElement("_"))) {
(function (view) {
"use strict";
if (!('Element' in view)) return;
var
... |
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @fileoverview function used in server privilege pages
* @name Database Operations
*
* @requires jQuery
* @requires jQueryUI
* @requires js/functions.js
*
*/
/**
* Ajax event handlers here for db_operations.php
*
* Actions Ajaxified here:... |
/**
* easyXDM
* http://easyxdm.net/
* Copyright(c) 2009-2011, Øyvind Sean Kinsey, oyvind@kinsey.no.
*
* 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 wit... |
// VexFlow - Music Engraving for HTML5
// Copyright Mohit Muthanna 2010
//
// This class implements vibratos.
/**
* @constructor
*/
Vex.Flow.Vibrato = function() {
this.init();
}
Vex.Flow.Vibrato.prototype = new Vex.Flow.Modifier();
Vex.Flow.Vibrato.prototype.constructor = Vex.Flow.Vibrato;
Vex.Flow.Vibrato.superc... |
/*! shepherd 0.6.16 */
/*! tether 0.6.5 */
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof exports === 'object') {
module.exports = factory(require,exports,module);
} else {
root.Tether = factory();
}
}(this, function(require,exports,... |
YUI.add("jsonp-url",function(e,d){var a=e.JSONPRequest,c=e.Object.getValue,b=function(){};e.mix(a.prototype,{_pattern:/\bcallback=(.*?)(?=&|$)/i,_template:"callback={callback}",_defaultCallback:function(h){var g=h.match(this._pattern),k=[],j=0,f,l,m;if(g){f=g[1].replace(/\[(['"])(.*?)\1\]/g,function(n,i,o){k[j]=o;retur... |
YUI.add("tabview-plugin",function(e,t){function n(){n.superclass.constructor.apply(this,arguments)}n.NAME="tabviewPlugin",n.NS="tabs",e.extend(n,e.TabviewBase),e.namespace("Plugin"),e.Plugin.Tabview=n},"3.18.0",{requires:["tabview-base"]});
|
/**
* @file Timeline view
*/
define(function (require) {
// var zrUtil = require('zrender/core/util');
// var graphic = require('../../util/graphic');
var ComponentView = require('../../view/Component');
return ComponentView.extend({
type: 'timeline'
});
}); |
/*
* sample unit testing for sample templates and implementations
*/
describe('uiAnimate', function () {
// declare these up here to be global to all tests
var $rootScope, $compile, $timeout, uiConfig = angular.module('ui.config');
beforeEach(module('ui.directives'));
// inject in angular constructs. Injec... |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self);var f=o;f=f.jsforce||(f.jsforce={}),f=f.modules||(f.mod... |
YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromLogicalExpression;
var _index = require('./index');
var _index2 = _interopRequireDefault(_index);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* E... |
/**
* @author bdwebdesign.pl
*/
jQuery.paramquery.pqGrid.regional['pl'] = {
strAdd: "Dodaj",
strDelete: "Usu?",
strEdit: "Edytuj",
strLoading: "?adowanie...",
strNextResult: "Nast?pny wynik",
strNoRows: "Brak wyników do wy?wietlenia.",
strNothingFound: "Nic nie znaleziono",
... |
// PouchDB 4.0.0
//
// (c) 2012-2015 Dale Harvey and the PouchDB team
// PouchDB may be freely distributed under the Apache license, version 2.0.
// For all details and documentation:
// http://pouchdb.com
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var Tapable = require("tapable");
var async = require("async");
var Stats = require("./Stats");
function MultiWatching(watchings) {
this.watchings = watchings;
}
MultiWatching.prototype.invalidate = function() {
this... |
/**
* An Angular module that gives you access to the browsers local storage
* @version v0.2.0 - 2015-05-10
* @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function ( window, angular, undefined ) {
/*js... |
ace.define("ace/mode/maze_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var MazeHighlightRules = function(... |
YUI.add('selection', function(Y) {
/**
* Wraps some common Selection/Range functionality into a simple object
* @class Selection
* @constructor
* @module editor
* @submodule selection
*/
//TODO This shouldn't be there, Y.Node doesn't normalize getting textnode content.
va... |
require('./app/server')();
|
'use strict';
var validateConstants = require('./validate/validate_constants');
var validate = require('./validate/validate');
var latestStyleSpec = require('../reference/latest.min');
var validateGlyphsURL = require('./validate/validate_glyphs_url');
/**
* Validate a Mapbox GL style against the style specification.... |
var path = require("path"),
fs = require("fs");
var BannerPlugin = require("webpack/lib/BannerPlugin");
module.exports = function(grunt) {
grunt.loadTasks('scripts/grunt');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-webpack');
grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks... |
'use strict'
const co = require('co')
const cli = require('heroku-cli-util')
function * run (context, heroku) {
const fetcher = require('../../lib/fetcher')(heroku)
const host = require('../../lib/host')
const util = require('../../lib/util')
const {app, args, flags} = context
let cred = flags.name
if (... |
import fetch from 'isomorphic-fetch';
export default function getFacts(){
return fetch('./facts.json')
.then(res => res.json());
} |
'use strict';
var chalk = require('chalk');
var Command = require('../models/command');
var Promise = require('../ext/promise');
var Blueprint = require('../models/blueprint');
module.exports = Command.extend({
name: 'generate',
description: 'Generates new code from blueprints.',
aliases: ['g'],
works... |
import { SERVER_API_BASE } from 'config';
import { push } from 'react-router-redux';
import {
SET_EDIT_STUDENTS_FORM_ERRORS,
SET_LANGUAGES_FOR_EDIT_STUDENTS_FORM,
EDIT_STUDENTS_FORM_VALUE_CHANGED,
SET_BOUNDARIES,
} from './types';
import { put } from './requests';
import { showStudentError, resetStudentError, ... |
'use strict'
var ops = Object.create(null)
ops[0] = 'add'
ops[1] = 'remove'
ops[2] = 'replace'
ops[3] = 'move'
ops[4] = 'copy'
ops[5] = 'test'
module.exports = function unpack(packed) {
var unpacked = []
for (var i = 0, l = packed.length; i < l; i++) {
var p = packed[i]
var ap = p[0]
var a = ops[ap]
... |
/**
* Possible states of the promise
*/
const STATE = Object.freeze({
PENDING: Object.freeze({}),
RESOLVED: Object.freeze({}),
REJECTED: Object.freeze({})
})
/**
* Private field symbols.
*/
const FIELDS = Object.freeze({
state: Symbol("state"),
value: Symbol("value"),
fulfillListeners: Symbol("fulfill... |
var types = ['number','string','boolean','function', 'array'];
var oTs = Object.prototype.toString
types.forEach(function(type2){
var name = type2.substring(0,1).toUpperCase() + type2.substring(1);
Fsy['is' + name] = function(arg){
return oTs.call(arg) === '[object ' + name + ']';
}
});
|
// All symbols in the `M` category as per Unicode v6.0.0:
[
'\u0300',
'\u0301',
'\u0302',
'\u0303',
'\u0304',
'\u0305',
'\u0306',
'\u0307',
'\u0308',
'\u0309',
'\u030A',
'\u030B',
'\u030C',
'\u030D',
'\u030E',
'\u030F',
'\u0310',
'\u0311',
'\u0312',
'\u0313',
'\u0314',
'\u0315',
'\u0316',
'\u031... |
var Filter = require('broccoli-filter'),
// we should handle strings {{t 'root.path'}} and (t 'root.path')
pathExpr = /(\{\{|\()t\s(?:'|")([^\'\"]*)(?:'|")\s?([^\}\)]*)(?:\}\}|\))/g;
function Main(inputTree, localeData) {
if (!(this instanceof Main)) {
return new Main(inputTree, localeData);
}
Filter.ca... |
$(document).ready(function() {
var bezier_line1 = {
start: {
x: 142,
y: 142,
angle: 45,
length:0.7
},
end: {
x: 425,
y: 142,
angle: 45,
length: 0.7
}
}
var bezier_line2 = {
... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('display-cart', 'Integration | Component | display cart', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle a... |
$(function(){
var view = Prisc.Router.resolve();
$('div#main').append(
view.render().$el
);
$('title').text(view.title + ' - Prisc!');
});
|
/*jshint node:true*/
/*global describe,it,beforeEach,afterEach,after*/
'use strict';
var Ffmpeg = require('../index'),
path = require('path'),
assert = require('assert'),
testhelper = require('./helpers'),
async = require('async');
// delimiter fallback for node 0.8
var PATH_DELIMITER = path.delimiter || (req... |
jQuery(document).ready(function(a){a("#chevron").click(function(b){b.preventDefault();b="pp-carousel".replace("link","");a("html, body").animate({scrollTop:a("#"+b).offset().top},"slow")});a(".fees-plans").hover(function(){a(this).toggleClass("active-fees-plans-head")});var c=a(window).height(),b=a(".all-footer").heigh... |
var test = require('tap').test,
ecstatic = require('../'),
http = require('http'),
request = require('request');
test('default default contentType', function(t) {
var server = http.createServer(ecstatic({
root: __dirname + '/public/',
contentType: 'text/plain'
}));
t.plan(3);
t.on('end', ... |
/*
* Background controller. Wallpapers, proper fitting and video backgrounds
*/
let main = require('./main'),
{$, Backbone, common, options, stackBlur, state} = main;
const colourMap = {
glass: {
normal: 'rgba(40, 42, 46, 0.5)',
editing: 'rgba(145, 145, 145, 0.5)'
},
ocean: {
normal: 'rgba(28, 29, 34, 0.7... |
/**
*
* @name: webpack devtalk
* @author: Alessandro Bellini <hello@ilmente.com>
*
*/
'use strict'
import initialState from './state'
import { getOutput } from './output'
import { SEND_COMMAND, CLEAR_OUTPUT, FETCH_OUTPUT, FETCH_OUTPUT_SUCCESS, FETCH_OUTPUT_FAIL } from './actions'
export function app(state = ini... |
/*
MIT License
Copyright (c) 2016-2017 Grall Arnaud
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, publi... |
var async = require('async');
var _ = require('underscore');
function Logger(app) {
this._app = app;
this._log = this._app.system.logger;
this._test = app.get('istest');
this._colors = {
white: '\u001b[37m',
grey: '\u001b[90m',
gray: '\u001b[90m',
black: '\u00... |
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _defin... |
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.sendNotification = functions.database.ref('Messages/{roomId}/{messageId}').onCreate(event => {
console.log('event.data: ', event.data);
console.log('event.data.va... |
/**
* the HTML5 autofocus property can be finicky when it comes to dynamically loaded
* templates and such with AngularJS. Use this simple directive to
* tame this beast once and for all.
*
* Usage:
* <input type="text" autofocus>
*
* License: MIT
*/
angular.module('myApp').directive('autoFocus', ['... |
var _ = require("underscore"),
d3 = require("d3"),
Marionette = require("backbone.marionette");
var RoutersData = Marionette.Object.extend({
url: "./assets/internet/Routers.csv",
initialize: function(options) {
this.coordinatesByLxcName = {};
_.bindAll(this, "onSync", "parseRow");
... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'about', 'nb', {
copy: 'Copyright © $1. Alle rettigheter reservert.',
dlgTitle: 'Om CKEditor 4',
moreInfo: 'For lis... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"
}), 'LocalParking'); |
// Author: Jacopo Daeli <jacopo.daeli@gmail.com>
// BubbleSort Algorithm
// Bubble sort has worst-case and average complexity both О(n^2),
// where n is the number of items being sorted.
// The significant advantage that bubble sort has over most other implementations,
// even quicksort, but not insertion sort, is tha... |
// Dependencies =========================
var Twit = require('twit');
var ura = require('unique-random-array');
var config = require('./config');
var strings = require('./helpers/strings');
var sentiment = require('./helpers/sentiment');
var Twitter = new Twit(config);
// Frequency in minutes -- Changed to random val... |
'use strict';
var React = require('react');
/**
* View for the app header/title.
*/
var Header = React.createClass({
/**
* Renders this view.
*/
render: function() {
return (
<header>
<h1>Bowling Score</h1>
<p>by <a href="https://www.bjarkewalling.com/en?utm_source=bowling-score&utm_medium=w... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
export class Header extends React.Component {
static propTypes = {
// No prop types required
};
render() {
return (
<div className="search-header">
</div>
);
}... |
function handleFileSelect(e) {
stopDefault(e);
handleDragEffectiveCompletion(e);
var files = e.dataTransfer.files; // FileList object.
// files is a FileList of File objects. List some properties.
var output = [];
for (var i = 0, f; f = files[i]; i++) {
output.push('<li><strong>', escape(f.name), '</strong> ... |
/*
* Copyright (c) 2012 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
* ... |
version https://git-lfs.github.com/spec/v1
oid sha256:f7960ecf811c4387e5e831ceb43819e320628f9275207df9e64b959e83932cef
size 2981
|
version https://git-lfs.github.com/spec/v1
oid sha256:733edc516b717ba20ed0b52c7b145ee8ce23af86825755097a98b8bc7cb39ca6
size 64051
|
module.exports = require('./lib/istanbul-proxy');
|
"use strict";
CalculatorApp.controller('CalculatorCtrl', ['$scope', function($scope) {
$scope.answer = null;
$scope.output = "";
var equation = "";
const operators = {
add: '+',
subtract: '-',
multiply: '*',
divide: '/'
};
$scope.updateOutput = (selection) => {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.