code
stringlengths
2
1.05M
/* eslint no-console: ["error", { allow: ["log"] }] */ import webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import config from './webpack.config'; new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true, contentBase: __dirn...
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import ScrollResponder from '../mixins/ScrollResponder'; import TimerMixin from 'react-timer-mixin'; import ScrollView from './ScrollView'; import ListViewDataSource from '../api/ListViewDataSource'; const...
const express = require('express'); const api = require('./api/api'); const app = express(); app.get('/', async function (req, res) { //aqui deveria imprimir por exemplo {'nome':'brl', valor: 1} let cot = await api.getmoeda('brl'); //só pro exemplo res.send(cot); }); app.listen(3000, function () { console.log('...
var express = require('express'); var Url = require('../models/Url'); var router = express.Router(); var urls = require('./api/urls'); var shortens = require('./api/shortens'); // This allow anyone to contact the API router.all('/', function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); ...
angular.module('conapps').directive('merakiProductCard', function(){ return { restrict: 'E', replace: true, templateUrl: 'meraki-estimates/client/views/meraki-product-card.template.ng.html', scope: { product: '=', }, controller: ['merakiProductService', 'showModal', function(merakiProductService...
define(function(){ var Utils = { randBetween: function(min, max) { return Math.floor(Math.random() * max) + min; }, doOperation: function(firstValue, operator, secondValue, reverse){ if(reverse) { switch(operator){ case '+': return firstValue - secondValue; case '*': return Math.r...
const util = require('util'); function Person(name) { this.name = name; } Person.prototype.eat = function () { console.log(this.name,'吃'); } function Teacher(name) { this.name = name; } // 原型继承,只继承prototype上的方法,不继承私有属性 util.inherits(Teacher , Person); // Object.setPrototypeOf(ctor.prototype, superCtor.prototype); ...
/** * steel file for cli-version * author: @Lonefy */ var path = require('path'); var steel = require('steel-commander'); steel.config({ port: 80, pathnamePrefix: '/t6/apps/weibo_sell/', cssPostfix_option: ["pages/*.*"], front_base: 'server_front', front_hostname: 'js.t.sinajs.cn img.t.sinajs.c...
'use strict' describe('routes', () => { describe('article route', () => { const test = require('./routes/article') it('returns a set of popular topics based on the number of articles flagged', test['failFirst']) it('returns 204 (no data) when no id is given', test['204']) it('returns 204 (no data) w...
angular.module('database', []);
// create a namespace we will use for everything we do let αω = {}; let ΑΩ = αω;
#!/usr/bin/env node const STD_PORT = 3000; var path = require('path'), cmdline = require('commander'), pkg = require(path.join(__dirname, '/package.json')), express = require('express'), app = express(); cmdline.version(pkg.version) .option(`-p, --port <port number>', 'The server port (optional, de...
import Multiselect from 'vue-multiselect'; import { library, dom } from '@fortawesome/fontawesome-svg-core'; import { faFacebookSquare, faGithub, faHtml5, faLaravel, faOrcid, faVuejs } from '@fortawesome/free-brands-svg-icons'; import { faClipboard, faQuestionCircle } from '@fortawesome/...
import { connect } from 'react-redux'; import ClaimList from './view'; import { SETTINGS, selectClaimSearchByQuery, selectClaimsByUri } from 'lbry-redux'; import { makeSelectClientSetting } from 'redux/selectors/settings'; const select = (state) => ({ searchInLanguage: makeSelectClientSetting(SETTINGS.SEARCH_IN_LANG...
/** * @file config.js * @author Clotaire Delanchy <clo.delanchy@gmail.com> * @date 2013-09-30 * * Default configuration for Pizza Commander */ var join = require('path').join; var config = { // Port to run server on port: 8080, // Web ressources root path(absolute) root: join(__dirname, '../www'), // Sta...
/** * This process was implemented feed cluster. * License MIT * see https://github.com/PROJECT-BIGMAMA/PILOT-COLLECTOR * see BIGMAMA PROJECT (https://github.com/PROJECT-BIGMAMA/BIGMAMA-DOC) */ var cluster = require('cluster'); var config = require('../conf/config.json'); if (cluster.isMaster) { for (i = 0; i < ...
/** * * PreviewWysiwyg * */ import React from 'react'; import PropTypes from 'prop-types'; import { CompositeDecorator, ContentState, convertFromHTML, EditorState, ContentBlock, genKey, Entity, CharacterMetadata, } from 'draft-js'; import { List, OrderedSet, Repeat, fromJS } from 'immutable'; impor...
const map = (array, iteratee) => { if( ! isMappable( array ) ) { return [] } const result = [] const fn = iteratee || ( a => a ) for( const key in array ) { result.push( fn( array[ key ], key, array ) ) } return result } const isMappable = array => { return array !== null && ( array inst...
/** * Gatsby Browser APIs. * * @module gatsby-browser.js */ import smoothscroll from 'smoothscroll-polyfill' export const onClientEntry = () => { smoothscroll.polyfill() }
var passport = require('passport'); module.exports = { login: function(req, res, next) { var auth = passport.authenticate('local', function(err, user) { if (err) return next(err); if (!user) { res.send({success: false}); // TODO: } req.logIn(...
import { isEmpty } from 'lodash'; import { SET_CURRENT_USER, GET_USER_INFORMATION } from '../actions/types'; export const initialState = { isAuthenticated: !!localStorage.getItem('authToken'), userDetails: {}, isLoading: false }; export default (state = initialState, action = {}) => { switch (action.type) { ...
var util = require('util'); var db = require('../modules/db'); var _find = function(kampo, valoro){ if(kampo){ kampo = db.escapeId(kampo); valoro = db.escape(valoro); var query = util.format('SELECT * FROM `retlist_abono` WHERE %s = %s;', kampo, valoro); } else var query = util.format('SELECT * F...
//taken from https://github.com/simplabs/ember-simple-auth/blob/master/tests/dummy/app/services/session-account.js import Ember from 'ember'; const { inject: { service } } = Ember; export default Ember.Service.extend({ session: service('session'), token: Ember.computed('session.data.authenticated', function() { ...
/* global describe it */ const {sync} = require('../index.js') const expect = require('chai').expect describe('sync test =>', () => { it('sync 1 cb, valid', done => { sync([ cb => cb(null, true) ], (err, result) => { expect(err).to.equal(null) expect(result).to.equal(true) done() }) }) it('sync...
!function (a) { "function" == typeof define && define.amd ? define(["jquery"], a) : a(window.jQuery) }(function (a) { "function" != typeof Array.prototype.reduce && (Array.prototype.reduce = function (a, b) { var c, d, e = this.length >>> 0, f = !1; for (1 < arguments.length && (d = b, f = !0), ...
this.NesDb = this.NesDb || {}; NesDb[ 'F8FAA774708E108984158FCD9BBC5482ED7165C4' ] = { "$": { "name": "M.C. Kids", "class": "Licensed", "catalog": "NES-4Q-USA", "publisher": "Virgin Games", "developer": "Virgin Games", "region": "USA", "players": "2", "date": "1992-02" }, "cartridge": [ { "$": ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), TicketType = mongoose.model('TicketType'), _ = require('lodash'); /** * Find article by id */ exports.ticketType = function(req, res, next, id) { TicketType.load(id, function(err, ticketType) { if (er...
var React = require('react'); var Header = require('./Header.react'); var Instructions = React.createClass({ render: function() { return ( <div className="ink-grid"> <Header page='instructions'/> <hr /> <div className="column-group gutters"> <div className="all-100 center"...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
var mongoose = require('mongoose') var mongooseHistory=require('mongoose-history') var config =require('../config') console.log(config.mongodb.server+config.mongodb.port+config.mongodb.db) mongoose.connect(config.mongodb.server+config.mongodb.port+config.mongodb.db) /*Schema*/ var organisationSchema = new mongoose.Sch...
version https://git-lfs.github.com/spec/v1 oid sha256:cd9afdec70ea74bd87a91ce0e2094c4c9dad4f77fd60224208973b4302f9ebb5 size 5116
var code = { 0xff: "Some code" }
import alt from '../core/alt'; import UserActions from '../actions/UserActions'; /** * user profile and operations */ class UserStore { constructor() { // real-auth this.user = { id: null, token: null, personname: null, logo: null, provider: null, }; this.exportPubli...
/*global module:false*/ module.exports = function (grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('package.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n'...
import React, { Component } from 'react'; import { Jumbotron } from 'react-bootstrap'; import { connect } from 'react-redux'; class Home extends Component { render() { return ( <div> <Jumbotron className="text-center"> <h1 className="title"> audio-editor <br /> ...
import React from 'react'; import PropTypes from 'prop-types'; import style from './BtnAddCard.sass'; const BtnAddCard = ({ onClick }) => ( <button onClick={onClick} className={style['btn-add-card']} > + Add Card </button> ); BtnAddCard.propTypes = { onClick: PropTypes.func.isRequired, }; export default BtnAddC...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
import { combineReducers } from 'redux'; import PostsReducer from './reducer_posts'; import { reducer as formReducer } from 'redux-form'; const rootReducer = combineReducers({ post: PostsReducer, form: formReducer }); export default rootReducer;
import * as actions from './actions'; export const initialState = { open: false, activeAreaId: null, }; const setConfirmSubscriptionModalSettings = (state, { payload }) => ({ ...state, ...payload, }); export default { [actions.setConfirmSubscriptionModalSettings]: setConfirmSubscriptionModalSettings, };
// Meter class that generates a number correlated to audio volume. // The meter class itself displays nothing, but it makes the // instantaneous and time-decaying volumes available for inspection. // It also reports on the fraction of samples that were at or near // the top of the measurement range. function SoundM...
(function () { 'use strict'; angular.module("Root", []) .config(function ($stateProvider) { $stateProvider .state('root', { url: '/', views: { 'main': { templateUrl: './modules/root/root.html', ...
var config = { TUMBLR_KEY: process.env.TUMBLR_KEY, TUMBLR_SECRET: process.env.TUMBLR_SECRET, ACCESS_TOKEN: process.env.ACCESS_TOKEN, ACCESS_SECRET: process.env.ACCESS_SECRET, GOOGLE_APP_KEY: process.env.GOOGLE_APP_KEY, gif_path: './temp/gifs', blogname: process.env.BLOG_NAME }; module.expor...
// 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 ../../core/compilerUtils ../../core/Error ../HeightModelInfo ../../layers/support/arcgisLayerUrl".split(" "),function(v,f,l,g,k,r){function...
/** * @license Angulartics * (c) 2013 Luis Farzati http://angulartics.github.io/ * License: MIT */ (function(angular, analytics) { 'use strict'; var angulartics = window.angulartics || (window.angulartics = {}); angulartics.waitForVendorCount = 0; angulartics.waitForVendorApi = function (objectName, delay, contain...
const createBuffer = Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow ? Buffer.from : val => new Buffer(val) ; function calCrc(buf, previous) { let TABLE = [ 0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, 0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0...
import React, { Component, PropTypes } from 'react'; import emptyFunction from 'fbjs/lib/emptyFunction'; import s from './App.scss'; import Header from '../Header'; import Feedback from '../Feedback'; import Footer from '../Footer'; class App extends Component { static propTypes = { context: PropTypes.shape({ ...
import Dispatcher from './src/Dispatcher'; import DisposableStack from './src/DisposableStack'; import PureView from './src/PureView'; import Store from './src/Store'; import View from './src/View'; export default { Dispatcher, DisposableStack, PureView, Store, View };
(function(handler) { var $doc = handler(document); var eventMap = {}; var eventList = ['swip', 'swipeup', 'swipedown', 'swipeleft', 'swiperight', 'drag', 'dragstart', 'dragend', 'tab', 'doubletab', 'hold', 'rotate']; handler.each(eventList, function(eventName) { eventMap[eventName] = handler.event(event...
'use strict'; angular.module('myApp.view1', ['ngRoute','nvd3ChartDirectives']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/homeAutomation', { templateUrl: 'view1/view1.html', controller: 'View1Ctrl' }); }]) .controller('View1Ctrl', ["$scope","$http","temperatureService",fu...
/* ======================================================================== * OctoberCMS: front-end JavaScript extras * http://octobercms.com * ======================================================================== * Copyright 2016 Alexey Bobkov, Samuel Georges * =================================================...
// dropdown-menu.js $(function() { $('.navbar__dropdown .navbar__dropdown--wrapper ul').hide(); $('.navbar__dropdown .navbar__dropdown--wrapper').click(function(e) { $('.navbar__dropdown .navbar__dropdown--wrapper ul').slideToggle(200); $('.navbar__dropdown--menu').toggleClass('active'); e.stopPropagat...
(function(angular) { var app = angular.module('SuperCoolApp'); app.factory('FeatureService', [FeatureController, function(FeatureController){ }]); })(window.angular);
var Promise = require("nodegit-promise"); var NodeGit = require("../"); var Blob = NodeGit.Blob; var Checkout = NodeGit.Checkout; var Commit = NodeGit.Commit; var normalizeOptions = NodeGit.Utils.normalizeOptions; var Reference = NodeGit.Reference; var Remote = NodeGit.Remote; var Repository = NodeGit.Repository; var R...
var mopidy = require('./mopidy'); var _ = require('underscore'); var when = require('when'); var LibraryProvider = function () { this.getArtists = function() { return mopidy.library.search(null).then(function(results) { var artists = {}; _.each(results, function(result) { ...
/** * Copyright (c) 2011 Sitelier Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publ...
export default (() => { let o; return Jymfony.Component.VarExporter.Internal.Hydrator.hydrate( o = [ (new ReflectionClass('Jymfony.Component.DateTime.Internal.RuleSet')).newInstanceWithoutConstructor(), (new ReflectionClass('Jymfony.Component.DateTime.Internal.Rule')).newInstance...
var co = require('co'); var extend = require('extend-merge').extend; var merge = require('extend-merge').merge; class Fixture { /** * Constructor. * * @param Object config Possible options are: * - `'connection'` _Function_ : The connection instance. * - `'mod...
var attregexg=/([^"\s?>\/]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g; var tagregex=/<[^>]*>/g; var nsregex=/<\w*:/, nsregex2 = /<(\/?)\w+:/; function parsexmltag(tag/*:string*/, skip_root/*:?boolean*/)/*:any*/ { var z = ({}/*:any*/); var eq = 0, c = 0; for(; eq !== tag.length; ++eq) if((c = tag.charCodeA...
'use strict'; const $ = require('jquery'); const electron = require('electron'); const remote = electron.remote; const dialog = remote.dialog; const BrowserWindow = remote.BrowserWindow; const path = require('path'); const DockerCompose = require('./../src/docker_compose'); let dcmp = null; // View functions. func...
'use strict'; //dependencies const mongoose = require('mongoose'); const Role = mongoose.model('Role'); /** * Role Controller * * @description :: Server-side logic for managing Role. */ module.exports = { /** * @function * @name roles.index() * @description display a list of all roles * @param {Htt...
// copied from http://freenet.msp.mn.us/people/calguire/morse.html var morse_map = { 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--...
var app = angular.module('AngularBIRT'); app.directive('birtParameters', function() { return { restrict: 'A', templateUrl: 'directives/parameters/html/0.0.1/parameters.html' } });
// col 列 module.exports = { empty: true, attributes: 'span', parent: 'colgroup' };
// @flow /** * This file provides support to domTree.js * It's a storehouse of path geometry for SVG images. */ const path: {[string]: string} = { // sqrtMain path geometry is from glyph U221A in the font KaTeX Main sqrtMain: `M95 622c-2.667 0-7.167-2.667-13.5 -8S72 604 72 600c0-2 .333-3.333 1-4 1.333-2.667...
YUI.add('model-spinner-test', function (Y) { var Assert = Y.Assert, suite; suite = new Y.Test.Suite('Model.Spinner'); suite.add(new Y.Test.Case({ name: 'Basic', setUp: function () { var Model = Y.Base.create('model', Y.Model, [ Y.Rednose.Model.Spinner ], { sync: function (action, opt...
import React from 'react' import '../scss/main.scss' class EmptyLayout extends React.Component { constructor(props) { super(props); } render() { return this.props.children(); } } export default EmptyLayout;
import ngeoPrintService from 'ngeo/print/Service.js'; import * as olBase from 'ol/index.js'; import olFeature from 'ol/Feature.js'; import olMap from 'ol/Map.js'; import olView from 'ol/View.js'; import * as olExtent from 'ol/extent.js'; import * as olProj from 'ol/proj.js'; import olGeomLineString from 'ol/geom/LineSt...
/* * PLUGIN CHECK_PORT * * Ukrainian language file. * * Author: Oleksandr Natalenko (pfactum@gmail.com) */ theUILang.checkPort = "Перевірити стан порту"; theUILang.portStatus = [ "Стан порту невідомий", "Порт закрито", "Порт відкрито" ]; thePlugins.get("check_port").langLoaded()...
'use strict'; describe('Directive: rdMovieRating', function () { beforeEach(module('angularjsRundownApp')); var element; // it('should make hidden element visible', inject(function ($rootScope, $compile) { // element = angular.element('<rd-movie-rating></rd-movie-rating>'); // element = $compile(elemen...
'use strict'; var servicesModule = require('./_index.js'); /** * @ngInject */ servicesModule.service('dataService', function ($q, $timeout, sqliteService, $log) { var service = {}; service.getCurrentElements = function () { var query = "SELECT e.Id, e.Name, e.Description, e.Image, p.CurrentEnergy, ...
module.exports = { prefix: 'fal', iconName: 'comment-alt', icon: [576, 512, [], "f27a", "M288 32C129 32 0 125.1 0 240c0 50.2 24.6 96.3 65.6 132.2-10.4 36.3-29.7 45.9-52.3 62.1-27.6 19.7-7.9 47.6 17.4 45.6 58.7-4.7 113.3-19.9 159.2-44.2 30.6 8 63.6 12.3 98 12.3 159.1 0 288-93 288-208C576 125.1 447.1 32 288 32zm0 384c-35...
module.exports = function Brake(){} module.exports.prototype.engage = function(){ throw 'unimplemented' }
import React from 'react'; import ReactDOM from 'react-dom'; import { LocaleProvider } from 'antd'; import { AppContainer } from 'react-hot-loader'; import { store } from './store/configure-store'; import Application from './application'; import './index.css'; const rootEl = document.querySelector('#root'); const ren...
import Immutable from 'immutable'; import trim from 'trim'; import * as su from '../utils/string_utils'; export function country(countryCode) { return countryCode.get(0); } export function isoCode(countryCode) { return countryCode.get(1); } // TODO: fix misspelling, it's dialling export function dialingCode(coun...
/** @jsx jsx */ import { jsx } from 'slate-hyperscript' export const input = ( <element> <element /> </element> ) export const output = { children: [ { children: [], }, ], }
var packageName = 'flemay:less-autoprefixer'; Package.describe({ name: packageName, version: '1.0.2', summary: 'The dynamic stylesheet language + Autoprefixer', git: 'https://github.com/flemay/less-autoprefixer', documentation: 'README.md' }); Package.registerBuildPlugin({ name: "compileLessAddAutoprefixe...
function demo(data, xaxis, yaxis, graphType) { //console.log(data); //console.log(axisx); //console.log(axisy); //create the canvas chart instance var chartingCanvas = new CanvasCharts(); if(chartingCanvas.isCanvasSupported()){ var obj = { "gradientColor1": "#cd9603", ...
import React, {Component} from 'react'; class Login extends Component { constructor(props) { super(props); this.state = { username: '', password: '' } } render() { return ( <div className="text-center"> <h2>Sign In</h2> <hr /> <div> <d...
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('enrollments');
// mocha/suite.js console.log('suite'); var assert = assert; if (typeof require == 'function') { require('../../stringtemplate'); assert = require('assert'); } /* TESTS START HERE */ suite('string#template'); test('is method', function () { assert(typeof ''.template == 'function'); }); test('returns unmodi...
/* 客户端自定义基类 */ var BaseClass = cc.Class({ extends: cc.Class, ctor:function(){ var argList = Array.prototype.slice.call(arguments); this.JS_Name = "BaseClass"; this.Init.apply(this, argList); }, Init:function(){ }, }); module.exports = BaseClass;
'use strict'; var path = require('path'); var _ = require('lodash'); var Handlebars = require('handlebars'); var sourceMapModule = require('source-map'); var SourceMapGenerator = sourceMapModule.SourceMapGenerator; var SourceMapConsumer = sourceMapModule.SourceMapConsumer; var Batch = require('../batch'); var File = r...
module.exports = function bar(){ return 'baz'; }
module.exports = { entry: './ui/main.js', output: { path: './public', filename: 'build.js' }, module: { loaders: [ { test: /\.vue$/, loader: 'vue' }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ } ] } }
const distance = require('../point/distance') const transformMany = require('../point/transformMany') module.exports = (tr, domain, range) => { // Get an array of residuals i.e. the distances // between the range points and transformed domain points. // // Parameters // tr // an estimated transform ...
module.exports = function(app) { /*=============================================================================== ************ Handle clicks and make them fast (on tap); ************ ===============================================================================*/ app.initClickEvents = function () { function h...
/** * # Require * * Wrapper around `require` for injection purpose. */ module.exports = function() { return { /** * Call the real require method * * @param {String} moduleName The module to require * @param {*} The result returned by require */ require: function(moduleName) { ...
// Create a zip archive of the built app var fs = require('fs'); var archiver = require('archiver'); var packageData = require('./package.json'); var output = fs.createWriteStream(__dirname + '/' + packageData.name + '.zip'); var archive = archiver('zip'); output.on('close', function() { console.log(archive.pointe...
/** * Copyright 2018-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
'use strict'; var extend = require('xtend/mutable') , descriptors = require('./lib/descriptors'); module.exports = extend(cobble, descriptors) /** * compose objects into a new object, leaving the original objects untouched * @param {...object} an object to be composed. * @return {object} */ function cobble(){ ...
/*jshint node:true, indent:2, curly:false, eqeqeq:true, immed:true, latedef:true, newcap:true, noarg:true, regexp:true, undef:true, strict:true, trailing:true, white:true */ /*global X:true, XM:true */ (function () { "use strict"; var _fs = X.fs, _path = X.path; /** Defines the authentication rou...
var express = require('express'), path = require('path'), favicon = require('serve-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), routes = require('./routes/index'), app = express(); // v...
/*global BigBlock, document */ /** RenderManager object Renders pixels to the grid. @author Vince Allen 12-05-2009 Big Block Framework Copyright (C) 2011 Foldi, LLC */ BigBlock.RenderMgr = (function () { return { last_rendered_div: null, grid_static_fragment: null, grid_text_fr...
/* Header */ import React from 'react'; import PropTypes from 'prop-types'; import { Components, registerComponent, withCurrentUser, getSetting } from 'meteor/vulcan:core'; import { Link } from 'react-router'; import Button from 'react-bootstrap/lib/Button'; import { FormattedMessage } from 'meteor/vulcan:i18n'; //...
/*****************************************************************************/ /* Stats: Event Handlers */ /*****************************************************************************/ Template.Stats.events({ }); /*****************************************************************************/ /* Stats: Helpers */ /*...
module.exports = function ( grunt ) { 'use strict'; grunt.registerTask( 'test', [ 'nodeunit', 'qunit:all' ]); };
'use strict'; var test = require('../'); test.beforeEach(function (t) { t.context.test = 'test'; }); test(function (t) { t.is(true, true); }); test('is compatible with ava', function (t) { t.is(true, true); }); test('is compatible with ava context', function (t) { t.true(t.context.test === 'test'); }); tes...
/* 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/. * * Owner: felix@famo.us * @license MPL 2.0 * @copyright Famous Industries, Inc. 2014 */ define('famous/views/Se...
var request = require('request'); request.get({url: 'http://tms.aidaojia.com'},function (err, res, body) { console.log(res); })
module.exports = function (config) { 'use strict'; config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ 'src/es5-polyfill.js', 'src/ten...