code stringlengths 2 1.05M |
|---|
/**
* @module map-tile-scraper
*/
/**
* @namespace Typedefs
*/
/**
* @typedef {Object} CoordinatesObjectType
* @property {Number} lat - latitude degrees(must be between -90 and 90 degrees)
* @property {Number} lng - longitude degrees (must be between -180 and 180)
* @property {Number} sqKms - the number of s... |
/**
* @fileoverview This module provides the pure data object Document
*/
/**
* Create new document instance.
*
* @param {string} type The document type. E.g. 'xml' or 'json'
* @param {string} [name] The file name.
* @param {object} data A reference to the underlying document, the DOM.
* @param {obje... |
/*
* jqCoolGallery
*
* Version: 1.8
* Requires jQuery 1.5+
* Docs: http://www.jqcoolgallery.com
*
* (c) copyright 2011-2012, Redtopia, LLC (http://www.redtopia.com). All rights reserved.
*
* Licensed under the GNU General Public License, version 3 (GPL-3.0)
*
* This program is free software: you can redi... |
(function(){
var express = require('express');
var router = express.Router();
var redirect = function(req, res) {
var url = req.url.substring(1);
console.log(url);
return res.redirect(url);
};
router.get('/*', redirect);
module.exports = router;
}());... |
const parseNum = require('parse-num')
/* global Intl */
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat
const defaultOptions = {
nanZero: true,
locale: 'en-US',
localeMatcher: 'best fit',
useGrouping: true, // grouping separator determined by locale
maximumFr... |
/*
------------------------------------------------------
www.idiotminds.com
--------------------------------------------------------
*/
(function ($) {
/* For popup */
$.fn.oauthpopup = function (options) {
this.click(function(){
options.windowName = options.windowName || 'ConnectWithOAuth';
options.w... |
class Timer {
constructor(minutes = 25, type = 'work') {
this.duration = minutes * 60000;
this.startTime = null;
this.state = null;
this.type = type;
}
get isWorkTimer() {
return this.type === 'work';
}
get isBreakTimer() {
return this.type === 'break';
}
generateStartTime(time ... |
'use strict';
const {ipcRenderer} = require('electron');
const ipcPlus = require('electron-ipc-plus');
const {ErrorNoPanel, ErrorNoMsg, resolveMessage} = require('../common');
let _id2panelFrame = {};
/**
* @module panel
*
* panel module for manipulate panels in renderer process
*/
let panel = {};
module.exports... |
var operationStats = {
operation_data: null,
initialize: function (data) {
this.operation_data = data;
this.addOperationData(data);
},
addOperationData: function(_data) {
$operation_skeleton = $("#operation_stat_skeleton");
var operation_dom_elements = [];
var that = this;
$.each(_dat... |
var Lab = require('lab');
var Code = require('code');
var Hapi = require('hapi');
var Proxyquire = require('proxyquire');
var Config = require('./config');
var lab = exports.lab = Lab.script();
var stub = {
BaseModel: {}
};
var ModelsPlugin = Proxyquire('..', {
'./lib/base-model': stub.BaseModel
});
lab.exp... |
'use strict';
var exports = {};
exports.version = '2.1.2';
//http://stackoverflow.com/questions/6598945/detect-if-function-is-native-to-browser
var isFuncNative = function isFuncNative(f) {
return !!f && (typeof f).toLowerCase() === "function" &&
//jshint maxlen=300
(/^\s*function\s*(\b[a-z$_][... |
'use strict'
const {WEBPACK_DONT_ALWAYS_PRINT_STDIO = 'false'} = require('process').env
const main = require('./lib/test-spawn')
main({
alwaysPrintStdIO: WEBPACK_DONT_ALWAYS_PRINT_STDIO !== 'true',
defaultExecutable: 'webpack',
envMiddleName: 'WEBPACK'
})
|
/*global history */
sap.ui.define([
"md/standalone/no/unit/line/no/line/unit/controller/BaseController",
"sap/ui/model/json/JSONModel",
"sap/ui/model/Filter",
"sap/ui/model/FilterOperator",
"sap/m/GroupHeaderListItem",
"sap/ui/Device",
"md/standalone/no/unit/line/no/line/unit/model/formatter"
], function... |
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'assets/js/*.js',
'!assets/js/scripts.min.js'
]
},
sass: {
dist: {
options: {
style: 'ex... |
var dir_dacb3312737b682230fbf101b5a77450 =
[
[ "utilities", "dir_45f8a1cbe1d055833100269ade1d303b.html", "dir_45f8a1cbe1d055833100269ade1d303b" ],
[ "c.h", "c_8h_source.html", null ],
[ "cache.h", "cache_8h_source.html", null ],
[ "compaction_filter.h", "compaction__filter_8h_source.html", null ],
[... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
mongoose = require('mongoose'),
User = mongoose.model('User');
/**
* User middleware
*/
exports.userByID = function(req, res, next, id) {
User.findById(id)
// .findOne({
// _id: id
// })
.exec(function(err, user) {
if (err) return ne... |
//==================================================================================================
//VALIDATORS
//==================================================================================================
Form.validators = (function() {
var validators = {};
validators.errMessages = {
required: 'Re... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'list', 'nl', {
bulletedlist: 'Opsomming invoegen',
numberedlist: 'Genummerde lijst invoegen'
});
|
/*
Copyright 2013, KISSY UI Library v1.40dev
MIT Licensed
build time: Jul 3 13:57
*/
KISSY.add("rich-base",function(e,n){function p(b,a){return a.toUpperCase()}function l(){var b,a;n.apply(this,arguments);a=this.get("listeners");for(b in a)this.on(b,a[b]);this.callMethodByHierarchy("initializer","constructor");this.con... |
'use strict';
angular.module('charactersApp')
.controller('MainCtrl', ['$scope', '$http',
function ($scope, $http) {
$http.get('characters/characters.json')
.success(function (data) {
$scope.characters = data;
});
}]); |
document.writeln ("Test.")
|
'use strict';
/*global console, Thenjs*/
function request(url) {
return function (callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.onreadystatechange = function () {
if (this.readyState !== 4) return;
callback(this.status === 200 ? null : xhr, xhr);
};
xhr.send();... |
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
import { Alias } from "./Alias";
import {... |
export default function ResourceService(ApiService, QueryBuilderService) {
'ngInject';
function Service() {
this.api = ApiService;
this.resource = '';
this.builder = QueryBuilderService.getInstance();
this.builder.build = (callback) => {
if (typeof callback === 'function') {
return callback(this... |
/* eslint-disable no-case-declarations */
export const reducer = (state = {
friends: [],
eventHash: '',
yelpData: [],
liveData: [],
user: {},
connectedPeers: 0,
talliedVotes: 0,
coords: [],
edp: {},
homeEventPageData: {},
eventPageData: {},
parentPage: '/',
selectedView: 'Create',
selectedVi... |
'use strict';
var StylieNotification = require('../../index'),
// classie = require('classie'),
notification1,
modalButtonContainer;
var openModalButtonHandler = function (e) {
// create the notification
var notification = new StylieNotification({
message: '<p>This is just a simple notice. Everything is in ord... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_definePr... |
'use strict';
describe('ui-select tests', function () {
var scope, $rootScope, $compile, $timeout, $injector, $q, uisRepeatParser;
var Key = {
Enter: 13,
Tab: 9,
Up: 38,
Down: 40,
Left: 37,
Right: 39,
Backspace: 8,
Delete: 46,
Escape: 27,
Comma: 188,
A: 65,
C: 67,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
connections: [{
type: 'mongoose',
name: 'default',
url: 'mongodb://localhost:27017/testdb',
options: {
server: {
socketOptions: {
keep... |
import angular from 'angular';
import harcWidgetComponent from './harc-widget-component';
import './harc-widget.css';
/**
* # Widget wrapper component <harc-widget>
*
* Wraps and visually normalizes all application widgets.
* There is an important, required binding on the harc-widget:
* - widgetName (widget-name ... |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import DevTools from './DevTools';
import {syncHistoryWithStore} from 'react-router-redux'
import configureStore from './configureStore';
//import { createHistory } from 'history'
// import createHistory from 'history/lib/createHashHistor... |
var matricula_status = {
ATIVO: 1,
INATIVO: 2,
BLOQUEADO: 3,
HOMOLOGADO:4
};
function initializeGridMatrizCurricular(EDITABLE, urlMatriz, urlAlunos)
{
$('#divMatriculas').show();
var grid = $("#jqxgridmatriz");
var dataAdapterMatrizCurricular = new $.jqx.da... |
// blah blah blah |
You are given a function foo() that represents a biased coin. When foo() is called, it returns 0 with 60% probability, and 1 with 40% probability. Write a new function that returns 0 and 1 with 50% probability each. Your function should use only foo(), no other library method.Solution:
We know foo() returns 0 with 60%... |
var fs = require('fs'),
M3U = require('../m3u'),
sinon = require('sinon'),
should = require('should');
describe('m3u', function() {
describe('#set', function() {
it('should set property on m3u', function() {
var m3u = getM3u();
m3u.set('EXT-X-I-FRAMES-ONLY', true);
m3u.prop... |
const debugtrace = require('../debugtrace')
beforeAll(() => debugtrace.maximumDataOutputWidth = 60)
beforeEach(() => debugtrace.enter())
afterEach(() => debugtrace.leave())
class Contact {
constructor(firstName, lastName, birthday, phoneNumber) {
this.firstName = firstName
this.lastName = lastName
this.... |
const path = require('path');
const NeDB = require('nedb');
const service = require('feathers-nedb');
const hooks = require('./hooks');
module.exports = function () { // 'function' needed as we use 'this'
const app = this;
const db = new NeDB({
filename: path.join(app.get('nedb'), 'users.db'),
autoload: ... |
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import SettingsComponent from "../../App/Components/Settings/SettingsComponent";
jest.mock('react-native-version-number', () => {
return {
appversion: 'test'
}
})
jest.mock('react-native-code-push', () => {
function Moc... |
/*
* GET socket page.
*/
var express = require('express');
var http = require('http');
/**
* [Socket.io在线聊天室](http://blog.fens.me/nodejs-socketio-chat/)
* [node.js中Socket.IO的进阶使用技巧](http://www.jb51.net/article/57091.htm)
* [Server API](http://socket.io/docs/server-api/)
*
*
* @param app
* @param server
*/
mo... |
$(document).ready(function() {
$('#datatable tfoot th').each( function () {
var title = $('#example thead th').eq( $(this).index() ).text();
$(this).html( '<input type="text" placeholder="Search '+title+'" />' );
});
$('#datatable').DataTable({
processing: true,
serverSide: true,
ajax: { url: "data"... |
(() => {
/**
* @extract BasicFunc
* */
function basicFunc() {
// OK
}
/**
* @extract ArgsTest
* */
function argsTest(a, b, c, d) {
// OK
}
/**
* @extract FunctionLiteral
* */
var functionLiteral = function () {
// OK
};
var obj = {
/**
* @extract ObjectInFun... |
// require modules
var express = require('express');
var morgan = require('morgan');
var config = require('./config');
// instantiate app
var app = module.exports = express();
// logger
app.use(morgan('dev'));
require('./core/middleware.js');
require('./core/engine.js');
require('./core/session.js');
require('./c... |
/*
* grunt-uglifyid
* https://github.com/WihteCrow/grunt-uglifyid
*
* Copyright (c) 2016 crow
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
... |
var events = require('events');
var util = require('util');
var msgpack = require('msgpack-lite');
var helpers = require('./helpers');
var lua = require('./lua');
function Job(queue, jobId, data, options) {
this.queue = queue;
this.id = jobId;
this.progress = 0;
this.data = data || {};
this.options = option... |
var shorthash = require('../index.js');
shorthash.setDictionary('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
function randomNumber () {
var min=0, max;
switch(arguments.length) {
case 1:
max = arguments[0] - 1; // 一个参数的情况,不包括最大值本身,如randomNumber(10)永远取不到10
break;
case 2:
min = arguments[0];... |
var events = require('events');
var util = require('util');
var debug = require('debug')('uri-beacon-scanner');
var noble = require('noble');
var uriDecode = require('uri-beacon-uri-encoding').decode;
var SERVICE_UUID = 'fed8';
var UriBeaconScanner = function() {
noble.on('discover', this.onDiscover.bind(this));
... |
import React from 'react'
import { Router, Route } from 'react-router'
import { WiredCard } from 'wired-elements'
import Home from '@/home'
import Menu from '@/menu'
const prefix = process.env.prefix
// TODO prefix 前缀用法需要特殊处理
const AppRouter = ({ history }) => (
<Router history={history}>
<div id="content">
... |
// Minimize the toolbar
var ToolView = require( './ToolView.js' );
module.exports = ToolView.extend( {
id: 'mwe-pt-minimize',
icon: 'icon_minimize.png', // the default icon
title: '',
tooltip: 'pagetriage-toolbar-minimize',
initialize: function ( options ) {
this.eventBus = options.eventBus;
this.moduleConfi... |
// configuration
var database = "moita"; // database name
var output = "timeslotsByDay"; // output collection name (for shell usage)
var semester = "20161"; // desired semester
// code
db = db.getSiblingDB(database);
var map = function() {
for (var _class of this.classes) {
for (var time of _class.timetable) {
... |
/**/// Public: initialize
/**///
/**/// Args
/**/// boombot - a boombot instance
/**///
/**/// Returns
/**/// return - initializes database connections if needed
exports.initialize = function(config) {
// Determine what database setup is chosen
// this only runs when database is set on so just assume configs fine..... |
var engine = {
posts : [],
target : null,
busy : false,
count : 5,
render : function(id, obj){
var xhtml = '<div class="singleQuestion" id=question_'+id+'>';
if (obj.user) {
xhtml += '<div class="userName">'+obj.user+'</div>';
}
if (obj.date) {
xhtml += '<div class="questionDate">'+obj.date+'</... |
define([], function() {
'use strict';
return function($scope, $stateParams, $quotation, $state, localStorageService, $rootScope, $toast) {
var item_id = parseInt($stateParams.id);
$scope.vm = {
loading:false,
emptyTitle:''
};
$scope.initData = function (){
$scope.vm.loading = true;
$... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { addDependencies } from './dependenciesAdd.generated'
import { compareDependencies } from './dependenciesCompare.generated'
import { divideDependencies } from './dependenciesDivide.generated'
import { partitionSelectDependencies } from './depende... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var util = require('util'); /* jshin... |
import { Home } from 'pages'
const routes = [
{
path: '/',
exact: true,
component: Home
}
]
export default routes
|
var ResourceChangedEvents = require('../');
var should = require('should');
var nock = require('nock');
describe('Happy Path', function() {
var mockNock = function(url, path, resp) {
nock(url).get(path).reply(resp.statusCode, resp.data);
};
var doneCalled = false;
var lenientDone = function(done) {
if (!done... |
import { MUTATIONS } from '../mutations';
import { GETTERS } from '../getters';
// initial state
const state = {
save_message: {
message: "",
error: false
}
}
// getters
const getters = {
[GETTERS.BANNERS.GET_SAVE_BANNER] (state) {
return state.save_message;
},
};
// actions
c... |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6... |
/*!
* Chart.js
* http://chartjs.org/
* Version: 1.0.1-beta.3
*
* Copyright 2014 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
(function(){
"use strict";
//Declare root variable - window in the browser, global on the server
var root = this,
p... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("require exports ../Point ../Polygon ../Polyline ../SpatialReference".split(" "),function(H,v,D,E,F,G){function y(a,p,e,g){var n=1/298.257223563,t=Math.sin(e... |
'use strict';
/*
CreditCategory model fields:
{
title
}
*/
module.exports = function(sequelize, DataTypes) {
var CreditCategory = sequelize.define('CreditCategory', {
title: {
type: DataTypes.STRING,
allowNull: false,
field: 'title',
uniqu... |
var fs = require('fs');
var os = require('os');
var blessed = require('blessed');
var multiline = require('multiline');
if (os.platform() === 'win32') {
console.log('**************************************************************');
console.log('Hackathon Starter Generator has been disabled on Windows until');
... |
// Encode.js v3.4.1
//---------------------------------------------------------------------------
// ★Encodeクラス URLのエンコード/デコードを扱う
//---------------------------------------------------------------------------
// URLエンコード/デコード
// Encodeクラス
pzpr.classmgr.makeCommon({
//----------------------------------------------------... |
/// BCRYPT
var bcrypt = NpmModuleBcrypt;
var bcryptHash = Meteor.wrapAsync(bcrypt.hash);
var bcryptCompare = Meteor.wrapAsync(bcrypt.compare);
// User records have a 'services.password.bcrypt' field on them to hold
// their hashed passwords (unless they have a 'services.password.srp'
// field, in which case they will... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 23h-1.5v-9H19v9zM7.53 14H6l-2 9h1.53l2-9zm5.97-8.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l... |
var _ = require('lodash');
var Handlebars = require('handlebars');
var HandlebarsCompiler = function () {
// TODO register helpers here?
};
HandlebarsCompiler.prototype.compileAll = function (templates, callback) {
var templateFns = {};
_.each(templates, function (content, name) {
try {
... |
module.exports = function (grunt) {
// load plugins
[
'grunt-cafe-mocha',
'grunt-contrib-jshint',
'grunt-exec'
].forEach(function (task) {
grunt.loadNpmTasks(task)
})
// configure plugins
grunt.initConfig({
cafemocha: {
all: {src: 'qa/tests-*.js', options: {ui: 'tdd'}}
},
... |
import React from 'react/addons'
export default React.createClass({
displayName: 'Number',
mixins: [React.addons.PureRenderMixin],
render() {
return <span {...this.props}>{this.props.value}</span>
}
})
|
/**
* @license AngularJS v1.5.6
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function (window, angular) {
'use strict';
/**
* @ngdoc module
* @name ngRoute
* @description
*
* # ngRoute
*
* The `ngRoute` module provides routing and deeplinking servi... |
/**
* @file Main file of Yeoman generator for React web
* @author Karol Altamirano <karlos.altamirano@gmail.com>
* @copyright 2016 - 2017 Karol Altamirano
* @license MIT
*/
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
const _ = re... |
module.exports = function (grunt, data) {
return {
options: {
livereload: true
},
setups: {
files: ['<%= _PATH.setup %>/<%= _FILE.config %>'],
tasks: [
'json_generator:bowerrc',
'json_generator:bower',
'shell:bowerRemove',
'shell:bowerCacheClean',
'shell:bowerUpdate',
'less:vend... |
import React from 'react';
import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit';
import Timeline from '../Timeline';
import { timelinePrivateDriverFactory } from './Timeline.private.uni.driver';
describe(Timeline.displayName, () => {
const render = createRendererWithUniDriver(timelinePriv... |
import {Observable} from 'rx'
import {div, input, label} from '@cycle/dom'
function renderInputField(value) {
return input('.number-input .mdl-textfield__input',
{
type: 'tel',
attributes: {inputmode: "numeric"},
value: value,
pattern: "-?[0-9]*(\.[0-9]+)?"
}
)
}
function renderLab... |
define([
'./directives/index.js'
], function () {
console.log("[OK] - Loading shared modules");
}); |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M4 8.25l7.51 1-7.5-3.22zm.01 9.72l7.5-3.22-7.51 1z",
opacity: ".3"
}), h("path", {
d: "M2.01 3L2 10l15 2-15 2 .01 7L23 12 2.01 3zM4 8.25V6.03l7.51 3.22-7.51-1zm.01 9.72v-2.22l7.51-... |
/**
* Created by Administrator on 2017/4/19 0019.
*/
var app = require('app');
app.registerController('TreeCtrl', TreeCtrl);
/*@ngInject*/
function TreeCtrl($scope) {
var vm = $scope;
vm.node = null;
var names = ['Homer', 'Marge', 'Bart', 'Lisa', 'Mo'];
function createSubTree(level, width, prefix) {
i... |
/**
* Scapegoat
* https://github.com/brentertz/scapegoat
*
* Copyright (c) 2014 Brent Ertz
* Licensed under the MIT license.
*/
var chars = {
'&': '&',
'"': '"',
''': '\'',
'<': '<',
'>': '>'
};
/**
* Escape special characters in the given string of html.
*
* @param {... |
_globals.core.__videoBackends.jsmpeg = function() { return _globals.video.jsmpeg.backend }
|
// Generated on 2014-11-04 using generator-ionic 0.6.1
'use strict';
var _ = require('lodash');
var path = require('path');
var cordovaCli = require('cordova');
//var spawn = require('child_process').spawn;
var spawn = require('win-spawn');
var exec = require('child_process').exec;
module.exports = function (grunt) {... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_e... |
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @return {number[]}
*/
var inorderTraversal = function (root) {
if (root === null) return [];
const stack = [root], result = [];
while... |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* 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 agree... |
import GeometryDescriptorBase from './GeometryDescriptorBase';
class BufferGeometryDescriptorBase extends GeometryDescriptorBase {
updateCacheAndReplace = (propName, threeObject, newValue) => {
threeObject.userData._propsCache[propName] = newValue;
threeObject.userData._wantPropertyOverwrite = true;
... |
/**
* cbpAnimatedHeader.js v1.0.0
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2013, Codrops
* http://www.codrops.com
*/
var cbpAnimatedHeader = (function() {
var docElem = document.documentElement,
header = document.queryS... |
App.info({
id: 'de.lespace.kurentometeor',
name: 'helloWorld',
description: 'a simple Kurento WebRTC Example',
author: 'Nico Krause',
email: 'nico@le-space.de',
website: 'http://www.le-space.de'
});
// Set up resources such as icons and launch screens.
// App.icons({
// 'iphone': 'icons/icon-60.png',
// ... |
angular.module('house_app', [])
.controller('house_controller',
['$scope', '$attrs', function($scope, $attrs)
{
$scope.ajax_call = function(function_name, kwargs, callback, next_callback)
{
ajax_call(
$attrs.apiurl, function_name, kwargs,
scope_apply_callback($scope, func... |
/*! angular-facebook-insight - v0.6.1 - 2014-07-13
* Copyright (c) 2014 ; Licensed */
'use strict';
angular.module("angular-s3-upload-tpls", ["templates/angular-s3-upload-button.html"]); |
/*!
* Aloha Editor
* Author & Copyright (c) 2010 Gentics Software GmbH
* aloha-sales@gentics.com
* Licensed unter the terms of http://www.aloha-editor.com/license.html
*/
define(
['aloha',
'aloha/plugin',
'aloha/jquery',
'aloha/floatingmenu',
'i18n!toc/nls/i18n',
'i18n!aloha/nls/i18n',
'aloha/console'],
... |
import map from './map';
export default function listen() {
window.addEventListener('attribute.load.cmd', function(e){
var loader = map(e.detail);
loader.call(e.target);
});
}
|
import SectionManager from '../SectionManager';
export default function calculateSizeAndPositionData({
cellCount,
cellSizeAndPositionGetter,
sectionSize,
}) {
const cellMetadata = [];
const sectionManager = new SectionManager(sectionSize);
let height = 0;
let width = 0;
for (let index = 0; index < cel... |
/* global Flatdoc */
/* global bowlineApp */
'use strict';
/**
* @ngdoc function
* @name bowlineApp.controller:AboutCtrl
* @description
* # AboutCtrl
* Controller of the bowlineApp
*/
bowlineApp.controller('docsController', ['$scope', '$location', '$http', '$routeParams', 'loginModule', 'ENV', function($scope,$... |
// const urlParser = document.createElement('a');
// export function domain(url) {
// urlParser.href = url;
// return urlParser.hostname;
// }
// compatible for ssr, no global DOM ?
export function host(url) {
const host = url.replace(/^https?:\/\//, '').replace(/\/.*$/, '');
const parts = host.split... |
var string = require('../../utils/string');
var parser = require('./parser');
/**
* var updateSelectorParent - get a Selector that just got modified
* and make sure to modify it's parents Selectors as well accordingly
*
* @param {Selector} selector
*/
var updateSelectorParent = function(selector) {
while (sel... |
'use strict';
module.exports = angular.module('sm.molecules.carousel', [
require('ux_patterns/_helpers/angular/transition').name
])
.controller('CarouselController', require('./controllers/carousel_controller'))
.directive('carousel', require('./directives/carousel_directive'))
.directive('slide', require('./direc... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./signup.component'));
__export(require('./signup.routes'));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9zaWdudXAvaW5kZXgudHMiXSwibm... |
const express = require('express')
const {verifyAuthorization} = require('../handlers/auth')
const {verifyPermission} = require('../handlers/permissions')
const resourcesController = require('./controller')
// eslint-disable-next-line new-cap
const router = express.Router()
const verifyRoles = verifyPermission('resou... |
const event = require('./event');
const fourOhFour = require('./404');
const home = require('./home');
const login = require('./login');
const logout = require('./logout');
const register = require('./register');
module.exports = {
event,
fourOhFour,
home,
logout,
login,
register
};
|
require.config({
paths: {
"backbone": "vendor/components/backbone/index"
,"$": "vendor/components/jquery/index"
,"json": "vendor/components/json/index"
,"marionette": "vendor/components/marionette/index"
,"_": "vendor/components/lodash/index"
,"requirejs": "vendor/components/requirejs/index"
,"talent" : ... |
/**
* Created by alucas on 25/11/16.
*/
// # styles
require('./stories.scss');
import './draft-js-plugins/stories';
import './react-draft-wysiwyg/stories';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.