code stringlengths 2 1.05M |
|---|
/**
* videojs-overlay
* @version 1.1.0
* @copyright 2016 Brightcove, Inc.
* @license Apache-2.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(type... |
define(function(require, exports, module) {
"use strict";
/** simple statusbar **/
var dom = require("ace/lib/dom");
var lang = require("ace/lib/lang");
var StatusBar = function(editor, parentNode) {
this.element = dom.createElement("div");
this.element.style.cssText = "color: gray; position:absolute; right:... |
/**
* This class emulates a failed authentication.
*/
export default Ember.Object.extend({
open: function(){
return Ember.RSVP.reject("Dummy authentication failure");
}
});
|
declare interface I { foo: string }
declare interface I<T> { foo: T }
|
/**
@module ember
@submodule ember-views
*/
import { get } from 'ember-metal/property_get';
import { set } from 'ember-metal/property_set';
import { Mixin } from 'ember-metal/mixin';
import TargetActionSupport from 'ember-runtime/mixins/target_action_support';
const KEY_EVENTS = {
13: 'insertNewline',
27: 'cancel... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connect = void 0;
const ConnectLinks_1 = require("./ConnectLinks");
class Connect {
constructor() {
this.distance = 80;
this.links = new ConnectLinks_1.ConnectLinks();
this.radius = 60;
}
get line_li... |
describe('accordion', function() {
var $scope;
beforeEach(module('ui.bootstrap.accordion'));
beforeEach(module('ui.bootstrap.collapse'));
beforeEach(module('template/accordion/accordion.html'));
beforeEach(module('template/accordion/accordion-group.html'));
beforeEach(inject(function($rootScope) {
$sc... |
"use strict"; "use restrict";
module.exports = UnionFind;
function UnionFind(count) {
this.roots = new Array(count);
this.ranks = new Array(count);
for(var i=0; i<count; ++i) {
this.roots[i] = i;
this.ranks[i] = 0;
}
}
var proto = UnionFind.prototype
Object.defineProperty(proto, "length", {
"ge... |
YUI.add('dd-plugin', function(Y) {
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
* @module dd
* @submodule dd-plugin
*/
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
* @class... |
import { isElement } from "./instanceOf.js";
export default function getDocumentElement(element) {
// $FlowFixMe[incompatible-return]: assume body is always available
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
element.document) || window.document).documentElement;
} |
import path from 'path';
import Express from 'express';
var app = Express();
var server;
const PATH_STYLES = path.resolve(__dirname, '../client/styles');
const PATH_DIST = path.resolve(__dirname, '../../dist');
app.use('/styles', Express.static(PATH_STYLES));
app.use(Express.static(PATH_DIST));
app.get('/', (req, r... |
/**
* 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... |
"use strict";
var common = require('./common')
, utils = require('../utils')
, toError = require('../utils').toError
, f = require('util').format
, shallowClone = utils.shallowClone
, WriteError = common.WriteError
, BulkWriteResult = common.BulkWriteResult
, LegacyOp = common.LegacyOp
, ObjectID = requir... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Observable } from 'rxjs/Observable';
import { fromPromise } from 'rxjs/observable/fromPromise';
import { of ... |
Meteor.startup(function () {
Posts.controllers.search = Posts.controllers.list.extend({
view: 'search',
showViewsNav: false,
getTitle: function() {
return i18n.t("Search") + ' - ' + Settings.get('title', "Telescope");
},
getDescription: function() {
return Settings.get... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.micromustache ... |
// Copyright 2010 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... |
/*!
* json-schema-faker library v0.3.5
* http://json-schema-faker.js.org
* @preserve
*
* Copyright (c) 2014-2016 Alvaro Cabrera & Tomasz Ducin
* Released under the MIT license
*
* Date: 2016-08-01 20:24:53.199Z
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else i... |
/*! /function/unique/uuid 1.0.3 | http://nucleus.qoopido.com | (c) 2015 Dirk Lueth */
!function(){"use strict";function x(){function x(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(r,function(x){var n=16*Math.random()|0;return("x"===x?n:3&n|8).toString(16)})}var n={},r=new RegExp("[xy]","g");return function(){... |
import { expect } from 'chai';
import getStatusFromRoutes from '../getStatusFromRoutes';
describe('getStatusFromRoutes', () => {
it('should return null when no routes have status code', () => {
const status = getStatusFromRoutes([
{}, {}
]);
expect(status).to.equal(null);
});
it('should re... |
var _ = require('underscore');
var Future = require('fibers/future');
var Fiber = require('fibers');
var fiberHelpers = require('../utils/fiber-helpers.js');
var files = require('../fs/files.js');
var watch = require('../fs/watch.js');
var bundler = require('../isobuild/bundler.js');
var buildmessage = require('../util... |
var fs = require('graceful-fs')
var path = require('path')
var pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '/../package.json')).toString())
exports.VERSION = pkg.version
exports.DEFAULT_PORT = process.env.PORT || 9876
exports.DEFAULT_HOSTNAME = process.env.IP || 'localhost'
exports.DEFAULT_LISTEN_ADDR = pr... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/autoload/multiline.js
*
* Implements the HTML-CSS output for <mrow>'s that contain line breaks.
*
* -----... |
module.exports = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.... |
/* pica 2.0.1 nodeca/pica */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}... |
/********************************************************************
* Kalendae, a framework agnostic javascript date picker *
* Copyright(c) 2013-2016 Jarvis Badgley (chipersoft@gmail.com) *
* http://github.com/ChiperSoft/Kalendae *
* Version 0.6.0 ... |
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
rsCombo = '[' + rsComboRange + ']',
rsModifie... |
/*!
* json-schema-faker library v0.2.13
* http://json-schema-faker.js.org
* @preserve
*
* Copyright (c) 2014-2016 Alvaro Cabrera & Tomasz Ducin
* Released under the MIT license
*
* Date: 2016-03-22 09:02:12.807Z
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else ... |
/**
* Requires that a line comment (`//`) be followed by a space.
*
* Types: `Boolean`, `Object` or `String`
*
* Values:
* - `true`
* - `"allowSlash"` (*deprecated* use `"allExcept": ["/"]`) allows `/// ` format
* - `Object`:
* - `allExcept`: array of allowed strings before space `//(here) `
*
* #### ... |
(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... |
!function(){"use strict";function t(t,e){function o(t){e.process(this,t)}return o.prototype={originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,preventDefault:function(){var t=this,e=t.originalEvent;e.cancelable!==!1&&(t.isDefaultPrevented=!0,e.preventDefault... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
const{compactThemeSingle:compactThemeSingle}=require("./theme"),defaultTheme=require("./default-theme");module.exports={...defaultTheme,...compactThemeSingle}; |
// Copyright 2010 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... |
import * as t from "../../../types";
/**
* [Please add a description.]
*/
function buildAssert(node, file) {
return t.callExpression(
file.addHelper("temporal-assert-defined"),
[node, t.literal(node.name), file.addHelper("temporal-undefined")]
);
}
/**
* [Please add a description.]
*/
function refer... |
import isWebColor from"../isWebColor";import processColor from"../../exports/processColor";var normalizeColor=function(o,r){if(void 0===r&&(r=1),null!=o){if("string"==typeof o&&isWebColor(o))return o;var e=processColor(o);if(null!=e)return"rgba("+(e>>16&255)+","+(e>>8&255)+","+(255&e)+","+((e>>24&255)/255*r).toFixed(2)... |
CKEDITOR.plugins.setLang("justify","si",{block:"Justify",center:"මධ්ය",left:"Align Left",right:"Align Right"}); |
/**
* @ngdoc overview
* @name angularVideoBg
* @description This module contains a directive that allows you easily make a YouTube video play as the background of
* any container on your site.
*/
angular.module('angularVideoBg', []);
/**
* @ngdoc directive
* @name angularVideoBg.directive:videoBg
* @descripti... |
var React = require('react');
var invariant = require('react/lib/invariant');
var PropTypes = require('../PropTypes');
var RouteHandler = require('./RouteHandler');
/**
* <Route> components specify components that are rendered to the page when the
* URL matches a given pattern.
*
* Routes are arranged in a nested ... |
var util = require('util'),
path = require('path'),
fs = require('fs');
var minijasminelib = require('./index');
/**
* A super simple wrapper around minijasminelib.executeSpecs()
*/
var forceExit = false;
var captureExceptions = false;
var onComplete = function(runner, log) {
console.log('\n');
if (ru... |
/**
* Supported keybindings:
*
* Motion:
* h, j, k, l
* e, E, w, W, b, B, ge, gE
* f<character>, F<character>, t<character>, T<character>
* $, ^, 0
* gg, G
* %
* '<character>, `<character>
*
* Operator:
* d, y, c
* dd, yy, cc
* g~, g~g~
* >, <, >>, <<
*
* ... |
/*
* jQuery UI Droppable @VERSION
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Droppables
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.mouse.js
... |
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the ... |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... |
/*! t3 v 1.5.1*/
/*!
Copyright 2015 Box, 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 applicable law o... |
assert.equal(do {
for (var i = 0; i < 5; i++) {
i;
}
}, 4);
|
/* Garlicjs dist/garlic.min.js build version 1.0.3 http://garlicjs.org */
!function(a){var h=function(){this.defined="undefined"!==typeof localStorage};h.prototype={constructor:h,get:function(b,a){return localStorage.getItem(b)?localStorage.getItem(b):"undefined"!==typeof a?a:null},has:function(b){return localStorage.g... |
/* money.js 0.0.1 - josscrowcroft.github.com/money.js */
(function(g,j){var a=function(a){return new i(a)};a.version="0.0.1";var c=g.fxSetup||{rates:{},base:"USD"};a.rates=c.rates;a.base=c.base;a.settings={from:c.from||a.base,to:c.to||a.base};var h=a.convert=function(b,e){if(typeof b==="object"&&b.length){for(var d=0;d... |
// Matches a whole line break (where CRLF is considered a single
// line break). Used to count lines.
"use strict";
exports.__esModule = true;
exports.isNewLine = isNewLine;
var lineBreak = /\r\n?|\n|\u2028|\u2029/;
exports.lineBreak = lineBreak;
var lineBreakG = new RegExp(lineBreak.source, "g");
exports.lineBreakG... |
define(function() {
Q.module('AssetLoader');
});
|
/*!
* Qoopido.js library v3.6.5, 2015-7-1
* https://github.com/dlueth/qoopido.js
* (c) 2015 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(t){window.qoopido.register("function/proximity",t)}(function(t,a,o,r,e,y,x){"use strict";return function(t,a){var o=!1;return t="object"==typeof t&&null!==t?t:{x:x,y:x},a... |
/**
* @license AngularJS v1.2.19
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
var $sanitizeMinErr = angular.$$minErr('$sanitize');
/**
* @ngdoc module
* @name ngSanitize
* @description
*
* # ngSanitize
*
* The `ngSanitize` module p... |
/*!
* jQuery Cookie Plugin v1.3
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*
* Modified to work with Zepto.js by ZURB
*/
(... |
/*
AngularJS v1.2.0-rc.2
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(H,g,C){'use strict';var A=g.$$minErr("$resource");g.module("ngResource",["ng"]).factory("$resource",["$http","$parse","$q",function(D,y,E){function n(g,h){this.template=g;this.defaults=h||{};this.urlParams={}}function ... |
module.exports = {
/**
* ### config.includeStack
*
* User configurable property, influences whether stack trace
* is included in Assertion error message. Default of false
* suppresses stack trace in the error message.
*
* chai.config.includeStack = true; // enable stack on error
*
* @... |
// returns the input string clipped from the left side
// in order to meet the specified `width`
function clipLeft (str, width, prefix) {
prefix = prefix || '…'
return (str.length > width)
? prefix + str.slice(width - prefix.length)
: str
}
module.exports = clipLeft
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const setteeError_1 = require("./setteeError");
/**
* Storage Error class related couchbase communication.
*/
class StorageError extends setteeError_1.default {
/**
* KeyError constructor
*/
constructor(message, code, docum... |
var citations=require("./citations");
for (var i=0;i<citations.length;i++) {
var cit=citations[i];
if (cit[4]>255) {
console.log(cit)
}
} |
Object.defineProperty(exports,"__esModule",{value:true});var merge_1=require("rxjs/observable/merge");exports.combineEpics=function(){var epics=[];for(var _i=0;_i<arguments.length;_i++)epics[_i]=arguments[_i];return function(){var epicArgs=[];for(var _i=0;_i<arguments.length;_i++)epicArgs[_i]=arguments[_i];return merge... |
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import * as sexagesimal from '@mapbox/sexagesimal';
import { presetManager } from '../presets';
import { t } from '../core/localizer';
import { dmsCoordinatePair } from '../util/units';
import { coreGraph } from '../core/graph';
import { ge... |
import {
append,
complement,
drop,
F,
flatten,
ifElse,
is,
map,
merge,
objOf,
pipe,
prop,
propEq,
reduce,
} from 'ramda'
import {
Bus,
combineTemplate,
fromBinder,
when,
zipWith,
} from 'baconjs'
import { defaultContextValue } from './context'
import { preReduces, postReduces, defa... |
import mod163 from './mod163';
var value=mod163+1;
export default value;
|
console.log('Creating tables...')
const database = require('../lib/database')
database.sync().then(() => {
console.log('Tables created.')
database.close()
})
|
var
HTTP = requireSafe('http'),
HTTPS = requireSafe('https'),
URL = requireSafe('url');
const MAX_REDIRECTS = 2;
class Network_Utility_Fetcher {
/**
* @param {object|string} options
* @param {function} callback
* @returns {void}
*/
fetch(options, callback) {
if (TypeHelper.isString(options))... |
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= nodeunit.tests %>'
],
options: {
jshintrc: '.jshintrc'
}
},
... |
'use strict'
const { ScreepsAPI } = require('../')
const auth = require('../auth')
const WebSocket = require('ws')
let api = new ScreepsAPI()
Promise.resolve()
.then(()=>api.auth(auth.email,auth.password))
.then(()=>api.socket.connect())
.then(()=>{
api.socket.subscribe('console')
api.socket.subscribe('... |
import mod1080 from './mod1080';
var value=mod1080+1;
export default value;
|
require('dotenv').config();
var bodyParser = require('body-parser');
var express = require('express');
var matchReportApi = require('./matchReportApi.js');
var app = express();
var api = matchReportApi(process.env.DATABASE_URL);
// Use body-parser middleware to populate request.body
app.use(bodyParser.urlencoded({ ... |
import {expect} from "chai";
import {Node, Edge} from "../src/index.js";
describe("Edge", function () {
beforeEach(function () {
this.n0 = new Node();
this.n1 = new Node();
this.e0 = new Edge(this.n0, this.n1);
this.e1 = new Edge(this.n0, this.n1);
});
describe("#fromJSON... |
import { drag as d3_drag } from 'd3-drag';
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import { t } from '../util/locale';
import { actionChangeMember } from '../actions/change_member';
import { actionDeleteMember } from '../actions/delete_member';
import { actionMoveMember } from '.... |
import mod740 from './mod740';
var value=mod740+1;
export default value;
|
/**
* @file
* A simple slave hello world example.
* @see ./master.js for more information.
*/
/* eslint-disable no-console */
'use strict';
const slave = require('../../').Slave;
slave
.task('hello', (data, done) => {
done('hello');
})
.task('world', (data, done) => {
done('world');
})
.task('!... |
'use strict';
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _get = require('babel-runtime/helpers/get')['default'];
var _createDecoratedClass = require('babel-runtime/helpers/create-decorated-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['def... |
import chokidar from 'chokidar';
export const ADD_EVENT = 'add';
export const CHANGE_EVENT = 'change';
export const UNLINK_EVENT = 'unlink';
export const ADD_DIR_EVENT = 'addDir';
export const UNLINK_DIR_EVENT = 'unlinkDir';
export const ERROR_EVENT = 'error';
export const READY_EVENT = 'ready';
export const RAW_EVENT... |
import 'meteor-imports'
import { Meteor } from 'meteor/meteor'
import { render } from 'react-dom'
import React from 'react'
import { AppContainer } from 'react-hot-loader'
import { Map as iMap } from 'immutable'
import makeStore from '../universal/redux/makeStore'
import Root from './Root'
Meteor.startup(() => {
con... |
var
client = require('../client'),
config = require('config'),
request = require('request'),
account_types = require(_.src + '/constants/account-types');
client.registerCommand('restart', function handler(command) {
var
key = command.args[1].trim(),
url = 'http://localhost:' + config.mana... |
import from from 'core-js-pure/es/array/from';
import Set from 'core-js-pure/features/set';
QUnit.test('Set.of', assert => {
const { of } = Set;
assert.isFunction(of);
assert.arity(of, 0);
assert.true(Set.of() instanceof Set);
assert.deepEqual(from(Set.of(1)), [1]);
assert.deepEqual(from(Set.of(1, 2, 3, 2,... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./HzQuizResource"], factor... |
import assert from 'power-assert';
import Util from '../src/js/Util.js';
/** @test {Util} */
describe( 'Util', () => {
/** @test {Util#formatDate} */
describe( 'formatDate', () => {
it( 'Default YYYY-MM-DD hh:mm:ss.SSS', () => {
const date = new Date( 2015, 7, 4, 21, 17, 45, 512 );
const text = U... |
'use strict';
/* global expect, before, describe, it */
var Protocol = require('../lib/index');
var Long = require('long');
describe('Reader', function () {
describe('primitives', function () {
var primitives = [
['Int8', 1],
['UInt8', 1],
['Int16LE', 2],
... |
version https://git-lfs.github.com/spec/v1
oid sha256:a2aefe6f3147ae0ef720037017a2713278ddff58dc9fc39f7cebf9f230505dde
size 6288
|
/*global Todos, Ember */
'use strict';
Todos.EditTodoView = Ember.TextField.extend({
focusOnInsert: function () {
this.$().focus();
}.on('didInsertElement')
});
Ember.Handlebars.helper('edit-todo', Todos.EditTodoView);
|
// kloudless node sdk v0.1
'use strict';
Kloudless.defaultConfig = {
host: "api.kloudless.com",
port: 443,
basePath: "/v0/"
}
var resources = require('./resources');
function Kloudless(key) {
if(!(this instanceof Kloudless)) {
return new Kloudless(key);
}
this._api = {
auth: ... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport'),
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy,
config = require('../config'),
users = require('../users/users.server.controller');
module.exports = function() {
// Use google strategy
passport.use(new GoogleStrat... |
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users');
var eventRequests = require('../../app/controllers/event-requests');
// Event requests Routes
app.route('/event-requests')
.get(users.requiresLogin, eventRequests.list)
.post(users.requiresLogin, eventRequests.c... |
var Coordinate = function(X,Y) {
this.X = X;
this.Y = Y;
};
Coordinate.prototype.cartesian = function(x, y) {
return [this.X + x, this.Y + y];
};
Coordinate.prototype.polar = function(d, r) {
var x = d * Math.cos(r) + this.X;
var y = d * Math.sin(r) + this.Y;
return [Math.sqrt(x * x + y * y), Math.atan2(y, x)];... |
// Manipulating JavaScript Objects
// I worked on this challenge: [by myself]
// There is a section below where you will write your code.
// DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES!
var terah = {
name: "Terah",
age: 32,
height: 66,
weight: 130,
hairColor: "brown",
eyeColor: "... |
var searchData=
[
['cloudmanager',['CloudManager',['../classacq_1_1_cloud_manager.html',1,'acq']]]
];
|
(function() {
'use strict';
module.exports = function() {
return {
deps: []
};
};
})();
|
/*jslint browser:true*/
/*global define, module, exports, console, global, JSON, unescape */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function() {
return factory(root);
});
} else if (ty... |
import { Template } from 'meteor/templating';
import _ from 'underscore';
import ExposureEvidence from '/imports/collections/exposure';
import {
abstractFormEvents,
} from '/imports/api/client/templates';
import {
toggleQA,
initPopovers,
destroyPopovers,
} from '/imports/api/client/utilities';
impo... |
git://github.com/matthewtoast/Input.js.git
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'intranet';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize'... |
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const shared = require('./shared');
module.exports = Object.assign(
shared.config,
{
output: Object.assign(
shared.config.output,
{
filename: '[name]-[chunkhash].js'
}
),
plug... |
/**
* @author Avi Deitcher
* @fileOverview Channel to read/write from an HTTP server
*/
/*global j, JSORM */
/**
* Create new HTTP channel
* @class Channel to communicate over http via Ajax with the back-end server.
*
* @param {Object} config Configuration object, must have at least one url parameter
* @param... |
/**
* Copyright (C) 2011 Hakim El Hattab, http://hakim.se
*
* 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, ... |
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
Apache License 2.0
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 r... |
function getDoNotTrack() {
if(navigator.doNotTrack) {
return navigator.doNotTrack;
} else if (navigator.msDoNotTrack) {
return navigator.msDoNotTrack;
} else if (window.doNotTrack) {
return window.doNotTrack;
}
return "unknown";
}
fp.doNotTrack = getDoNotTrack(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.