code
stringlengths
2
1.05M
var MONTHS = ["Bogus", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var results = []; var numberOfPlayers; var numberOfEvents; var timer; var tacdOutput = ""; var tacdQuarter; var tacdYear; var officers = {}; var finishedOfficers = true; var ...
const fs = require('fs') function hasABBA(str){ return str.match(/(\S)((?!\1).)\2\1/); } function splitOutSections(str){ return str.split(/\[.*?\]/) } function getHypertext(str){ return str.match(/\[(.*?)\]/g) } function isValid(str){ return splitOutSections(str).some(hasABBA) && getHyper...
var React = require('react'); var _ = require('lodash'); var { getJSON } = require('./backend'); const formatCode = code => _.chunk(code, 3).map(c => c.join('')).join('-'); const formatIndex = index => index > 9 ? index : ' ' + index; const PrintPage = React.createClass({ getInitialState() { return { ...
import jsdom from 'jsdom'; describe('bundle', function() { it('should corectly wire-up all the dependencies via their UMD-exposed globals', function(done) { jsdom.env({ html: '<html></html>', virtualConsole: jsdom.createVirtualConsole().sendTo(console), scripts: [ ...
/** * @file guildMemberRemove event * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ module.exports = async member => { try { let guildModel = await member.client.database.models.guild.findOne({ attributes: [ 'farewell', 'farewellMessage', 'farewellTimeout', 'serverLog' ], wher...
//<![CDATA[ // Emoticon bar before comment-form function rpl4rt() { window.open("http://ferdhika31.github.io/emot/","_blank"," width=700, height=400"); } $(function() { $(putEmoAbove) .before('<div style="text-align:center" class="emoWrap"> :o :calangap B-) :gaya :P :wle :D :grin (y) :ye :/ :hah <br/><br/><...
'use strict'; var di = require('di'); var PrismManager = require('./prism-manager'); var PrismUtils = require('./services/prism-utils'); var UrlRewrite = require('./services/url-rewrite'); function HttpEvents(prismManager, urlRewrite, prismUtils) { this.handleRequest = function(req, res) { var prism = prismMa...
var serverRoutes = require("./serverRoutes"); module.exports = function(app, config){ new serverRoutes.ServerRoutes(app, config); };
'use strict'; var mongoose = require('bluebird').promisifyAll(require('mongoose')); var GameRoundSchema = new mongoose.Schema({ userId: {type: String, index: true}, bet: Number, game: {type: String, index: true}, action: {type: String, index: true}, outcome: {}, win: Number, isOver: Boolean }, {timesta...
var store = require('fh-wfm-mongoose-store'); /** * * Connecting to the mongoose store. * * @param connectionString * @returns {*} */ function connect(connectionString) { return store.connect(connectionString, {}); } /** * Disconnecting from the mongoose store. Ensures the mongo connections are closed. */ f...
function BSP(values, options) { this.getter = options.getter; this.root = Node.partition(values, this.getter); } BSP.prototype.inRange = function inRange(min, max) { var ranged = []; this.root.visitInRange(min, max, function(v) { ranged.push(v); }); return ranged; }; BSP.prototype.in...
/*! GeoFire-Titanium is a JavaScript library that allows you to store and query * a set of keys based on their geographic location. GeoFire uses Firebase for * data storage, allowing query results to be updated in realtime as they change. * * This library is ported from the official GeoFire JavaScript library...
'use strict' var uuid = require('uuid'); var md5 = require('md5'); var jwt = require('jsonwebtoken'); var LoginModel = require('../models/login'); exports.login = function (req, res, next) { var secret = req._config && req._config.token ? req._config.token.secret : undefined; if (!secret) return req._error.NO_TOKE...
'use strict'; /** * `default.js` * * The default function to be used if no function is specified in the interface * an no priority is specified. */ module.exports = function NOOP() { var glui = this; this.log[this.conf.interface.missingFunctionLogLevel] ('Function not defined in interface!'); };
import { helper } from '@ember/component/helper'; import { isEqual as emberIsEqual } from '@ember/utils'; export function isEqual([a, b]) { return emberIsEqual(a, b); } export default helper(isEqual);
import unfold from '../../src/utils/unfold.js'; import { expect } from 'chai'; describe('unfold', () => { it('should get some tests written', () => { expect(unfold).to.be.a('function'); }); });
/** * Sequelize model for French Departments. * @param sequelize The Sequelize instance. * @param DataTypes The data types. * @returns {Object} The Sequelize model. */ module.exports = function (sequelize, DataTypes) { var Department = sequelize.define('Department', { code: DataTypes.STRING, na...
/*global define*/ define(function (require) { 'use strict'; /** * Edition field for a date - a text input with a datepicker. * * @example <ma-date-field field="field" value="value"></ma-date-field> */ function maDateField() { return { scope: { 'field...
/* * sf-collection - v0.1.6 * jQuery plugin to handle symfony2 collection in a proper way * * * Copyright (C) 2015 Giorgio Premi * Licensed under MIT License * See LICENSE file for the full copyright notice. */ ;(function ( $, window, document, undefined ) { "use strict"; var pluginName = "sfcollecti...
var MockMan_MockRegistry = require('./mockregistry'), _ = require('underscore'); module.exports = function(type) { // Current method defining the calls on var current_method, // Current call count expectation current_call_count = 0, // Current return value current_return = null...
const ALERT = 2, COMPLEXITY = 10, IGNORE = 0, MAX_NESTED_BLOCKS = 4, MAX_NESTED_CALLBACKS = 10, MAX_PARAMS = 3, MAX_PATH_LENGTH = 3, MAX_STATEMENT_LENGTH = 80, MAX_STATEMENTS = 10, MIN_DEPTH = 3, TAB_SPACE = 2, WARN = 1; module.exports = { parser: 'babel-eslint', env: { es6: true, bro...
// Select DOM elements to work with const welcomeDiv = document.getElementById("WelcomeMessage"); const signInButton = document.getElementById("SignIn"); const cardDiv = document.getElementById("card-div"); const mailButton = document.getElementById("readMail"); const profileButton = document.getElementById("seeProfile...
var gulp = require('gulp'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), rename = require('gulp-rename'), browserSync = require('browser-sync').create(), cssnano = require('gulp-cssnano'); gulp.task('css', function () { return gulp.src('scss/main.scss') .pipe(s...
VISITOR.pushDeclVar = function(_name, _index) { if(_index == undefined) { var currentScope = VISITOR.CURRENT_Function + 1; COMPILER.VAR_STATE[currentScope].push(_name); } else COMPILER.VAR_STATE[_index].push(_name); } VISITOR.getDeclVar = function(_name, _index) { var _state; if(_index == undefined) { var...
'use strict'; require('should'); const Mapper = require('../../src/mapper'); const testData = require('./data/mapperCustom'); const { checkResult } = require('../helpers/integration/resultChecker'); function resultToPromise(result, isPromisify) { if (isPromisify) { return Promise.resolve(result); } else { ...
if (!_.isUndefined(Dagaz.Controller.addSound)) { Dagaz.Controller.addSound(0, "../sounds/slide.ogg", true); } ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_...
import Vue from 'vue'; import VueRouter from 'vue-router'; Vue.config.debug = true; Vue.config.devTools = true; // import components import app from './components/App.vue'; // import map import routes from './router/routes.js'; import VueResource from 'vue-resource' /** VUE ROUTER CONFIGURATION */ // Make new...
const Facade = require.main.require('./core/Common/Facades/Facade'); class SearchFacade extends Facade { static getFacadeAccessor() { return 'SearchService' } } module.exports = SearchFacade;
/*jshint browser:true */ /*global angular:true */ 'use strict'; /* Angular.js service wrapping the elastic.js API. This module can simply be injected into your angular controllers. */ angular.module('elasticjs.service', []) .factory('ejsResource', ['$http', function ($http) { return function (config) { var...
var debug = require( 'debug' ), verbose = debug( 'twtstats-verbose' ), log = debug( 'twtstats:main' ), path = require( 'path' ), readline = require('readline'), request = require( 'request' ), Stream = require('stream'), fs = require( 'fs' ), Tweet = require( './entities/tweet' ), Matr...
angular.module('crm', ['ui.state', 'ui.select2', 'ui.date', 'core.security', 'crm.templates']) .config(['$routeProvider', '$locationProvider', '$stateProvider', '$urlRouterProvider', 'securityAuthorizationProvider', function($routeProvider, $locationProvider, $stateProvider, $urlRouterProvider, securityAut...
var queue = require('queue-async'); var config = require('./config'); var codemotion = require('./../build/Release/codemotion'); var q = queue(config.NUM_TASKS * 2); for (var i = 0; i < config.NUM_TASKS; i++) { q.defer(function(done) { done(null, codemotion.simpleTask(config.SECONDS)); }); } q.awaitAll...
var canadian_cities = ["100 Mile House, British Columbia", "108 Mile House, British Columbia", "108 Mile Ranch, British Columbia", "150 Mile House, British Columbia", "Abbey, Saskatchewan", "Abbotsford, British Columbia", "Aberarder, Ontario", "Abercorn, Quebec", "Aberdeen, Saskatchewan", "Abernethy, Saskatchewan", "Ab...
version https://git-lfs.github.com/spec/v1 oid sha256:fcf05751346aaefcf8efe832927ea394201b2971a014ab12ec1d9fa1b6d3c02d size 3847
import React from 'react' import './label-hint-item.style.scss' const LabelHint = ({ name }) => <li className="label-hint-item">{name}</li> export default LabelHint
import React from 'react'; import MG from 'metrics-graphics'; const MG_ALLOWED_OPTIONS = [ 'aggregate_rollover', 'animate_on_load', 'area', 'axes_not_compact', 'bar_height', 'bar_margin', 'bar_orientation', 'baseline_accessor', 'baselines', 'binned', 'bins', 'bottom', ...
// Module for adding messages to the message board app.addMessage = { init: function() { // EVENTS // Clicking the Send button $( "div.send-button" ).bind( "click", this.addMessage); // Handling the Enter keypress $( "input.message-field" ).keypress(fu...
const pizzaGuy = require('../dist/pizza-guy'); const images = require('./large-data').images; pizzaGuy .deliver(images) .onAddress('./demo/downloaded-images') .onSuccess((info) => { console.log(`Downloaded: ${info.fileName}`); }) .onError((info) => { console.log(`Failed: ${info.fileName}`); }) .s...
require('node-define'); require('node-amd-require'); var assert = require('chai').assert; var basePath = '../../../'; var srcPath = 'main/js/'; var SrlSketch = require(basePath + srcPath + 'sketchLibrary/SrlSketch'); describe('Sketch Tests', function() { describe('initializations', function() { ...
/* * Globalize Culture pa * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to b...
(function() { 'use strict'; /** * @name config * @description config block */ function config($stateProvider) { $stateProvider .state('root.infoMovie', { // url: '/info/:id', url: '/info', views: { '@': { template: '<info-movie></info-movie>', ...
const botToken = ''; //--REQUIRED-- const ownerID = ''; //--REQUIRED-- const basedirext = '/files/', //default: '/files/' basedirsplit = basedirext.split('/').filter(c => c.length), basedir = __dirname+basedirext; const http = require('http'); const fs = require('fs'); const discordie = require('discordie...
const path = require('path') const userinfo = require('common-userinfo') const util = require('util') const username = userinfo.username module.exports = name => { return { app: { local: util.format('/Applications/%s.app', name), system: util.format('/Applications/%s.app', name), user: util.fo...
require('../../spec/helpers'); const chai = require('chai'); const expect = chai.expect; const SimpleModel = require('../../spec/models/simpleModel.model'); const update = require('.'); const utilities = require('../utilities'); describe('curdy.update.render', () => { beforeEach(() => { return SimpleModel.crea...
var _ = require('lodash') var levels = require('hexaworld-levels') var set = _.values(levels) require('./app.js')('container', set)
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; exports['default']...
const path = require('path'); module.exports = { entry: path.resolve(__dirname, '../test/client/index.js'), output: { path: path.resolve(__dirname, '../test/client'), filename: 'test-bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /.+.js$/, exclude: /node_m...
$(document).ready(function(){ ants = JSON.parse(localStorage.getItem('ants')); if(ants) { var $aptsList = $('#apts'); $.each(ants, function(index, value) { $aptsList.append('<li>' + '<a href="/smartdiary/web/app_dev.php/pensieri-alternativi-funzionali/nuovo/'+index+...
/* * Author: Paolo Cifariello <paolocifa@gmail.com> * */ (function($){ /* Inizializzazione */ var ES = { /* Elements handled */ _elements: [] }; /** * event tracker for dom nodes * * @node DOM node */ function ElementEvent(node) { this.node = node; this.event = {}; this.spaces = {}; } /...
/* ======================================================================== * 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() * ...
import { MOCK_EVENT as DATA, createEvent } from './red.data' import CONTEXT from './red.context' const EXPECTED_RESULT = { type: 'UpdateAction', contact: { identifier: [ '_contactKey', { name: 'BrokerOffice', value: '_originatingSystemContactKey' } ], honorificPrefix: '_namePrefix', givenName: '_firstN...
import {connect} from 'react-redux'; import Home from '../components/content/home'; export default connect(state => { return { base: state.base, readme: selectReadme(state) }; })(Home); function selectReadme(state) { const url = state.routing.locationBeforeTransitions.pathname; return ` # Nothing found > Pre...
import { fork, take, put, call } from 'redux-saga' import api from '../blockcypher' import { actions } from './reducers' import { utxoSetDiffer } from './logic' import { wait } from '../app/util' export default function* watchForSwitch (getState) { while (true) { const switchOver = yield take('SWITCH') yi...
import chalk from 'chalk'; import RSVP from 'rsvp'; import { getIssues as getRepoIssues } from './github'; import { getIssues as getSheetIssues } from './google-spreadsheet'; RSVP.hash({ sheetIssues: getSheetIssues(process.env.SHEET_KEY), repoIssues: getRepoIssues('emberjs/ember.js') }).then(({sheetIssues, repoIs...
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var Tracker = Package.tracker.Tracker; var Deps = Package.tracker.Deps; var _ = Package.underscore._; var EJSON = Package.ejson.EJSON; /* Package-scope variables */ var SubsManager; (function () { //////////////////////////////////////////////////////...
/* * Socks .Element.TextFragment.Em * * Copyright (c) 2009 Peter Jihoon Kim * * Licensed under the MIT License (MIT-LICENSE.txt) * * http://wiki.github.com/petejkim/socks * */ (function(Socks){ Socks.Element.TextFragment.Em = function(parent, style, array) { this._socks_type = 'Socks.Element.TextF...
/** * List Movie Cinemas Test * @copyright 2013 Jeremy Worboys */ var chai = require('chai'); var request = require('supertest'); var expect = chai.expect; var app = require('../app'); describe('List Movie Cinemas', function() { describe('/movie/:id/cinemas', function() { beforeEach(function() { ...
var zeros = require("zeros") var ndarray = require("ndarray") var fill = require("ndarray-fill") var conv = require("../index.js") require("tape")(function(t) { function checkFunc(shape, f) { var x = zeros(shape) fill(x, f) var vol = conv.array2rle([0,0,0], x) var y = conv.rle2array(vol, [[0,0,0], s...
import { createElement as h } from 'react' import * as events from '../../../../constants/events' import Input from '../Input' import Select from '../Select' import Label from '../Label' import Spinner from '../Spinner' import Spacer from '../Spacer' import Tooltip from '../Tooltip' import useCreateEvent from '../.....
version https://git-lfs.github.com/spec/v1 oid sha256:0b7080a8d786392697188409066d6105ac04a42c2f63c0d8e26651ce3238f23e size 19701
//~ name b130 alert(b130); //~ component b131.js
function syncSearch () { $("#query2").keyup(function(){ $("#query3").val($("#query2").val()); }); $("#query3").keyup(function(){ $("#query2").val($("#query3").val()); }); }
var wechat_pay = require('weixin-pay'); var wechat_pay = wechat_pay({ appid: 'wx8c0b9d8b32234d7a', mch_id: '1296148301', partner_key: '0C041A15FD88DFBE55844778EFD86918', pfx: require('fs').readFileSync(__dirname + '/../asset/cert/apiclient_cert.p12'), }); function getClientIp(req) { return req.hea...
// # URL helper // Usage: `{{url}}`, `{{url absolute="true"}}` // // Returns the URL for the current object scope i.e. If inside a post scope will return post permalink // `absolute` flag outputs absolute URL, else URL is relative var getMetaDataUrl = require('../data/meta/url'); function url(options) { var absol...
/* * LeetCode-javascript * https://github.com/oneRice/LeetCode-javascript * * Copyright (c) 2016 oneRice * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var name_array = require('./problem_resource.js').solution_name; var findName = require('./problem_resource.js').fin...
angular.module('app').component('slct',{ templateUrl: 'app/template/componentTypes/slct/slct.html', controller: function(modalCodeFactory){ var ctrl = this; ctrl.selectOptions = [{ id: 0, name: 'Option 1' },{ id: 1, name: 'Option 2' ...
'use strict' const twilio = require('twilio') const async = require('async') /* client for Twilio TaskRouter */ const taskrouterClient = new twilio.TaskRouterClient( process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN, process.env.TWILIO_WORKSPACE_SID) /* client for Twilio IP Chat */ const chatClient...
/* * Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
import defaultComparator from './alphabetical'; export default function(property, comparator) { comparator = comparator || defaultComparator; return function(a, b) { return comparator(a[property], b[property]); }; };
function noFit () { device.style.transform = ''; device.style.transformOrigin = ''; } function toggleFit () { if (!device.style.transform) { device.style.transform = 'scale(' + window.innerHeight/device.offsetHeight + ')'; device.style.transformOrigin = '50% 0px'; } else { device.style.transform = ''; d...
class ncprov_ncprovider_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() GetLi...
// init time export function initTimeDate() { const date = new Date(); date.setHours(0); date.setMinutes(0); date.setSeconds(0); return date; } // zero fill export function fixString(str) { str = "" + str; return str.length <= 1? "0" + str : str; } const maps = { 'yyyy': date => date.getFullYear(), ...
var classhryky_1_1uri_1_1query_1_1_entity = [ [ "heap_type", "classhryky_1_1uri_1_1query_1_1_entity.html#a6a87c9ead5b29c94ff56dc2c97f9d89d", null ], [ "octets_type", "classhryky_1_1uri_1_1query_1_1_entity.html#afaaea8b9a51297cfc0aee68afacdd91a", null ], [ "this_type", "classhryky_1_1uri_1_1query_1_1_entity....
(function() { "use strict"; var inNodeJS = false; if (typeof process !== 'undefined' && !process.browser) { inNodeJS = true; var request = require('request'.trim()); //prevents browserify from bundling the module } var supportsCORS = false; var inLegacyIE = false; try { var testXHR = new XML...
export const ic_laptop_twotone = {"viewBox":"0 0 24 24","children":[{"name":"g","attribs":{},"children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24","x":"0"},"children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24","x":"0"},"children":[]}]}]},{"name":"g","attribs":{},"childr...
'use strict'; var express = require('express'), router = express.Router(), request = require('request'), imagesize = require('imagesize'); module.exports = function(){ return router .post('/',function(req,res,next){ var stream = request .get(req.body.image.src) ...
var mongoose = require('mongoose') mongoose.Promise = global.Promise; mongoose.connect('mongodb://localhost/crawlerStage5') exports.SpiderDate = mongoose.model('SpiderDate', require('./spiderDate'))
Package() .use('tupai.Application') .use('Config') .run(function(cp){ console.log('run'); var app = new cp.Application({ window: { routes: cp.Config['routes'] }, cacheManager: cp.Config['cache_manager'], apiManagers: cp.Config['api_managers'], apiManager: cp.Config['api_manager'], }); ...
/* eslint key-spacing:0 spaced-comment:0 */ import _debug from 'debug' import path from 'path' import { argv } from 'yargs' const debug = _debug('app:config:_base') const config = { env : process.env.NODE_ENV, // ---------------------------------- // Project Structure // ---------------------------------- p...
var gulp = require('gulp'); var appDev = 'assets/app/'; var appProd = 'public/js/app/'; /* JS & TS */ var jsuglify = require('gulp-uglify'); var typescript = require('gulp-typescript'); var sourcemaps = require('gulp-sourcemaps'); // Other var concat = require('gulp-concat'); var tsProject = typescript.createProjec...
/** * freeCodeCamp Front End Algorithm Challenges * @author Heather K. */ // Return Largest Numbers from an Array's Subarrays function largestOfFour(arr) { // Inputs an array of subarrays (1 level), outputs an array of the largest values from each subarray var maxVal; var maxArr = []; for (var i =...
var gulp = require('gulp'); var compiler = require('gulp-hogan-compile'); gulp.task('templates', function () { return gulp.src('src/templates/*.html') .pipe(compiler('templates.js', { wrapper: 'commonjs', hoganModule: 'hogan.js/lib/template.js' })) .pipe(gulp.dest('./build')); });
/*! Copyright (C) 2015 by WebReflection 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, publish, distribut...
/** * Проверка на макс. кол-во ответов * @param {object} obj объекты ответов * @param {int} id ID опроса * @param {int} max_votes макс. кол-во голосов * @param {bool} shrt в блоке? * @returns {null} */ function check_max_selected(obj, id, max_votes, shrt) { var $chkboxes = jQuery('.answer_'+id+(shrt?"_short"...
module.exports = { 'google-openid': { css: 'google', title: 'Google OpenId', social: true }, 'google-apps': { css: 'google', title: 'Google Apps', social: false }, 'google-oauth2': { css: 'googleplus', title: 'Google', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const serializable_1 = require("../serializable"); const encoding_1 = require("../lib/encoding"); const Address = require("../address"); class Transaction extends serializable_1.SerializableWithHash { constructor() { super(); ...
// 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...
 /*============================================================= Authour URI: www.binarytheme.com License: Commons Attribution 3.0 http://creativecommons.org/licenses/by/3.0/ 100% Free To use For Personal And Commercial Use. IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US ...
/* jshint node: true */ 'use strict'; module.exports = { name: 'ember-expand-multiline', included: function(app, parentAddon) { var target = (parentAddon || app); // necessary for nested usage // parent addon should call `this._super.included.apply(this, arguments);` if (target.app) { target...
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users'); var codehubblogs = require('../../app/controllers/codehubblogs'); // Codehubblogs Routes app.route('/codehubblogs') .get(codehubblogs.list) .post(users.requiresLogin, codehubblogs.create); app.route('/codehubb...
(function () { 'use strict'; var deadlines = { 'el': document.getElementById('deadlines') }; deadlines.controller = function () { var ctrl = this; ctrl.data = {}; deadlines.el.addEventListener('deadlines', function (event) { var body = event.detail; if (body.events.length === 0) { ...
'use strict'; var restify = require('restify'), expect = require('chai').expect; describe("Hackers", function() { var client, newHacker; before(function() { client = restify.createJsonClient('http://localhost:3000'); }); it("should create Hacker", function(done) { var hacker = { fullName: '...
import Flags from './modules.js'; import './server/publications.js'; export default Flags;
/** * @license @product.name@ JS v@product.version@ (@product.date@) * * (c) 2014 Highsoft AS * Authors: Jon Arild Nygard / Oystein Moseng * * License: www.highcharts.com/license */ (function (H) { var seriesTypes = H.seriesTypes, merge = H.merge, extendClass = H.extendClass, defaultOptions = H.getOptions...
require('ts-node/register') global.Observable = require('rxjs').Observable
import DS from 'ember-data'; /** * Define the endpoint object model * * @author Eric Fehr (ricofehr@nextdeploy.io, github: ricofehr) * @class Endpoint * @namespace model * @module nextdeploy * @augments DS/Model */ export default DS.Model.extend({ /** * @attribute prefix * @type {String} */ ...
/** * @classdesc * Fog is an {@linkcode Effect} added to the Camera that applies a fog effect to the scene. * * @property {number} density The "thickness" of the fog. Keep it tiny. * @property {Color} tint The color of the fog. * @property {number} heightFallOff The fall-off based on the height. This is to simula...
/** * Collapsable object * Given a node element, it will allow it to open and close * * @constructor * @public * * @param {Element} el */ function Collapsable(el) { this.el = el; this.isOpen = false; this.bindEvents(); } Collapsable.prototype = { /** * @see Collapsable * @type {Fun...
var Login = artifacts.require("./Login.sol"); module.exports = function(deployer) { deployer.deploy(Login); };
/* * hellop5js * 2014.09.12 * */ // ----------------------------------------------------------------------------- // Properties // ----------------------------------------------------------------------------- var particles = []; // ----------------------------------------------------------------------------...