code
stringlengths
2
1.05M
// ******************** Imports ******************** import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import ListItem from './ListItem'; import {eventAttributePropTypes} from '../Event'; // ******************** Container ******************** class EventList extends...
{ const original = obj[name]; obj[name] = function devMatcher() { try { original.apply(this, arguments); } catch (e) { global.__hadDevFailures = e.stack; } }; }
'use strict'; import {RouteConfig, AbstractPage} from 'scaffi-ui-core'; // jshint unused: false import template from './yo-scaffi-directive.html'; // export-params-start const ROUTE = 'app.ui.yo-scaffi.directive'; const PARAMS = { url: '/directive', template: template, resolve: { }, ncyBreadcrumb: { label: '...
exports.index = function (req, res) { res.render('index', {}); }
/** * Created by hebao on 2017/5/27. * this component's main job is to change LinearGradient in animated , * relay on two lib: * 1 react-native-linear-gradient // realize linear gradient Git: https://github.com/react-native-community/react-native-linear-gradient * Git: https://github.com/react-native-community...
/** * HTTP Server Settings * (sails.config.http) * * Configuration for the underlying HTTP server in Sails. * Only applies to HTTP requests (not WebSockets) * * For more information on configuration, check out: * http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.http.html */ module.expor...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'); var User = require('./user.server.model.js'); var chalk = require('chalk'); var async = require('async'); var ObjectId = require('mongoose').Types.ObjectId; /** * Create User */ exports.create = function(req, res) { console.log(c...
var ajax = { init: function(){ if (window.ActiveXObject) return new ActiveXObject('Microsoft.XMLHTTP'); else if (window.XMLHttpRequest) return new XMLHttpRequest(); return false; }, arrayToString: function (ar,prefix) { var out=""; for (var i in ar) { if (ar[i] ...
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var ActionYoutubeSearchedFor = createClass({ displayName: 'ActionYoutubeSearchedFor', render: function render() { return React.createElement( SvgIco...
'use strict'; import { Handler } from '../../src/og/webgl/Handler.js'; import { Renderer } from '../../src/og/renderer/Renderer.js'; import { SimpleNavigation } from '../../src/og/control/SimpleNavigation.js'; import { Axes } from '../../src/og/scene/Axes.js'; import { Vec3 } from '../../src/og/math/Vec3.js'; import {...
var utils = require('./utils') , implode = require('implode') exports.State = require('./state') exports.initialize = exports.State.init exports.Template = require('./template') exports.Fragment = require('./fragment') exports.Routes = {} var isServer = exports.isServer = utils.isServer , isClient = exports.i...
"use strict"; var chai = require("chai"); var sinonChai = require("sinon-chai"); global.sinon = require("sinon"); global.expect = chai.expect; chai.use(sinonChai); chai.should();
/** * ownCloud - myapp * * This file is licensed under the MIT License. See the COPYING file. * * @author Dennis Blommesteijn <dennis@blommesteijn.com> * @copyright Dennis Blommesteijn 2015 */ (function ($, OC) { $(document).ready(function () { $('#hello').click(function () { alert('Hello from your scrip...
(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]=typeof c[g]=="function"&&typeof e[g]=="function"&&b.test(c[g])?function(a,b)...
/* jdPicker 1.0 Requires jQuery version: >= 1.2.6 2010 - ? -- Paul Da Silva, AMJ Groupe Copyright (c) 2007-2008 Jonathan Leighton & Torchbox Ltd 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 w...
(function ($) { $(document).ready(function (event) { var $page = $('#PageFrontIndex') , previousPages = [] , $sample = $page.find('.PageFrontIndex-sample') , $sampleContainer = $sample.find('.PageFrontIndex-sample-wrapper-content') , $sampleBackButton = $sample.find('.PageFrontIndex-sample...
// Using jquery solution // (function(){ // app.el['input_city'] = $('input[bs-typeahead="listCity"]'); // app.el['input_city'].typeahead({ // source: function(query, process) { // var objects = [], data = [{"id":1, "city":"London"},{"id":2, "city":"Madrid"},{"id":3, "city":"Paris"}] // $.eac...
import { Component } from './component'; // input switch on native, input checkbox on web class Switch extends Component { tag(instance) { let iSwitch; if (instance) { iSwitch = instance; } else { iSwitch = document.createElement('input'); iSwitch.type = 'checkbox'; } return i...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'templates', 'no', { button: 'Maler', emptyListMsg: '(Ingen maler definert)', insertOption: 'Erstatt gjeldende innhold', options: 'Alterna...
import angular from 'angular'; import 'angular-mocks'; import {TodoItem} from './TodoItem'; describe('TodoItem component', () => { beforeEach(() => { angular .module('todoItem', ['app/components/TodoItem.html']) .component('todoItem', TodoItem); angular.mock.module('todoItem'); }); it('shoul...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor =...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.ActionListItem. sap.ui.define(['jquery.sap.global', './ListItemBase', './library', 'sap/ui/core/EnabledProp...
import Application from '../../app'; import config from '../../config/environment'; import { merge } from '@ember/polyfills'; import { run } from '@ember/runloop'; import registerAcceptanceTestHelpers from './201-created/register-acceptance-test-helpers'; export default function startApp(attrs) { let attributes = me...
'use strict'; var mongoose = require('mongoose'); function AccountManager(options) { this.core = options.core; } AccountManager.prototype.create = function(provider, options, cb) { var User = mongoose.model('User'); var user = new User({ provider: provider }); Object.keys(options).forEach(function(...
var colors = [ "#000000", "#FFFF00", "#1CE6FF", "#FF34FF", "#FF4A46", "#008941", "#006FA6", "#A30059", "#FFDBE5", "#7A4900", "#0000A6", "#63FFAC", "#B79762", "#004D43", "#8FB0FF", "#997D87", "#5A0007", "#809693", "#FEFFE6", "#1B4400", "#4FC601", "#3B5DFF", "#4A3B53", "#FF2F80", "#61615A", "#BA0900", "#6B7900", "#00C2A0...
define([ 'marionette', 'router', 'view/appLayout' ], function (Marionette, appRouter, appLayout) { "use strict"; var app = new Marionette.Application(); // This will store the application title app.title = 'Sample-App'; // This will store the application url app.url = '/'; // This will store the user info...
import {injectReducer} from '../../store/reducers'; export default (store) => ({ path : 'login', /* Async getComponent is only invoked when route matches */ getComponent (nextState, cb) { /* Webpack - use 'require.ensure' to create a split point and embed an async module loader (jsonp) when bundling...
var singlePage = angular .module('single-page', []) .component('singlePageComp', singleComponent()) .config(function($stateProvider) { $stateProvider .state('single', { url: '/single', template: '<single-page-comp></single-page-comp>' ...
import assert from './assert'; import Vertex from './vertex'; /** * 2D scattering algorithms. * @type {Object} */ const algorithms = { /** * Uniform-random scattering algorithm. * @param {Integer} width - the width of the scattering area * @param {Integer} height - the height of the scattering area * @...
module.exports = function(io) { var sockets = io.sockets; sockets.on('connection', function (client) { console.log("sockets[chat] client.handshake",client.handshake); client.on('send-server', function (data) { var msg = "<b>"+data.nome+":</b> "+data.msg+"<br>"; client....
var time; var delayTime; $(function(){ // 增加浮动DIV $('body').append("<div id='notice'><div class='notice_header'><span class='notice_title'> </span><span class='glyphicon glyphicon-remove cbtn'></span></div><div class='notice_content'></div></div>"); // 更改样式 $('#notice').css({right:"0",bottom:"0",cursor...
const Benchmark = require("benchmark"); const { test, match, sort: fuzzySort, filter: fuzzyFilter, } = require("../build/cjs"); process.stdout.write("Setting up benmarks..."); let cities = require("./cities.json"); cities = cities.map((city, i) => ({ id: i, ...city })); console.log(" Done."); const benchm...
/*eslint-disable import/default*/ import environment from '../environments/environment';
/******************************************************************************* * Name: QuizziPedia::Back-End::Config::Passport; * Description: classe che permette la registrazione all'applicazione. * Creation data: 27-04-2016; * Author: Franco Berton. ******************************************************************...
"use strict"; (function (Filter) { Filter[Filter["all"] = 9000] = "all"; Filter[Filter["audio"] = 1000] = "audio"; Filter[Filter["lossless"] = 1101] = "lossless"; Filter[Filter["mp3"] = 1102] = "mp3"; Filter[Filter["video"] = 2000] = "video"; Filter[Filter["tv"] = 2101] = "tv"; Filter[Filter...
(function() { var FuzzySet = function(arr, useLevenshtein, gramSizeLower, gramSizeUpper) { var fuzzyset = { }; // default options arr = arr || []; fuzzyset.gramSizeLower = gramSizeLower || 2; fuzzyset.gramSizeUpper = gramSizeUpper || 3; fuzzyset.useLevenshtein = (typeof useLevenshtein !==...
export class Empty {}
define("p3/widget/viewer/SpecialtyVFGeneList", [ "dojo/_base/declare", "./TabViewerBase", "dojo/on", "dojo/topic", "dojo/dom-class", "dijit/layout/ContentPane", "dojo/dom-construct", "../PageGrid", "../formatter", "../SpecialtyVFGeneGridContainer", "../../util/PathJoin", "dojo/request", "dojo/_base/lang" ], function...
/* 借书作为主页 */ import * as types from '../constant/actionTypes'; const initState = { catalogList: [], isLoading: true, }; export default function MainReducer(state = initState, action) { switch (action.type) { case types.LOAD_CATALOG_LIST: return Object.assign({}, state, { isLoading: action.i...
import 'react-native' import React from 'react' import Index from '../index.android.js' // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer' it('renders correctly', () => { const tree = renderer.create( <Index /> ) });
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Eye Schema */ var EyeSchema = new Schema({ cylinder: { type: Number }, sphere: { type: Number }, axis: { type: Number }, position: { type: St...
import React from "react"; import { GithubCorner } from "../../lib"; export default () => ( <div style={{ height: "100px"}}> <GithubCorner size="60" left octoColor="#EB529A" /> </div>);
import React, { PropTypes } from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import Divider from 'material-ui/Divider'; export default class MyDrawer extends React.Component { constructor(props) { super(prop...
import generatedConfigA from '../fixtures/generatedConfig' import generateActionType from 'lib/generators/generateActionType' describe('(Lib) generateActionCreator', () => { it('should create an action type', () => { const actionType = generateActionType(generatedConfigA.auth.mystring) expect(actionType).to....
var gulp = require('gulp'); var plumber = require('gulp-plumber'); var uglify = require('gulp-uglify'); var sass = require('gulp-sass'); var rename = require('gulp-rename'); var autoprefixer = require('gulp-autoprefixer'); gulp.task('scripts', function() { return gulp.src('public/js/scripts.js') ....
const hub = require('../../') // const test = require('tape') hub({ port: 6060, monkeyballs: 'yoyoyo' })
import stringify from 'json-stringify-safe' import validator from 'validator' const OBJLENGTH = 10 const ARRLENGTH = 10 const STRINGLIMIT = 1000 const STRINGTRUNCATE = 200 let sanitizeString = function (str) { if (!str) { return '' } return String(str) .replace(/\./g, '_') .replac...
var is_connected=false; var user_email_name=[]; var user_data={}; var user_fiends_data={}; var user_picture={}; public_profile='id ,name ,first_name ,last_name ,age_range ,link ,gender ,locale ,picture, timezone ,updated_time ,verified,email'; function fb_signin(){ FB.login(function(response){ if (response.statu...
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. * * Modified by @4lbertoC */ module.exports = { GITHUB: { LOAD_REPO_LANGUAGES: 'LOA...
/** * @author jerry */ (function(win,$){ /** * param {object} require and todo param * param.imageUrl {string} images * param.width {NUmber} image width * param.style {string} image height value:max | min * param.height {Number} image height * param.zoom {bool} if images size than param.width latter,is o...
import React, {Component, PropTypes} from 'react'; import ReactEcharts from 'echarts-for-react'; import 'echarts-liquidfill'; // 用于统计当日金额的组件 class LiquidBall extends Component { constructor(props) { super(props); } // 初次渲染后执行此方法 componentDidMount() { setTimeout(() => { this...
import Vorpal from 'vorpal'; import { magenta } from 'chalk'; import Debug from './src/debug'; import { bot, user } from './src/config'; import download from './src/download/vorpal'; import convert from './src/convert/vorpal'; // eslint-disable-next-line const debug = new Debug('index'); const vorpal = new Vorpal(); ...
chrome.webNavigation.onCommitted.addListener(function(e) { console.log("You are on Lou's List!"); $("body").append("YoYoYo"); }, { url: [{ hostSuffix: "rabi.phys.virginia.edu" }, { pathPrefix: "/mySIS/CS2/" } ] });
'use strict'; const service = require('feathers-mongoose'); const contact = require('./contact-model'); const hooks = require('./hooks'); module.exports = function() { const app = this; const options = { Model: contact, paginate: { default: 5, max: 25 } }; // Initialize our service w...
version https://git-lfs.github.com/spec/v1 oid sha256:3ca07b55618bf6f8c5046894e3f285497a9d9a8c50d7b44f8407f1057850c884 size 2930
function RGBEffect() { this.canvas = new MEDIA.Canvas(); this.name = 'RGBEffect'; this.controls = { RedThreshold: { value: 128, min: 0, max: 255, step: 2 } }; } RGBEffect.prototype = { draw: function () { var canvas = this.canvas; var redThreshold = this.controls.RedThreshold.value; APP.dr...
/*! Backstretch - v2.0.4 - 2013-06-19 * http://srobbin.com/jquery-plugins/backstretch/ * Copyright (c) 2013 Scott Robbin; Licensed MIT */ ; (function ($, window, undefined) { 'use strict'; /* PLUGIN DEFINITION * ========================= */ $.fn.backstretch = function (images, options) { /...
/*global FormFiller, JSONF, jQuery, Logger, Libs */ /*eslint complexity:0 */ var poorMansDelayMaxCyles = 10000; // Warp the waitUntil function so that invalid selectors and other jQuery expections get caught var wrapWaitUntilFunction = function(waitUntilFunction) { return function wrappedWaitUntilFunction() { tr...
'use strict' import React from 'react' import {Link} from 'react-router' const NotFoundPage = React.createClass({ render: () => { return ( <div className='container-fluid'> <h1>Page Not Found</h1> <p>Woops! Sorry, there is nothing to see here.</p> <p><Link to='/'>Back to Home</Link></p> </div> ...
import Ember from "ember"; import notAmong from "ember-cpm/macros/not-among"; module("notAmong"); var MyObj = Ember.Object.extend({ notCartoonDog: notAmong('value', 'Odie', 'Snoopy') }); test('returns false if the value is among the given values', function() { var o = MyObj.create({ value: 'Snoopy' }); equal(o...
var makr = require('../lib/index') function Component() {} var em = makr(Component) var entity = em.create() var component = new Component() suite('Entity', function() { bench('#add', function() { entity.add(component) }) bench('#get', function() { entity.get(Component) }) bench('#has', function(...
// TODO Add README for GIT var RxBotics = module.exports = { } RxBotics.Behaviour = require('./rxbotics.behaviour.js'); RxBotics.Controller = require('./rxbotics.controller.js'); RxBotics.Driver = require('./rxbotics.driver.js'); RxBotics.Math = require('./rxbotics.math.js'); RxBotics.Sensor = require('./r...
__report = { "reports": [ { "info": { "file": "lib/DataType.js", "fileShort": "lib/DataType.js", "fileSafe": "lib_DataType_js", "link": "files/lib_DataType_js/index.html" }, "jshint": { "messages": 19 }, "complexity": { "aggregate": { ...
var app = angular.module('HomePageApp', []);
export class Connection { constructor (url) { this._url = url this.connecting = false this.connect(this._url) this.listener = null } get url () { return this._url } set url (v) { if (v !== this._url) { this._url = v this.connect() } } connect () { ...
'use strict'; let datafire = require('datafire'); let openapi = require('./openapi.json'); let aws = require('aws-sdk'); const INTEGRATION_ID = 'amazonaws_mediaconvert'; const SDK_ID = 'MediaConvert'; let integ = module.exports = new datafire.Integration({ id: INTEGRATION_ID, title: openapi.info.title, descrip...
(function(window, factory) { if (typeof define === 'function' && define.amd) { define([], function() { return factory(); }); } else if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(); } else { (window.LocaleData || (...
var shapeways = require('../index.js') , path = require('path'); if(process.argv.length !== 4) { console.log("Please specify your [username] and [password] as commandline arguments."); process.exit(1); } shapeways.connect({ username: process.argv[2] , password: process.argv[3] }, function(err, sw) { ...
(function() { "use strict"; angular.module("CursoService", []) .service("CursoService", CursoService); function CursoService($http) { // const urlBase = 'https://falafsm-api.herokuapp.com/rest'; const urlBase = 'http://www.falafsm.com.br:8080/falafsm-api/rest'; const method...
import Vue from 'vue'; import template from './navigation.html'; export default Vue.extend({ template, data() { return { hideNav: true, }; } });
mf.include("navigator_3d.js"); mf.include("giver.js"); mf.include("auto_respawn.js"); mf.include("block_finder.js"); mf.include("items.js"); mf.include("chat_commands.js"); mf.include("inventory.js"); mf.include("navigator.js"); var window_open_func; mf.onWindowOpened(function(window_type) { mf.debug("window open...
angular.module('app') .config(($routeProvider) => { $routeProvider .when('/login', { controller: 'LoginCtrl', controllerAs: 'auth', templateUrl: '/app/auth/login.html' }) .when('/logout', { controller: 'LogoutCtrl', controllerAs: 'auth', template: ...
'use strict'; const _ = require('lodash'); const utils = require('../utils'); const fileUtils = require('../fileUtils'); const AffianceError = require('../error'); const HookMessage = require('./Message'); const HookMessageProcessor = require('./MessageProcessor'); /** * @class HookBase * @classdesc The base impleme...
describe('Mobile Navigation', function() { var toggleButton, navigation, e, html ='<div class="menu">' + '<a href="" class="navigation-main-button" title="">menu</a>' + '<nav>' + '<ul class="navigation-toggle" style="display: none">' + ...
export default { caption: 'Comment edit', 'text-caption': 'Text', 'votes-caption': 'Votes', 'moderated-caption': 'Moderated', 'suggestion-caption': 'Address', 'author-caption': 'Author', 'userVotes-caption': 'User votes' };
'use strict' var tap = require('tap') var parseAndSend = require('../lib/parseAndSend') tap.test('it requires a request object', function (test) { var request = false var expectedErrorMessage = 'Missing required input: request' parseAndSend(request, function errorIfMissingOptions (error, data) { tap.equal(e...
//dom vars var $yamlInput = $("#yamlInput"); var $yaqlInput = $("#yaqlInput"); var $exampleDropDown = $("#exampleDropDown"); var $resultArea = $("#result"); var $yaqlAlert = $("#yaqlAlert"); var $yamlAlert = $("#yamlAlert"); //api //var apiServerString = "http://135.248.18.42:5000"; var apiServerString = "/api"; var a...
version https://git-lfs.github.com/spec/v1 oid sha256:e5c3f03fc4706299f0a1428da4f7c1453b1dcb5987daf3bd90a5929402afaa47 size 630
'use strict'; var moment = require('moment'); var _ = require('underscore'); var config = require('../config'); moment.locale('ru'); module.exports = { moment: moment, _: _, config: config };
function kdTree(points, metric, dimensions) { function Node(obj, d, parent) { this.obj = obj; this.left = null; this.right = null; this.parent = parent; this.dimension = d; } var self = this; this.root = buildTree(points, 0, null); function buildTree(points, depth, parent) { var dim...
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses. language: "en", timeFormat: 24, units: "metric", modules: [ { module: 'MMM-Hello-Mir...
var config = { "copy":{ "html":{ "sourceDir": "src/demo", "sourceFiles": ["index"], "destinationDir":"demo" }, "js":{ "sourceDir": null, "sourceFiles": null, "destinationDir":null }, "css":{ "sourceDir":null, "sourceFiles": null, ...
"use strict"; /** * Build test scenario (HTML, JS). */ var Build = require("../../util/build"); var build = module.exports = new Build({ rootDir: __dirname }); if (require.main === module) { build.run(); }
import { helper } from '@ember/component/helper'; export function combineValidators(validators) { return validators.reduce((previousValidator, currentValidator) => ( (value) => { const currentValidatorResult = currentValidator(value); return currentValidatorResult === true ? previousValidator(value) ...
version https://git-lfs.github.com/spec/v1 oid sha256:ebc11e1ae16df1e29d5533fb898179a70498b57bede817f326e9c1bcaf6aaa26 size 8846
import React from "react"; // import fetch from "isomorphic-fetch"; // lets us dispatch() functions from API calls import thunkMiddleware from "redux-thunk"; // neat middleware that logs actions import { createLogger } from "redux-logger"; import { render } from "react-dom"; import { Provider } from 'react-redux'; impo...
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; var base = grunt.option('base') || '.'; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.version %> (<%= grunt.te...
import { AUTO_COMPLETE } from '../actions/index' const INITIAL_STATE = { locations: [] } export default function(state = INITIAL_STATE, action) { switch(action.type){ case AUTO_COMPLETE: console.log('action recieved for AUTO COMPLETE', action.payload.RESULTS) return {...state, locations: [action.paylo...
'use strict'; // Uncomment the following lines to use the react test utilities // import React from 'react/addons'; // const TestUtils = React.addons.TestUtils; import createComponent from 'helpers/createComponent'; import Results from 'components/Results.js'; describe('Results', () => { let ResultsComponent; ...
//运行命令:fis3 release //js md5 fis.match('/js/**.js', { useHash: true }); //css md5 fis.match('/css/**.css', { useHash: true }); //image md5 fis.match('/css/**.{svg,tif,tiff,wbmp,png,bmp,fax,gif,ico,jfif,jpe,jpeg,jpg,woff,cur}', { useHash: true }); fis.match('*', { useCache: false, deploy: fis.plugin(...
define("ghost/adapters/application", ["ghost/utils/ghost-paths","exports"], function(__dependency1__, __exports__) { "use strict"; var ghostPaths = __dependency1__["default"]; var ApplicationAdapter = DS.RESTAdapter.extend({ host: window.location.origin, namespace: ghostPaths().apiRoot...
/* * grunt-kunstmaan-generate * https://github.com/sambellen/grunt-kunstmaan-generate * * Copyright (c) 2013 Sam Bellen for Kunstmaan * Licensed under the MIT license. */ 'use strict'; debugger; module.exports = function(grunt) { // Variables var _ = grunt.util._, fs = require('fs'), p...
/** * Util functions * * @since 1.0.0 */ /** * Get client IP address * * Will return 127.0.0.1 when testing locally * Useful when you need the user ip for geolocation or serving localized content * * @param {Object} request * @returns {string} ip */ exports.getClientIp = (request) => { // workaround to g...
import { Globals } from 'vizart-core'; import getSortDef from '../helper/get-sort-def'; const sortData = (_data, _options) => { if (_options.hasOwnProperty('ordering')) { let _field = getSortDef(_options); let _accessor = _field.accessor; if (_accessor !== undefined && _accessor !== null) { switc...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
function testSpeed(input) { if (input.length < 1 || input === undefined) { return; } var speed = +input[0], area = input[1], cityLimit = 50, motorwayLimit = 130, interstateLimit = 90, residentalLimit = 20, overSpeeding = 20, overExcessiveSpeeding = 40, city = 'city', residential = 'residential', ...
'use strict' const Container = require('../formats/Container') const Keys = require('../formats/Keys') /** * Saves the grid layer for laye into a PNG file * @param {WeightedColorGrid} colorGrid the color grid you want to export * @returns {Promise<void>} a promise returning when finished */ function toGridContain...
/* * Level Controller */ import Event from '../events'; import EventHandler from '../event-handler'; import {logger} from '../utils/logger'; import {ErrorTypes, ErrorDetails} from '../errors'; import BufferHelper from '../helper/buffer-helper'; class LevelController extends EventHandler { constructor(hls) { s...
import _ from 'underscore'; import { diffModes } from '~/ide/constants'; import { LINE_POSITION_LEFT, LINE_POSITION_RIGHT, TEXT_DIFF_POSITION_TYPE, LEGACY_DIFF_NOTE_TYPE, DIFF_NOTE_TYPE, NEW_LINE_TYPE, OLD_LINE_TYPE, MATCH_LINE_TYPE, LINES_TO_BE_RENDERED_DIRECTLY, MAX_LINES_TO_BE_RENDERED, } from '....
/* * * DepartmentListContainer * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import makeSelectDepartmentListContainer from './selectors'; import { requestDepartment, selectSection } from './actions'; import DepartmentList from '../../components/DepartmentList'; export clas...