code
stringlengths
2
1.05M
var pronto = require('../pronto'); var util = require('util'); function SPrintF(){} pronto.inheritsCommand(SPrintF); module.exports = SPrintF; /** * Simple sprintf template. * * This takes to arguments: * * %s: title * %s: body */ SPrintF.HTML5 = (function () { return "<!DOCTYPE html>\n<html>\n<head>\n" + "...
/* General functions */ .import "qrc:/dataStorage.js" as Storage function addTask(taskModel, task, tasksList, parentLayout) { var extraData = loadExtraData(parentLayout) if (task.length > 0) { var item = {task: task, state: "paused"}; console.log("Extra data: " + extraData); for (var...
import $ from 'jquery' export default function (element, destination) { element.remove() destination.append(element) }
(function () { 'use strict'; class Material { constructor(args) { this.values = args.values; } } module.exports = Material; }());
var jshint = require('gulp-jshint'); var reporter = require('../'); var gutil = require('gulp-util'); var join = require('path').join; var fs = require('fs'); var should = require('should'); var outfilename = join(__dirname, '../jshint-output.html'); describe('file reporter', function () { afterEach(function (done...
const { UserResource, Permission } = require('../../lib/index'); const User = require('./user.model'); const userResource = new UserResource({ model: User }); /** * Custom endpoints. */ userResource.add({ id: 'check', path: '/check', method: 'get', handler: () => ({ working: true }), }); userResource.get('c...
import Resources from "./Resources" import Resource from "./Resource" import Texture from "./Texture" import Spritesheet from "./Spritesheet" import Frame from "./Frame" class Animation extends Resource { constructor() { super() this.loadLater = true this.frames = [] this.delay = 0 this.pauseLastFrame = fal...
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('bs');
(function () { function Courses() { // indexed by the provided courseid which omits 0 and hence a sparse array // careful when iterating or getting length! this.courses = []; this.totaltracks = 0; this.numberofcourses = 0; this.highestControlNumber = 0; } Courses.prototype = { Constr...
Package.describe({ summary: "a slightly more flexible way to do reactive variables" }); Package.on_use(function (api) { api.export("ReactiveVariable"); api.add_files('lib/ReactiveVariable.js', 'client'); });
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Highlighting text that matches the selection // // Defines an option highlightSelectionMatches, which, when enabled, // will style strings that match the selection throughout the // documen...
'use strict'; const babel = require('gulp-babel'); const del = require('del'); const download = require('gulp-download'); const ejs = require('gulp-ejs'); const gulp = require('gulp'); const zip = require('gulp-zip'); const install = require('gulp-install'); const path = require('path'); const plumber = require('gulp-...
'use strict'; const gulp = require('gulp'); const gutil = require('gulp-util'); const sass = require('gulp-sass'); const cssnano = require('gulp-cssnano'); const sourcemaps = require('gulp-sourcemaps'); gulp.task('styles', () => { gulp.src('./src/client/styles/**/*.scss') .pipe(sass().on('erro...
/* * parse rule */ var _placeholder = function() { return "@" + Math.random().toString(36).substring(2) } var placeholder = { "<": "&lt;", ">": "&gt;", "{": _placeholder(), "(": _placeholder(), ")": _placeholder(), "}": _placeholder() } var _Rg = function(s) { return RegExp(s, "g") } var placeholderReg = { "...
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { /* * Translated default ...
version https://git-lfs.github.com/spec/v1 oid sha256:06a0b73e7a8b601c56b83f9026bf18a329a14c1aa90b5f30f322ca650b7acacf size 217
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var acc = document.getElementsByClassName("accordion"); var i; for (i = 0; i < acc.length; i++) { acc[i].onclick = function() { ...
/* @module:class Set the module description. */ require ('./NodeParseModules/Overrides'); /* @class Override this Function as a class. @argument cheddar Takes over the name `able`. Should be type `Number`. @argument:String able Does not refer to a real argument. Should be type `String`. */ ...
ScalaJS.is.scala_collection_GenIterableViewLike$Appended = (function(obj) { return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_collection_GenIterableViewLike$Appended))) }); ScalaJS.as.scala_collection_GenIterableViewLike$Appended = (function(obj) { if ((ScalaJS.is.scala_collection_GenIterableVie...
/* * Created by zhangchong on 5/30/2016. * Copyright (c) 2016 com.infohold.BcupBread. All rights reserved. */ var area = [ { "CityID" : 1, "DisName" : "东城区", "DisSort" : null, "Id" : 1 }, { "CityID" : 1, "DisName" : "西城区", "DisSort" : null, ...
var express = require('express'); var Model = require('../models/Upload'); var multiparty = require('multiparty'); var fileHandler = require('../util/fileHandler'); var fs = require('fs'); var router = express.Router(); router.route('/:id?') .post(function(req, res) { var defaultDir = './pub/files/'; ...
// @flow import SqliteFormatter from '../src/formatters/SqliteFormatter'; const tabbedKeywords = [ 'AND', 'BETWEEN', 'CASE', 'ELSE', 'END', 'ON', 'OR', 'OVER', 'WHEN' ]; const untabbedKeywords = [ 'FROM', 'GROUP BY', 'HAVING', 'JOIN', 'CROSS JOIN', 'INNER JOIN', 'LEFT JOIN', 'RIGHT J...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16...
version https://git-lfs.github.com/spec/v1 oid sha256:e2082e1ed7406f7199a4d13d30fc7dc2a59a759ca9c52e86baa391a2049d47b2 size 23958
/*jshint globalstrict: true*/ /*global module*/ /*global console*/ "use strict"; module.exports = { reporter: function(results, data, opts) { console.log('{"report":' + JSON.stringify(results, null, 2) + '}'); } };
/** * Chat * Pokemon Showdown - http://pokemonshowdown.com/ * * This handles chat and chat commands sent from users to chatrooms * and PMs. The main function you're lookoing for is Chat.parse * (scroll down to its definition for details) * * Individual commands are put in: * chat-commands.js - "core" command...
{ item.members = item.members.map(item => _.pick(item, ft.user)); item.extend = _.pick(item.extend, ft.projectExtend); item.user = _.pick(item.user, ft.user); return _.pick(item, ["user"].concat(ft.project)); }
'use strict'; // test function to prepare us for html page. var formEl = document.getElementById('answer-form'); var banana = 3; var wizardHat = 5; var broom = wizardHat; var peel = banana; function riddleMeThis(x ,y){ if ( x < 20){ var number = x + y; return number; }else if( x === 2){ var number =...
'use strict'; module.exports = function (grunt) { // automitacly load grunt tasks require('load-grunt-tasks')(grunt); // mesure tasks times, can help ;) require('time-grunt')(grunt); // define your grunt configuration here grunt.initConfig({ composer: grunt.file.readJSON('composer.js...
var recipes = null; var recipe_images = null; var favs = []; var interval_ready_id = null; var registered = false; var last_updated = "1984-01-01"; var application_started = false; var menu_options = ["home", "search", "favs", "about-me", "contact"]; var current_page = 1; Storage.prototype.setObj = function(key, obj) ...
'use strict'; /** * Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges), * and z-index (low to high). These styles affect how this applies: * * z-compound-depth: May be `bottom | orphan | auto | top`. The first drawn is `bottom`, then `orphan` whi...
var express = require('express') var router = express.Router() var getHome = require('./getHome') router.get('/', getHome) module.exports = router
import Tile from './Tile'; export default class WallTile extends Tile { /** * @class WallTile * @description An opaque solid tile */ constructor(x, y) { super(x, y); } isSolid() { return true; } isOpaque() { return true; } getName() { ...
import PropTypes from "prop-types"; import React, { Component } from "react"; import { Button, Grid } from "@material-ui/core"; import DeleteIcon from "@material-ui/icons/Delete"; import StatusTagIcons from "./StatusTagIcons"; import DialogModal from "../shared/DialogModal"; class MovieInfoModal extends Component { ...
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ "use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; ...
define(function(require){ "use strict"; var $ = require('jquery'), Backbone = require('backbone'), Handlebars = require('handlebars'), html = require('text!template/message/object.html'), form = require('text!template/message/form.html'); Parse = require('parse'); var View = {}...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-typ...
'use strict'; var moment = require('moment'); var _ = require('underscore'); var cache = require('./cache'); var config = require('./config'); var h = require('./helper'); const session = {}; session.errors = { EXPIRED: { msg: 'session expired, please login again', statusCode: -1 } }; session.get...
var unit = { atk: function(unit, a) { var x = $(unit).find('input[name="atk_plus"]'); x.val(parseInt(x.val()) + a).change();} } // --------------------------------------------------------------------------- var cards = []; cards["atk30"] = { tag: ["atk"], color: "red", label: '攻+30', enable: function(e...
import axios from 'axios' import moment from 'moment' const $walkOfShame = $('.hotboard') const $logOfShame = $('.log') require('./main.scss') $('.banner').removeClass('hidden') const $shameLog = $('<div class="log__item">') function render(data) { const $containerOfRegrets = $('<div>') data.forEach(pieceOfSha...
import Logger from 'color-logger'; import CommentParser from '../Parser/CommentParser.js'; import FileDoc from '../Doc/FileDoc.js'; import ClassDoc from '../Doc/ClassDoc.js'; import MethodDoc from '../Doc/MethodDoc.js'; import MemberDoc from '../Doc/MemberDoc.js'; import FunctionDoc from '../Doc/FunctionDoc.js'; import...
{ expect(() => jestExpect(0).toBeTruthy(null)).toThrowErrorMatchingSnapshot(); expect(() => jestExpect(0).toBeFalsy(null)).toThrowErrorMatchingSnapshot(); }
/* * Full Documentation: * http://developers.freshbooks.com/docs/projects/ * */ var utils = require('./utils'); function ProjectService(config) { if (!(this instanceof ProjectService)) { return new ProjectService(config); } this.config = config; } /* http://developers.freshbooks.com/docs/pr...
module.exports = { rules: { 'comma-dangle': [2, 'never'], 'id-length': [1, { min: 3, properties: 'never', exceptions: ['_', '$', 'x', 'y', 'i', 'j'] }], 'no-unused-vars': [2, { vars: 'all', args: 'none' }], 'no-use-before-define': 2, 'vars-on-top': 0, 'obj...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('biker', 'Unit | Model | biker', { // Specify the other units that are required for this test. needs: [] }); test('it exists', function(assert) { let model = this.subject(); // let store = this.store(); assert.ok(!!model); });
// Karma configuration // Generated on Wed Nov 05 2014 07:16:09 GMT+0800 (中国标准时间) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '../', // frameworks to use // available frameworks: https://npmjs.org/browse/keyw...
'use strict'; var chalk = require('chalk'); module.exports = function (vorpal, options) { var app = options.app; vorpal.command('proxy add', 'Runs Wat through a proxy.').action(function (args, cb) { var self = this; self.log('\n This will set Wat up to connect through a proxy.\n Please answer the follo...
export { default } from '@upfluence/oss-components/modifiers/enable-dropdown';
"use strict"; const main_js_1 = require("../../main.js"); module.exports = main_js_1.validateDefintion({ command: 'open-vue-app [name]', alias: 'ova', checkExecutable: 'chromium-browser', description: 'Open a Vue app in Chromium.' });
var mongojs = require('mongojs'); var Promise = require('bluebird'); require('dotenv').config(); // Heroku Addon Case - use mongo connection string if(process.env.MONGODB_URI){ process.env.DB = process.env.MONGODB_URI } // check to see if the DB exists. If not, create a sample builings collection. db = mongojs(proc...
/** * Created with JetBrains RubyMine. * User: teamco * Date: 11/4/12 * Time: 11:06 PM * To change this template use File | Settings | File Templates. */ import {BaseModel} from '../../modules/Model'; import {Page} from '../config/page'; /** * @constant WorkspaceModel * @type {WorkspaceModel} * @extends Base...
$(function(){ $('#summernote').summernote({ height: 300, lang: 'fr-FR' }); var summerNoteVide = $("#summernote").summernote('code'); $("#envoiMail").bootstrapToggle(); Dropzone.options.form2 = { parallelUploads: 10, maxFiles: 10, autoProcessQueu...
'use strict'; const getReturnValue = require('./getReturnValue'), throwOnUnknownProperties = require('./throwOnUnknownProperties'); const formats = {}; // Basically, the following lines could be replaced by a single call to the // require-all module, but this would break browserify compatibility. Hence, // the...
import React from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import CustomPropTypes from "custom-prop-types"; import { partial } from "lodash"; import IconButtonDelete from "components/IconButtonDelete"; import DuplicateButton from "components/DuplicateButton"; import Truncat...
// // // // // // 备忘模式 // // // // // var fun = function (param) { // // // // // var f = arguments.callee, // // // // // result; // // // // // if (!f.cache[param]) { // // // // // result = {}; // // // // // for (var i = 1; i < parseInt(param); i++) { // // // // // result[i] = i + '' + i; // // // // //...
Xhr.encode_urlencode = function(hash){ var str = []; hash.each(function(val){ if($type(val) == 'string') str.push(val); else str.push(val.key + '=' + encodeURIComponent(val.value)); }); return str.join('&'); }; Xhr.implement({ encode_urlencode: { transport_callback:'send', encode:...
module.exports={A:{A:{"2":"L H jB","132":"G E A B"},B:{"1":"8","132":"C D e K I N J"},C:{"1":"0 1 2 3 9 f g h i j k l m n o M q r s t u v w x y z JB IB CB DB EB O GB HB","132":"4 5 7 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d aB ZB"},D:{"1":"3 8 9 IB CB DB EB O GB HB TB PB NB mB OB LB QB RB","132":...
import bus from '../../native/bus.js'; export default store => next => action => { bus.fire(action.type, action); return next(action); };
"use strict" function getConfig () { var config = {}; config.is_dev_mode = location.href.indexOf('?') != -1; config.is_game_title = true; config.half_PI = Math.PI * 0.5; config.gravity = 0.00008; config.fog_start = 0; config.map_side_n = 9; config.cube_size = 11; config.cube_height = 0.5; config.map_noise_...
angular .module('bibtex.services') .factory('Bibtex', Bibtex); function Bibtex($http, $q) { var Bibtex = { parseBibtexFile: parseBibtexFile }; return Bibtex; //////////////////// function parseBibtexFile(fileContent) { var evidenceList = []; var lines = fileContent.split(...
angular.module('angular-bootstrap-select', []).directive('abSelect', function ($timeout, $log) { return { restrict: 'EA', replace: true, require: ['?ngModel', '?ngOptions'], scope: false, transclude: false, templateUrl: 'angular-bootstrap-select/select.html', link: functi...
/* Parallax Version: 2.0 Developer: Jonathan Chute Year: 2019 */ (function( $ ) { $.fn.parallax = function( options ) { let object = $(this); if ( object[0] === undefined ) { return; } let settings = $.extend( { 'offset': 0, 'speed': 0.4...
'use strict'; exports = module.exports = Migrations; var Migration = require('./migration'); var PropertyTypes = require('./../models/property-types'); var utils = require('./../../helpers/utils'); var path = require('path'); var Q = require('q'); var fs = require('fs'); var crypto = require('crypto'); var debug ...
var express = require('express'); var app = express(); var path = require('path'); app.use(express.static(path.join(__dirname, '.'))); var server = app.listen(8888, function(){ console.log('Server listening on port 8888'); });
#!/usr/bin/env node var AWS = require("aws-sdk"); var amqp = require('amqplib/callback_api'); AWS.config.loadFromPath("config.json"); var docClient = new AWS.DynamoDB.DocumentClient() function postTemp(q){ setInterval(function() { getTempDynamo(q) }, 500); } function getTempDynamo(q){ AWS.config.update({ r...
import passport from 'passport'; import isAdmin from './is-admin.middleware'; import isSeller from './is-seller.middleware'; export const isAuthenticated = passport.authenticate('bearer', { session: false }); export const isAuthenticatedAdmin = [isAuthenticated, isAdmin]; export const isAuthenticatedSeller = [isAuth...
describe('Elements TestCase', function () { 'use strict'; describe('Initialization', function () { beforeEach(function () { setupTestHelpers.call(this); this.el = this.createElement('div', 'editor', 'lore ipsum'); }); afterEach(function () { this.cle...
(function (Modules, undefined) { //initialize angular Modules.DorianDelmontez = angular.module('dd', ['ngRoute']); }(DorianDelmontez.Modules = DorianDelmontez.Modules || {} ));
// We patch this so Undom can't make any unconfigurable props. const { defineProperty, defineProperties } = Object; Object.defineProperty = function(obj, key, def) { def.configurable = true; return defineProperty.call(Object, obj, key, def); }; Object.defineProperties = function(obj, def) { Object.keys(def).forEa...
var io = require("socket.io")(); var SOCKETEVENTS = require("../shared/socketevents"); // handling for the queue var QueueHandler = require("./queuehandler"); var SessionHandler = require("./sessionhandler"); // setup the queue-handler to manage the "/queue" namespace // queuehandler will emit "match_found" when it f...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4....
var superlongtoolllist = [ { "name": "edit", "children": [ { "name": "select/drag", "children": [], "callback": "toSelectMode" }, { "name": "undo", "children": [], "cal...
import './App.css'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import React, { Component } from 'react'; import { getUserInfo, getTweets } from '../../state/actions'; import Header from '../header/Header'; import Login from '../login/Login'; import TweetsList from '../tweets-li...
/// <binding Clean='clean:fonts, clean:icons, clean:images, clean:robots, clean:scripts, clean:sitemap, clean:styles, clean:webConfig' /> var del = require("del"); var gulp = require("gulp"); var addSrc = require("gulp-add-src"); var concat = require("gulp-concat"); var jshint = require("gulp-jshint"); var merge...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define(["require","exports"],function(f,a){function e(a){return a}function d(a){var b=2*(a-Math.sqrt((a-1)*a)),d=b/2/a;return function(c){return c<d?a*c*c:b*c-b+1}...
'use strict'; if (window.__karma__) { var allTestFiles = []; var TEST_REGEXP = /spec\.js$/; var pathToModule = function(path) { return path.replace(/^\/base\/app\//, '').replace(/\.js$/, ''); }; Object.keys(window.__karma__.files).forEach(function(file) { if (TEST_REGEXP.test(file...
var assert = require('assert'); var GraphWorld = require('../cube/graph'); describe('Graph World', function () { it('should display itself', function () { var v1 = new GraphWorld.Vertex('test'); assert.equal('test', v1.toString()); assert.equal('test', v1.label); var v2 = new Graph...
/** * PostWithoutReload * ================= * * Klasse um einen Beitrag im Forum zu schreiben ohne die Seite neuladen zu * müssen. */ function PostWithoutReload($, _options,_reloadPosts){ var _$form = []; var _$inputField = []; var _$submitButton = []; var _$newSubmitButt...
var _ = require("underscore") , cheerio = require("cheerio"); cheerio.prototype.map = function(fn) { return _.reduce(this, function(memo, el, i) { var val = fn.call(this.make(el), i, el); return val == null ? memo : memo.concat(val); }, [], this); };
export { default } from 'affinity-engine-plugin-data-manager-rewindable-lokijs/adapters/affinity-engine/data-manager-rewindable-lokijs/shared-data';
// Write your Javascript code. window.onload = function () { document.getElementById("updateInventory_ProductLabel").focus(); }; (function ($) { $.fn.jScroll = function (e) { var f = $.extend({}, $.fn.jScroll.defaults, e); return this.each(function () { var a = $(this); ...
angular.module('directives', []);
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. chrome.storage.sync.get("allWordsArray", function(items){ document.getElementById('blocked-words').value = items.allWordsArray.join(', '); }) var ...
// Used to enable the use of TAB in textarea // This is useful when editing the JSON Query directly as people are used to pressing TAB for indentation function enableTab(id) { var el = document.getElementById(id); if (el !== null) { el.onkeydown = function(e) { if (e.keyCode === 9) { // tab was pressed ...
/* * GET home page. */ exports.view = function(req, res){ // var flag = []; // flag.hasText = false; var mongodb = require('mongodb'); var databaseUrl = "ranajays:ranajays@ds033679.mongolab.com:33679/heroku_app21902449"; // "username:password@example.com/mydb" var collections = ["drinks", "ingredient...
version https://git-lfs.github.com/spec/v1 oid sha256:15a1e45f24664c6f3ed62969254b70b71b46bae87850a76ead1a3ecaf981aef1 size 380045
version https://git-lfs.github.com/spec/v1 oid sha256:9eb188ba14bbdfb5b1b7729d16e9b8b09523dbbdd5b233e5bbd37fcf291b8c80 size 18924
version https://git-lfs.github.com/spec/v1 oid sha256:fab6387214b3ad85994dcf2c58199a7015fdc7c63c19e1a0d8dcf3800f5b896c size 192629
'use strict'; const test = require('ava'); const reverse = require('../../lib/reverse'); test('should throw error if value is `null`', t => { t.throws(() => reverse(null)); }); test('should throw error if value is `undefined`', t => { t.throws(() => reverse(undefined)); }); test('should throw error if valu...
// Author : Lijian Qiu // Email : loye.qiu@gmail.com // Description : ConnectionServer var util = require('util'); var events = require('events'); var Endpoint = require('./endpoint'); var Connection = require('./connection'); //ConnectionServer(endpoint<Endpoint>[, options<Object>][, connectionListe...
function menuButton() { var menu = document.getElementsByClassName("menu")[0]; if (menu.style.display == "block") { menu.style.display = "none"; } else { menu.style.display = "block"; }; // console.log(menu.getElementsByTagName("li")); // if (menu.style.height == "0px") { // menu.style.height = ...
const enumerations = (function () { const en = { soilLevel: { 0: 'extra light', 1: 'light', 2: 'normal', 3: 'heavy', 4: 'extra heavy' }, spinLevel: { 0: 'no spin', 1: 'unused', 2: 'medium', 3: 'high', 4: 'extra high', 5: 'disabled' },...
O2.extendClass('MW.HUDIconPad', UI.HUDElement, { sLastIconPrint: '', oIcons: null, oAttributes: null, /** * Afficher les icones vertes correspondant aux attributs positif * et les icones rouges correspondant aux attributs négatif */ update: function(oAttributes) { var sLIP = '', sAttr = ''; for (sAtt...
var getData = require('./getData'); var express = require('express'); var router = express.Router(); router.get('/text', function(req, res, next) { getData.fetch(function(o) { var data = ""; console.log(o); for (var t in o) { data += (t + ", " + o[t].to + ", " + o[t].in + "\n"); } res...
/** * SVGPathNormalizer * https://github.com/motooka/SVGPathNormalizer * * Copyright (c) Tadahisa Motooka * Licensed under the MIT license * See the file "LICENSE" for more detail. * */ var SVGPathNormalizer = {}; SVGPathNormalizer.normalize = function(pathSegList) { var path = document.createElementNS('htt...
/** * * Tests for Example * * @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing * */ import React from 'react'; import { render } from 'react-testing-library'; import { IntlProvider } from 'react-intl'; // import 'jest-dom/extend-expect'; // add some helpful assertions import ...
module.exports = require('./dist/Calendar');
eventsApp.factory('$exceptionHandler', function() { return function (exception) { console.log("exception handled: " + exception.message); }; })
define([ 'core/events', 'core/g-attrs', 'core/vars/html-tags', 'core/vars/regex' ], function ($events, GAttrs, HTMLTags, Regex) { var TEMPLATE_ID = 1; function Template (tree, nodes) { var $this = this; $this.id = TEMPLATE_ID++; var tree = tree; var nodelist = nodes; if (nodelist) { ...
import React from 'react'; import ReactDOM from 'react-dom'; import Grid from './Grid'; ReactDOM.render(<Grid rows={10} cols={5}/>, document.getElementById('grid'));