code
stringlengths
2
1.05M
/** * The MIT License (MIT) * * Copyright (c) 2015 Mickael Jeanroy * * 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 ...
import React, { PureComponent } from 'react'; import autobind from 'class-autobind'; import { connect } from '../../../store'; import getClassMethods from '../../../helpers/get-class-methods'; import Settings from '../components/Settings'; class SettingsContainer extends PureComponent { constructor (props) { sup...
/*! * Benchmark.js <http://benchmarkjs.com/> * Copyright 2010-2011 Mathias Bynens <http://mths.be/> * Based on JSLitmus.js, copyright Robert Kieffer <http://broofa.com/> * Modified by John-David Dalton <http://allyoucanleet.com/> * Available under MIT license <http://mths.be/mit> */ ;(function(window, undefined) ...
var chai = require('chai-jasmine'); chai.use(require('./src/kahlan')); module.exports = chai;
export { default } from 'ember-horizon/utils/workflow';
var gulp = require('gulp'); var Server = require('karma').Server; var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var inSequence = require('run-sequence'); var sourceFiles = [ 'build/module.js', 'build/helpers.js', 'build/collection.js', 'build/model.js', 'build/sync.js' ]...
var mine = require('../'); var string = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in vol...
var Comment = React.createClass({ propTypes: { author: React.PropTypes.string.isRequired, }, getDefaultProps: function() { return { author: 'default author' }; }, render: function() { return ( <div> <span className='author'>{thi...
(function() { var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; c...
/** @namespace hubb */ ECMAScript.Extend('hubb', function (ecma) { var CXFR = ecma.data.XFR; var proto = ecma.lang.createPrototype(CXFR); /** * @class XFR */ this.XFR = function (encoding) { CXFR.apply(this, arguments); }; this.XFR.prototype = proto; /** * @function symbolToClass */ ...
/* * PLUGIN TRAFFIC * * Danish language file. * * Author: */ theUILang.traf = "Traffic"; theUILang.perDay = "Per day"; theUILang.perMonth = "Per month"; theUILang.perYear = "Per year"; theUILang.allTrackers = "All trackers"; theUILang.ClearButton = "Clear"; theUILang.ClearQuest = "Do you really ...
export function addClass(el, className) { if (hasClass(el, className)) { return; } let newClass = el.className.split(' '); newClass.push(className); el.className = newClass.join(' '); } export function hasClass(el, className) { let reg = new RegExp('(^|\\s)' + className + '(\\s|$)'); return reg.test(...
var path = require('path'); module.exports = { appPath: function () { switch (process.platform) { case 'darwin': return path.join(__dirname, '..', '.tmp', 'Jam-darwin-x64', 'Jam.app', 'Contents', 'MacOS', 'Jam'); case 'linux': return path.join(__dirname, '..', '.tmp', 'Jam-linux-x64', 'Jam'); defau...
exports.seed = (knex) => { return knex('favorites').del() .then(() => { return knex('favorites') .insert([{ id: 1, book_id: 1, user_id: 1, created_at: new Date('2016-06-29 14:26:16 UTC'), updated_at: new Date('2016-06-29 14:26:16 UTC') }]); ...
/*global define*/ define([ 'jquery', '../views/about.js' ], function ($, AboutView) { 'use strict'; var FetchUserController = function() { this.view = new AboutView(); this.view.render(); }; return FetchUserController; });
var current_codepage = 1200; /*:: declare var cptable:any; */ /*global cptable:true */ if(typeof module !== "undefined" && typeof require !== 'undefined') { if(typeof cptable === 'undefined') global.cptable = require('./dist/cpexcel.js'); } function reset_cp() { set_cp(1200); } var set_cp = function(cp) { current_code...
import React, {Component, PropTypes} from 'react' class SearchResults extends Component { static propTypes = { show: PropTypes.bool, tracksList: PropTypes.array } renderTracksList = tracksList => ( tracksList.map(track => ( <div key={track.id}> <img src={track.artwork_url}/> {t...
/*! easytree - v0.0.0 - 2016-05-18 - */ ; (function (d3, $) { // This file is used in the build process to enable or disable features in the // compiled binary. Here's how it works: If you have a const defined like so: // // const MY_AWESOME_FEATURE_IS_ENABLED = false; // // ...And the compiler (UglifyJS) sees th...
import 'react'; import PropTypes from 'prop-types'; import { INITIAL, PENDING, OK, ERROR } from 'app-constants'; export const status = PropTypes.oneOf([INITIAL, PENDING, OK, ERROR]);
// autoComplete1.js // // This is a simple test script that does the following tests: // open a website // validate title // enter first 2 letter 'Be' to input // wait for autocomplete to open // click on entry 'Bengals' // verify input is 'Cincinnati Bengals' // // // To Run: // $ mocha autoComplete1.js // ...
export default () => ({ error: '', isLoading: false, retrieved: null, updated: null, violations: null, });
var path = require("path"); var ExtractTextPlugin = require("extract-text-webpack-plugin"); var webpack = require("webpack"); module.exports = { entry: { app: './js/main.js' }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options...
(()=>{var e=document.getElementById("statusEnabled"),n=document.getElementById("statusDisabled"),c=function(e){chrome.storage.sync.set({pluginEnabled:e}),chrome.tabs.query({active:!0,currentWindow:!0},(function(e){chrome.tabs.executeScript(e[0].id,{code:"window.location.reload()"}),window.close()}))};chrome.storage.syn...
const fetch = require("node-fetch"); fetch("http://jsonplaceholder.typicode.com/posts/1") .then(response => response.json()) .then(post => post.title) .then(x => console.log("Title", x) )
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var User = require('./user.js'); var Role = new Schema({ name: { required: true, type: String, trim: true, unique: true }, pretty_name: { required: true, type: String, trim: true, ...
import test from 'ava'; test.todo("user profile route"); test.todo("repo contributes route"); test.todo("not found route");
import toDate from '../toDate/index.js' import isLeapYear from '../isLeapYear/index.js' /** * @name getDaysInYear * @category Year Helpers * @summary Get the number of days in a year of the given date. * * @description * Get the number of days in a year of the given date. * * @param {Date|String|Number} date -...
//jshint esversion: 6 Package.describe({ name: 'elmarti:video-chat', version: '2.3.2', summary: 'Simple WebRTC Video Chat for your app.', git: 'https://github.com/elmarti/meteor-video-chat', documentation: 'README.md' }); Package.onUse(api => { Npm.depends({ "rtcfly": "0.1.8" }); ...
(function() { var EPOCHS, MONTHS, SLIDE_DURATION, coverage_data, make_graph, options, relative_date, slide; EPOCHS = [["second", 1000], ["minute", 60 * 1000], ["hour", 60 * 60 * 1000], ["day", 24 * 60 * 60 * 1000], ["month", 30.4 * 24 * 60 * 60 * 1000], ["year", 12 * 30.4 * 24 * 60 * 60 * 1000]]; MONTHS = ["Janua...
// flow-typed signature: e35304b0ba540c047de7886a8cd474a2 // flow-typed version: 9bd052d952/node-fetch_v1.x.x/flow_>=v0.25.x declare module 'node-fetch' { declare module.exports: (input: string | Request, init?: RequestOptions) => Promise<Response>; }
'use strict'; (function() { // Ideas Controller Spec describe('Ideas Controller Tests', function() { // Initialize global variables var IdeasController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the resour...
import { compile } from "../htmlbars-compiler/compiler"; import { forEach } from "../htmlbars-util/array-utils"; import defaultHooks from "../htmlbars-runtime/hooks"; import { merge } from "../htmlbars-util/object-utils"; import DOMHelper from "../dom-helper"; import { normalizeInnerHTML, getTextContent, equalTokens } ...
module.exports = function() { 'use strict'; this.title = element(by.model('movie.title')); this.description = element(by.model('movie.description')); this.save = element(by.css('.btn-primary')); this.open = function() { browser.get('/movies/add'); }; this.addActor = function(title...
/* Copyright (c) 2011 Cimaron Shanahan 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, distribute...
'use strict'; // Articles controller angular.module('projects').controller('ProjectsController', ['$scope', '$stateParams', '$location', 'Menus', 'Authentication', 'Projects', '$mdSidenav', '$mdDialog', '$window', 'Upload', '$timeout', '$q', function ($scope, $stateParams, $location, Menus, Authentication, Projects, ...
/* * jQuery File Upload User Interface Plugin * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global define, require, window */ (function (fac...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Pick Schema */ var PickSchema = new Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', index: true }, match: { type: mongoose.Schema.Types.ObjectId, ref: 'Match', index: true }, choice: String, points:...
/* skeleton adapted from former strategy: RSI Bull and Bear + ADX modifier 1. Use different RSI-strategies depending on a longer trend 2. But modify this slighly if shorter BULL/BEAR is detected - 12 feb 2017 - (CC-BY-SA 4.0) Tommie Hansen https://creativecommons.org/licenses/by-sa/4.0/ */ // req's var log ...
import { both, complement, flip, T } from 'ramda'; import { ACTION_GUARD_NONE, ACTION_REQUEST_NONE, checkActionResponseIsSuccess, EV_GUARD_NONE, INIT_EVENT_NAME, INIT_STATE, makeDefaultActionResponseProcessing, modelUpdateIdentity } from '@rxcc/components'; import { STEP_ABOUT, STEP_APPLIED, STEP_QUESTION, STEP_REV...
(function(angular){ "use strict"; angular.module('main') .config([ '$routeProvider', function ($routeProvider) { $routeProvider .when('/users', {controller: 'usersCtrl', templateUrl: 'main/users'}); } ]) .controller('usersCtrl', ['$scope', 'apUserCollection', ...
var chai = require("chai"); var _ = require("underscore"); _.mixin(require('../src/underscore.parse')); describe("underscore.parse", function() { it("should parse boolean", function() { chai.expect(_.parse("true")).to.equal(true); chai.expect(_.parse("false")).to.equal(false); }); it("should parse null"...
module.exports = `MARKDOWN: Studentenes Kameraklubb is a meeting point for students who are intereseted in photography in Trondheim. The club has a long history reaching back to 1938. Our facilities are situated at Moholt Studentby, where all members have access. You can chill on the couch, converse about photo...
// make the editting groups box less wide // and add alternating row colors $("#edit_group_href").click(function () { var groupTable = $("#group_list"); groupTable.width(300); groupTable.find("th:first").attr("colspan", "3"); var mod = 0; groupTable.find("tr:gt(0)").each(function () { mod++; $(this).addClass(...
import React from 'react' import styled from 'styled-components' const ReactIcon = () => { return ( <span> <Icon src="https://d1xwtr0qwr70yv.cloudfront.net/assets/tech/react-6c1ac47e0329377f8fe4f71455cefb51.svg" alt="ReactIcon" /> </span> ) } const Icon = styled.img` /* overw...
/** * SVGInjector v1.1.3 - Fast, caching, dynamic inline SVG DOM injection library * https://github.com/iconic/SVGInjector * * Copyright (c) 2014-2015 Waybury <hello@waybury.com> * @license MIT */ (function(window, document) { 'use strict'; // Environment var isLocal = window.location.protocol === 'file:'; ...
M.spinner = { show: function(miracle) { if (typeof Spinner != 'undefined' && miracle.spinner.use) { var spinnerStyle, spinnerStyleName; /* (trick) Because we can't make opaque spinner inside transparent miracle we need to make miracle opaque until miracle show starts ...
angular.module('genome.about', []) .controller('AboutController', function ($scope, $rootScope, $location) { var whichView = function() { $rootScope.view = $location.$$path; } whichView(); $scope.images = [{ name: 'Gar Lee', pic: '../../../static/assets/gar.png', link: 'https://github.com/Lee...
import { getTimeOfDay } from './get-time-of-day'; export function greet(name = 'friend') { const timeOfDay = getTimeOfDay(); return `Good ${timeOfDay}, ${name}!`; }
/** * Created by daiyingheng on 16/9/9. */ import React from 'react'; import {Link} from 'react-router'; import SearchActions from '../actions/SearchActions'; import SearchStore from '../stores/SearchStore'; class Search extends React.Component { constructor(props) { super(props); this.state = SearchStore...
$(function () { navigator.geolocation.getCurrentPosition( function(e) { //成功回调 console.log(e.coords.accuracy); //准确度 console.log(e.coords.latitude); //纬度 console.log(e.coords.longitude); //经度 console.log(e.coords.altitude); //海拔高度 console.log(e.coords.altitud...
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"Miniver":{"normal":"Miniver-Regular.ttf","bold":"Miniver-Regular.ttf","italics":"Miniver-Regular.ttf","bolditalics":"Miniver-Regular.ttf"}};
/** * Created by meiqiyuan on 2017/9/20. */ require('runkoa')(__dirname + '/entry.js');
var path = require('path'); var fs = require('fs'); var gulp = require('gulp'); var utils = require('gulp-util'); var log = utils.log; // Can be used for logging gulp.task('vendors', function () { // Get all bower components, but use the minified file // if it already exists var bowerFiles = require('main-bower-fil...
$(function() { function ArticleViewModel(article) { var self = this; $.extend(this, article) self.summaryTextTruncated = window.AppUtils.cropText(article.summaryText, 100); // add / before image url to make it relative to site root self.images = self.images.map(function(image) { return "/...
/* global module:false */ module.exports = function (grunt) { 'use strict'; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * Perimeter.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' + ' * https://gith...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
'use strict'; var express = require('express'), passport = require('passport'), auth = require('../lib/auth'), userLib = require('./user')(), db = require('../lib/database'), crypto = require('../lib/crypto'); module.exports = function spec(app) { app.on('middleware:after:session', function co...
/** * Created by uqybarta on 25/09/2014. */ 'use strict'; angular.module('uql') .controller('uqlCtrl', ['$rootScope', '$window', 'UQL_CONFIG', function ($rootScope, $window, UQL_CONFIG) { $rootScope.appClass = ''; $rootScope.$on('$stateChangeSuccess', function (event, toState) { if (toState.data && ...
/* Particle */ function setParticle() { if($('#particles-js').length != 0){ particlesJS.load('particles-js', 'http://127.0.0.1/luc2017/web/js/particle/particlesjs-config.json'); } if($('#particles-light-js').length != 0){ particlesJS.load('particles-light-js', 'http://127.0.0.1/luc2017/web/...
'use strict'; var React = require('react'), ContestantActions = require('../actions/ContestantActions'); var ContestantForm = React.createClass({ propTypes: { name: React.PropTypes.string }, getInitialState() { return { name: '' }; }, createContestant(state) { ContestantActions....
// Phantomjs odoo helper // jshint evil: true, loopfunc: true /* eslint-disable */ /* Modified phantomtest.js from odoo ( https://github.com/odoo/odoo/blob/8.0/openerp/tests/phantomtest.js ). It accepts following extra parameters: * ``sessions`` is dictonary of sessions:: {"session1": { "url_path": "/web" "rea...
const BodyParser = require('./middlewares/body_parser') class MiddlewareStack{ constructor(router){ this.stack = [] this.router = router this.use(BodyParser) } use(klass, options = {}){ var position = options['position'] delete options.position if(position){ this.stack.spli...
import Model from 'Engine/Model'; class Skybox extends Model { constructor() { const position = new Float32Array([ /* Front */ 1.0, -1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, 1.0, 1.0, 1.0, /* Back */ -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0,...
import axios from "axios" export function fetchTracks(){ return function(dispatch){ dispatch({type:"FETCH_TRACKS_INIT"}); axios.get("https://api.soundcloud.com/tracks?client_id=1AVHvmUbJVx9PaAcjaMka6XvKv2F8eQw") .then((response)=>{ dispatch({type:"FETCH_TRACKS_FULFILLED", ...
import ScrollTrigger from '../src/ScrollTrigger' // Setup ScrollTrigger with default trigger options const scroll = new ScrollTrigger({ trigger: { once: false }, scroll: { callback: (position, direction) => { console.log(position) } } }) // Add all sections to the scroll trigger coll...
import meta from './form-select.json' import template from './form-select.html' import snippet from './snippet.html' import vsFormSelect from '../../components/form-select' import docsDemo from '../../components/vuestrap/demo' import {sizes, states} from '../../utils' export default { route: { path: '/form...
define(function (require) { 'use strict'; var TestObject = require('lib/test-object'); describe('Testing TestObject', function () { var testObject = new TestObject(); describe('Test testMethod', function () { it('returns "test class"', function () { expect(test...
import assign from 'object-assign' /* * Build a more dynamic dot path interface for a registry or collection * that is capable of rebuilding itself when one of the members * changes, and only lazy loads the paths that are traversed */ function reflector (host, startProp, getIdPaths) { invariant(host, 'provide a ho...
const daysMap = { "0": "Sunday", "1": "Monday", "2": "Tuesday", "3": "Wednesday", "4": "Thursday", "5": "Friday", "6": "Saturday" }; const monthsMap = { "0": "Jan", "1": "Feb", "2": "Mar", "3": "Apr", "4": "May", "5": "June", "6": "July", "7": "Aug", "8": "Sept", "9": "Oct", "10": "...
{ var x = scale .scaleTime() .domain([date.local(2009, 0, 1, 0, 17), date.local(2009, 0, 1, 23, 42)]); test.deepEqual(x.nice().domain(), [ date.local(2009, 0, 1), date.local(2009, 0, 2) ]); test.end(); }
{ wrapperConstructor.prototype[name] = function() { return wrapNodeList( unsafeUnwrap(this)[name].apply(unsafeUnwrap(this), arguments) ); }; }
/** * @Author: Hao Chen <clovemac> * @Date: 2017-03-10T00:45:52-05:00 * @Email: hao@genm.co * @Project: GenmMobile * @Last modified by: clovemac * @Last modified time: 2017-03-10T00:46:35-05:00 */ import thunk from 'redux-thunk'; import { applyMiddleware, compose, createStore } from 'redux'; import { routerMidd...
import Helper from '@ember/component/helper'; export default Helper.helper(function ([arg1 = '']) { return arg1.toLowerCase(); });
import { getOwner, setOwner } from '@ember/-internals/owner'; import { get, set, observer } from '@ember/-internals/metal'; import CoreObject from '../../lib/system/core_object'; import { moduleFor, AbstractTestCase, buildOwner, runDestroy, runLoopSettled, } from 'internal-test-helpers'; import { track } from...
/* * grunt-sauce-tunnel * https://github.com/civitaslearning/grunt-sauce-tunnel * * Copyright (c) 2013 Dan Harbin * Licensed under the MIT license. */ 'use strict'; (function () { var SauceTunnel = require('sauce-tunnel'), tunnels = {}; module.exports = function (grunt) { function configureLogEvents(tunn...
'use strict'; (function (app) { app.controller('trainings', ['$scope', function ($scope) { }]); app.controller('editTraining', ['$scope', '$routeParams', function ($scope, $routeParams) { $scope.assaultTopics = []; $scope.justiceSystemTopics = []; $scope.underservedPopulationTopic...
!function($){ "use strict" /* CLASS NOTICE DEFINITION * ======================= */ var Popup = function (elem, options) { this.Status = 'off' this.$elem = $(elem) this.options = options this.init() } Popup.prototype = { init: function(){ ...
// points. var g_points = []; // on mouse down event. function click(ev, gl, canvas, position, size, color) { var x = ev.clientX; var y = ev.clientY; var rect = ev.target.getBoundingClientRect(); x = ((x - rect.left) - canvas.width / 2) / (canvas.width / 2); y = (canvas.height / 2 - (y - rect.top)) / (canva...
var Manager = require('../'); var expect = require('expect.js'); describe('inter-tab', function(){ var tab1, tab2; beforeEach(function(){ tab1 = new Manager(); tab2 = new Manager(); }); afterEach(function(){ tab1.destroy(); tab2.destroy(); }); it('should creat...
/*! jQuery UI - v1.9.2 - 2017-10-08 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.sl={closeText:"Zapri",prevText:"&#x3C;Prejšnji",nextText:"Naslednji&#x3E;",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj"...
/** * Created by vestnik on 27/03/16. */ import models from './../src/database' import drivers from './../src/database/driver' models.BaseModel.db = new drivers.LocalDb()
var map=require("map-stream"),fs=require("graceful-fs");module.exports=function(e){return map(function(e,t){fs.stat(e.path,function(n,r){r&&(e.stat=r);t(n,e)})})};
class GenderModifier { getName() { return 'gender'; } execute(value, parameters) { return value === 'male' ? parameters[0] : parameters[1]; } } export default GenderModifier;
class Selector extends EventEmitter { constructor() { super(); this.dragEventOrigin = null; this.dragEventCurrently = null; this.isMouseDragging = false; this.clickEvent = null; var that = this; this.on('mousedrag', function (e) { if (!that.isM...
var gulp = require('gulp'); var elixir = require('laravel-elixir'); var sass_options = { includePaths: [ 'node_modules/bootstrap-sass/assets/stylesheets', require('bourbon').includePaths, 'node_modules/bourbon-neat/app/assets/stylesheets', 'node_modules/hint.css/src', ] }; /* ...
'use strict'; var BaseQuery = require('../../query/base'); var Transaction = require('../../query/mixins/transaction'); /** * @class RenameTableQuery * @extends BaseQuery * @mixes Transaction * @classdesc * * A query that allows renaming tables. */ var RenameTableQuery = BaseQuery.extend(); RenameTableQuery.r...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { getVisibleImages, getImage } from '../reducers/images'; import { routeActions } from 'react-router-redux'; import ImageItem from '../components/ImageComponents/ImageItem'; import ImagesList from '../components/ImageComp...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.NullableBooleanInput = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _SelectInput = require('./SelectInput'); var _SelectInput2 = _interopRequireDefault(_SelectInput); var _transl...
var fs = require('fs'); var slugify = require('../app/scripts/slugify'); var dataSource = '../app/data/data.tsv'; var publications = fs.read(dataSource).toString().trim().split("\n"); var headers = publications.shift().split("\t"); publications = publications.map(function (p) { p = p.split("\t"); var r = {} header...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var http = require('http'); var routes = require('./routes/index'); var app = express(); var port...
import 'selectize'; import { action } from '@ember/object'; import { observes, on } from '@ember-decorators/object'; import classic from 'ember-classic-decorator'; import $ from 'jquery'; import uniq from 'lodash-es/uniq'; import BaseField from './base-field'; @classic export default class SelectizeField extends Bas...
/// <reference path="../App.js" /> (function () { "use strict"; // The Office initialize function must be run each time a new page is loaded Office.initialize = function (reason) { $(document).ready(function () { // Initialize Office UI Fabric components (spinner) if (type...
'use strict'; const stampit = require('stampit'); const ObjectKey = require('./object-key'); module.exports = stampit() .methods({ notEmpty, transform, validate }) .compose(ObjectKey); /** * Describe validation rule for non-empty string * * @param {String} [msg] - Optional. Error message. Defau...
var express = require('express'); var app = express(); app.set('view engine', 'ejs'); app.set('views', __dirname + '/../public/views'); app.use(express.static(__dirname + '/../public')); require('./database'); require('./routes')(app); module.exports = app;
#! /usr/bin/env node const colors = require('colors'); const Vorpal = require('vorpal'); const DenonClient = require('./lib/DenonClient'); const setupToolCommands = require('./lib/toolCommands'); const setupDenonCommands = require('./lib/denonCommands'); const denon = new DenonClient(); const cli = Vorpal(); denon.o...
import { createLogger, Level } from '@17media/node-logger'; import EnvConfig from '../env.config.json'; import project from '../package.json'; const loggerConfig = { base: { logLevel: Level.INFO, project: project.name, environment: process.env.NODE_ENV || 'development', }, Slack: { slackToken: En...
define( [ 'controls/view', 'plugins/buddhalow/datasources/posttabledatasource' ], function ( SPViewElement, SPPostTableDataSource ) { return class SPNewsFeedViewElement extends SPViewElement { createdCallback() { this.innerHTML = '<sp-divider>Feed</sp-...
client.on('open', function(stream) { var stream = client.createStream( {event: 'run', params: {'url':app.pipeline.wsurl}}); stream.on('data', function(data, options) { console.log(JSON.parse(data))}); }) var client = new BinaryClient(); // Received new stream from server! client.on('stream', f...
import { auth } from '../firebase'; import { signIn, signOut, createUser } from '../user'; jest.mock('../firebase', () => ({ auth: jest.fn().mockReturnValue({ signInWithEmailAndPassword: jest.fn(), signOut: jest.fn(), createUserWithEmailAndPassword: jest.fn() }) })); describe('signIn', () => { it('s...
define("controllers/main", ["app"], function (app) { return app.controller("main", ["$scope","$translate","$translatePartialLoader"/*,"$socket"*/, function ($scope,$translate,$translatePartialLoader/*,$socket*/) { $translatePartialLoader.deletePart("main",true); $translatePartialLoader.addPart("main"); $translat...