code stringlengths 2 1.05M |
|---|
var async = require('async');
var chai = require('chai');
var expect = chai.expect;
var gearman = require('gearman-coffee');
var Docker = require('dockerode');
var docker = new Docker({socketPath: '/var/run/docker.sock'});
var net = require('net');
var fs = require('fs');
var containers = require('./containers');
var m... |
function SVGTritoneFilter(filter, filterManager){
this.filterManager = filterManager;
var feColorMatrix = document.createElementNS(svgNS,'feColorMatrix');
feColorMatrix.setAttribute('type','matrix');
feColorMatrix.setAttribute('color-interpolation-filters','linearRGB');
feColorMatrix.setAttribute('v... |
module.exports = {
removeSVGTagAttrs: true,
removeTags: false,
removingTags: [
'title',
'desc',
'defs',
'style'
]
};
|
module("UnaryExpression");
testCompile(
"!false",
function anonymous() {
!false;
},
function anonymous() {
promise.not(promise.unit(false));
}
);
testCompile(
"!a",
function anonymous() {
!a;
},
function anonymous() {
promise.not(a);
}
);
|
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaStopCircle extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m27.3 26.4v-12.8q0-0.3-0.2-0.5t-0.5-0.2h-12.9q-0.3 0-0.5 0.2t-0.2 0.5v12.... |
import remapAsyncToGenerator from "../../helpers/remap-async-to-generator";
import * as t from "../../../types";
export function manipulateOptions(opts) {
opts.blacklist.push("regenerator");
}
export var metadata = {
optional: true,
dependencies: ["es7.asyncFunctions", "es6.classes"]
};
export function Func/*t... |
import { expect } from 'chai';
import {
getUsersSuccess, searchUsersSuccess,
updateUserSuccess,
getSingleUserSuccess
} from '../../src/actions/UserActions';
import UsersReducer from '../../src/reducers/UsersReducer';
describe('Users Reducer', () => {
it('should save the users detail in the store', () => {
... |
var isRoot = require('is-root')
var chalk = require('chalk')
var launchctl = require('../utils/launchctl')
var render = require('../utils/render')
var config = require('../../config.js')
module.exports = function() {
if (!isRoot()) {
return console.log(chalk.red('katon install requires root privileg... |
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) {
if (typeof parent.__extend == 'function') return parent.__extend(child);
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = pa... |
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "fr-ML",
likelySubtags: {
fr: "fr-Latn-FR"
},
identity: {
language: "fr",
territory: "ML"
},
territory: "ML",
calendar: {
patterns: {
d: "dd/MM/y",
D: "EEEE d MMMM ... |
module.exports = function(grunt) {
require('jit-grunt')(grunt);
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
var sourceDir = 'src',
outputDir = 'dist',
depDir = 'node_modules';
grunt.initConfig({
connect: {
all: {
options:{
... |
import test from 'ava';
import createImportStatement from '../../../transforms/utils/create-import-statement';
test('it can create a default import', (t) => {
const importStatement = createImportStatement('Foo', 'bar');
t.is(importStatement.type, 'ImportDeclaration');
t.is(importStatement.specifiers[0].local.na... |
const firebaseConfig = {
apiKey: 'AIzaSyCF5QtGXowzKdVZCXitBuG-TaxfIGcRH7g',
authDomain: 'sud-mun-pwa-2017.firebaseapp.com',
databaseURL: 'https://sud-mun-pwa-2017.firebaseio.com',
projectId: 'sud-mun-pwa-2017',
storageBucket: 'sud-mun-pwa-2017.appspot.com',
messagingSenderId: '701725827130'
}
export default... |
var earthChant = earthChant || {};
//NOTES NOTES NOTES NOTES:
// TURN INTO MINI RPG ENGINE (easily manipulable)
// BE MORE EFFICIENT (more phaser constructors, variables, etc..)
// USE JSON ++ PHASER'S GROUP CONSTRUCTOR (pass objects and entire properties through parameters)
// WRITE DOCUMENTAION ON CODE
... |
// jshint node: true, mocha: true
'use strict';
var assert = require('assert');
var fs = require('fs');
var dom5 = require('dom5');
var p = dom5.predicates;
suite('Faceless', function() {
var Faceless = require('../src/faceless');
var target = fs.realpathSync('test/test.xhtml');
test('read files', function(don... |
var EventMgr = function() {
var self = this;
// Indexed by event ID
// Information about events that we get from the calendar
// may include some data that is computed but does not need to be persisted
self.events = {};
// Indexed by event ID.
// Information about events that we add an... |
/**
* Created by Sergey on 14.08.14.
*/
$( document ).ready(function() {
var form = $(".js-messageForm");
$(".js-messageFormSubmit").on('click', function() {
$(this).prop('disabled', true);
form.submit();
});
form.on('submit', function(e) {
e.preventDefault();
data =... |
"use strict";
import gulp from 'gulp';
gulp.task('default', () =>
console.log("From Gulp with love")
//gulp.src('data/**/*.json')
// .pipe(gulp.dest('./build/js'));
);
|
const path = require('path')
module.exports = {
mode: 'production',
entry: './uvalidator.js',
output: {
library: 'uvalidator',
libraryTarget: 'amd',
path: path.resolve(__dirname, 'dist'),
filename: 'uvalidator.min.js'
},
externals: {
jquery: 'jquery'
},
resolve: {
alias: {
'uvalidator/rules': './... |
'use strict';
export default function routes($routeProvider) {
'ngInject';
$routeProvider
.when('/student/events', {
template: require('./studentevents.html'),
controller: 'StudentEventsCtrl',
authenticate: 'student'
});
}
|
var contentHelper = require('../parserContentHelper');
var logicHelper = require('../parserLogicHelper');
var nodes = require('../nodes');
/**
* @constructor
*/
function LogicIfNode() {
this.condition = null;
this.consequent = null;
this.alternate = null;
}
/**
* Parses the contents of an {% if ... %}... |
// Update the schema of peers to v2
export default store => {
for (const networkId of Object.keys(store.state.peer.all)) {
const peerData = store.state.peer.all[networkId]
let peers = peerData.peers
if (!peers.length) {
continue
}
peers = peers.map(peer => {
if (peer.latency) {
... |
'use strict'
var Promise = require('bluebird')
module.exports = function (payload) {
var self = global.ABIBAO.services.domain
return new Promise(function (resolve, reject) {
// email to lowercase
payload.email = payload.email.toLowerCase()
self.execute('query', 'individualFilterQuery', {email: payload... |
'use strict';
const handlers = require('./handlers');
exports.register = (server, options, next) => {
server.route({
method: 'GET',
path: '/notes-categories',
handler: handlers.getAll
});
server.route({
method: 'GET',
path: '/notes-categories/{id}',
handler: handlers.getById
});
se... |
import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import {isThisCardWaiting} from '../../state/commandTracking/commandTrackingSelectors';
import {StyledCard, StyledCardInner} from './_styled';
/**
* One estimation card on the board.
*/
const Card = ({isWaiting, isS... |
import {VISUALIZER} from './consts.js'
export default function makeTree(components, bindings) {
// As the input pipeline doesn't have to be a strict tree (multiple visualizers, multiple
// outputs per component) we have to create a "subgraph" that is a true tree so we can feed it to
// the d3 tree layout.... |
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
main: './src/main',
vendors: './src/vendors'
},
output: {
path: path.join(__dirname, './dist')
},
module: {
... |
var static = require('node-static');
var fileServer = new static.Server('./docs', {
cache: 0
});
require('http').createServer(function(request, response) {
request.addListener('end', function() {
fileServer.serve(request, response, function(err, result) {
if (err) { // There was an error s... |
var fs = require('fs'),
request = require('request'),
database = require('../../database/AllSets.json');
var totalCards = 0,
downloadedCards = 0;
fs.rmdir('cards', function() {
fs.mkdir('cards', function() {
loopThrough('Basic');
loopThrough('Classic');
loopThrough('Blackrock M... |
var Vector2 = require('../lib/vector2');
var Platform = require('./platform');
var Feature = module.exports;
Feature.platform = function(map, yes, no) {
var v = map[Platform.version()] || map.unknown;
var rv;
if (v && yes !== undefined) {
rv = typeof yes === 'function' ? yes(v) : yes;
} else if (!v && no ... |
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
const _ = require('underscore');
const Backbone = require('backbone-nested-models');
const Tone = require('tone');
const Tonality = require('audio/tonality/tonality.js');
function AudioController(song) {
_.extend(this, Backbone.Events);
const self = this;
this.part = new Tone.Part(function(time, event) ... |
(function(global, pfill){
pfill.defprop(pfill, "set_timeout", function set_timeout(f, params, delay, scope){
/*
// Removed because just assume the suer knows what they are doing.
if(!(pfill.is_function(f))) return -1;
((pfill.is_object(scope)) || (scope = this));
((pfill.is_value(delay)) || (delay ... |
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { HashRouter } from 'react-router-dom';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
import configureStore from './configureStore';
import App from 'app';
const reducers =... |
ShareDrop.App.UserView = Ember.View.extend({
classNames: ['peer'],
classNameBindings: ['peer.peer.state'],
localIps: function () {
// Convert unordered set to sorted array
var ips = this.get('controller.model.local_ips');
return ips.toArray().sort();
}.property('controller.model... |
if(!DailyKos) var DailyKos = {};
DailyKos.Metrics = (function(){
var userProperties = {};
var properties;
var registerUserProperties = function() {
if(userProperties && userProperties.id) {
mixpanel.identify(userProperties.id);
mixpanel.register({anonymous: false});
} else {
mixpanel.register({anonymo... |
import { sumBy, flow } from 'lodash';
export default function count(items, predicate) {
return sumBy(items, flow(predicate, Number));
}
|
angular.module('hariRtc')
.controller('CallCtrl', ["$scope", "$rootScope", "$timeout", "signaling", "ContactsService", "parameters",function ($scope, $rootScope, $timeout, signaling, ContactsService, parameters) {
console.log("parameter "+JSON.stringify(parameters));
var duplicateMessages = [];
$scope.ca... |
/* eslint-disable camelcase, func-names,
prefer-destructuring */
/* global PICKER_URL, VERSION, PICKER_URL_V1, BASE_URL */
import '../css/modal.less';
import { FLAVOR } from '../../picker/js/constants';
import {
LOADER_E2E_SELECTORS, EVENTS_LIST, VIEW_EVENTS,
} from '../../constants';
/**
* Define... |
import Router from 'koa-router';
import cachable from '../utils/cachable';
import HttpError from '../utils/HttpError';
import mangaInn from '../utils/consumers/mangaInn';
const MINUTES = 60000; // 1 minute in milliseconds
const router = new Router();
router.get('/', async (context) => {
context.body = {};
});
rou... |
/* eslint no-undef: "off", complexity: 0 */
import delay from 'api/__fakeApi__/delay';
import forumArray from 'api/__fakeData__/forumArray';
const getForumArrayByChapterIdArrayApi = chapterIdArray => {
const result = chapterIdArray.reduce((previous, current) =>
[...previous, ...forumArray.filter(x => x.ch... |
'use strict';
/* global browserTrigger */
splitMoveTests('touch', 'touchstart', 'touchmove', 'touchend');
splitMoveTests('mouse', 'mousedown', 'mousemove', 'mouseup');
// Wrapper to abstract over using touch events or mouse events.
function splitMoveTests(description, startEvent, moveEvent, endEvent) {
return desc... |
import external from '../externalModules.js';
function drawBrushPixels (pointerArray, storedPixels, brushPixelValue, columns) {
const getPixelIndex = (x, y) => (y * columns) + x;
pointerArray.forEach((point) => {
const spIndex = getPixelIndex(point[0], point[1]);
storedPixels[spIndex] = brushPixelValue;
... |
define(['jquery', 'underscore', 'backbone', 'marionette', 'models/documentEdit', 'codemirror', 'text!templates/documentEdit', 'codemirrorjs'], function($, _, Backbone, Marionette, DocumentEditModel, CodeMirror, documentEditTemplate) {
var DocumentEditView = Marionette.ItemView.extend({
template: _.template(document... |
module('Deferred Tests');
// 1
test('$.Deferred.state(): (pending)', function() {
var defer = new $.Deferred();
equal(defer.state(),'pending','Should return "pending".');
});
// 2
test('$.Deferred.state(): (resolved)', function() {
var defer = new $.Deferred();
defer.resolve();
equal(defer.state(),'res... |
import Types from '../actions/actionTypes';
const initialState = {
isVerified: false,
isAuthenticated: false,
currentUser: {}
};
/**
* Reducer hanlding authentication functions
* @param {object} state
* @param {object} action
* @returns {object} state
*/
const authReducer = (state = initialState, action = ... |
'use strict';
var chai = require('chai');
var expect = chai.expect;
var fav = {}; fav.type = require('..');
var formatNumber = fav.type.formatNumber;
describe('fav.type.format-number', function() {
describe('sign', function() {
it('Should return a number string normally: "+9"', function() {
var format ... |
8.0-alpha2:ea4a1749f88e411340a4f48b4bca1da08aee2865822060125848fc211242a062
8.0-alpha3:ea4a1749f88e411340a4f48b4bca1da08aee2865822060125848fc211242a062
8.0-alpha4:5ac8e98270850c80892f12dd67730661e42a9c71b25a2014be5c9619286d1895
8.0-alpha5:5ac8e98270850c80892f12dd67730661e42a9c71b25a2014be5c9619286d1895
8.0-alpha6:5ac8e... |
'use strict'
const expect = require('chai').expect;
const Request = require('../../lib/request');
const httpMocks = require('node-mocks-http');
describe('request.headers', function () {
let requestOpts = {
method: 'PUT',
url: '/user/tobi',
headers:{
host:'localhost:3000',
... |
'use strict'
// Load requirements
const slack = require('slack')
// Load module requirements
const users = require('../../users')
// Create nickname generator
const Moniker = require('moniker')
const names = Moniker.generator([Moniker.adjective, Moniker.noun], {glue: ' '})
// Name regex pattern
const regex = /^(.+?... |
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const common = require('./webpack.config.common.js')
const webpack = require('webpack')
module.exports = Object.assign({}, common,{
devtool: 'source-map',
entry: {
main: './client/app/index.js',
vendor: [// libraries list... |
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var mainBowerFiles = require('main-bower-files');
var del = require('del');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
gulp.task('styles', function() {
return gulp.src(['app/styles/*.less', '!variables.... |
/* eslint-disable */
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let CheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
... |
// translatePigLatin("california") should return "aliforniacay".
// translatePigLatin("paragraphs") should return "aragraphspay".
// translatePigLatin("glove") should return "oveglay".
// translatePigLatin("algorithm") should return "algorithmway".
// translatePigLatin("eight") should return "eightway".
function tran... |
export default {
cellEdit: function(action){
action.component.setValueProcessData(action.data.oldValue);
action.component.cellRendered();
},
rowAdd: function(action){
action.component.deleteActual();
},
rowDelete: function(action){
var newRow = this.table.rowManager.addRowActual(action.data.data, action.... |
'use strict';
angular.module('<%= scriptAppName %>')
.config(['$provide', function ($provide) {
$provide.decorator('<%= cameledName %>', function ($delegate) {
// decorate the $delegate
return $delegate;
});
}]);
|
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('controller:<%= typePlural %>/index', '<%= capPlural %> Index Controller', {
// Specify the other units that are required for this test.
// needs: ['controller:application']
});
// Replace this with your real tests.
test('it exists', function() {
var ... |
'use strict'
require('cache-require-paths')
const core = require('../core.js')
module.exports = (ins, vars, callback) => {
let webState = ins[0]
let hook = webState.config.localStartupHook
let initCwd = vars._init_cwd
if (hook) {
return core.executeChain(initCwd + hook, [webState], callback)
}
return c... |
var server = require("./server");
var router = require("./router");
var requestHandlers = require("./requestHandlers");
var handle = {};
handle["/"] = requestHandlers.start;
handle["/start"] = requestHandlers.start;
handle["/upload"] = requestHandlers.upload;
server.start(router.route, handle); |
/** Custom exercise form finding word in a context. Inherited from Exercise.js
* @initialize it using: new Ex1();
* @customize it by using prototypal inheritance
**/
import $ from 'jquery';
import Exercise from './exercise';
import Util from '../util';
import Settings from "../settings";
function Ex1(data,index... |
'use strict';
const restify = require('restify');
const debug = require('debug')('server.js');
/**
* @param {Object} req
* @param {Object} res
* @param {Function} next
* @return {undefined}
*/
function respond(req, res, next) {
res.send('hello ' + req.params.name);
next();
}
const server = restify.create... |
var lib = require("./lib");
var sjcl = require("./sjcl");
function proc(password) {
var curve = sjcl.ecc.curves['c256'];
var pair_sec = sjcl.bn.random(curve.r);
var pair_sec_bits = pair_sec.toBits();
var pair_pub_bits = curve.G.mult(pair_sec).toBits();
var output = {};
output.pub = lib.bitarray_to_base64(... |
{
var points = getDestinationInsertionPoints(node);
return points && points[points.length - 1] === insertionPoint;
}
|
//>>built
define("dojox/widget/nls/el/ColorPicker",({redLabel:"κ",greenLabel:"π",blueLabel:"μ",hueLabel:"α",saturationLabel:"κ",valueLabel:"τ",hexLabel:"16-αδικό",huePickerTitle:"Επιλογή απόχρωσης",saturationPickerTitle:"Επιλογή κορεσμού"})); |
var streamlined = require('./loop._js')
streamlined(function (error, results) {
console.log(results)
})
|
;(function(Agent){
var waitForMarionetteLoad = function(object, callback) {
Agent.onObjectAndPropertiesSetted(
object,
'Marionette', ['VERSION'],
function (Marionette) {
var mnVersion = Agent.getMarionetteVersion(Marionette);
if (mnVersion === 2) {
Agent.onceSetted(Mar... |
/**
* @ngdoc directive
* @name auiSpinner
* @module atajoui
* @restrict E
*
* @description
* The `auiSpinner` directive provides a variety of animated spinners.
* Spinners enables you to give your users feedback that the app is
* processing/thinking/waiting/chillin' out, or whatever you'd like it to indicate.
* B... |
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
/**
* Webpack Plugins
*/
const ProvidePlugin = require('webpack... |
/**
* Created by Ellery on 2016/12/19.
*/
// 定义应用
function FlappyBird() {}
FlappyBird.prototype = {
start: function() {
var game = new Phaser.Game(288, 512, Phaser.AUTO, "game");
game.state.add("boot", Boot);
game.state.add("preload", Preload);
game.state.add("menu", Menu);
... |
'use strict';
// Configuring the Articles module
angular.module('participants').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Participants', 'participants', 'dropdown', '/participants(/create)?');
Menus.addSubMenuItem('topbar', 'participants', 'List Participants', 'parti... |
/**
* Module dependencies.
*/
var util = require('util')
, OAuth2Strategy = require('passport-oauth2')
, Profile = require('./profile')
, InternalOAuthError = require('passport-oauth2').InternalOAuthError;
/**
* `Strategy` constructor.
*
* The Heroku authentication strategy authenticates requests by delega... |
var config = require('config');
var BPromise = require('bluebird');
var MongoDb = require('mongodb');
var MongoClient = MongoDb.MongoClient;
BPromise.promisifyAll(MongoDb);
BPromise.promisifyAll(MongoClient);
var dbs = {};
function connect(name) {
if(dbs[name]) {
console.warn('Already connected to db \'' + name + ... |
const typescript = require('rollup-plugin-typescript2')
const { join } = require('path')
const alias = require('rollup-plugin-alias')
function resolver (path) {
return join(__dirname, path)
}
module.exports = {
input: resolver('src/index.ts'),
output: {
sourcemap: true,
format: 'es',
file: resolver('d... |
$(".menu-button").on("click", function() {
$("nav").removeClass("show-filter");
$("header div.options").toggleClass("show-menu");
});
$(".filter-button").on("click", function() {
$("header div.options").removeClass("show-menu");
$("nav").toggleClass("show-filter");
});
$("main").on("click", function()... |
var flickr = require('..')(function auth() { /* noop */ });
var assert = require('assert');
describe('flickr.groups.discuss.replies.getList', function () {
it('requires "group_id"', function () {
assert.throws(function () {
flickr.groups.discuss.replies.getList({
topic_id: '_',
per_page: '_'
});
}... |
'use strict';
describe('ecart.version module', function() {
beforeEach(module('ecart.version'));
describe('app-version directive', function() {
it('should print current version', function() {
module(function($provide) {
$provide.value('version', 'TEST_VER');
});
inject(function($comp... |
// Raw version of this file: https://raw.githubusercontent.com/auth0/auth-sandbox-ext/master/webtask/revoke_dynamodb.js
var dynamo;
return function (context, req, res) {
if (req.method !== 'PUT' && req.method !== 'GET') {
return error(405);
}
if (!dynamo) {
// Create DynamoDB client
... |
define([
'knockout',
'app-lib/models/Addon',
'addons/firewall/lib/models/Rule',
'bindings/select2',
'components/c-nav/c-nav'
],
function(ko, Addon, Rule) {
var Firewall = Addon.extend({
init: function () {
this._super('firewall', {
'rules': {
... |
console.error('hello to stderr')
console.log('hello to stdout')
|
/**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
var page = require('page');
var empty = require('empty-element');
var template = require('./template');
var title = require('title');
var request = require('superagent');
var header = require('../header/');
var axios = require('axios');
page('/', header, asyncLoad , function(ctx, next) {
title('Platzigram')
var mai... |
var Twit = require('twit'),
Config = require('./config.js');
if (Config.debug) {
console.log("In debug mode.");
}
var T = new Twit({
consumer_key: Config.consumer_key,
consumer_secret: Config.consumer_secret,
access_token: Config.access_token,
access_token_secret: Config.access_token_secret
})... |
/**
* Module dependencies
*/
var _ = require('lodash');
var types = require('../utils/types');
var utils = require('../utils/helpers');
var hasOwnProperty = utils.object.hasOwnProperty;
/**
* Builds a Schema Object from an attributes
* object in a model.
*
* Loops through an attributes object to build a schema
... |
function TouchDetector(game, boardview) {
this.game = game;
this.board = boardview.board;
this.view = boardview;
this.pointers = [];
this.lastPointed = null; // last click position, a Phaser.Point(int, int)
for (var i=0; i<10; i++){
this.pointers.push(new TouchDetector.Pointer());
}
... |
module.exports = [
{
test: /(\.js|\.jsx)$/,
loaders: ['babel'],
exclude: /node_modules/
},
{
test: /\.css$/,
loader: "style-loader!css-loader?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]"
},
{
test: /\.less$/,
loaders: [
'style',
'c... |
angular.module('YPOD')
.controller('MainController', ['$uibModal', '$cookies', '$http', '$state', function($modal, $cookies, $http, $state){
var self = this;
// Authenticate
$http.get('/authenticate')
.success(function(data){
if(data["auth"] == 1) {
//authenticated
$state.go('loggedin');
}
... |
/**
* @class Oskari.mapframework.event.common.AfterHighlightMapLayerEvent
*
* Triggers when a given map layer has been requested to be
* "highlighted" on map. This means f.ex. a WMS layer GetFeatureInfo clicks needs
* to be enabled, WFS layers featuretype grid should be shown and selection clicks
* on map enabled... |
module.exports = function (payload, callback) {
callback(payload);
}; |
/*
== malihu jquery custom scrollbars plugin ==
version: 2.8.3
author: malihu (http://manos.malihu.gr)
plugin home: http://manos.malihu.gr/jquery-custom-content-scroller
*/
/*
Copyright 2010-2013 Manos Malihutsakis
This program is free software: you can redistribute it and/or modify
it under the terms of the GN... |
'use strict';
function stringify (document, builder) {
if (document.source.syntax) {
return document.source.syntax.stringify(document, builder);
} else {
document.nodes.forEach(root => {
builder(root.raws.beforeStart, root, 'beforeStart');
const stringify = root.source.syntax.stringify;
if (root.source.... |
/* parser generated by jison 0.4.17 */
/*
Returns a Parser object of the following structure:
Parser: {
yy: {}
}
Parser.prototype: {
yy: {},
trace: function(),
symbols_: {associative list: name ==> number},
terminals_: {associative list: number ==> name},
productions_: [...],
perfo... |
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var jscs = require('gulp-jscs');
var nodemon = require('gulp-nodemon');
var jsFiles = ['*.js', 'src/**/*.js'];
gulp.task('style', function () {
return gulp.src(jsFiles)
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish', {
... |
/*global requirejs*/
requirejs.config({
paths: {
// resources
'requirelib': '../../<%= projSource %>/bower_components/requirejs/require'<% if (includejQuery) { %>,
'jquery': '../../<%= projSource %>/bower_components/jquery/jquery'<% } %><% if (includeHandlebars) { %>,
'han... |
//Definitions
var protocol = "http://";
var serverRootUrl = "localhost:8080";
var loginPostUri = "/api/users/login";
var registerPostUri = "/api/users";
var annotationStorePostUri = "/api/annotation";
//old address
//var protocol = "http://";
//var serverRootUrl = "46.196.100.145";
//var serverRootUrl = "192.168.0.10... |
var offset = 0;
var help = false;
var needsInstructions = true;
var linenumber = 0;
var rovearound = 0;
var abc = [];
var dots = [];
var letterwidth = 80;
var letterheight = 120;
var letterxheight = 65;
var letterrounding = 80;
var letterstroke = 5;
var lettergap = 20;
var leading = 150;
var letterstrokeB, palettebluep... |
import Box from './generic';
import getBox from './../utilities/get-box';
import getBoundingBox from './../utilities/get-bounding-box';
/**
* Class representing bounding Box around collection of elements. Accepts either HTMLCollection (e.g. `getElementsByTagName()`) or NodeList (e.g. `querySelectorAll()`).
* @name C... |
(function() {
'use strict';
angular
.module('majestic-poisson')
.controller('loadingController', ['$location', '$timeout', 'messages', loadingController]);
function loadingController($location, $timeout, messages) {
var loading = this;
loading.messages = messages.get();
... |
'use strict';
var assert = require('assert'),
quickSort = require('../quickSort');
describe('quickSort()', function() {
it('should order the items in an array', function() {
// arrange
var a = [3, 7, 2020, -4, 27, 2, 4, 500];
// act
var actual = quickSort(a);
// assert
assert.deepEq... |
'use strict';
var db = require('../db')
, _ = require('mano').i18n
, getData = require('mano/lib/client/xhr-driver').get
, location = require('mano/lib/client/location')
, memoize = require('memoizee')
, ObservableValue = r... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.