code
stringlengths
2
1.05M
var twilio = require('twilio'), express = require('express'), orderPizza = require('./orderpizza'), kegapi = require('./kegapi'), sendText = require('./sendText'); var app = express(); var textResponse = function(request, response) { console.log('got here'); if (twilio.validateExpressRequest(r...
var group__cobalt__core__thread__info = [ [ "XNBREAK", "group__cobalt__core__thread__info.html#ga6aa575e1a99b9c931d3b1feb8bc7a36f", null ], [ "XNCANCELD", "group__cobalt__core__thread__info.html#gac0c8d3c13b2ea3ceb9c8b474b9e52f01", null ], [ "XNDESCENT", "group__cobalt__core__thread__info.html#gae94044c6045...
(function () { 'use strict'; angular .module('app') .controller('ServiceCenterIndexController', ServiceCenterIndexController); ServiceCenterIndexController.$inject = ['$log']; /* @ngInject */ function ServiceCenterIndexController($log) { /* jshint validthis: true */ ...
//http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html var ESQ = require('../esq'); var esq = new ESQ(); esq.query('match_all', { }); console.log(JSON.stringify(esq.getQuery(), null, 2)); esq = new ESQ(); esq.query('match_all', { boost: 1.2 }); console.log(JSON.stringi...
var group__manhattan__space__container = [ [ "distance", "group__manhattan__space__container.html#ga750b3a1e76a42ec52d2cadcc5ab8ff73", null ], [ "norm", "group__manhattan__space__container.html#gaed3fca875aa3c37c377abaab63d55e3b", null ], [ "squared_distance", "group__manhattan__space__container.html#ga27c4...
'use strict'; export default class StudentEventsCtrl { /*@ngInject*/ constructor($scope, $location, User, SectionEvent) { SectionEvent.getAll({onlyUserSections:'me',withEventInfo:true,withSection:true},(events)=>{ $scope.events = events; $scope.eventsArray = Object.keys(events) .map(eventId...
var _ = require('lodash'); var fs = require('fs'); var formatData = require('./format-data'); var moment = require('moment') module.exports = function (smocks) { var harOptions = smocks.options && smocks.options.har; return function (request, reply, respondWithConfig) { var data = request.payload; if (dat...
/** * @fileoverview Driver script for speech processing. * @author aravart@cs.wisc.edu (Ara Vartanian), dliang@cs.wisc.edu (David Liang) */ goog.provide('SpeechGames'); goog.provide('SpeechGames.Speech'); goog.require('Blockly.Workspace'); goog.require('SpeechBlocks.Controller'); goog.require('SpeechBlocks.Interpre...
var express = require('express'); var bodyparser = require('body-parser'); var status = require('http-status'); var _ = require('underscore'); module.exports = function(wagner) { var api = express.Router(); api.use(bodyparser.json()); api.get('/category/id/:id', wagner.invoke(function(Category) { return fun...
'use strict'; /** * @module core/lib/server */ // Setup HAPI const Hapi = require('hapi'); const path = require('path'); const bell = require('bell'); const authCookie = require('hapi-auth-cookie'); const inert = require('inert'); const vision = require('vision'); const scooter = require('scooter'); const yar = req...
import parse from 'co-parse'; var models = require('cartling-models'); var helpers = require('../helpers'); import helpers from '../helpers'; const common = helpers.common; const errors = common.errors; export default async function() { try { let req = this.req; let res = this.res; let id = common....
module.exports.tt8750 = function(){ this.bind = function(port){ } }
import * as React from 'react'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; function valuetext(value) { return `${value}°C`; } export default function DiscreteSlider() { return ( <Box sx={{ width: 300 }}> ...
// 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. angular .module('nd', ['ndDirectives', 'ndFilters', 'ndServices', 'nd.regform']) .controller('A...
var app = require('./app'); var rq= require('supertest').agent(app.listen(4000)); describe('404',function(){ describe('when get /',function () { it('should return 404 page',function (done) { rq.get('/').expect(404).expect(/Page not found/,done); }); }); });
//MyWidget Script /************************** Add a link for a CSS file that styles .mywidget Add a script tag that points to CDN version of jQuery 1.* Add a script tag that loads your script file from http://m.edumedia.ca/ **************************/ document.addEventListener("DOMContentLoaded", function(){ var w =...
(function (dust) { dust.helpers = dust.helpers || {}; dust.helpers.stringify = function (chunk, context, bodies, params) { var value = dust.helpers.tap(params.value, chunk, context), space = parseInt(dust.helpers.tap(params.space, chunk, context)) || 0; try { return chunk.write(JSON.stringi...
var fs = require('fs'); fs.readFile('input.txt', 'utf8', function(err, contents) { var lines = contents.split('\n'); var packageStrings = []; // ensure we don't get any empty lines (like a trailing newline) lines.forEach(function(line) { if (line.length) { packageStrings.push(line) }; }); calculateWr...
console.log('Hello from a fellow script');
"use strict"; describe("wu.keys", (function() { it("should iterate over keys", (function() { assert.eqSet(new Set(["foo", "bar", "baz"]), wu.keys({ foo: 1, bar: 2, baz: 3 })); })); }));
'use strict'; /* Directives */ angular.module('myApp.directives', []) .directive('appVersion', function (version) { return function(scope, elm, attrs) { elm.text(version); }; }) .directive('modal', function () { return { templateUrl: './app/common/modal.html', // template: '<div class="modal fa...
/** * 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: 'mk', dictionary: {}, format: { days: ['Н...
// Config object to be passed to Msal on creation const msalConfig = { auth: { clientId: "57448aa1-9515-4176-a106-5cb9be8550e1", authority: "https://fs.msidlab8.com/adfs/", knownAuthorities: ["fs.msidlab8.com"] }, cache: { cacheLocation: "localStorage", // This configures whe...
'use strict' const {BadRequestError} = require('jsonapi-errors/lib/errors') module.exports = function idParamParser (req, res, next, id) { const idInt = parseInt(id, 10) if (isNaN(idInt)) return next(new BadRequestError(`param ${id}`)) req.id = idInt next() }
/*! abbr-fill.js | (c) 2014 Daniel Imms | github.com/Tyriar/abbr-fill.js/blob/master/LICENSE */ var abbrFill = (function (findAndWrap) { 'use strict'; var config; function init (configuration) { if (!configuration || !configuration.terms || !configuration.selector) { return; } config = confi...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter as Router } from 'react-router-dom'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware ...
define(["sprd/manager/IConfigurationManager"], function (Base) { return Base.inherit("sprd.manager.ITextConfigurationManager", { initializeConfiguration: function (configuration, callback) { } }); });
// Generated by CoffeeScript 1.3.3 (function() { describe('Scouter', function() { it('can properly score the specificity of W3C\'s examples', function() { var score, scouter, selector, selectors, _results; scouter = new Scouter(); selectors = { '*': 0, 'LI': 1, 'UL LI': ...
/* * 定义购物车模型 * [购物车]: 顾客 产品 订单账单 发货数据 */ var mongoose = require('mongoose'), Schema = mongoose.Schema; //地址模型,用于发货信息和账单信息的一部分 var AddressSchema = new Schema({ name: String, address: String, city: String, state: String, zip: String }, {_id: false}); //禁止id自动分配,因为并不需要根据ID查找地址 mongoose.mo...
var searchData= [ ['data',['Data',['../classowncloudsharp_1_1_types_1_1_o_c_s.html#ad64d4fa0e0f73ba19a0eb97b9d30f2bd',1,'owncloudsharp::Types::OCS']]], ['defaultenable',['DefaultEnable',['../classowncloudsharp_1_1_types_1_1_app_info.html#a21fbeb14bcd6b6783ef68231f9230f42',1,'owncloudsharp::Types::AppInfo']]], ['d...
'use strict'; var gulp = require('gulp'), fs = require("fs"), runSequence = require('run-sequence'), gulpsync = require('gulp-sync')(gulp), inline = require('inline-html'), replace = require('gulp-string-replace'), sass = require('gulp-sass'), concat = require('gulp-concat'), rename = require("gulp-rename"), ...
import Ember from 'ember'; import { module, test } from 'qunit'; import SocketsService from 'dummy/services/websockets'; var component; var ConsumerComponent; var originalWebSocket; var mockServerFoo; var mockServerBar; module('Sockets Service - socketFor', { setup() { originalWebSocket = window.WebSocket; ...
(function() { var icon = localStorage["toolbar_icon"] || 'dark'; chrome.browserAction.setIcon({ path: { 'dark': 'icon19', 'light': 'icon19_light' }[icon] + '.png' }); }()); chrome.browserAction.onClicked.addListener(function(tab) { console.log('button clicked'); _gaq.push(['_trackEvent', 'chrome', 'load...
/** * 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'; var d3 = require('d3'); var Registry = require('../registry'); var Plots = require('../plots/plots'); var Lib =...
app.factory('ProjectSvc', function($routeParams, $rootScope, $q, $location, AppConst, ProjectRes, TagSvc, MessageSvc, AppSvc, gettextCatalog, AppLang) { var service = {}; service.item = {}; service.list = []; service.countItemsOnRow = 2; service.limitOnHome = 3; service.limit = 10; ser...
export default String('\n\ uniform vec3 ambientLightColor;\n\ \n\ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\ \n\ vec3 irradiance = ambientLightColor;\n\ \n\ #ifndef PHYSICALLY_CORRECT_LIGHTS\n\ \n\ irradiance *= PI;\n\ \n\ #endif\n\ \n\ return irradiance;\n\ \n\ }\n\ \n\ #if NUM_DIR_LI...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github.com...
import {inject} from 'aurelia-framework'; import {EditSessionFactory} from '../editing/edit-session-factory'; import {CurrentFileChangedEvent} from '../editing/current-file-changed-event'; import {QueryString} from '../editing/query-string'; import {defaultGist} from '../github/default-gist'; import {Importer} from '.....
import Component from '@ember/component'; import EObject, { computed, observer, get, set } from '@ember/object'; import { htmlSafe } from '@ember/string'; import { debounce, next, throttle } from '@ember/runloop'; import { inject as service } from '@ember/service'; import { A } from '@ember/array'; import $ fro...
import { connect } from 'react-redux'; import { setDefaultSettings } from 'src/actions'; import { Start } from './start'; const mapStateToProps = (state) => { return { user: state.user //eslint-disable-line }; }; const mapDispatchToProps = (dispatch) => { return { onMenuClick: (menu) => { //eslint-disab...
import _ from 'lodash'; import { EventEmitter } from 'events'; import { ActionTypes } from '../constants/ActorAppConstants'; import Dispatcher from '../dispatcher/ActorAppDispatcher'; const CHANGE_EVENT = 'change'; let modalOpen = false; const CreateGroupStore = _.assign(EventEmitter.prototype, { emitChange: ()...
var searchData= [ ['file',['File',['../classsol_1_1_file.html#adadcbaa4e64c50bf4416b77318c90b1f',1,'sol::File::File(const std::string &amp;filename, const std::string &amp;mode)'],['../classsol_1_1_file.html#a6ec6975155acae9a784ee39252ccd974',1,'sol::File::File()=default']]], ['fillbuffer',['fillBuffer',['../classs...
import {style} from './ProgressBar.scss'; import React from 'react'; // // Component // ----------------------------------------------------------------------------- class ProgressBarView extends React.Component { constructor(props) { super(props); } static defaultProps = { progress: 0, showText: f...
// 用户歌单 module.exports = (query, request) => { const data = { uid: query.uid, limit: query.limit || 30, offset: query.offset || 0, includeVideo: true, } return request('POST', `https://music.163.com/api/user/playlist`, data, { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy,...
var gulp = require('gulp'), uglify = require('gulp-uglify'), bookmarklet = require('./bookmarklet'); gulp.task('bookmark-it', function () { gulp.src('./src/**/*.js') .pipe(uglify()) .pipe(bookmarklet()) .pipe(gulp.dest('./dist/')); }); gulp.task('default', [ 'bookmark-it' ]);
'use strict'; const Boom = require('boom'); const Joi = require('joi'); const util = require('util'); // Minimum 8 chars total with at least one upper case, one lower case and a digit const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d\W]{8,255}$/; module.exports.list = { tags: ['api', 'users'], des...
/*shortkeys.js*/function shortkeys(c,e,f){if(c.indexOf("+")===-1){return false}var a,d=c.split("+");document.onkeydown=function(b){switch(d[0].toLowerCase()){case"ctrl":a=b.ctrlKey;break;case"alt":a=b.altKey;break;case"shift":a=b.shiftKey;break;case"meta":a=b.metaKey;break}if(b.keyCode==d[1].toUpperCase().charCodeAt(0)...
#!/usr/bin/env node const assert = require('assert'); const converter = require('../lib/index.js'); const src = `body font 14px/1.5 Helvetica, arial, sans-serif & #logo border-radius 5px; .foo min-width() height(1px, 2px) // single line comment .bar width 42 /* block comment */ .baz &_...
import { sequelize, Sequelize } from './index'; import HocSinh from './hocsinh-model'; import LopHoc from './lophoc-model'; const HocSinh_LopHoc = sequelize.define('HOCSINH_LOPHOC', { maHocSinh: { type: Sequelize.INTEGER, primaryKey: true, notNull: true, field: 'MA_HOC_SINH' },...
module.exports = { "env": { "es6": true, "node": true }, "plugins": [ "markdown" ], "parserOptions": { "ecmaVersion": 2017 }, "extends": "eslint:recommended", "rules": { "accessor-pairs": "error", "array-bracket-spacing": [ "error", ...
/** * This module formats precise time differences as a vague/fuzzy * time, e.g. '3 weeks ago', 'just now' or 'in 2 hours'. */ /*globals define, module */ (function (globals) { 'use strict'; var times = { year: 31557600000, // 1000 ms * 60 s * 60 m * 24 h * 365.25 d month: 2629800000, // ...
'use strict'; var mean = require('meanio'); exports.render = function(req, res) { var modules = []; // Preparing angular modules list with dependencies for (var name in mean.modules) { modules.push({ name: name, module: 'mean.' + name, angularDependencies: mea...
window.onload = function(){ var defaultTriggerInterval = 1; var defaultBlockDuration = 1; function loadOptions() { chrome.storage.local.get("settings", function(showObj){ console.log(showObj); var triggerInterval = showObj.settings.triggerInterval; if (!triggerInterval) { triggerInterval ...
/** * Created by Ehbraheem on 17/03/2017. */ (function () { angular .module("pay.payment") .component("paymentForm", { templateUrl : templateUrl, controller : PaymentController, bindings: { price : '<', product : '<' ...
/* * VenoBox - jQuery Plugin * version: 1.6.0 * @requires jQuery * * Examples at http://lab.veno.it/venobox/ * License: MIT License * License URI: https://github.com/nicolafranchini/VenoBox/blob/master/LICENSE * Copyright 2013-2015 Nicola Franchini - @nicolafranchini * */ (function($){ var autoplay, bgco...
/* 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/. */ "use strict"; module.metadata = { "stability": "unstable" }; const { isValidURI, isLocalURL, URL } = require('....
g_en_template_texture = { // common tplNoPlatform : "none", tplWarning : "Warning", tplSearchFilter : "SearchFilter", tplSearchTitle : "Search", tplSearchBtn : "Search", tplSearchResultTitle : "Search Result", tplCheckNon : "No Check", tplCheckEnableOnly : "Enable Only", tplCheckDisableOnly : ...
/** * 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 */ import type {ReactContext} from 'shared/ReactTypes'; import type {Source} from 'shared/ReactElementType'; import type ...
module.exports = function(grunt) { grunt.config('file_dependencies.custom_config_functions', { files: { src: [ 'test/fixtures/custom_config_functions/ClassB.js', 'test/fixtures/custom_config_functions/ClassA.js' ] }, options: { extractDefines: function(fileContent...
/** * ContactType.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 */ var _ = require('lodash'); module.exports = _.merge(_.cloneDeep(require('./base')), { attributes: { type: { ty...
(function () { 'use strict'; angular .module('bp.core') .controller('homeController', HomeController); HomeController.$inject = ['UserSettingsFactory']; function HomeController(UserSettingsFactory) { var vm = this; vm.userName = ''; function activa...
!function( $ ) { $.fn.spin = function(opts) { this.each(function() { var $this = $(this), data = $this.data(); if (data.spinner) { data.spinner.stop(); delete data.spinner; } if (opts !== false) { data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this); ...
/** * Created by devesh on 4/8/15. */ var mongoose = require('mongoose'); var User = require('../models/user'); mongoose.connect('mongodb://localhost:27017/loginApp'); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); db.once('open', function (callback) { console.lo...
'use strict'; /** * Module dependencies. */ var config = require('./config'), express = require("express"), _ = require('lodash'), mongoose = require('./mongoose'), path = require('path'), bodyParser = require('body-parser'), morgan = require('morgan'), passport = require('passport'), ...
class Game { constructor(width, height) { this.game = new Phaser.Game( width, height, Phaser.AUTO, 'fancy pancy', { create: this.create, update: this.update } ) } create() { var fs = require('./shaders/lightwave.frag')() this.sprite = this.game.add.sprite() thi...
/* Pure Javascript Bouncy Boar implementation. * MUST NOT depend on any external APIs. * Integration with external APIs are provided via subclassing */ // BASE is for // TODO: Next project: Hardcore batching (Multiple materials in a single geom, Compiling multiple material programs into a single program) See http://...
import React from 'react'; import boom from 'boom'; import nodemailer from 'nodemailer'; import stubTransport from 'nodemailer-stub-transport'; import makeHandleEmail from '../handle-email'; describe('handle email requests', () => { const subject = 'This is a test'; const testComponent = () => ( <mj-te...
export class RemarkTypeFormatValueConverter { toView(reservationRequestRemarkType) { switch (reservationRequestRemarkType) { case "ReservationRequestInvoiceComment": return 'ReservationRequestInvoiceComment'; break; case "ReservationRequestVolComment"...
'use strict'; /** * Module dependencies. */ var notes = require('../../app/controllers/notes.server.controller'), multer = require('multer'), users = require('../../app/controllers/users.server.controller'); module.exports = function(app) { // Note Routes app.route('/notes') .get(users.requi...
var AttributeList = require('./AttributeList'); var Item = module.exports = function Item(attributes) { this.attributes = new AttributeList(attributes); this.properties = { byteRange : null, daiPlacementOpportunity: null, date : null, discontinuity : null, duration : null, ...
"use strict"; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp...
module.exports = function(grunt) { grunt.config('rename', { backupLayout: { src: '<%= root %>/app/file/layout', dest: '<%= root %>/app/file/layout.bak' }, backupTheme: { src: '<%= root %>/app/file/theme', dest: '<%= root %>/app/file/theme.bak'...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'about', 'da', { copy: 'Copyright &copy; $1. Alle rettigheder forbeholdes.', dlgTitle: 'Om CKEditor 4', moreInfo: 'For i...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
const staticFilesRoute = { method: 'GET', path: '/{file*}', handler: { directory: { path: '.', }, }, }; module.exports = [staticFilesRoute];
import React from 'react' import { IndexLink, Link } from 'react-router' import './HomeView.scss' const styles = {}; let data = require('../assets/data.json'); class Results extends React.Component { constructor (props) { super(props); this.state = { heroImage: require(`../../../img/...
var f = function(){ //定义测试模块 module("scrolly"); var _ = NEJ.P, _p = _('nej.ui'); //开始单元测试 test('scrolly',function(){ var _sly = _p._$$ScrollerY._$allocate({ parent:'scroll-y-container', onscroll:function(){ }, onscrollend:function(){ }, onbou...
'use strict'; var streamerService = (function() { function Streamer(serviceId, ioType, callback) { this._serviceId = serviceId; this._ioType = ioType == 'STDOUT' ? 'out' : 'error'; this._xhr = null; this._dataCallback = callback || function() {}; this._createXhrObject(); ...
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/* globals db, load, makeMapWith, emit, renderDate */ load('./mongo-helpers/period-aggregator.mongo.js'); // exports makeMapWith() // notice: MongoDB will not call the reduce function for a key that has only a single value const map = makeMapWith(renderDate, function mapTemplate() { // => emit same kind of output a...
'use strict'; angular.module('proyectXApp') .config(function ($stateProvider) { $stateProvider .state('main', { url: '/', templateUrl: 'app/main/main.html', controller: 'MainCtrl' }); });
/* global Vue*/ const projects =[{ name:"Random Quote machine", description:"", link:"https://fega.github.io/freecodecamp/random-quote", img:"", category:"freecodecamp", technologies:["Materialize","Axios"], },{ name:"Local weather app", description:"", link:"https://fega.github.io/freecodecamp/local-weather",...
/////////////INDEX PAGE/////////////// var API_URL = "http://www.omdbapi.com/?t="; var movie; var $divContain = $('.movie-container'); var $addButton = $('.add'); var $divTable = $('.movie-list'); //FIREBASE VARIABLES var FIREBASE_AUTH = 'https://mymdb.firebaseio.com'; var fb = new Firebase(FIREBASE_AUTH); var favM...
export const messages = { resources: { posts: { name: 'Article |||| Articles', fields: { allow_comments: 'Accepte les commentaires ?', average_note: 'Note moyenne', body: 'Contenu', comments: 'Commentaires', ...
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import { Tree } from 'mk-component' import utils from 'mk-utils' import beautify from 'mk-utils/lib/beautify' import { fromJS } from 'immutable' let apisJson let apis class action { constructo...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import Divider from '@mate...
elation.require([ "engine.things.generic" ], function() { elation.extend("engine.systems.world", function(args) { elation.implement(this, elation.engine.systems.system); this.children = {}; this.scene = { 'world-3d': new THREE.Scene(), 'world-dom': new THREE.Scene(), 'colliders': new ...
var TouchHistoryMath = { /** * This code is optimized and not intended to look beautiful. This allows * computing of touch centroids that have moved after `touchesChangedAfter` * timeStamp. You can compute the current centroid involving all touches * moves after `touchesChangedAfter`, or you can compute t...
'use strict'; module.exports = function(grunt) { grunt.initConfig({ markdown: { article: { files: [ { expand: true, src: [ 'guide/**/*.md', 'account/**/*.md', 'todo/**/*.md' ], dest: './', ...
var xlsx = require('xlsx'); var fs = require('fs'); var Excel = require('exceljs'); var workbook1 = new Excel.Workbook(); if (typeof require !== 'undefined') XLSX = require('xlsx'); var workbook = XLSX.readFile('boxxspring.xlsx',{ cellStyles: true }); var countBeforeAdd; var worksheet = workbook.Sheets['videoupload']; ...
var path = require('path'); var webpack = require('webpack'); var _ = require("lodash"); var commonConfig = require("./webpack.common.config"); var config = _.assign(commonConfig, { devtool: 'eval', mode: "development", entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-ser...
// MIT © 2017 azu "use strict"; const fs = require("fs"); const path = require("path"); const getPackages = require("./lib/package-list").getPackages; const updatePackage = (pkg, updatablePkg) => { return Object.assign({}, pkg, updatablePkg); }; /** * Add * * ``` * "publishConfig": { * "access": "public" * ...
/** * Created by Administrator on 2016/5/6. */ var app = angular.module("myApp",[]).config(function($httpProvider) { $httpProvider.defaults.headers .common['Accept'] = 'application/json; charset=utf-8'; $httpProvider.defaults.headers.post['Content-Type'] = 'application/json; charset=UTF-8'; $htt...
var React = require('react'); import {Icon} from "react-photonkit"; var styles = { avatar: { marginRight: 10, borderRadius: '50%', verticalAlign: 'middle' } } module.exports = React.createClass({ renderComment: function () { var c = []; var _this = this; th...
'use strict' eventsApp.controller('EditEventController',function($scope,$firebaseArray,fbRef,$location){ $scope.saveEvent=function(event,newEventForm){ if(newEventForm.$valid){ //window.alert('event'+event.name+"saved!"); // eventData.save(event) // .$promise.then( ...
var gulp = require('gulp'); var wiredep = require('wiredep'); var paths = gulp.paths; // inject bower components gulp.task('wiredep', function() { gulp.src(paths.src + '/app/styles/*.scss') .pipe(wiredep({ ignorePath: /^(\.\.\/)+/ })) .pipe(gulp.dest('app/styles')); gulp.src(paths.src + '/app/*...
/* @flow */ import { warn, extend, isPlainObject } from 'core/util/index' // 合并 v-on 绑定的函数 export function bindObjectListeners (data: any, value: any): VNodeData { if (value) { if (!isPlainObject(value)) { process.env.NODE_ENV !== 'production' && warn( 'v-on without argument expects an Object valu...
var sign = require('./sign.js'); var request = require( 'request' ); var config = { appID:'wx9037bc18a8016fb5', appSecret:'c15c32f6f2ca373cd3b4545e768133db', url:'http://test.fangcheng.cn/test' }; var SIGNATURE = { appId:config.appID, jsapi_ticket:'', nonceStr:'', timestamp:'', url:'',...
(function($){ // var aboutSection = $('.section-blue'); // $('.main-button').click(function () { // $('html, body').animate({ // scrollTop: aboutSection.offset().top // }, 500); // return false; // }); var $window = $(window); var nav = $('nav'); var $navLi...