code stringlengths 2 1.05M |
|---|
import eq from './eq.js';
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignMergeValue(objec... |
module.exports = function method(matchMethod) {
if (typeof matchMethod === 'string') {
matchMethod = [ matchMethod ]
}
if (!matchMethod) {
matchMethod = [ 'GET' ]
}
return function method(req, res, next) {
var notMatches = !~matchMethod.indexOf(req.method)
next(null, notMatches)
}
}
|
import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState() {
const defaultExpanded... |
import React, { PropTypes, Component } from 'react';
import { DropTarget } from 'react-dnd';
const style = {
height: '12rem',
width: '12rem',
marginRight: '1.5rem',
marginBottom: '1.5rem',
color: 'white',
padding: '1rem',
textAlign: 'center',
fontSize: '1rem',
lineHeight: 'normal',
float: 'left'
};... |
/*
AngularJS v1.6.7
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(U,a){'use strict';function L(m,f){f=f||{};a.forEach(f,function(a,d){delete f[d]});for(var d in m)!m.hasOwnProperty(d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(f[d]=m[d]);return f}var B=a.$$minErr("$resource"),Q=/^(\.[a-zA-Z_... |
/**
* Language Generator
*/
const fs = require('fs');
const exec = require('child_process').exec;
function languageIsSupported(language) {
try {
fs.accessSync(`app/translations/${language}.json`, fs.F_OK);
return true;
} catch (e) {
return false;
}
}
module.exports = {
description: 'Add a langua... |
/*!
* Module dependencies.
*/
var EmbeddedDocument = require('./embedded');
var Document = require('../document');
var ObjectId = require('./objectid');
var utils = require('../utils');
var isMongooseObject = utils.isMongooseObject;
/**
* Mongoose Array constructor.
*
* ####NOTE:
*
* _Values always have to be... |
'use strict';
var lint = require('./_lint');
//////////////////////////////
// SCSS syntax tests
//////////////////////////////
describe('placeholder in extend - scss', function () {
var file = lint.file('placeholder-in-extend.scss');
it('enforce', function (done) {
lint.test(file, {
'placeholder-in-ex... |
// KUTE.js v1.6.1 | © dnp_theme | jQuery Plugin | MIT-License
!function(e,t){if("function"==typeof define&&define.amd)define(["./kute.js","jquery"],function(e,n){return t(n,e),e});else if("object"==typeof module&&"function"==typeof require){var n=require("./kute.js"),r=require("jquery");module.exports=t(r,n)}else{if("u... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPizza = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2... |
/*! selectize.js - v0.6.7 | https://github.com/brianreavis/selectize.js | Apache License (v2) */
(function(factory) {
if (typeof exports === 'object') {
factory(require('jquery'));
} else if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else {
factory(jQuery);
}
}(function ($)... |
/*istanbul ignore next*/"use strict";
var /*istanbul ignore next*/_index = require("../index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
var /*istanbul ignore next*/_constants = require("../constants");
var /*istanbul ignore next*/_index2 = require("./index");
/*istanbul ignore next*/
var ... |
/*!
Copyright (C) 2014-2015 by WebReflection
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, publish, dist... |
/*! JointJS v1.0.2 (2016-10-27) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
joint.shapes.uml = {};
joint.shapes.uml.Class = joint.sh... |
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/* global intellisense, window, document, setTimeout, WinJS */
(function () {
"use strict";
var redirect = intellisense.redirectDefinition;
function ma... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
/**
@name: aping
@version: 0.8.1 (11-01-2016)
@author: Jonathan Hornung <jonathan.hornung@gmail.com>
@url: https://github.com/JohnnyTheTank/apiNG#readme
@license: MIT
*/
"use strict";
var apingApp = angular.module('jtt_aping', ['jtt_aping_jsonloader', 'jtt_aping_ng_array'])
.config(['$provi... |
var util = require('../util');
var hammerUtil = require('../hammerUtil');
var moment = require('../module/moment');
var Component = require('./component/Component');
var DateUtil = require('./DateUtil');
/**
* @constructor Range
* A Range controls a numeric range with a start and end value.
* The Range adjusts the ... |
/**
* @license Highcharts JS v5.0.11 (2017-05-04)
* Solid angular gauge module
*
* (c) 2010-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Hig... |
var Datastore = require('../lib/datastore')
, benchDb = 'workspace/loaddb.bench.db'
, fs = require('fs')
, path = require('path')
, async = require('async')
, commonUtilities = require('./commonUtilities')
, execTime = require('exec-time')
, profiler = new execTime('LOADDB BENCH')
, d = new Datastore(be... |
/* ==========================================================
* GitGraph v1.1.3
* https://github.com/nicoespeon/gitgraph.js
* ==========================================================
* Copyright (c) 2016 Nicolas CARLO (@nicoespeon) ٩(^‿^)۶
* Copyright (c) 2016 Fabien BERNARD (@fabien0102) ✌... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxForm"] = facto... |
import Ember from 'ember';
const {Mixin} = Ember;
export default Mixin.create({
transitionAuthor() {
return (user) => {
if (user.get('isAuthor')) {
return this.transitionTo('team.user', user);
}
return user;
};
},
transitionEditor() {
... |
(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... |
Type.registerNamespace("Strings");
Strings.OfficeOM = function()
{
};
Strings.OfficeOM.registerClass("Strings.OfficeOM");
Strings.OfficeOM.L_InvalidNamedItemForBindingType = "Navedeni tip povezivanja nije kompatibilan sa navedenom imenovanom stavkom.";
Strings.OfficeOM.L_EventHandlerNotExist = "Navedeni tip događaja ... |
/*!
* iCheck v1.0.1, http://git.io/arlzeA
* ===================================
* Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization
*
* (c) 2013 Damir Sultanov, http://fronteed.com
* MIT Licensed
*/
(function($) {
// Cached vars
var _iCheck = 'iCheck',
_iCheckHelper = _iCh... |
/**
* @fileoverview Enforce no accesskey attribute on element.
* @author Ethan Cohen
*/
// ----------------------------------------------------------------------------
// Rule Definition
// ----------------------------------------------------------------------------
import { getProp, getPropValue } from 'jsx-ast-u... |
/**
* API Bound Models for AngularJS
* @version v1.1.6 - 2015-01-06
* @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("restmod.Preload",["restmod",... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/tr-TR', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global... |
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*
* Based on Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
*/
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
}
if (typeof define == "function"... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport'),
LinkedInStrategy = require('passport-linkedin').Strategy,
config = require('../config'),
users = require('../../app/controllers/users.server.controller');
module.exports = function() {
// Use linkedin strategy
passport.use(new Link... |
function override(target, key, descriptor) {
descriptor.initializer = function () {
return "lol";
};
}
var obj = {
@override
foo: "bar",
bar: "heh"
};
assert.equal(obj.foo, "lol");
assert.equal(obj.bar, "heh");
|
function pug_escape(e) {
var a = "" + e, t = pug_match_html.exec(a);
if (!t) return e;
var r, c, n, s = "";
for (r = t.index, c = 0; r < a.length; r++) {
switch (a.charCodeAt(r)) {
case 34:
n = """;
break;
case 38:
n = "&";
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'hr', {
label: 'Stil',
panelTitle: 'Stilovi formatiranja',
panelTitle1: 'Block stilovi',
panelTitle2: 'Inline stilovi',
panelTitle... |
import {lineBreakG} from "./whitespace"
// These are used when `options.locations` is on, for the
// `startLoc` and `endLoc` properties.
export class Position {
constructor(line, col) {
this.line = line
this.column = col
}
offset(n) {
return new Position(this.line, this.column + n)
}
}
export cl... |
/*!
* # Semantic UI 2.2.10 - Embed
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
"use strict";
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof sel... |
// We are not going to port this |
module.exports['crlf.http'] = [
{type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt',
sha1: 'b31d07bac24ac32734de88b3687dddb10e976872'},
];
module.exports['preamble.http'] = [
{type: 'file', name: 'upload', filename: 'plain.txt', fixture: 'plain.txt',
sha1: 'b31d07bac24ac32734de88b3687ddd... |
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... |
/*!
* TableSorter 2.7.12 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* ... |
/*!
Autosize 1.18.16
license: MIT
http://www.jacklmoore.com/autosize
*/
(function ($) {
var
defaults = {
className: 'autosizejs',
id: 'autosizejs',
append: '\n',
callback: false,
resizeDelay: 10,
placeholder: true
},
// border:0 is unnecessary, but avoids a bug in Firefox on OSX
copy = '<textarea t... |
YUI.add('content-editable', function (Y, NAME) {
/*jshint maxlen: 500 */
/**
* Creates a component to work with an elemment.
* @class ContentEditable
* @for ContentEditable
* @extends Y.Plugin.Base
* @constructor
* @module editor
* @submodule content-editable
*/
var Lang = ... |
/* jQuery.fracs 0.15.1 - http://larsjung.de/jquery-fracs/ */
(function () {
'use strict';
// Some often used references.
var $ = jQuery;
var $window = $(window);
var extend = $.extend;
var fracs = $.fracs;
var Rect = fracs.Rect;
var Viewport = fracs.Viewport;
// Outline
// -------
var defaults = {
crop: fal... |
/*!
* Qoopido.js library v3.5.7, 2014-10-14
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(o){window.qoopido.register("support/css/boxshadow",o,["../../support"])}(function(o){"use strict";return o.support.addTest("/css/boxshadow",function(s){o.support.suppor... |
'use strict';
var path = require('path');
var fileRe = require('filename-regex');
var win32 = process && process.platform === 'win32';
var utils = require('lazy-cache')(require);
/**
* Temporarily re-assign require to trick browserify
* into recognizing lazy-cached deps.
*/
var fn = require;
require = utils;
/**... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
const Joi = require('joi');
module.exports =
{
POST_USER_SIGNUP: Joi.object().keys({
handle: Joi.string(),
password: Joi.string().regex(/^[a-zA-Z0-9]{8,128}$/).required(),
email: Joi.string().email().required()
}),
POST_USER_SIGNIN: Joi.object().keys({password: Joi.string().required(), email: Joi.string().ema... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Disable some ESLint rules. camelcase (some "_" in names to indicate indexed variables (like in math)), valid-jsdoc (not completed ... |
/**
* Created by cthed on 25/02/2016.
* this module will render a chart doughnut for json response fromm web
*/
/**
*
* @type {*[]} data
*/
var data = [
{
value: 61,
color: "#09355C",
label: "Label 1"
}, {
value: 11,
color: "#CBCBCB",
label: "Label 2"
}, {
value: 28,
color: ... |
import { ZoneId, ZonedDateTime, Duration, LocalTime } from 'js-joda';
import { Map as ImmutableMap } from 'immutable';
import { handle } from 'redux-pack';
import * as Actions from 'app/store/action/application';
import { LOAD as LOAD_CALENDARS } from 'app/store/action/calendars';
const INITIAL_STATE = new ImmutableM... |
'use strict';
var express = require('express');
var router = express.Router();
var models = require('../../models');
/* GET list pages */
router.get('/', function(req, res, next) {
models.Page.findAll({
include: [models.NavigationItem]
}).then(function(pages) {
res.render('admin/pages/index', {
titl... |
import React, { PropTypes } from 'react';
export default class MapLayersPicker extends React.Component {
static propTypes = {
title: PropTypes.string,
layers: PropTypes.array.isRequired,
onLayerChange: PropTypes.func
};
static defaultProps = {
title: 'Map Layers'
};
constructor (props) {
super(props)... |
'use strict';
module.exports = cacheMkdirP
var path = require('path')
function cacheMkdirP(mkdirP) {
var cache = new MkdirPCache(mkdirP)
return cache.mkdirP.bind(cache)
}
function MkdirPCache(mkdirP) {
this._mkdirP = mkdirP
this._dirMarks = {}
}
MkdirPCache.prototype.mkdirP = function (dir, opts, cb... |
var Mediador = require("../mediador")
var YourClass = function () {}
YourClass.prototype.on = Mediador.prototype.on
YourClass.prototype.off = Mediador.prototype.off
YourClass.prototype.emit = Mediador.prototype.emit
var yourInstance = new YourClass()
var listener = function (you) {
console.log(you + " ... |
'use strict'
const yo = require('yo-yo')
const menu = (currentCat, allCats, setCat, clearCat) => yo `
<ul>
${allCats.map((cat) => {
const onClick = (e) => {
e.preventDefault()
e.stopPropagation()
if (currentCat === cat) clearCat()
else setCat(cat)
}
return yo `
<li class="${currentCat... |
// By default we create a single styles file, containing both vendor and app styles.
// If you wanted to, you can easily break them into 2 by adding vendor entry point to webpack config and removing the
// import here.
import './vendor';
// Include main styles from scss
import './main.scss';
|
// ignore most things
var IgnoreFile = require("../")
, path = require('path')
// set the ignores just for this test
var c = require("./common.js")
c.ignores({ ".ignore": ["*", "a", "c", "!a/b/c/.abc", "!/c/b/a/cba"] })
// the only files we expect to see
var expected =
[ "/a/b/c/.abc"
, "/a"
, "/a/b"
, "/a/b/... |
/*global __DEV__ */
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from 'containers//App';
import configureStore from './store/configureStore';
import DevTools from 'containers//DevTools';
require('normalize.css');
require('styles//App.sass');
let in... |
import request from 'request';
import xml2js from 'xml2js';
import util from 'util';
import Promise from 'promise';
export default function boardGames(app) {
app.get('/api/board-games?', function(req, res) {
try {
let minDate = new Date(2015, 0, 1);
let maxDate = new Date(2018, 0, 1);
if(!req.... |
/*
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides base class sap.ui.core.Component for all components
sap.ui.define(['jquery.sap.global', '../base/ManagedObject', './Compon... |
version https://git-lfs.github.com/spec/v1
oid sha256:60fe92ac860ec76faf13530db2255b366e1981dc01a248f77723c030070fdfd4
size 28903
|
MainTablet.widgets = {
varNavItems: ["wm.Variable", {"isList":true,"json":"[{\"dataValue\":\"CreateShipmentDD\"},{\"dataValue\":\"GetLabelDD\"},{\"dataValue\":\"DeleteShipmentDD\"}]","type":"StringData"}, {}],
navCallInformation: ["wm.NavigationCall", {"operation":"gotoPageContainerPage"}, {}, {
input: ["wm.Service... |
function couchapp_load(scripts) {
for (var i=0; i < scripts.length; i++) {
document.write('<script src="'+scripts[i]+'"><\/script>')
};
};
couchapp_load([
'/_utils/script/sha1.js',
'/_utils/script/json2.js',
'/_utils/script/jquery.js',
'/_utils/script/jquery.couch.js',
'/_utils/script/jquery.form.js... |
'use strict';
/**
* Colstudent Schema
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var ColstudentSchema = new Schema({
LastName: {type: String, required: true} ,
FirstName: {type: String, required: true} ,
MAT251CalcI: { type: String},
MAT252CalcII: { type: String},
MAT320DiscreteMath: ... |
module.exports = {
environments: [
{
extension: 'js',
testNameSuffix: '.test',
testDir: 'src',
sourceDir: 'src',
testRunnerCommand: { command: 'echo "I test thee"' },
},
],
};
|
$(document).ready(function(){
//表单数据示例
var formData = [
{
recieve_id : '20180001',
recieve_list : [
{
recieve_name : '西门子冰箱',
recieve_model : 'XMZ-21'
},
{
recieve_nam... |
/*
json2.js
2012-10-08
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
NOT CONTROL.
Th... |
module.exports = {
"src_folders": [
"tests" // tests are stored here
],
"output_folder": "./reports", // reports (test outcome) output by nightwatch
"selenium": { // downloaded by selenium-download module (see readme)
"start_process": true, // tells nightwatch to start/stop the selenium process
"ser... |
var lazyAss = require('lazy-ass');
var check = require('check-types');
var fs = require('fs.extra');
var Comment = require('./Comment');
var preprocess = require('./preprocess');
var postprocess = require('./postprocess').comments;
var dox = require('./dox');
function getComments(source) {
lazyAss(check.unemptySt... |
/**
* @author Javier Valencia Romero <javiervalenciaromero@gmail.com>
* @copyright Javier Valencia Romero
* @license {@link https://github.com/jvalen/prototypePacman/blob/master/license.txt|MIT License}
*/
/**
* Keyboard class constructor
*
* @class Controls.Keyboard
* @constructor
*/
var Contro... |
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { connect } from 'react-redux';
import styles from '../styles';
export const Attempts = (props) => {
const { attempts } = props;
const renderLetter = (letterWithScore, idx) => {
let style = styles.attemptLetter;
i... |
import React from 'react';
import './sidebar.css';
const Sidebar = props => {
return(
<div className="sidebar">
</div>
);
}
export default Sidebar;
|
//
// Drawphone
//
import Game from "./game.js";
class Drawphone {
constructor(devModeEnabled) {
this.games = [];
this.locked = false;
this.minutesUntilRestart;
//add the dev game
if (devModeEnabled) {
this.newGame("ffff");
}
}
newGame(forceCod... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _debounce() {
const data = _interopRequireDefault(require("lodash/debounce"));
_debounce = function () {
return data;
};
return data;
}
function _makeDir() {
const data = require("make-... |
var path = require('path')
var webpack = require('webpack')
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
vendor: ['react','redux','react-redux','react-router'],
bundle: './src/index'
},
output: {
pa... |
'use babel';
import utils from '../utils';
class SQLMetaProvider {
constructor() {
this.selector = '.source.sql, .source.pgsql';
this.disableForSelector = '.source.sql .string, .source.sql .comment'
this.filterSuggestions = true;
atom.config.observe( // called immediately and on update
'autoco... |
$(function(){
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
slidesPerView : 3,
slidesPerGroup : 3
});
}) |
var utils = require('../src/utils');
var key = require('../src/rudiments').key;
var scale = require('../src/rudiments').scale;
var ensemble = require("../src/instruments/ensemble");
var instruments = require("../src/instruments/instruments");
var stringQuartet = ensemble.stringQuartet;
var performer = ensemble.stringQ... |
'use strict';
// =============================================================================
// var declaration
// =============================================================================
var mongoose = require('mongoose'),
Performance = mongoose.model('Performance'),
SystemConfig = mongoose.mode... |
import * as userQueries from './queries';
import * as userMutations from './mutations';
export default {
userQueries,
userMutations,
};
|
/**
* Mi9Controller
*
* @description :: Server-side logic for managing mi9s
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
/**
* `Mi9Controller.index()`
*/
index: function(req, res) {
//sails.log.debug(req.body)
if (req.body ... |
define({
"taskUrl": "Tehtävän URL-osoite",
"setTask": "Määritä",
"setTaskPopupTitle": "Määritä tehtävä",
"validate": "Määritä",
"inValidGPService": "Anna kelvollinen geoprosessointipalvelu.",
"GPFeatureRecordSetLayerERR": "Anna geoprosessointipalvelu, jossa on vain GPFeatureRecordSetLayer-tyypin lähtöaineis... |
'use strict';
exports = module.exports = function(app, passport) {
var LocalStrategy = require('passport-local').Strategy,
TwitterStrategy = require('passport-twitter').Strategy,
GitHubStrategy = require('passport-github').Strategy,
FacebookStrategy = require('passport-facebook').Strategy,
Go... |
/*jslint node: true */
'use strict';
// Gulp Dependencies
var gulp = require('gulp'),
rename = require('gulp-rename');
// Build Dependencies
var transform = require('vinyl-transform'),
browserify = require('browserify'),
uglify = require('gulp-uglify');
// Style Dependencies
var stylus = require('gulp-stylus')... |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.loadNpmTasks('grunt-react');
grunt.initConfig({
react: {
single_file_output: {
files: {
'react/EEM/app.js': 'react/ownership/app.j... |
$(function () {
update()
$('input#send').click(send)
$('input#update').click(update)
})
function update(){
$.get('/get', function (result, status){
$('textarea').val(result.txt)
if(result.txt==undefined){
alert('Sth went wrong!')
}
})
}
function send(){
$.pos... |
import {
assignNumber,
computeStyleFromItem,
CurrentLevel,
depthOf,
div, EventBus,
findLevel,
flattenAll, generateColour, getPalletXPosition,
mapDepths,
matchesRange,
RANGE_DISPLAY_LARGE,
RANGE_DISPLAY_NONE,
RANGE_DISPLAY_PREV_NEXT,
renderTemporal,
setStyle,
sortByKey
} from '../utils';
e... |
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*
* Generate a random uuid.
*
* USAGE: Math.uuid(length, radix)
* length - the desired number of characters
* radix - the number of allowable value... |
var ctrl = function ($scope, $q, $state, $stateParam, $anchorScroll, categoryService,
eventService, placeService, transactionService) {
$scope.isEditMode = $stateParam.publicId;
$scope.options = {
showWeeks: false
};
const applyToPromise = transactionService.getApplyToList();
$q.when(applyToPromise, ... |
var assert = require('assert')
, svgfont2svgicons = require(__dirname + '/../src/index.js')
, Fs = require('fs')
, StringDecoder = require('string_decoder').StringDecoder
, Path = require("path")
;
// Tests
describe('Parsing fonts', function() {
it("should work for simple SVG fonts", function(done... |
angular.module('demo').controller('ComponentsDemoCtrl',function($scope,$rootScope,$state){
}); |
import _ from 'lodash';
function registerMethod(vorpal, browser, property) {
vorpal
.command(`${property} [params...]`, 'Refer http://webdriver.io/api')
.parse(cmd => cmd
.split(' ')
.map(encodeURIComponent)
.join(' '))
.action(async ({ params = [] }) => {
const cleanedParams = pa... |
var dir_aa9befc4bdfa617079e96718d920d9d2 =
[
[ "Projects", "dir_9749fe1d1039c274ca5f4a0137bd5805.html", "dir_9749fe1d1039c274ca5f4a0137bd5805" ]
]; |
var items = require('../repositories/item');
var S = require('string');
var ObjectId = require('mongodb').ObjectID;
var extend = require('extend');
exports.fetchForTab = function(req, res) {
items.findByTabId(req.db,
req.params.tabId,
function(err, items) {
if (err) {
res.jsonError();
} e... |
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
var mongoose = require('mongoose');
var extend = require('mongoose-schema-extend');
var Schema = mongoose.Schema;
var ad_objects = require('./additionalModels.js');
var Element = require('mongoose').model('Element').schema;
var ElementVersion = require('mongoose').model('ElementVersion').schema;
var RecordVersion = req... |
// All code points with the `Deprecated` property as per Unicode v9.0.0:
[
0x149,
0x673,
0xF77,
0xF79,
0x17A3,
0x17A4,
0x206A,
0x206B,
0x206C,
0x206D,
0x206E,
0x206F,
0x2329,
0x232A,
0xE0001
]; |
vows = require('vows');
assert = require('assert');
_ = require('lodash');
r = require('../');
vows.describe('Rhythmically merge').addBatch({
"merge sequences": function() {
s = r.merge(r.sequence('a b'), r.sequence('d e'));
assert.equal(s.length, 4);
assert.deepEqual(_.pluck(s, 'value'), ['a', 'd', 'b'... |
'use strict';
module.exports = function(models) {
const OurServices = models.OurServices;
return {
createOurServicesData(ourServicesData) {
let ourServices = new OurServices(ourServicesData);
return new Promise((resolve, reject) => {
ourServices.save((error) =>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.