code
stringlengths
2
1.05M
import { mount } from '@vue/test-utils'; import PaginatedList from '~/vue_shared/components/paginated_list.vue'; import { PREV, NEXT } from '~/vue_shared/components/pagination/constants'; describe('Pagination links component', () => { let wrapper; let glPaginatedList; const template = ` <div class="slot" sl...
RocketMobileApplication.getEntity("Geolocation").setProperty("watchPosition", true);
/* * Author: Alexandre Havrileck (Oxyno-zeta) * Date: 16/10/16 * Licence: See Readme */ (function () { 'use strict'; angular .module('crash-reporter.views.profile') .config(routeConfig); /** @ngInject */ function routeConfig($stateProvider) { $stateProvider.state('header.pr...
import {Object3D} from 'three'; import {$wrap} from '../utils/ComponentUtils'; import {extend} from '../utils/index'; function LightComponent(targetComponent) { const resultComponent = class LightComponentEnhance extends targetComponent { static defaults = extend(targetComponent.defaults, { light: { ...
let winston = require('winston') //add configurations here soon module.exports = winston;
(function (angular) { 'use strict'; //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill var fnPrototype = Function.prototype; if (!fnPrototype.bind) { fnPrototype.bind = function (oThis) { if (typeof this !== 'function') { ...
import {createElement} from 'react'; import {RaisedButton, FlatButton} from 'material-ui'; export const FieldTemplate = (props) => { return ( <div> {props.children} </div> ); }; export const ArrayFieldTemplate = (props) => { return ( <div> {props.items.map((...
/* * noVNC: HTML5 VNC client * Copyright (C) 2011 Joel Martin * Licensed under LGPL-3 (see LICENSE.txt) * * See README.md for usage and integration instructions. */ /*jslint white: false, browser: true, bitwise: false, plusplus: false */ /*global window, Util, Display, Keyboard, Mouse, Websock, Websock_native, B...
define([ 'ext/jquery', 'backbone', 'hbs!templates/projects/toolbar/move_tasks', 'toastr' ], function($, Backbone, Template, toastr) { return Backbone.View.extend({ events: { 'click [data-action="showTaskMovementDialog"]': 'showModal' }, user: null, $modal: null, $progress: null, ...
const Mongoose = require('mongoose') const config = require('../config') Mongoose.Promise = global.Promise const options = { useMongoClient: true } Mongoose.connect(config.db.uri, options) .then(() => { console.log('connected') }) .catch(console.error) module.exports = Mongoose.connection
var Clash = (function () { function Clash(rangeGetter) { var _this = this; this.getRange = function (dates) { return dates; }; this.flatten = function (userObjects, options) { options = options || { startDay: null, endDay: null }; var objects = userObjects.map(functio...
var React = require('react'); var div = React.DOM.div; var focusManager = require('../helpers/focusManager'); var scopeTab = require('../helpers/scopeTab'); var Assign = require('lodash.assign'); // so that our CSS is statically analyzable var CLASS_NAMES = { overlay: { base: 'ReactModal__Overlay', afterOpe...
/** * Created by Volkov on 07.11.2016. */ import React, { Component, PropTypes } from 'react'; import { injectIntl, intlShape, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { FormControl, Button, FormGroup, InputGroup, Modal } from 'react-bootstrap'; function ModalCompoment(pro...
const errorHandler = function errorHandler(cb) { return function _handler(e) { cb(e.target.error); }; }; const successHandler = function successHandler(cb) { return function _handler(e) { cb(e.target.result); }; }; exports._keyPath = function _keyPath(index) { const path = index.k...
var scrapy = require('../../workSpace/common/scrapy.js'); var url = 'http://www.w3schools.com/jquery/jquery_ref_selectors.asp'; var selector = '[href="sel_all.asp"]'; scrapy(url, selector) .then(function() { console.log('success'); }) .catch(function(err) { console.log(err); });
module.exports = { test: { client: 'pg', connection: 'postgres://localhost/rocketleaguesam-test', migrations: { directory: __dirname + '/db/migrations' }, seeds: { directory: __dirname + '/db/seeds/test' } }, development: { client: 'pg', connection: 'postgres://localho...
/*============================= = Views = =============================*/ App.Views.SubItems = Backbone.View.extend({ tagName: 'ul', render: function() { this.$el.empty(); this.collection.each(function(subItem) { var subItemView = new App.Views.SubItem({ model: subItem }); ...
define(['infrastructure/moduleRegistry', 'knockout', 'spec/testModuleA'], function (moduleRegistry, ko, testModule) { describe('moduleRegistry', function () { it('provides a function called registerModule to register modules', function () { expect(moduleRegistry.registerModule).toBeDefined(); ...
var assert = require('assert') var escapeHtml = require('..') describe('escapeHtml(string)', function () { describe('when string is undefined', function () { it('should return "undefined"', function () { assert.strictEqual(escapeHtml(undefined), 'undefined') }) }) describe('when string is null', f...
Vue.component('spark-settings-teams-screen', { /* * Bootstrap the component. Load the initial data. */ ready: function () { this.getInvitations(); }, /* * Initial state of the component's data. */ data: function () { return { user: null, ...
import React from 'react' import background1 from './background1.jpg' import background2 from './background2.jpg' import styles from './slideshow.module.css' const Slideshow = () => <div className={styles.slideshow}> <img src={background1} className={styles.image1} alt=''/> <img src={background2} c...
/*! jQuery UI - v1.10.0 - 2013-01-23 * http://jqueryui.com * Includes: jquery.ui.datepicker-no.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.no={closeText:"Lukk",prevText:"&#xAB;Forrige",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["janu...
/* Author: Viktor Semykin <thesame.ml@gmail.com> Written for fontello.com project. */ 'use strict'; var ByteBuffer = require('./lib/byte_buffer.js'); /** * Offsets in EOT file structure. Refer to EOTPrefix in OpenTypeUtilities.cpp */ var EOT_OFFSET = { LENGTH: 0 , FONT_LENGTH: 4 , VERSI...
const User = require('../models/user'), userInfo = require('../models/userInfo'), mongoose = require('mongoose'), gauntletStatus = require('../models/gauntletStatus'), gauntlet = require('../models/gauntlet'), Denchange = require('../models/denchange'), moment = require('moment'), notificati...
/* globals define */ define(function(require, exports, module) { 'use strict'; var Modifier = require('famous/core/Modifier'); var Transform = require('famous/core/Transform'); var RenderNode = require('famous/core/RenderNode'); var Surface = require('famous/core/Surface'); var node = new Rende...
var _isFunction = require('lodash.isfunction'); var _merge = require('lodash.merge'); var getDepthMarker = function(settings) { var depthMarker = ''; for (var d = 0; d < settings.depth; d++) { if (settings.depths[d]) { depthMarker += settings.format.depthLast; } else { depthMarker += settings.format.depth;...
class Connected { constructor ( viewer ) { this.viewer = viewer; this.show(); } show () { this.close(); const viewer = this.viewer; const seen = new Set(); const colours = [ 'red', 'blue', 'orange', 'lime', 'gray', 'magenta', 'white', 'pink', 'green', 'cyan', 'purple', 'orangered', 'springgreen' ];...
/**************************************************************************** jquery-time-slider, A extension to jquery-base-slider with selection of time and date (c) 2015, Niels Holt https://github.com/fcoo/jquery-time-slider https://github.com/fcoo USING fcoo/jquery-base-slider - https://githu...
//modelCreation.js /** * Driver function for creating a model * @param {ModelSimulator} simulator The simulator to create a model for */ function createModel(simulator) { simulator.modelURL = getModelURL($("#model")); if(checkStringEndText(simulator.modelURL, ".kmz") || checkStringEndText(simulator.modelURL, ".z...
/*global Allat */ (function (Allat) { Allat.module.define("EventBus", { factory: function (EventBus) { EventBus.init = function () { this._subscribers = this.services.MapSupport.createMap(); }; /** * @param {String} event * @param...
module.exports = { ERROR_BAD_CONFIG_FILE: 1, ERROR_BAD_CONFIG_FORMAT: 2, ERROR_BAD_CSV_FILE: 3, ERROR_CONNECTION_TO_DB: 4, ERROR_BAD_WRITE: 5 }
Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = function (_ref) { var input = _ref.input; var deps = _ref.deps; var exports = _ref.exports; var type = _ref.type; deps = deps || []; var params = ''; var rootParams = ''; var es6Required = ''; var amdRequired = ''; var com...
var AspxServiceLocale = { "View More": "View More", "There are no services available!":"There are no services available!", "Services": "Services", "There is no service description available": "There is no service description available", "Book Now": "Book Now", "minutes": "minutes", "SCHEDUL...
/* Copyright 2016 PashaSk Timing service for Angular. https://pashask.github.io/PsTimer/ ver 1.0.0 momentjs is required */ (function() { angular.module("ps.timer", []) .service("psTimer", ["$interval", psTimerService]); function psTimerService($interval) { var self = this; var globalKe...
var types = require('../../types'); var object = types.createObject; var id = types.createIdentifier; var prop = types.createProperty; var literal = types.createLiteral; var ast = object([ prop(id('quota\"tion', '"quota\\\"tion"'), literal('reverse\\solidus', '"reverse\\\\solidus"')), prop(id('soli\/dus', '"soli\\/d...
var DebugUI = { makePushHTML: function UI_makePushHTML(index) { var push = PushData.allPushes[index]; var html = '<div class="changeset">'; html += '<div class="grid-2">'; html += UI.linkifyChangeset(push.cset) + "</div>"; html += '<div class="grid-12">' + UI.linkifyDescription(push.desc); if ...
Editor.prototype.default = function(){ var self = this; this.on('action:default:italic', function(){ self.command("italic"); }); this.on('action:default:bold', function(){ self.command("bold"); }); this.on('action:default:link', function(){ var link = u(self.selection.element).attr('href'); ...
import { Collections } from '../../../../api/collections.js'; import './form.html'; import '../upload/upload.js'; import '../formField/formField.html'; if (Meteor.isClient) { Session.setDefault('formSchema', []); Session.setDefault('selectedTemplate', ''); Template.form.helpers({ // Check if the templat...
'use strict'; (function() { var root = this; var has_require = typeof require !== 'undefined'; if (typeof _ === 'undefined') { if (has_require) { // Require module here } else { // Error here } } function TextCleaner(text, lower) { var lower...
/** * Valid function with a hyphen * @returns {string} */ module.exports = (callback) => { return callback(null, 'contains hyphen'); };
/** * Created by grizet_j on 9/21/2015. */ var Triangle = require('../../src/triangle.js'); var Vector3 = require('../../src/vector3.js'); var vector_math = require('../../src/common.js'); vector_math.ENABLE_SIMD = true; module.exports = { testCopyNormalInto: function(test) { test.expect(1); v...
//表格响应式设计 'use strict'; var _=require('../underscore.js'); function ResponsiveTable(tableSelector, breakpoints) { if (typeof tableSelector === 'string') { this.tableElement = $(tableSelector); } else { this.tableElement = tableSelector; } // State of column indexes and which are shown o...
var websocketStringMessageType = 0 var websocketIntMessageType = 1 var websocketBoolMessageType = 2 var websocketJSONMessageType = 4 var websocketMessagePrefix = 'go-websocket-message:' var websocketMessageSeparator = ';' var websocketMessagePrefixLen = websocketMessagePrefix.length var websocketMessageSeparatorLen = w...
export const GOTO_PAGE = 'GOTO_PAGE'; export const NEXT_PAGE = 'NEXT_PAGE'; export const PREV_PAGE = 'PREV_PAGE'; export const REQUEST_PAGE = 'REQUEST_PAGE'; export const RECEIVE_PAGE = 'RECEIVE_PAGE'; export function gotoPage(pageNo) { return { type: GOTO_PAGE, pageNo }; } export function nextPage() { ...
Proj4js.defs["EPSG:102758"] = "+title=NAD 1983 StatePlane Wyoming West FIPS 4904 Feet\ +proj=tmerc \ +lat_0=40.5 +lon_0=-110.0833333333333 \ +x_0=800000 +y_0=100000 +k=0.999938 \ +a=6378137.0 +b=6356752.3141403\ +to_meter=0.3048006096012192 \";
var osmosis = require('../index'), server = require('./server'), URL = require('url'), fs = require('fs'), expected = { title: "TITLE", content: "CONTENT", innerHTML: '<meta http-equiv="Content-Type" ' + 'content="text/html; charset=UTF-8"><title>TITL...
export async function getCategories(axios) { const payload = await axios.get(`categories`) return payload.data.items } export async function getDapps(axios, params) { const payload = await axios.get(`dapps`, { params }) return payload.data }
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'smiley', 'sv', { options: 'Smileyinställningar', title: 'Infoga smiley', toolbar: 'Smiley' } );
const { assert } = require('chai'); const { compareSorted, compareSortedAsCharArray, arePermutationsObj, arePermutationsMap } = require('../q2'); describe('q2', () => { describe('compareSorted', () => { it('returns true if two strings are permutations of one another', () => { assert.equal(compareSo...
/* global describe:false, it:false, expect:false */ const semLib = require("../"); const ms = 1; const ptimeout = delay => { return new Promise((resolve, reject) => { if (delay == null) { setImmediate(resolve); } else { setTimeout(resolve, delay); } }); }; descr...
var expect = require('chai').expect; var adhere = require('../../lib/adhere'); describe('multipleOf', function () { it('should validate numbers that are multiples of the keyword value', function () { var schema = { type: 'number', multipleOf: 10 }; var values = [10, -10, 80, -80]; value...
version https://git-lfs.github.com/spec/v1 oid sha256:5169c14ee9cd81d25106be9f44520f0039220fd0ab824bd0d28b5abbb6e6da9a size 2867
// flow-typed signature: 0e5b416c89daf4edeb53e6c35a429def // flow-typed version: <<STUB>>/lyric-get_v^1.0.3/flow_v0.57.3 type LyricsGet = (artist: string, song: string, (error: ?Error, lyrics: string)=> void)=> void; declare module 'lyric-get' { declare module.exports: { get: LyricsGet }; }
function euler232() { // Good luck! return true } euler232()
/* * grunt-contrib-copy * http://gruntjs.com/ * * Copyright (c) 2014 Chris Talkington, contributors * Licensed under the MIT license. * https://github.com/gruntjs/grunt-contrib-copy/blob/master/LICENSE-MIT */ /* * grunt-json5-to-json * https://github.com/leader22/grunt-json5-to-json * * Copyright (c) 2014 l...
var webpack = require('webpack'); var path = require('path'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var debug = process.env.NODE_ENV !== 'production'; var liveReload = [ 'webpack/hot/dev-server', 'webpack-dev-server/client?http://localhost:8080' ]; var mainEntry = ['./scripts/main.js']; ...
// Generated by CoffeeScript 1.10.0 (function() { var bcv_parser; bcv_parser = require("../../js/vi_bcv_parser.js").bcv_parser; describe("Parsing", function() { var p; p = {}; beforeEach(function() { p = new bcv_parser; p.options.osis_compaction_strategy = "b"; return p.options.seq...
const _ = require('lodash'); /** * Internal function for inspecting an object's * property value * @param {any} target an object * @param {String} prop a property name or a property path * @return {*} property value */ function getPropVal(target, prop) { return prop ? _.get(target, prop) : target; } /** * ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({widgetLabel:"\u989c\u8272/\u5927\u5c0f\u6ed1\u5757"});
'use strict'; var _ = require('lodash'); var async = require('async'); var fs = require('fs'); var hasAnyDeep = require('has-any-deep'); var JaySchema = require('jayschema'); var js = new JaySchema(); var attribute = require('./lib/api/attribute.js'); var document = require('./lib/api/document.js'); var section = re...
// Converted from: obj/Chrome.obj // vertices: 585 // faces: 1120 // materials: 0 // // Generated with OBJ -> Three.js converter // http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_threejs_slim.py var model = { 'materials': [ { "a_dbg_color" : 0xeeeeee, "a_dbg_index" : 0, "a_db...
export const ic_portrait = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
/** * Calculate icon offset by extension * @param file * @returns {string} */ angular.module('sfbInstance').directive('iconPosition', function () { 'use strict'; var oPosition = {}; function iconPosition($element,type,ext){ // todo: check http://www.mailbigfile.com/101-most-popular-file-types/ var sKey = ...
// import {expect} from 'chai' // import frostVizDataTransform from 'ember-frost-viz/utils/frost-viz-data-transform' import {describe, it} from 'mocha' describe('frostVizDataTransform', function () { // Replace this with your real tests. it('works', function () { // let result = frostVizDataTransform() // ...
import StaticSiteGeneratorPlugin from 'static-site-generator-webpack-plugin'; import config from './config.prod.babel.js'; import webpack from 'webpack'; config.plugins.unshift( new webpack.DefinePlugin({ IS_JAVASCRIPT: true, LAST_MODIFIED: Date.now(), }) ); config.plugins.unshift( new StaticSiteGenerat...
const fbpGraph = require('fbp-graph'); const React = require('react'); const ReactDOM = require('react-dom'); const TheGraph = require('../index.js'); require('font-awesome/css/font-awesome.css'); require('../themes/the-graph-dark.styl'); require('../themes/the-graph-light.styl'); // Context menu specification functi...
module.exports = 'VCAP_APPLICATION' in process.env;
const Endpoints = require('../../../../..'); const schema = require('./schema'); module.exports = new Endpoints.Controller({ adapter: new Endpoints.BookshelfAdapter({ model: require('./model'), validate: schema }) });
var searchData= [ ['hitechnic',['HiTechnic',['../group___hi_technic.html',1,'']]] ];
var friends = new Object(); friends.bill = { firstName: "Bill", lastName: "Franks", number: 53, address: [ '2601 Mission St #5TH', 'San Francisco', 'CA', '94110' ], } friends.steve = { firstName: "Steve", lastName: "Guttenburg", number: 8, address: [ '8942 Wilshire Blvd', 'Beverly Hill...
export roc from './roc'; export { parseStats } from './webpack/utils/stats'; export { getDevPath, getDevPort, removeTrailingSlash, addTrailingSlash, } from './helpers';
/** * @param {number} N * @return {number} */ const binaryGap = N => { if (N === 0) return 0 // remove least significant 0s while (N !== 0 && !(N & 1)) N >>= 1 if (N === 1) // only happens when there is a single '1' return 0 // to bin str let str = [] while (N !== 0) { str.push((N &...
/** * @ngdoc module * @name material.components.card * * @description * Card components. */ angular.module('material.components.card', [ 'material.core' ]) .directive('mdCard', mdCardDirective); /** * @ngdoc directive * @name mdCard * @module material.components.card * * @restrict E * * @descriptio...
var phantom = require("./lib/phantom.js"); module.exports = function(options) { return phantom(options || {}); };
import cjs from "rollup-plugin-cjs-es"; import babel from "rollup-plugin-babel"; import {uglify} from "rollup-plugin-uglify"; import resolve from "rollup-plugin-node-resolve"; export default { input: "index.js", output: { file: "dist/datetime.js", format: "iife", globals: {angular: "angular"}, sourcemap: fal...
;(function (angular) { var app = angular.module('Projects', ['Alerts', 'moment', 'ui.bootstrap.buttons'], function ($interpolateProvider) { $interpolateProvider.startSymbol('[['); $interpolateProvider.endSymbol(']]'); }); function validName(name) { return !!name.match(/[\w-]+\/[\w-]+/); } app.c...
{ beforeEach(function() { jasmine.Ajax.install(); }); afterEach(function() { jasmine.Ajax.uninstall(); }); it("should transform JSON to string", function(done) { var data = { foo: "bar" }; axios.post("/foo", data); getAjaxRequest().then(function(request) { expect(request.pa...
var addMatrix=document.getElementById("add-matrix-btn"),delMatrix=document.getElementById("del-matrix-btn");if(addMatrix.addEventListener("onmouseup",function(){},!1),addMatrix.addEventListener("touchend",function(){},!1),delMatrix.addEventListener("onmouseup",function(){},!1),delMatrix.addEventListener("touchend",func...
define(['app', 'angular', 'text!./resource.html', 'utilities/km-storage'], function(app, angular, template){ app.directive('viewResource', ["IStorage", function (storage) { return { restrict : 'E', template : template, replace : true, transclude : false, scope: { document: "=ngModel", ...
import Icon from '../../components/Icon.vue' Icon.register({ 'regular/money-bill-alt': { width: 640, height: 512, paths: [ { d: 'M320 144c53 0 96 50.1 96 112 0 61.9-43 112-96 112-53 0-96-50.2-96-112 0-61.9 43-112 96-112zM360 312v-16c0-4.4-3.6-8-8-8h-16v-88c0-4.4-3.6-8-8-8h-13.6c-4.9 0-9.5 1...
import React from 'react'; import ReactDOM from 'react-dom'; import Docs from './docs/Docs'; import {BrowserRouter, Route, Redirect, Switch} from 'react-router-dom' import './docs/css/index.css'; import IndexPage from "./index/IndexPage"; import './common/css/layout.css'; import Callback from "./callback/Callback"; imp...
import howler from 'howler'; import { ACTIONS } from 'client/app/consts'; const AUDIO_DURATION = 15000; const INTERVAL = 1000; export const selectUser = (data) => { return { type: ACTIONS.APP_USER, payload: data }; }; export const updateCurrent = (data) => { return { type: ACTIONS.APP_CURRENT, ...
var express = require('express'), partials = require('express-partials'), http = require('http'), path = require('path'), app = express(), server = app.listen(process.env.PORT || 3001), io = require('socket.io').listen(server), moment = require('moment'); app.set('views', path.join(__dirname, 'views')); ...
#!/usr/bin/env node var http = require('http'); var path = require('path'); var EventEmitter = require('events').EventEmitter; var handle = require('../'); var minimist = require('minimist'); var argv = minimist(process.argv.slice(2), { alias: { p: 'port', d: [ 'dir', 'datadir' ] }, default: { port: 8080, data...
var defaultState = { todo: { items: [] } } todoApp = (state, action) => { switch (action.type) { case 'ADD_TODO': var newState = Object.assign({}, state); newState.todo.items.push({ message: action.message, completed: false...
// Karma configuration // Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/...
// print process.argv process.argv.forEach(function (val, index, array) { console.log(index + ': ' + val); });
//@ A record type describes record values. 'Composition'.subclass(I => { "use strict"; const Value = I._.Value; I.am({ Abstract: false }); I.have({ //@{Std.Table} map field name to descriptor fieldDescriptors: null, //@[string] field names in convenient array fieldKeys: null }); I.know...
(function () { 'use strict'; angular .module('map.admin') .controller('mapAdminListController', mapAdminListController); mapAdminListController.$inject = ['MapService']; function mapAdminListController(MapService) { var vm = this; vm.map = MapService.query(); } }());
#!/usr/bin/env node var util = require('util'), dlog = require('../index'); var Level = dlog.Level, Format = dlog.Format, FileHandler = dlog.ConsoleHandler, ConsoleHandler = dlog.ConsoleHandler, ExceptionReporter = dlog.ExceptionReporter; var formatter = Format.compile('[:date] [:name] [:level] :...
angular.module('linuxDash').directive('navBar', ['$location', function($location) { return { template: '\ \ <span class="title">Linux Dash</span>\ \ <ul> \ <li ng-class="{active: isActive(navItem) }" ng-repeat="navItem in items"> \ <a href="#/{{navItem}}" ng-bind="getNavI...
// flow-typed signature: 6c69811a3a911bba62cbb1333b049e09 // flow-typed version: <<STUB>>/url-loader_v1.0.1/flow_v0.69.0 /** * This is an autogenerated libdef stub for: * * 'url-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
'use strict'; exports.init = function(req, res){ res.render('jade/contact/index.jade'); }; exports.sendMessage = function(req, res){ var workflow = req.app.utility.workflow(req, res); workflow.on('validate', function() { if (!req.body.name) { workflow.outcome.errfor.name = 'required'; } if (...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } __export(require("./TableView")); __export(require("./ContextMenu")); __export(require("./HeaderCell")); __export(require("./Interfaces")); __export(require("./SortingDirection")); //# sourceMappingURL=index.j...
var canvas = document.getElementById("canvas"); var c = canvas.getContext("2d"); function drawClock() { // clear the background c.fillStyle = 'lightgray'; c.fillRect(0, 0, canvas.width, canvas.height); // Get the current time var now = new Date(), h = now.getHours(), m = now.ge...
var asnyc = require('async'); var config = require('../../config/test'); var db = require('../../app/db/db')(config); var userService = require('../../app/service/userService'); module.exports = { setUp: function(callback) { userService.removeAll(function(err) { callback(); }); }, tearDown: functi...
/** * Routes list */ module.exports = [ { 'verb' : 'get', 'route' : '/basic', 'controllerAction' : 'Sample/Basic', 'middlewares' : ['Token'], 'postMiddlewares' : ['Log'], 'useCache' : false }, { 'verb' : 'get', 'route' : '/Sample/department...
module.exports = function(bufferSize, m) { var energy = 0; for (var i = 0; i < m.signal.length; i++) { energy += Math.pow(Math.abs(m.signal[i]), 2); } return energy; };
/* ------------------------------------------------------------------------------ * * # Fullcalendar basic options * * Specific JS code additions for extra_fullcalendar_views.html and * extra_fullcalendar_styling.html pages * * Version: 1.0 * Latest update: Aug 1, 2015 * * ----------------------------------------...
const colors = { primary: "black", secondary: "black", tertiary: "black" }; const fonts = { primary: "Open Sans Condensed", secondary: "Lobster Two", tertiary: "monospace" }; module.exports = { colors, fonts, global: { body: { background: "white", fontFamily: fonts.primary, fon...