code
stringlengths
2
1.05M
define(["backbone", "underscore", "text!homeTemplate.html"], function (Backbone, _, homeTemplate) { return Backbone.View.extend({ className: "home", tagName: "section", template: _.template(homeTemplate), render: function () { this.$el.html(this.template()); ...
/** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', 'odm': 'odm', // 'dist', '@angular': ...
import _ from 'underscore'; const LOAD = 'redux-example/suppliers/LOAD'; const LOAD_SUCCESS = 'redux-example/suppliers/LOAD_SUCCESS'; const LOAD_FAIL = 'redux-example/suppliers/LOAD_FAIL'; const LOAD_SUPPLIER = 'redux-example/suppliers/LOAD_SUPPLIER'; const LOAD_SUPPLIER_SUCCESS = 'redux-example/suppliers/LOAD_SUPPLIE...
// For an introduction to the Page Control template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkId=232511 (function () { "use strict"; /****************************/ /* GAMES HUB PAGE CONTROL */ /****************************/ WinJS.UI.Pages.define("/pages/sta...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
version https://git-lfs.github.com/spec/v1 oid sha256:b7b090942eb1b5faa026ad6a48d57357bea293624bc96b4a55a72d98cdceb6ce size 75251
version https://git-lfs.github.com/spec/v1 oid sha256:88a4c468392ef3e2c81c47d0a31c5ccf94a1da5f91f9ee6464b53142279c15ba size 3800
/*jslint node: true */ 'use strict'; /*********************** * Logging and Analytics */ var hendrix = require('../../../lib/hendrix'), connectionDb = hendrix.getConnectionDb(), log = hendrix.log, winston = require('winston'), momentTimeZone = require('moment-timezone'); var t = 0; var ipDay = momentTimeZon...
'use strict'; let ParentNode = require("./parentNode.js"); module.exports = class FunctionCall extends ParentNode { constructor(_opNode) { super(); this.name = "FUNCTION_CALL"; this.opNode = _opNode; // this.children are arguments this.description += this.opNode.getToken().data; } getOpNode() { ret...
import { expect } from 'chai'; import detectDefaultLocale from '.'; describe('detectDefaultLocale', () => { it('should be a function', () => { expect(detectDefaultLocale).to.be.a('function'); }); it('should return default locale of en-US in node', () => { delete global.navigator; expect(detectDefault...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("circle", { cx: "12", cy: "19", r: "2" }), h("path", { d: "M10 3h4v12h-4z" })), 'PriorityHigh');
// #TODO this does not work yet async function /*example:*/simpleWait/*{"id":"dd1a_bbbc_9d7d","name":{"mode":"input","value":"wait"},"color":"hsl(300, 30%, 70%)","values":{},"instanceId":{"mode":"input","value":""},"prescript":"","postscript":""}*/() { var /*probe:*/a/*{}*/ = 3 await lively.sleep(100) var b = a...
/* jshint -W069 */ var map; var toner; var tonerLite; var osmMapnik; var markers = { 'en': [], 'it': [] }; var coords = []; var english; var englishLayer; var italian; var italianLayer; var icon; var icons; var iconURLs; var englishSearch = []; var italianSearch = []; var englishLabels = {}; var italianLabels = {}; ...
import React from 'react'; import { mount } from 'enzyme'; import Errors from '../Errors'; import { errors } from './fixtures'; function setup() { let component = mount(<Errors errors={errors} />); return { component, errorItems: component.find('.error-messages > div'), }; } describe('Components::Err...
var express = require('express'); var app = express(); app.use(express.static(__dirname + '/')); app.get('/', function (req, res) { res.sendFile(__dirname + '/index.html'); }); var server = app.listen(3000, function () { var host = server.address().address; var port = server.address().port; console.log('Exam...
/* host_checker.js https://atmospherejs.com/particle4dev/meteor-cron2 */ // appEE = new (Npm.require('events').EventEmitter); // var checkHost = function( args ){ }; // var i = 0; var c = CRON.createNewCronJob('5 * * * * *', function () { // i++; // console.log('You will see this message ' + i + ' second');...
var mongo = require('mongodb').MongoClient; var url = process.env.MONGODB_URL; mongo.connect(url, function(err, db) { global.db = db; });
define( [ 'jsorrery/NameSpace', 'jsorrery/algorithm/MoveAlgorithm', 'jsorrery/algorithm/Gravity' ], function(ns, MoveAlgorithm, Gravity) { 'use strict'; var beginPos = new THREE.Vector3(); var workVect = new THREE.Vector3(); var moveBody = function(body, deltaT, deltaTSq, i){ if(body.previousPosit...
// Simulate config options from your production environment by // customising the .env file in your project's root folder. require('dotenv').load(); // Require keystone var keystone = require('keystone'), pkg = require('./package.json'); // Initialise Keystone with your project's configuration. // See http://keyston...
const React = require('react'); const { render } = require('react-dom'); const { default: ReactTether } = require('../../../lib/react-tether'); function App() { return ( <div> <h1>CommonJS example</h1> <ReactTether attachment="top left" renderTarget={ref => ( <span ref={ref}...
define([ 'jquery', 'underscore', 'backbone', 'views/main/box', 'views/employees/employee', ], function($, _, Backbone, BoxView, EmployeesView){ var EmployeesPageView = Backbone.View.extend({ initialize: function(options){ this.employees = new EmployeesView(options); }, ren...
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within ...
'use strict'; console.log("Environment: " + '/* @echo NODE_ENV */' + " | Version: " + '/* @echo VERSION */'); angular.module('<%= appname %>.service', []); angular.module('<%= appname %>.directive', []); angular.module('<%= appname %>.filter', []); angular.module('<%= appname %>', [ '<%= appname %>.service' ...
(function($){$.fn.letitflow=function(userParams){var defaults={maxWidth:"",maxHeight:"",themeColor:"dark",colorText:"light",colorBar:"#777",color2:"",datesBelow:false,flat:false,firstDay:"",lastDay:"",steps:[],stepsLabel:true,lastStepName:""};var params=$.extend(defaults,userParams);return this.each(function(){var $t=$...
/** * A hash table key value storage * Use it to quickly and resource efficiently find values bound to large object or large string keys in a very large collection. It uses CRC32 algorythm to convert supplied values into integer hashes and * * @author Nikola Stamatovic Stamat < stamat@ivartech.com > * @copyright...
var Scraper = require('./Scraper'); class scraper extends Scraper.HTMLScraper { constructor(company) { super(company); this.jobs_url = 'https://www.specialized.com/us/en/careers'; this.listscraper = { urls: { listItem: ".open li", data: { url: { selector: "a", attr: "href" }...
/** * Altair's Event/Emitter is a little twist on the original NodeJs EventEmitter implementation. The event system has been * augmented with a query engine to allow for much more sophisticated listening. Take a look at the ReadMe.md or someshit. */ define(['altair/facades/declare', './Event', 'altai...
/** * Created by shawn on 1/10/17. */ describe('Logging', function () { var log = LogManager.DefaultLogger /** * This function is used by tests - simply returns whatever is passed to it (identity function) * @param i * @returns {*} */ EC.foo = function (i) { return i; }; ...
var tasks = [ {"startDate":new Date("1981"),"endDate":new Date("1985"),"taskName":"6-5","status":"RUNNING"}, {"startDate":new Date("1986"),"endDate":new Date("1990"),"taskName":"7-5","status":"SUCCEEDED"}, {"startDate":new Date("1991"),"endDate":new Date("1995"),"taskName":"8-5","status":"FAILED"}, {"startDate":new Dat...
function getNow() { return new Date().getTime(); } function getYearsSince(epoch) { var now = getNow(); var then = new Date(epoch); var years = Math.floor((now - then) / 31536000000); return years; } function addMinutes(epoch, m) { var da = epoch + (m * 60000); return da; } function ad...
this.NesDb = this.NesDb || {}; NesDb[ 'A7F135CF49F92E0FD9D03B6F48C1BD65CE8BCC77' ] = { "$": { "name": "Tetris", "altname": "テトリス", "class": "Licensed", "catalog": "BPS-T0", "publisher": "Bullet-Proof Software", "developer": "Bullet-Proof Software", "region": "Japan", "players": "1", "date": "1988-12...
var async = require('async') , request = require('request') ; var providers = [ 'http://localhost/test/list.one', 'http://localhost/test/list.two' ]; async.each( providers, // 1st param is the collection function(provider, callbackOuter) { // 2nd param is the function that each item is passed to console.log(...
/** * Using Rails-like standard naming convention for endpoints. * GET /citizenpedia/api/tags -> index * POST /citizenpedia/api/tags -> create * GET /citizenpedia/api/tags/:id -> show * PUT /citizenpedia/api/tags/:id -> upsert * PATCH /citizenpedia/...
var webpage = require('webpage'), fs = require('fs'), system = require('system'), margin = system.args[5] || '0cm', orientation = system.args[6] || 'portrait', cookie_file = system.args[7], render_time = system.args[8] || 10000 , time_out = system.args[9] || 90000 , v...
const htmlSafe = require('./html_safe'); module.exports = { input(action, csrfToken, code, charset) { const attributes = charset === 'digits' ? 'pattern="[0-9]*" inputmode="numeric" ' : ''; return `<form id="op.deviceInputForm" novalidate method="post" action="${action}"> <input type="hidden" name="xsrf" ...
export default class Car { constructor(name) { this._name = name; } set name(value) { console.log("set name from " + this._name + " to: " , value); this._name = value; } get name() { console.log("get name" + this._name); return this._name; ...
/*jslint browser: true*/ /*global $, jQuery, console, XPathResult, chrome */ (function () { 'use strict'; var ext = { init: "init", initVidState: "initVidState", clearall: "clearall", capture: "capture", loadCapture: "loadCapture", toggleState: "toggleState", toggleVidState: "toggleVi...
8.0-alpha3:1093a7b08fe7be7482a21cc4d38cf0bdfe5437345496a2cf1bdf3d561ea4e28d 8.0-alpha4:1093a7b08fe7be7482a21cc4d38cf0bdfe5437345496a2cf1bdf3d561ea4e28d 8.0-alpha5:1093a7b08fe7be7482a21cc4d38cf0bdfe5437345496a2cf1bdf3d561ea4e28d 8.0-alpha6:1093a7b08fe7be7482a21cc4d38cf0bdfe5437345496a2cf1bdf3d561ea4e28d 8.0-alpha7:1093a...
/** * View engine * https://github.com/koajs/koa-hbs/blob/master/index.js * https://github.com/dominicbarnes/koa-handlebars/blob/master/index.js */ const path = require('path') const fs = require('mz/fs') const fm = require('front-matter') const hbs = require('handlebars') const helpers = require('../helpers') mod...
var fs = require ('fs'); var EventEmitter = require("events").EventEmitter; var ee = new EventEmitter(); var _ = require ('underscore'); var s = require("underscore.string"); var attributes = {}; attributes.fullname = "FN:"; attributes.email = "EMAIL;"; attributes.phone = "TEL;"; attributes.bday = "BDAY:"; attributes...
'use strict'; var request = require('request'); module.exports = function (grunt) { // show elapsed time at the end require('time-grunt')(grunt); // load all grunt tasks require('load-grunt-tasks')(grunt); grunt.loadNpmTasks('grunt-contrib-less'); var reloadPort = 35729, files; grunt.initConfig({ ...
var brightWhite = [230,230,230], white = [200,200,200], silver = [150,150,155], black = [060,060,060], darkBlack = [040,040,040], justRed = [255, 0, 0], lightRed = [235, 60, 54], red = [210, 50, 44], darkRed = [186, 26, 26], ...
import 'whatwg-fetch' import { Promise } from 'es6-promise' import alt from '../alt' import TeamServiceStateModel from '../models/team-service-state-model' import { List } from 'immutable' class TeamServiceStateActions { static fetchPromise() { return new Promise((resolve, reject) => { fetch('...
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import { Grid, Row, Col, Clearfix } from 'react-bootstrap'; import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar'; import IconMenu from 'material-ui/IconMenu'; ...
'use strict'; var _ = require('lodash'); var Recipe = require('./recipe.model'); // Get list of recipes exports.index = function(req, res) { Recipe.find(function (err, recipes) { if(err) { return handleError(res, err); } return res.json(200, recipes); }); }; // Get a single recipe exports.show = function...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M8.17 17c.51 0 .98-.29 1.2-.74l1.42-2.84c.14-.28.21-.58.21-.89V8c0-1.1-.9-2-2-2H5.34C4.6 6 4 6.6 4 7.34v4.32C4 12.4 4.6 13 5.34 13H8l-1.03 2.06c-.45.89.2 1.94 1.2 1.94zm9 0c.51 0 .98-.29 1.2-.74l...
var async =require('async'), pkgcloud = require('pkgcloud'), fs = require('fs'), logging = require('../common/logging'), config = require('../common/config'), _ = require('underscore'); var log = logging.getLogger(process.env.PKGCLOUD_LOG_LEVEL || 'debug'); var provider = process.argv[2]; var client = pkgc...
function wrapper() { var recursive = function(n) { if (n <= 2) { return 1; } else { return recursive(n - 1) + recursive(n - 2); } }; var iterations = [23, 24, 25, 26, 27, 28, 29, 30, 31, 32]; var start = null, end = null, time = null, times = []; ...
var keyMirror = require('keymirror'); module.exports = keyMirror({ ERROR_MESSAGE: null, CLEAR_ERROR: null })
const inquirer = require('inquirer'); const send = require('./send'); const promptToSend = (transport, from, to, template) => { inquirer.prompt([{ type: 'confirm', name: 'send', default: true, message: 'Send test email', }]) .then((sendResponse) => { if (sendResponse.send) { send(templa...
(function() { 'use strict'; angular .module('simpleWebrtcServerApp') .controller('UserManagementDeleteController', UserManagementDeleteController); UserManagementDeleteController.$inject = ['$uibModalInstance', 'entity', 'User']; function UserManagementDeleteController ($uibModalInsta...
import { NotSupportedError } from '../not_supported_error' class PlainString { constructor() { this.string = '' } get value() { return this.string } push(string) { this.string += string } add_bind() { throw new NotSupportedError(this.constructor, 'add_bind') } } export { PlainString...
import React, { Component } from 'react' import { Segment } from 'stardust' export default class SegmentEmphasisExample extends Component { render() { return ( <div> <Segment> I'm here to tell you something, and you will probably read me first. </Segment> <Segment classNam...
"use strict"; define("ace/mode/julia_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; ...
/** * Вьюха ответа * Намеренно не использую никакой шаблонизатор. Такой вариант полюбомы быстрее. * Если онадобится шаблонизатор - прикрутим ect, pug или чтото своё. */ export default function views(data) { const {component, state} = data; return ` <!DOCTYPE html> <html> <head>...
import Modifier from './Modifier'; export default Modifier;
// Write a function that returns the index of the first element in array that is larger than its neighbours or -1, if there’s no such element. // Use the function from the previous exercise. var arr = [2, 3, 4, 5, 6, 5, 3, 2], //change array elements for different cases :) i = 0, // [2,1,3] will return ind...
App.JobsNewController = Ember.ObjectController.extend({ save: function () { var job = App.Job.createRecord(this.get('content')); job.save(); this.transitionToRoute('jobs'); }, cancel: function () { this.transitionToRoute('jobs'); } });
require('jsdom-global')() const assert = require('assert') const { $ } = require('./') const body = document.body describe('Bianco', function() { beforeEach(function() { const div = document.createElement('div') div.innerHTML = ` <h1>bianco!!!</h1> ` body.appendChild(div) }) // all the bia...
import "webgltexture-loader-expo-camera"; import App from "./src/App"; export default App;
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
angular.module("jaws.home", [ "ui.state", "audio", "audio.metronome", "jaws.home.audiometer" ]) .config(function config($stateProvider) { $stateProvider.state("home", { url: "/home", views: { "main": { controller: "HomeCtrl", templateUrl: ...
/** * @fileoverview DOM driver mock * @author Frederik Krautwald */ function makeEvents() { return () => { return {} } } function makeSelect() { return () => { return { select: makeSelect(), events: makeEvents(), } } } function mockDomDriver() { return { select: makeSelect(),...
import * as lamb from "../.."; import { nonStrings, nonStringsAsStrings, wannabeEmptyObjects } from "../../__tests__/commons"; import "../../__tests__/custom_matchers"; describe("setPath / setPathIn", function () { var obj = { a: 2, b: { a: { g: 10, h: 11 }, b: [4, 5], ...
/* SHJS - Syntax Highlighting in JavaScript Copyright (C) 2007, 2008 gnombat@users.sourceforge.net License: http://shjs.sourceforge.net/doc/gplv3.html */ if (! this.sh_languages) { this.sh_languages = {}; } var sh_requests = {}; function sh_isEmailAddress(url) { if (/^mailto:/.test(url)) { return ...
/** * SensorController * * @description :: Server-side logic for managing Sensors * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers */ module.exports = { };
/** * access/scope.js * * @author Denis Luchkin-Zhou <denis@ricepo.com> * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.getScope = getScope; exports['default'] = scope; // istanbul ignore next function _interopRequireDefault(obj) { return obj && obj.__es...
import * as types from '../constant/actiontype'; export default function (state = {}, action) { const { payload, meta = {}, type } = action; switch (type) { case types.FETCH_UPDATE_INFO: return { ...state, ...payload }; default: return state; } }
(function ($) { $.fn.bootstrapModalManager = function (options) { // Define html templates var headTemplate = '<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">{{title}}</h4><...
import React from 'react' export default { "welcome": { title: "Get started", content: ( <div> </div> ) }, "what-is-pcr": { title: "What is PCR", content: ( <div> We have two primers which anneal to a target sequence. Polymerase can then attach to the double...
const cwd = process.cwd() const env = require('./env') const path = require('path') const webpack = require('webpack') const postcssConfig = require('./postcss') const srcJSDir = path.join(cwd, 'src') const nodeModulesDir = path.join(cwd, 'node_modules') module.exports = function (options = {}) { // vue config co...
import React from 'react'; export default class AbsolutePosition extends React.Component { // eslint-disable-line render() { const style = { position: 'absolute', top: this.props.top, left: this.props.left, width: this.props.width, border: '1px solid gray', background: '#fff',...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = registerBuiltinTypeHandlers; var _invariant = require('./invariant'); var _invariant2 = _interopRequireDefault(_invariant); var _types = require('./types'); function _interopRequireDefault(obj) { return obj && obj.__es...
/** * Running Server */ exports.start = function () { var vhost = __vhost; for (var port in vhost) { start(port); } } function start(port) { var vhost = __vhost; var ssl = __ssl; if (ssl[port]) { var https = require('https').createServer({ key: require('fs').read...
const DrawCard = require('../../drawcard.js'); const { Locations, CardTypes } = require('../../Constants'); class ForceOfTheRiver extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Create spirits from facedown dynasty cards', condition: () => this.game.isDuringCo...
jQuery(function($) { $(".pinion-nivoSlider").nivoSlider(); });
(function() { ProtoCalendar.LangFile['it'] = { HOUR_MINUTE_ERROR: 'The time is not valid.', NO_DATE_ERROR: 'No day has been selected.', OK_LABEL: 'OK', DEFAULT_FORMAT: 'mm/dd/yyyy', LABEL_FORMAT: 'dddi mmm dd yyyy', MONTH_ABBRS: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseAria = parseAria; /** * Support aria- and role in ReactTooltip * * @params props {Object} * @return {Object} */ function parseAria(props) { var ariaObj = {}; Object.keys(props).filter(function (prop) { // aria-xxx ...
/* eslint-disable no-underscore-dangle */ import { Provider } from 'cerebral'; import { state } from 'cerebral'; import form from './src/form'; import rules from './src/rules'; import resetForm from './src/helpers/resetForm'; import formToJSON from './src/helpers/formToJSON'; export { default as form } from './src/form...
(function(app){ app.controller('homeCtrl', function($scope, service, $templateRequest, $compile, $http){ var carouselHighlightData; var foodMenu; var mapLoc; var instaContent; //https://api.instagram.com/v1/users/search?q=juliosgarbi&client_id=ee1008e3dad0433eb962cbf6a8b5f17...
/*global define*/ define([ 'jquery', 'underscore', 'backbone', 'tpl!templates/<%= name %>.html' ], function ($, _, Backbone, Tpl) { 'use strict'; var <%= _.classify(name) %>View = Backbone.View.extend({ template: Tpl, bindings: {}, events: {}, initialize: functi...
var express = require('express'), json = require('express-json'), bodyParser = require('body-parser'), app = express(), http = require("http"), port = process.env.PORT || 3000; app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use(express.static(__dirname + '/publ...
var restify = require('restify'); var bunyan = require('bunyan'); var util = require("util"); var allConfig = require('./config/param.json'); var logger = bunyan.createLogger({ name: "mantisbt-sync-jira", level: "debug" }); var server = restify.createServer({ name: "mantisbt-sync-jira", log: logger }); funct...
$('#save-battery-button').on('click', function(e) { e.preventDefault(); if ($(".combobox-menu-visible").length) { return; } var jsonData = $('#battery-form').serializeJSON(); Grocy.FrontendHelpers.BeginUiBusy("battery-form"); if (Grocy.EditMode === 'create') { Grocy.Api.Post('objects/batteries', jsonDat...
Ext.define('CF.view.Tree', { extend: 'GeoExt.tree.Panel', alias : 'widget.cf_tree', requires: [ 'Ext.tree.plugin.TreeViewDragDrop', 'GeoExt.panel.Map', 'GeoExt.tree.OverlayLayerContainer', 'GeoExt.tree.BaseLayerContainer', 'GeoExt.data.LayerTreeModel', 'GeoEx...
import AppContainer from './AppContainer' import HomeContainer from './HomeContainer' import MemoContainer from './MemoContainer' import LoginContainer from './LoginContainer' import RegisterContainer from './RegisterContainer' import NoMatchContainer from './NoMatchContainer' import WallContainer from './WallContainer...
import { expect } from "../test_helper"; import youtubeReducer, { _nullState } from "../../reducers/youtube_reducer"; import { RECEIVE_YOUTUBE_FOLLOWS } from "../../actions/youtube_actions"; describe("Youtube Reducer", () => { it("handles action with unknown type", () => { expect(youtubeReducer(undefined, {})).t...
module.exports = function rootHandler (request, reply) { reply.view('index', { title: 'Workflow Viewer' }); };
module.exports = ` <path id="retina" fill="none" stroke="black" stroke-width="1" d="M 222.61,74.10 C 227.04,79.29 226.26,85.87 219.00,87.69 214.22,88.88 207.73,87.24 204.21,83.78 197.76,77.43 197.35,70.85 207.00,68.47 212.97,67.77 218.58,69.39 222.61,74.10 Z ...
var webpack = require('webpack'); var path = require("path"); module.exports = { entry: './entry.js', output: { path: path.join(__dirname, "dist"), filename: 'bundle.js', publicPath:"dist/", //给require.ensure用 chunkFilename: "[name].chunk.js"//给require.ensure用 }, module: { loaders: [ {t...
/*! * Stylus - RGBA * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node') , HSLA = require('./hsla') , functions = require('../functions') , adjust = functions.adjust , nodes = require('./'); /** * Initialize a new `RGBA` with...
var express = require('express'); var path = require('path'); var httpProxy = require('http-proxy'); //创建express实例 var app = express(); app.use(express.static(path.resolve('.'))); //index page app.get('/', function(req, res) { res.redirect('./demos.html'); }); app.listen(process.env.PORT || 3330); console.log('服务...
'use strict'; const should = require('chai').should(); // eslint-disable-line const Hexo = require('hexo'); describe('Index generator', () => { const hexo = new Hexo(__dirname, {silent: true}); const Post = hexo.model('Post'); const generator = require('../lib/generator').bind(hexo); let posts, locals; ...
import cache from 'memory-cache'; import debug from 'debug'; const error = debug('memory-cache-proxy:error'); const info = debug('memory-cache-proxy:info'); export default async (func, cacheOptions, args) => { info(`${func.name} Cache Proxy`); // 检查cacheOptions是否正确 if (!cacheOptions || !cacheOptions.key || !ca...
import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.find('post', params['post_id']); } });
// connect.rdns_access plugin exports.register = function() { var i; var config = this.config.get('connect.rdns_access.ini'); this.wl = this.config.get('connect.rdns_access.whitelist', 'list'); this.bl = this.config.get('connect.rdns_access.blacklist', 'list'); this.deny_msg = config.general && (co...
var width = 100, height = 100, radius = Math.min(width, height) / 2; var vals = d3.select("body").selectAll("td"); var values = []; for( var i = 0; i < vals[0].length; i+=2 ) { d = { value: parseInt(vals[0][i].innerText), color: vals[0][i+1].innerText }; values.push(d); } var arc = d3.svg....
var searchData= [ ['libversion',['libVersion',['../class_d_s___config.html#a97f429aeadc08838cc61ac87606cc09f',1,'DS_Config']]], ['libversionchanged',['libVersionChanged',['../class_d_s___base.html#a97874971cbbc6970bd3a76d3166617cb',1,'DS_Base']]], ['logdocument',['logDocument',['../class_driver_station.html#acedd...
//定义异步请求对象 var httpRequest=false; //创建异步请求对象 function createXMLHttp(){ //判断为ie浏览器 if(window.ActiveXObject){ try{ httpRequest=new ActiveXObject("msxml2.XMLHTTP"); }c...
/*global rootDir*/ const rp = require("request-promise"); const utils = require(rootDir + "/scripts/utils.js"); module.exports = function(api) { api.getStats = function (worldId) { return rp("https://api.guildwars2.com/v2/wvw/matches/stats?world=" + worldId); }; api.getScores = function (worldId) { return rp("...