code
stringlengths
2
1.05M
const createPath = require(`../create-path`) describe(`create-path`, () => { it(`should create unix paths`, () => { const paths = [`b/c/de`, `bee`, `b/d/c/`] expect(paths.map(p => createPath(p))).toMatchSnapshot() }) })
import {mount, shallow} from 'enzyme'; import {unmountComponentAtNode} from 'react-dom'; export function createWrapper(fn) { const attachTo = window.document.createElement('div'); const firstChild = window.document.body.firstChild; window.document.body.insertBefore(attachTo, firstChild); const wrapper = func...
import chai from 'chai'; let expect = chai.expect; import $ from '../src'; import err from 'jm-err'; let jm = new $(); describe('err', function () { it('jm.Err', function () { expect(err.enableErr).to.be.a('function'); expect(jm.Err).to.be.an('object'); }); it('jm.err', function () { ...
const assign = require('../util/assign'); module.exports = request => { const Group = { name: 'Group', path: 'groups', count: function() { return request(assign(Group._count(), { args: Array.prototype.slice.call(arguments) })); }, get: function() { return request(assign(Group._get(), { args: Array.pr...
// Generated on 2014-12-01 using generator-angular 0.10.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks a...
angular.module('suit.factories') .factory('Path', ['$location', function ($location) { function Path() { var environment = null, domain = null, path = null, url = null; var namespaces = { user: { cre...
/*! AniJS - http://anijs.github.io Licensed under the MIT license Copyright (c) 2014 Dariel Noel <darielnoel@gmail.com> 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, includ...
"use strict"; var Multipartin = require('./lib/multipartin'); Multipartin.Multipartin = Multipartin; module.exports = Multipartin;
/*! * 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. */ sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/core/IconPool', 'sap/ui/core/delegate/ItemNavigation', 'sap/ui/ba...
import React from 'react' import { Link } from 'republic/react' import app from '../../app' import Post from '../../components/blog/Post' const PostTitle = ({ title }) => <h1>{title}</h1> const BackToList = () => <Link action='blog#index'> <a>Back</a> </Link> export default app.page(({ post }) => <div> ...
const React = require('react'); const ReactDOM = require('react-dom'); const FilterableTable = require('../components/table/Components/FilterableTable.js'); /** * Default endpoint * Input: Account_id, start_date and end_date of this month */ let endpoint1 = "http://localhost:80/trace_online/api/transport_ref/read....
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import SvgIcon from 'react-icons-kit'; import { ic_aspect_ratio } from 'react-icons-kit/md/ic_aspect_ratio'; import { ic_business } from 'react-icons-kit/md/ic_business'; import { css } from 'aphrodite'; import { styles } from './components/style...
/* * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at http:...
"use strict"; require("babel-polyfill"); require('./dom-polyfills'); // Url retrieval function window.baseUrl = function(path) { let basePath = document.querySelector('meta[name="base-url"]').getAttribute('content'); if (basePath[basePath.length-1] === '/') basePath = basePath.slice(0, basePath.length-1); ...
import kittyUL from 'src/img/kitty-ul.png'; import kittyUM from 'src/img/kitty-um.png'; import kittyUR from 'src/img/kitty-ur.png'; import kittyLL from 'src/img/kitty-ll.png'; import kittyLM from 'src/img/kitty-lm.png'; import kittyLR from 'src/img/kitty-lr.png'; const kittyImages = [ kittyUL, kittyUM, kittyUR, ki...
;(function(global) { "use strict"; global.WebGLSimple = {}; })(this);
const babelify = require('babelify'); const browserify = require('browserify-middleware'); const express = require('express'); const less = require('less-middleware'); const path = require('path'); const packages = require('../../admin/client/packages'); const app = new express(); // Serve script bundles app.use('/j...
import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; import { observer, computed } from '@ember/object'; import { on } from '@ember/object/evented'; export default Controller.extend({ jsonp: service(), init() { this.set('searchTag', 'emberconf'); }, items: compute...
QUnit.module( "deferred", { teardown: moduleTeardown } ); jQuery.each( [ "", " - new operator" ], function( _, withNew ) { function createDeferred( fn ) { return withNew ? new jQuery.Deferred( fn ) : jQuery.Deferred( fn ); } QUnit.test( "jQuery.Deferred" + withNew, function( assert ) { assert.expect( 23 ); ...
var constant = { noTokenApis: { '/user/register.do': true, '/user/login.do': true }, reqDomain: '*', tokenString: 'simpleApiToken', errorMsg: { 10000: '用户已经失效', 10001: '邮箱格式错误', 10002: '密码长度错误', 10003: '用户已经存在', 10004: '用户名或密码错误', 10005...
var tweetSearch = require('./index.js'); tweetSearch.init({ consumer_key: '', consumer_secret: '', access_token: '', access_token_secret: '' }); tweetSearch.retweet({ q: 'Web Development OR Java OR JavaScript' });
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/* * Copyright (c) 2016. meresti * * 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, d...
/** * Created by littlestone on 2017/3/24. */ import React, {PropTypes}from 'react'; import { connect } from 'react-redux'; import './Todo.css'; import AddTodo from '../../components/todo/AddTodo'; import TodoList from '../../components/todo/TodoList'; import TodoFilter from '../../components/todo/TodoFilter'; impo...
// Regular expression that matches all symbols in the Braille Patterns block as per Unicode v6.0.0: /[\u2800-\u28FF]/;
'use strict'; require('traceur/bin/traceur-runtime'); import {FullUniqueMap} from './fullUniqueMap'; var uniqueMap = new FullUniqueMap(); uniqueMap.add({ name: 'foo', value: 'bar' }); uniqueMap.add({ name: 'Meh', value: 'bleh' }); for(let nameValue of uniqueMap) { console.log(nameValue); }
var async = require('async'); var describe = require('./describe'); var loopback = require('../../'); var ACL = loopback.ACL; var Change = loopback.Change; var PersistedModel = loopback.PersistedModel; var RemoteObjects = require('strong-remoting'); module.exports = function defineModelTestsWithDataSource(options) { ...
/** * des: 对状态条的控制操作 * * * Created by liulin on 2017/2/22. */ ES.TrackView.Bar = ES.Class.extend({ oOption: { cEvenShowBox: 'TrackView:TrackChart.showBox', }, // 构造函数 initialize: function (oParent, oOption) { this._oParent = oParent; ES.setOptions(this, oOption); //...
var url = require('url') , start = require('./common') , assert = require('assert') , mongoose = start.mongoose , Mongoose = mongoose.Mongoose , Schema = mongoose.Schema , random = require('../lib/utils').random , collection = 'blogposts_' + random(); describe('mongoose module:', function(){ describe(...
import Parser from '../../src/Parser' import MathLexer from '../../src/lexers/LexerMath' import assert from 'assert' describe('math parser', () => { let parser = math => { let lexerMath = new Parser(math, MathLexer) return lexerMath.parse() } it('parse simple expression', () => { const math = '1/2 +...
/* Copyright 2010-2015 OCAD University Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at https://github.com/fluid-project/infusion/raw/maste...
import autoprefixer from 'autoprefixer' import mqpacker from 'css-mqpacker' import MiniCssExtractPlugin from 'mini-css-extract-plugin' export default function webpackLoaders (config) { const paths = config.paths const loaders = [] const includes = [paths.src] // JS Loaders const ifDefLoader = { loader: 'ifdef-...
BasicGame.Preloader = function(game) { this.background = null; this.preloadBar = null; this.ready = false; }; BasicGame.Preloader.prototype = { 'preload': function() { this.bck = this.add.sprite(this.world.centerX, this.world.centerY, 'preloaderBackground'); this.bck.anchor.setTo(0.5, 0.5); ...
// Configuration using a string in onPrepare to load a file with code to // execute once before tests. exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', // Spec patterns are relative to this directory. specs: [ 'onPrepare/*_spec.js' ], capabilities: { 'browserName': 'chrome' }, ...
window.__imported__ = window.__imported__ || {}; window.__imported__["soundCloud@1x/layers.json.js"] = [ { "objectId": "417C6650-5680-43A0-A538-68110C87C139", "kind": "artboard", "name": "Artboard1", "maskFrame": null, "layerFrame": { "x": 0, "y": 0, "width": 750, "height": 1334 }, "visible":...
/** * 后勤网配置 * http://houqin.hpu.edu.cn */ var config = { // 后勤定时任务规则 星期一 至 星期五 凌晨2:20 // UTC+8 2:20 > UTC 18:20 rule: { hour: 18, minute: 20, dayOfWeek: [1, 2, 3, 4, 5] }, // 网络超时 3s timeout: 3000, // cheerio配置 cheerioConfig: { // True 屏蔽不规范源码 xmlMode: true, decodeEntities: ...
import {api} from '../../api'; (function() { 'use strict'; var module = angular.module('billett.admin'); module.factory('AdminEventgroup', function ($http, $resource) { var r = $resource(api('eventgroup/:id'), { 'id': '@id', 'admin': 1 }, { update: {met...
function HomeConfig($stateProvider) { 'ngInject'; $stateProvider .state('home', { url: '/', views: { main: { templateUrl: 'app/components/home/home.html', controller: 'HomeController as $ctrl' } }, resolve: { images: function (Photos, Location...
// 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 any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
import HeaderController from './HeaderController' export default { name : 'header', config : { bindings : { viewshown: '=', section:'<', subsection:'<', lockul: '='}, templateUrl : './sharedComponents/header/Header.html', controller : [ '$log','$mdSidenav', HeaderController ] } };
import { app, crashReporter } from 'electron'; import fs from 'fs'; import os from 'os'; import path from 'path'; import raven from 'raven'; if (!global.DEV_MODE && process.env.GPMDP_SENTRY_DSN) { const client = new raven.Client(process.env.GPMDP_SENTRY_DSN, { release: app.getVersion(), environment: fs.exist...
// @flow import React, { Component } from 'react'; import withRedux from 'next-redux-wrapper'; import { createStore } from '../store'; import Layout from '../components/Layout'; import Error from '../components/pages/Error'; type Props = { statusCode: ?number, }; type InitialProps = { res?: http$ServerResponse, ...
exports.config = { seleniumServerJar: '../node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar', specs: ['./test/e2e/**/*.spec.coffee'] };
/* ************************************************************************ Copyright: 2013 Hericus Software, LLC License: The MIT License (MIT) Authors: Steven M. Cherry ************************************************************************ */ /* ******************************************************************...
describe('md-date-picker', function() { // When constructing a Date, the month is zero-based. This can be confusing, since people are // used to seeing them one-based. So we create these aliases to make reading the tests easier. var JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8,...
var searchData= [ ['generatefeaturefunction_5fiidd',['GenerateFeatureFunction_iidd',['../generatefeaturefunction_8h.html#a6866afcb94127ffc2456443399ec1596',1,'generatefeaturefunction.h']]], ['generatefeaturefunction_5fprefix',['GENERATEFEATUREFUNCTION_PREFIX',['../generatefeaturefunction_8h.html#a856eb398306fd18da8...
function setActive() { //get the url location on the window object and store it in a variable called urlLocation var urlLocation = window.location.href; //console.log(urlLocation); //split the urlLocation and store it in a new variable called locationArray var locationArray = urlLocation.split("/"); var a...
/** @babel */ /* global atom */ import path from 'path'; import { CompositeDisposable, Range } from 'atom'; import { allowUnsafeNewFunction } from 'loophole'; import setText from 'atom-set-text'; import pkgDir from 'pkg-dir'; import { sync as loadJson } from 'load-json-file'; import ruleURI from 'eslint-rule-documentat...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var socialYahoo = exports.socialYahoo = { "viewBox": "0 0 512 512", "children": [{ "name": "path", "attribs": { "d": "M384.6,68.4c-11.3,0-22.5-0.8-32.6-4.4l-96,160L160,64c-10.1,3.6-20.7,4.4-32,4.4c-11.1,0-22.1-0.9-32-4.4l128,212.7V448\r\n\t...
import { fromJS } from 'immutable'; import { POST_NEW_CAR, POST_NEW_CAR_SUCCESS, POST_NEW_CAR_FAILURE, POST_NEW_WORKER, POST_NEW_WORKER_SUCCESS, POST_NEW_WORKER_FAILURE, } from './constants'; // The initial state of the App const initialState = fromJS({ loading: false, error: false, re...
var double = value => value * 2 console.log(double(3)) // <- 6
var structures = {}; structures.subscribe = function(channelName) { return { "event": "pusher:subscribe", "data": JSON.stringify({ //JSON serialized String "channel": channelName, "auth": "", "channel_data": "" }) }; }; structures.unsubscribe = function(channelName) { return { ...
import Matrix from './'; import OnesMatrix from './ones-matrix'; import copy from './copy'; import cloneNegative from './clone-negative'; import add from './add'; import addB from './add-b'; import allOnes from './all-ones'; import multiply from './multiply'; import multiplyB from './multiply-b'; import multiplyElement...
var services = angular.module('myApp.services', [ 'spring-data-rest', 'ngResource' ]); services.service('wardrobeService', function($q, $http, $rootScope, SpringDataRestAdapter){ this.uri = "http://localhost:8080/wardrobes"; // GET /wardrobes this.getAllWardrobes = function() { var deferred = $q.d...
if('serviceWorker' in navigator){ navigator.serviceWorker.register('/sw.js') .then( reg => {console.log("Service Worker registered", reg);}) .catch(err => {console.log("Couldn't register to the Service Worker");}) } else { alert("Service worker not supported on this device"); }
(function () { 'use strict'; angular .module('app', ['ui.bootstrap','ngRoute', 'ngResource','ngCookies']) .config(config) .run(run); config.$inject = ['$routeProvider', '$locationProvider']; function config($routeProvider, $locationProvider) { $routeProvider ...
// Compiled by ClojureScript 0.0-2280 goog.provide('cljs.core.async'); goog.require('cljs.core'); goog.require('cljs.core.async.impl.channels'); goog.require('cljs.core.async.impl.dispatch'); goog.require('cljs.core.async.impl.ioc_helpers'); goog.require('cljs.core.async.impl.protocols'); goog.require('cljs.core.async....
const config = { env: process.env.NODE_ENV || 'dev', CACHE_TTL: parseInt(process.env.MCMAKLER_CACHE_TTL, 10) || 300000, // In milliseconds }; export default config;
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), LinkGearRequest = mongoose.model('LinkGearRequest'); /** * Globals */ var user, linkGearRequest; /** * Unit tests */ describe('LinkGearRequest Model Unit Tests:', functi...
var express = require('express'); var router = express.Router(); var nonAuthRoute = express.Router(); // var CONFIG = require('../config'); var middlewares = require('./middlewares'); var epoch = require('../utilities'); var mdls; function createApiEndPoint(models) { // To copy to Auth route mdls = models; mdl...
/** * @param {number} a * @param {number} b * @return {number} */ const getSum = (a, b) => { if (b === 0) return a; let sum = a ^ b; // eslint-disable-line let carry = (a & b) << 1; // eslint-disable-line return getSum(sum, carry); };
'use strict'; var data = require('./db.json'); var Table = require('easy-table') var t = new Table; data.apps.forEach(function(app) { t.cell('', app.name); app.services.forEach(function(service) { t.cell(service.parent + '(' + service.name + ')', 'X'); }); t.newRow(); }); console.info(t.toString());
'use strict'; const objectAssign = require('object-assign'); const extensions = { valueLinkBuilder (paramName) { return { value: this.state[paramName], requestChange: (val) => this.handleChange({ target: { name: paramName, ...
'use strict'; var angular = require('angular'); describe('mwlDraggable directive', function() { var element, scope, $rootScope, interact, interactInstance, draggableOptions, elementTarget, $window, $compile, $timeout, template = '<div ' + 'mwl-draggable="draggable...
/* * grunt-svn-fetch * https://github.com/jones/svn-fetch * * Copyright (c) 2013 Stephen Jones * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'task...
/** * French IGN Cartes WTMS * Free service, but needs an apikey for the URL and layers accessed; * see http://professionnels.ign.fr/licence-api-geoportail-libre-et-gratuite * * http://wxs.ign.fr/<api key>/wmts?SERVICE=WMTS&REQUEST=GetCapabilities * * Code: fr/ign/topo * EPSG:3857 * FIXME id and attribution En...
const axios = require('axios'); const url = require('url'); const fileType = require('file-type'); function getExtension(downloadUrl) { return downloadUrl.match(/\.(png|jpg|ico)/)[0]; } function getSiteDomain(siteUrl) { return url.parse(siteUrl).hostname; } function downloadIcon(iconUrl) { const iconData...
(function () { 'use strict'; var capitalize = function (str) { //Some libraries such as Sugar.JS include a capitalization method, use that if if exists if (str.capitalize) { return str.capitalize(); } else { return str[0].toUpperCase() + str.substr(1,str.length - 1); } }; var slice = [].slice;//for ...
/** * Created by Robert Gurgul on 2015-03-15. */ angular.module('aside.menu', ['menu-tpl.html', 'menu-item-tpl.html', 'ui.router']) .directive('asideMenu', function ($http) { return { restrict: 'E', scope: true, templateUrl: "menu-tpl.html", controller: fun...
import React from 'react'; import { Link } from 'react-router'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; const Repo = React.createClass({ render() { const { repo } = this.props; return ( <Link to={repo.html_url} target="_blank"> <Card clas...
CHNBMockOptions = function () { return { }; };
mainApp.controller('ErrorCtrl', function ($scope, $routeParams, $rootScope, user) { $scope.type = $routeParams.type; var response = mainApp.INTERCEPTOR_ERROR; mainApp.INTERCEPTOR_ERROR = null; // if(response){ // $.ajax({ // type: "POST", // url: "https://mandrillapp.com/...
var commitDetails = require('../../lib/effects/commit_details'), markup = '', renderer = { html: function (selector, html) { if (selector === '#current-commit') markup = html; } }; describe('commitDetails', function () { afterEach(function () { markup = ''; }); it('renders ...
#!/usr/bin/env node require('../src/main')
/** * @class Oskari.userinterface.component.visualization-form.LineForm * * Shows a form for line rendering options */ Oskari.clazz.define('Oskari.userinterface.component.visualization-form.LineForm', /** * @method create called automatically on construction * @static */ function (creator, ...
const chalk = require('chalk'); const apm = require('./apm'); exports.showStatus = () => { var stats = getPackageStats(); console.log(stats.installed.length, 'packages installed'); console.log(stats.starred.length, 'packages starred'); if (stats.onlyInAPM.length) { console.log(chalk.green('\n# Packages only in ...
/** * @author weism * copyright 2015 Qcplay All Rights Reserved. */ /** * 舞台,控制所有游戏元素的根节点。 * * @class qc.Stage * @param {Phaser.Stage} phaser * @internal * @constructor */ var Stage = qc.Stage = function(phaser) { this.phaser = phaser; phaser._qc = this; }; Stage.prototype = {}; Stage.prototype.cons...
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var SocialMoodBad = React.createClass({ displayName: 'SocialMoodBad', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: "M11.99 2C6.47 2 2 6.48 2 ...
/** * 创建任务执行平台 */ const os = require('os'); const queueGenerator = require('queue'); const phantomjsBootstrap = require('./phantomjs-bootstrap'); const log = require('../../lib/log'); const utils = require('../../lib/utils'); /** * 创建phantomjs 任务执行环境 * @param {[type]} bridgeInst headless-browser-bridge服务实例 * @p...
'use strict' import { UPDATE_GIST_TAGS, LOGOUT_USER_SESSION } from '../actions' export default function (state = {}, action) { switch (action.type) { case UPDATE_GIST_TAGS: return action.payload case LOGOUT_USER_SESSION: return null default: } return state }
import React from 'react' import ReactDOM from 'react-dom' import { Router } from 'react-router-dom' import { createBrowserHistory } from 'history' class RegisterComponent { SERVER = 'server'; CLIENT = 'client'; instance = null; key = ''; env; constructor(widget, env) { this.setEnv(env); for (l...
import { startOfDay, endOfDay } from 'ember-datetime-select/utils/helpers'; export default function times(date, sched) { if (!date || !sched) { return []; } let schedule = later.schedule(sched); let time = startOfDay(date); let end = endOfDay(date); let result = []; while (time < end) { time = ...
import Joi from 'joi'; import {postHandlerFactory, getHandlerFactory} from './common'; const schema = Joi.object().keys({ 'bestPhone': Joi.string().required().max(20).label('Best phone number') .meta({ componentType: 'tel', fieldset: true, legendText:'How can GP practice contact you?', le...
$(document).ready(function () { $('#fullpage').fullpage({ // 给每一屏添加背景颜色 sectionsColor: ['#fadd67', '#84a2d4', '#ef674d', '#fed', '#d04759', '#84d9ed', '#8ac060'], // 给整个页面添加小圆点导航 navigation: true, // 控制小圆点导航的位置 navigationPosition: 'right', // 小圆点导航的文字提示 navigationTooltips: ['第一屏', '第二...
function chat(user) { var userKey; var firstLoad = true; var myDataRef = new Firebase("https://sizzling-heat-3782.firebaseio.com/"); var classRef = myDataRef.child("Classes"); var userRef = myDataRef.child("Users"); var currentClassRef; //Temporary...will need to be dynamic for classes // Get current ...
import { workspace } from 'vscode' export default class Configer { static Get(key) { return workspace.getConfiguration(`synccode`).get(key) } }
'use strict' const path = require('path') exports.onCreateNode = ({ node, actions, getNode }) => { const { createNodeField } = actions // Sometimes, optional fields tend to get not picked up by the GraphQL // interpreter if not a single content uses it. Therefore, we're putting them // through `createNodeFie...
import{INCREMENT, DECREMENT, RESET} from '../actions/counter'; const counter = (state = 0, action) => { switch (action.type) { case INCREMENT: return state+1; case DECREMENT: return state-1; case RESET: return 0; default: return state } } export default co...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.pzlib = exports.pfs = undefined; var _pify = require('pify'); var _pify2 = _interopRequireDefault(_pify); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // NB: We do this so that ...
'use strict'; /** * @see https://github.com/SteelSeries/gamesense-sdk/blob/master/doc/api/json-handlers-screen.md#controlling-frame-timing-and-repeating-data * @constructor * @param {Number} [length_millis] * @param {!gamesense.EventIcon} [icon_id] * @param {boolean | number} [repeats] */ gamesense.FrameModifier...
'use strict'; module.exports = { db: 'mongodb://localhost/bosstut-test', port: 3001, app: { title: 'bosstut - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { ...
/* Il est maintenant possible de faire des animations et transitions en CSS assez avancées mais il peut être parfois utile de le faire via JavaScript aussi lorsque ça dépend de variables dynamiques. */ /* La base pour afficher/cacher des éléments : */ document.body.style.display = 'none'; document.body.style.display =...
const Promise = require('bluebird'); const BasicPropertyPanelItemResource = require('./basic-property-panel-item'); const ComplexTypes = require('./../../../lib/core/complex-types'); const debug = require('./debug')('panel-items-by-panel'); const EnumPanelItemResource = require('./enum-panel-item'); const Relationship...
'use strict'; var Support = require(__dirname + '/../support') , expectsql = Support.expectsql , current = Support.sequelize , sql = current.dialect.QueryGenerator , current = Support.sequelize; // Notice: [] will be replaced by dialect specific tick/quote character when there is not dialect specifi...
c['2904']=[['2905',"Password Property","topic_00000000000009D2.html",0],['2906',"UserName Property","topic_00000000000009D3.html",0]];
'use strict'; const os = require('os'); const net = require('net'); const mage = require('../mage'); const logger = mage.core.logger.context('serviceDiscovery'); const Netmask = require('netmask').Netmask; // prebuilt list of local ips const localIps = exports.localIps = { IPv4: [], IPv6: [] }; const interfaces = os...
'use strict'; import React from 'react'; import {History, Link} from 'react-router' import {Navbar, NavBrand, Nav, NavItem, Button, Collapse, Well, Glyphicon, Col} from 'react-bootstrap'; export default React.createClass({ displayName: 'app/pages/menu/index.js', mixins: [History], getInitialState(){ ...
var fs = require('fs'); var yaml = require('js-yaml'); function loadConfig() { var ymlFile = fs.readFileSync('_config-gulp.yml', 'utf8'); return yaml.load(ymlFile); } var config = loadConfig(); module.exports = config;
import React, { Component } from 'react' import { object, func } from 'prop-types' import { matchPath } from 'react-router' import Navigation from 'components/Navigation' import routes, { routesConfig } from './routes' const routesWithNav = routesConfig .filter(route => route.navigation) .map(route => ({ path: ro...
/** * @overview * * @since 0.1.0 * @author Stefan Rimaila <stefan@rimaila.fi> */ import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as coreActions from '../actions/application'; import Test from '../components/Test'; const mapDispatchToProps = (dispatch) => ({ actions: b...