code
stringlengths
2
1.05M
import PriorityListItem from "./PriorityListItem.js"; import IntervalActionList from "./IntervalActionList.js"; import CommandActionList from "./CommandActionList.js"; import WordActionList from "./WordActionList.js"; class BotInfo extends PriorityListItem{ constructor(prop){ if(typeof(prop) !== "object"){ throw...
var roleBuilder = require('role.builder'); module.exports = { // a function to run the logic for this role /** @param {Creep} creep */ run: function(creep) { // if creep is trying to repair something but has no energy left if (creep.memory.working == true && creep.carry.energy == 0) { ...
import FileSaver from 'FileSaver' import {Injectable} from '@angular/core' @Injectable() export class FileSaverService { saveAs(...args) { return FileSaver(...args) } }
'use strict'; import angular from 'angular'; const STATIC_MAP_URL = 'https://maps.googleapis.com/maps/api/staticmap'; const MAX_WIDTH = 380; const MAX_HEIGHT = 250; const MAP_TYPE = 'roadmap'; export class GooglePhotoController { constructor(Util, appConfig) { 'ngInject'; this.src = Util.buildUrl(STATIC_M...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("common/plugins/editor.md/lib/codemirror/lib/codemirror"), require("common/plugins/e...
Meteor.methods({ "infoView" : function(type){ check(type,String); infos=Information.find({infoType:type}).fetch(); console.log('server:'+ JSON.stringify(infos)); return infos; }, "infoUpdate" : function(id){ check(id,String); check("Yes",String); info=Information.find({_id:id}).fetch(); Information.update(...
/** @constructor */ ScalaJS.c.java_io_IOException = (function() { ScalaJS.c.java_lang_Exception.call(this) }); ScalaJS.c.java_io_IOException.prototype = new ScalaJS.inheritable.java_lang_Exception(); ScalaJS.c.java_io_IOException.prototype.constructor = ScalaJS.c.java_io_IOException; ScalaJS.c.java_io_IOException.pro...
/** @constructor */ ScalaJS.c.scala_Tuple9$ = (function() { ScalaJS.c.java_lang_Object.call(this) }); ScalaJS.c.scala_Tuple9$.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_Tuple9$.prototype.constructor = ScalaJS.c.scala_Tuple9$; ScalaJS.c.scala_Tuple9$.prototype.toString__T = (function() { ...
'use strict'; (function() { var app = angular.module("vroomApp", ["ngRoute"]); app.config(function($routeProvider) { $routeProvider .when("/", { templateUrl: 'partials/loading', controller: MainController }) .when("/fuel-gauge", { ...
'use strict'; /*------------------------------------------------------------------------------ * 2. FILE DESTINATIONS (RELATIVE TO ASSSETS FOLDER) ------------------------------------------------------------------------------*/ /* * opt * @param false or string: virtual host name of local machine such as . Set false...
'use strict'; var debug = require('debug')('remmit:test'); function ticker (count, done, id) { var total = count; id = id || ''; return function (tag) { tag = tag || ''; debug('tick', id, tag); if (--count === 0) { debug('boom', id); done(); } if (count < 0) { throw new Err...
// These tests prove that performance is of no concern for a properly planned apps. JS is quite fast for what it is. var assert = require('assert'); var iterations = 100000000; describe ("performance", function () { it ("closures", function () { var i; var v1 = 1; var createFunc = function (level) { var v2...
/** * Users.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { schema: true, attributes:{ email: { type: 'string', email: true, required: true, unique: tr...
/* * GET home page. */ exports.view = function(req, res){ res.render('profile'); };
/* */ var signature = require('cookie-signature'); /** * Parse signed cookies, returning an object * containing the decoded key/value pairs, * while removing the signed key from `obj`. * * @param {Object} obj * @return {Object} * @api private */ exports.signedCookies = function(obj, secret){ var cookies = ...
'use strict'; /* This diverges from `Ember.String.dasherize` so that`<XFoo />` can resolve to `x-foo`. `Ember.String.dasherize` would resolve it to `xfoo`.. */ const SIMPLE_DASHERIZE_REGEXP = /[A-Z]/g; const ALPHA = /[A-Za-z]/; module.exports = function(key) { return key.replace(SIMPLE_DASHERIZE_REGEXP, (char, ...
module.exports = require("./robin");
//A proof of concept. //No code structure whatsoever applied var http = require('http'); var redis = require('redis'); var redisClient = redis.createClient(6379, '10.129.123.83'); var NRP = require('node-redis-pubsub') , config = { port: 6379 // Port of your remote Redis server , host: '10.129.123...
import chai, { expect } from 'chai' import server from '../src/index' export default (done) => { expect(server.info.uri).to.equal('http://localhost:3000') }
var buffer = require('vinyl-buffer'); var cleanCSS = require('gulp-clean-css'); var gulp = require('gulp'); var merge = require('merge-stream'); var rollup = require('rollup-stream'); var source = require('vinyl-source-stream'); var sourcemaps = require('gulp-sourcemaps'); var zip = require('gulp-zip'); function minCs...
/* * twisty_demo.js * * Demonstration and testing harness for WSOH. * * TOOD * - Fix document.getElementById(...) calls. // TODO I can imagine that some users of twisty.js would want to be able to have a Heise-style // inspection, where you are only allowed to do inspection moves during ...
// // This is only a SKELETON file for the 'Grains' exercise. It's been provided as a // convenience to get you started writing code faster. // export const square = () => { throw new Error("Remove this statement and implement this function"); }; export const total = () => { throw new Error("Remove this statement ...
"use strict"; var page = require('webpage').create(), system = require('system'), address; if (system.args.length === 1) { console.log('Usage: netlog.js <some URL>'); phantom.exit(1); } else { address = system.args[1]; page.onResourceRequested = function (req) { console.log('Request (...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; const React = require('React'); const ReactRelayContext = require('./ReactRelay...
"use strict"; let gulp = require('gulp'); let runSequence = require('run-sequence'); let jade = require('gulp-jade'); let clean = require('gulp-clean'); let browserSync = require('browser-sync').create(); let ghPages = require('gulp-gh-pages'); let destDir = 'public'; let paths = { scripts: 'client/js/**/*....
require("kaoscript/register"); var Type = require("@kaoscript/runtime").Type; module.exports = function() { var __ks_Number = require("../_/_number.ks")().__ks_Number; var __ks_String = require("../_/_string.ks")().__ks_String; function degree(value) { if(arguments.length < 1) { throw new SyntaxError("Wrong num...
import { inMemory } from "@hickory/in-memory"; import { createRouter, prepareRoutes } from "@curi/router"; import app from "./app.svelte"; let routes = prepareRoutes([ { name: "Home", path: "" }, { name: "Sync", path: "sync" }, { name: "Slow", path: "slow", resolve() { return new Promise(resol...
import React, {Component} from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import { View, Text, ListView, TouchableWithoutFeedback, } from 'react-native' import Container from '../../../../component/layout/container' import Content from '../../../../component/la...
// This file is used to define the namespaces available in the R context // DO NOT INCLUDE IN COMPILATION OF ENGINE RUNTIME!! R.debug = {}; R.lang = {}; R.struct = {}; R.math = {}; R.engine = {}; R.collision = {}; R.collision.broadphase = {}; R.components = {}; R.components.debug = {}; R.components.input = {}; R.compon...
export const STATE_DEFAULT = { };
import { restaurantService } from '../services'; const fetchData = (restaurantId) => { return restaurantService.getDishes(restaurantId) .then(res => res.data) // Returning [] as a placeholder now so it does not error out when this service // fails. We should be handling this in our DISPATCH_REQUEST_FAILURE ....
/*jshint node:true */ /*global describe:false, it:false */ "use strict"; var execify = require('../'); var Q = require('q'); var map = require('map-stream'); var should = require('should'); require('mocha'); describe('execify', function() { describe('asStream()', function() { it('should run sync task', function(d...
class SharedFutureBuilder { constructor(type, name) { this.type = type this.name = name this.suffix = '' } assign(varName) { this.suffix = ` = ${varName}` return this } assignFromPromise(promiseName) { this.suffix = ` = ${promiseName}.get_future().share()` return this } end(...
// @flow import type {ResponseHeader} from '../../models/response'; import * as models from '../../models/index'; import {Readable} from 'stream'; type MaybeResponse = { parentId?: string, statusCode?: number, statusMessage?: string, bytesRead?: number, bytesContent?: number, bodyPath?: string, elapsedTi...
/* 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/. */ /** * EventEmitter. */ (function (factory) { // Module boilerplate if (this.module && module.id.indexOf("even...
import React from 'react'; import Icon from 'react-fontawesome'; const SearchIcon = props => <Icon {...props} name="search" />; export default SearchIcon;
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', ['ngMockE2E', 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version', 'myApp.search' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.otherwise({ redirectTo: '/lists' }); ...
var request = require('request'); var Client = function(options) { this.baseUrl = options.baseUrl || 'http://note.youdao.com'; this.access_token = options.access_token; }; /* * options: * method: request method * params: request params */ Client.prototype.request = function(options, callback) { options....
var about = require('express').Router(); about.get('/', function(req, res) { if(req.user !== undefined) { res.render('partials/about', { title : 'Code Agent - About', isAboutPage : true, user: req.user }); } else { res.render('partials/about', { title : 'Code Agent - ...
import BaseProvider from './provider'; export default class Provider extends BaseProvider { endpoint({ query } = {}) { const { params } = this.options; const paramString = this.getParamString({ ...params, format: 'json', q: query, }); return `https://nominatim.openstreetmap.org/se...
var debug = false; var option = { restart:false, follow: true, hour:9, name:'moto', gravity:-10, mass:500, engine:2000, acceleration:100, // car body physics friction: 0.1, restitution: 0, linear: 0, angular: 0, rolling: 0, // suspension autoSuspen...
var GasPlugin = require("gas-webpack-plugin"); module.exports = { resolve: { extensions: [".js", ".gs"] }, context: __dirname, entry: './src/index.js', output: { path: __dirname+'/dist', filename: 'sheet2form.gs' }, plugins: [ new GasPlugin() ] }
var Vue = require('vue') var Toolbar = require('./toolbar/toolbar.vue') var Editor = require('./editor/editor.vue') new Vue({ el: 'body', components: { toolbar: Toolbar, editor: Editor } }) document.addEventListener('keypress', function(e) { if (e.keyCode == 13) { document.execCommand('formatBlock',false, '...
const getAccount = state => state.get('account'); const isAuthenticated = state => !getAccount(state).isEmpty(); export { getAccount, isAuthenticated };
import {create} from './actions/create'; import {login} from './actions/login'; import {find, findById} from './actions/find'; import {register, registerPending, registerSuccess, registerError} from './actions/register'; import loginHandler from './action-handlers/login'; import registerHandler from './action-handlers/...
const libmultiparty = require('multiparty') const Exception = require('./Exception') function FormParser(configs) { //size in bytes, default: 1048576 bytes = 1 Mebibyte const _maxEntitySize = configs.maxEntitySize ? configs.maxEntitySize : 1048576 const _uploadDir = configs.uploadDirectory Object.defineProperty(t...
version https://git-lfs.github.com/spec/v1 oid sha256:52d82d14979fb842dd727ad488ef9fe481bc76e402f2785dfcf7600caca03881 size 11493
version https://git-lfs.github.com/spec/v1 oid sha256:42ba4529cf3b71328176dddfde0c8becf7714b5a0615aa2e7288792f98ec1638 size 2717
var net = require('net'); var parsers = { email: require('./parsers/Email') }; function TwailerClient(config) { this.config = config; } TwailerClient.prototype.subscribe = function (user, channels) { var socket = net.connect(this.config.socket); socket.write(JSON.stringify({ event: 'subscribe...
import $ from 'jquery'; import func from '../core/func'; import lists from '../core/lists'; import dom from '../core/dom'; export default class Style { /** * @method jQueryCSS * * [workaround] for old jQuery * passing an array of style properties to .css() * will result in an object of property-value ...
"use strict" const {promises: fs} = require("fs") const path = require("path") const {promisify} = require("util") const marked = require("marked") const rimraf = promisify(require("rimraf")) const {execFileSync} = require("child_process") const escapeRegExp = require("escape-string-regexp") const HTMLMinifier = requi...
'use strict'; var assert = require('assert'); var base = require('engine-base'); var Engines = require('..'); var engines; describe('engines get', function() { beforeEach(function() { engines = new Engines(); }); describe('.getEngine()', function() { it('should get the given engine from the `cache`.', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const builder = require("botbuilder"); const botbuilder_instrumentation_1 = require("botbuilder-instrumentation"); const config = require('../../config'); var model; var recognizer; var intents; var _lib = new builder.Library('feedbackBot'); _...
'use strict' // meta ------------------------------------------------------------------------ const name = 'lair' const version = '0.0.1' const author = 'Jacob Blakely (codekirei)' const license = 'MIT' // links ----------------------------------------------------------------------- const homepage = 'https://github...
var save_method; //for save method string var table; $(document).ready(function() { $(".select2").select2(); $("#jenis_barang").change(function(){ var id = $(this).val(); if(id == 3){ $("#inv").show(); }else{ $("#inv").hide(); } }) .c...
import { fromJS } from 'immutable'; import { SEARCH_PRODUCTS, SEARCH_PRODUCTS_SUCCESS, GET_PRODUCTS, GET_PRODUCTS_SUCCESS, GET_PRODUCTS_ERROR, REMOVE_ERROR, SET_QUERY, SET_AUTOCOMPLETE, PAGE_FORWARD, PAGE_BACKWARD, } from './constants'; export function setQuery(query) { return { type: SET_QUE...
var searchData= [ ['index_5fof_5fshortest_5fto_5fpoint',['index_of_shortest_to_point',['../track__objects__client_8cpp.html#ab211511420b6766585fd914838c8bf10',1,'track_objects_client.cpp']]], ['index_5fof_5fshortest_5fto_5fsensor',['index_of_shortest_to_sensor',['../track__objects__client_8cpp.html#af1132126f5252ae...
'use strict'; require('mocha'); const assert = require('assert'); const auth = require('./support/auth'); const GitHub = require('..'); let github; describe('.put', function() { this.timeout(5000); beforeEach(() => (github = new GitHub(auth))); describe('promise', function() { it('should subscribe to repo...
cordova.define("cordova-plugin-gctouch-id.GCTouchID", function(require, exports, module) { var cordova = require('cordova'); function GCTouchID() { } GCTouchID.prototype.isAvailable = function (onSuccess, onFail) { cordova.exec(onSuccess, onFail, 'GCTouchID', 'isAvailable'); }; GCTouchID.prototype.au...
/*************************** * * Extra methods * **************************/ var cst = require('../../constants.js'); var Common = require('../Common.js'); var UX = require('./CliUx'); var chalk = require('chalk'); var async = require('async'); var path = require('path'); ...
var fs = require('fs'); var app = require('app'); var ipc = require('ipc'); var Menu = require('menu'); var BrowserWindow = require('browser-window'); var appMenu = require('./menu_config/app_menu'); require('crash-reporter').start(); var debug = process.env.NODE_ENV === 'development', mainWindow; app.on('windo...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module", "ecmaVersion": 8, "ecmaFeatures": { "experimentalObjectRestSpread": ...
version https://git-lfs.github.com/spec/v1 oid sha256:50701f9e342b487422a669a4d9941b05cfceb87449f4168c828e8acaa10c31c5 size 23491
var tweb = angular.module('tweb', ['ngRoute', 'ngAnimate', 'chart.js', 'ui.gravatar', 'ngCookies']); tweb.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/', { templateUrl: 'res/partials/home.html', controller: 'home...
// This file is part of Indico. // Copyright (C) 2002 - 2022 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. _.mixin({ move: function(array, fromIndex, toIndex) { array.splice(toIndex, 0, array.splice(fr...
export const port = process.env.PORT || 3000; export const host = process.env.WEBSITE_HOSTNAME || `localhost:${port}`; export const databaseUrl = process.env.DATABASE_URL || 'postgresql://demo:Lqk62xg6TBm5UhfR@demo.ctbl5itzitm4.us-east-1.rds.amazonaws.com:5432/membership01'; export const analytics = { // https://a...
import { SET_RESULTS } from './results.actions' export const initState = [] export const initAction = {} export default (state = initState, action = initAction) => { switch (action.type) { case SET_RESULTS: return action.payload default: return state } }
(function () { return { createUI: function(namingContainerPrefix, container, settings) { this.languageKeys = [ '/shell/cms/visitorgroups/criteria/timeofday/starttimeafterendtime', '/shell/cms/visitorgroups/criteria/timeofday/nodayofweekselected', ...
(function() { 'use strict'; describe('Invitation', function() { var httpBackend, Invitation, invitation; beforeEach(module('weddinvApp')); beforeEach(inject(function($injector) { httpBackend = $injector.get('$httpBackend'); Invitation = $injector.get('Invitation'); invitation = Invi...
import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant'; import ENV from 'frontend/config/environment'; export default OAuth2PasswordGrant.extend({ serverTokenEndpoint: ENV.serverTokenEndpoint, makeRequest: function(url, data){ data.client_id = ENV.clientId; data.client_sec...
// @flow import curry from 'lodash/fp/curry'; import flatten from './flatten'; import synchronize from './synchronize'; /** * Return an array of `FlatRoute`s which are rooted at the given prefix. * * If routes that match the given prefix are asynchronous, then a promise will be returned, * resolving with an arra...
'use strict'; var util = require('util'); var yeoman = require('yeoman-generator'); var AngularGenerator = module.exports = function AngularGenerator(args, options, config) { yeoman.generators.NamedBase.apply(this, arguments); }; util.inherits(AngularGenerator, yeoman.generators.NamedBase); AngularGenerator.protot...
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'getting-started/learn'; const requireDemo = require.context('docs/src/pages/getting-started/learn', false, /\.(js|tsx)$/); const ...
"use strict"; var datetime = require('../../../src/util/datetime-util'); function run() { describe('convertDataToISO', function () { it('should convert DateTimeData to datetime string, with blank timezone', function () { var data = { year: 1994, month: 12, ...
import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import { Redirect } from 'react-router-dom'; @inject('store') @observer export default class /* @echo CLASSNAME */ extends Component { render() { return ( <div className='page /* @echo CLASSNAME */'> {this.props.store.au...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = void 0; var _useToggle2 = _interopRequireDefault(require("../hooks/useToggle")); var _useWatchItem = _interopRequireDefault(require("./hooks/useWatchItem")); var _A = ...
(function() { 'use strict'; angular.module('app.common', [ 'ui.router', 'app.common.biker-info' ]); })();
// region import const View = require('./view') const { CompositeDisposable, Disposable } = require('atom') // endregion // region Count class Count { activate() { this.altKey = 'none' this.ctrlKey = 'none' this.key = 'none' this.keyUp = false this.metaKey = 'none' this.shiftKey = 'none' this.fullKeys ...
'use strict'; exports.__esModule = true; exports.reset = exports.auth = exports.ui = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !...
//All the cookie setting stuff function catapultSetCookie(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMT...
require({baseUrl:requirejs.isBrowser?"./":"./universal/"},["spell"],function(e){doh.register("universal",[function(n){n.is("spell",e.name),n.is("newt",e.newtName),n.is("tail",e.tailName),n.is("eye",e.eyeName)}]),doh.run()});
var MonopolyTile = require('../monopoly_tile'), inherits = require('util').inherits; function Go() { MonopolyTile.call(this, "Go"); }; inherits(Go, MonopolyTile); Go.prototype.performLandingAction = function(game) { return Go.super_.prototype.performLandingAction.call(this, game); }; module.exports = Go; ...
/** * Pseudoclass to manage the Accessing page **/ function Accessing(){ "use strict"; //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ATTRIBUTES <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<...
var main = {}; var io = require('socket.io-client'); main.sock = function(address){ var socket = io.connect(address, {reconnect: true}); // Add a connect listener socket.on('connect', function(socket) { console.log('Connected!'); }); return { s:socket } } module.exports = main;
/// <autosync enabled="true" /> /// <reference path="js/bootstrap-slider,js.js" /> /// <reference path="js/site.js" /> /// <reference path="lib/bootstrap/dist/js/bootstrap.js" /> /// <reference path="lib/jquery/dist/jquery.js" /> /// <reference path="lib/jquery-validation/dist/jquery.validate.js" /> /// <reference pat...
import { createStore } from 'redux' const initialState = { dishList: [0], language: 'EN' } export function reducer(state = initialState, action) { let newDishList = []; switch (action.type) { case 'AddNewCard': newDishList = state.dishList.slice(); newDishList.push(state.dishList.length); ...
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = { moduleType: 'locale', name: 'he', dictionary: {}, format: { days: ['ר...
/* * Description: Ghent Trees Application * Modified: 10-11-2015 * Version: 1.0.0 * Author: Philippe De Pauw - Waterschoot * ----------------------------------------------- * Ghent Bomen Inventaris API: http://datatank.stad.gent/4/milieuennatuur/bomeninventaris.json */ // Anonymous function executed when document loa...
'use strict'; /** * Module dependencies. */ var config = require('../config'), mongoose = require('./mongoose'), express = require('./express'), chalk = require('chalk'), job = require('./job'), seed = require('./seed'); function seedDB() { if (config.seedDB && config.seedDB.seed) { console.log(chal...
$( document ).ready(function() { $.getJSON("/sentiment/line_chart", function(result) { var all_candidates = {} for (candidate in result['candidates']) { var candidateData = []; for (k in result['candidates'][candidate]){ candidateData.push({"minute": k, "score": result['candidates'][candidate][k...
import React from 'react'; import { View, StyleSheet, Animated} from 'react-native'; import AppStyles from 'dedicate/AppStyles'; import Textbox from 'fields/Textbox'; import IconMarker from 'icons/IconMarker'; import MapView, {Marker} from 'react-native-maps'; import Geocoder from 'react-native-geocoder'; // NOTE: Fin...
module.exports = { debug : false, }; module.exports.given = function (arguments) { arguments.forEach(function (flag) { flag = flag.slice(2); // kv = flag.includes("=") //ES6 compliant only... //In the future i'll add stuff to further customize karma. switch (flag) { case "debug": modul...
// @flow import type { ContentBlock, ContentState } from 'draft-js' import { ANNOTATION_ENTITY_TYPE, } from '../constants' import Annotation from '../components/Annotation' export const findNoteEntities = ( contentBlock: ContentBlock, callback: Function, contentState: ContentState ) => { contentBlock.findE...
var username = location.search && encodeURIComponent(location.search.slice(1)), source $(function(){ if(!username){ $('#wrapper').html('<strong>请在url上附加监听的用户,方式如下:</strong><p><a href="http://jsconsole.kf0309.3g.qq.com/?yourRtxName">http://jsconsole.kf0309.3g.qq.com/?yourRtxName</a></p>') return ...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
'use strict'; //User admin service used for communicating with the articles REST endpoints angular.module('usersadmin').factory('UsersAdmin', ['$resource', function ($resource) { return $resource('usersadmin/:userId', { userId: '@_id' }, { update: { method: 'PUT' } ...
ReachAlbert.common = angular.module('ReachAlbert.common' ,[]) ReachAlbert.common.controller('TabController', ['$scope', '$state', '$stateParams', function($scope, $state, $stateParams){ $('body,html').animate({scrollTop: 0}, 800); }]); ReachAlbert.common.controller('CrewController', ['$scope', function($scope)...
$(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { // Prevent spam click and...
// The MIT License (MIT) // // Copyright (c) 2017-2021 Camptocamp SA // // 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 // u...
var rpn=require("./rpn.js"); exports. addition = function (test) { test.expect(4); test.equals(rpn.compute(prep("1 2 +")), 3); test.equals(rpn.compute(prep("1 2 3 + +")), 6); test.equals(rpn.compute(prep("1 2 + 5 6 + +")), 14); test.equals(rpn.compute(prep("1 2 3 4 5 6 7 + + + + + +")), 28); test.done(); }; fun...