code
stringlengths
2
1.05M
//>>built define("dojorama/layers/nls/release_zh-cn",{"dojorama/ui/release/mixin/nls/_ReleaseActionsMixin":{indexLabel:"Overview",createLabel:"Create New Release"},"dojorama/ui/release/mixin/nls/_ReleaseBreadcrumbsMixin":{homeLabel:"Home",releaseIndexLabel:"Releases",releaseCreateLabel:"Create New Release"},"dojorama/u...
var util = require("util"), del = require("del"), runSequence = require("run-sequence"), gulp = require("gulp"), config = require("./gulp.config"), $ = require("gulp-load-plugins")({lazy:true}), argv = require("yargs").boolean('prod').argv, browserSync = require('browser-sync').create(), ...
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; class View extends React.Component { constructor (props) { super(props); this.state = { x: 0, y: 0, height: 0, classes: ['view','scroll-y'], loading: false, }; this._e...
JeGol.addViewerPlugins('poll', { WriteLog: function(msg){ return '<a target="_blank" href="' + msg + '">' + msg + '</a><br/><iframe target="new" class="jegol_plugin" frameborder="0" src="' + msg + '"> </iframe>'; } });
'use strict'; import React from 'react'; import UserStore from '../stores/UserStore'; import TechProfileActions from '../actions/TechProfileActions'; import TechProfileStore from '../stores/TechProfileStore'; import TechProfile from './TechProfile'; import ProfileEdit from './ProfileEdit'; class Profile extends React...
/*! * Cookie Monster - A javascript cookie library * v0.0.2 * https://github.com/jgallen23/cookie-monster * copyright JGA 2011 * MIT License */ !function (name, definition) { if (typeof module != 'undefined' && module.exports) module.exports = definition(); else if (typeof define == 'function' && type...
/* @flow */ 'use strict' import m from 'mithril' import map from 'lodash/map' import FilterBodyComponent from '../components/FilterBody' import { getBodyByType, isRoot, getNameByType, } from '../helpers' import { selectFilterMenu, } from '../actions' import { getAllFilters, getSelectedFilterMenu, } fro...
var BookRetriever = function() { this.baseUrl = '/api/v1/books'; }; BookRetriever.prototype.fetchAll = function (callback) { var request = $.get(this.baseUrl); request.done(callback); }; BookRetriever.prototype.search = function (term, callback) { var request = $.get(this.baseUrl + '/search', {term: term}); ...
version https://git-lfs.github.com/spec/v1 oid sha256:da053ada10c94198398bbf6c79137e5b2c559de2b4992b5aa998e2cbb50e4228 size 1563
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{113:function(t,n,e){"use strict";e.r(n);var s=e(0),c=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"content"})}),[],!1,null,null,null);n.default=c.exports}}]);
/** * Mnemonist MultiSet * ==================== * * JavaScript implementation of a MultiSet. */ var Iterator = require('obliterator/iterator'), forEach = require('obliterator/foreach'), FixedReverseHeap = require('./fixed-reverse-heap.js'); /** * Helpers. */ var MULTISET_ITEM_COMPARATOR = function(a, b)...
/* global require, module, process */ module.exports = function(defaults) { var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var funnel = require('broccoli-funnel'); var concat = require('broccoli-concat'); var mergeTrees = require('broccoli-merge-trees'); var pickFiles = require('broccoli-static-c...
import React from 'react'; import { RouteHandler } from 'react-router'; import Header from '../components/header.js'; import Footer from '../components/footer.js'; import FloatPanel from '../components/floatPanel.js'; import PanelFacebook from '../components/panelFacebook.js'; import Scroll from 'scrollReveal'; class ...
import isExportNode from '../helpers/isExportNode'; export default Object.freeze({ create(context) { const KEYS_LIST = context.options[0] || []; return { /** * Check only the ObjectExpressions * @param { Node } node - program node */ O...
(function () { 'use strict'; angular .module('core') .factory('getFactory', getFactory); /** @ngInject */ function getFactory($http) { function getWeather() { return $http({ method: 'GET', url: 'http://api.openweathermap.org/data/2.5/weather?lat=54.27&lon=-8.47&APPID=f7f343f621...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
var http = require("http"); var types = require("utils/types"); var GET = "GET"; var USER_AGENT_HEADER = "User-Agent"; var USER_AGENT = "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25"; var utils; function ensureUtils() { if (!utils) { ...
// Copyright 2009 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
var crypto = require('crypto'); User = require("../models/user.js"); var UM = {}; module.exports = UM; UM.login = function(email, password, callback) { User.findOne({email: email}, function (err, user) { if (user) { validatePassword(password, user.password, function(err, valid) { if (valid) { ...
(function(){ 'use strict'; var board = document.querySelector('#gameboard'), processQueue = [], animID = null, ROWS = 10, COLS = 10, tiles = [], NORMAL = 0, WALL = 1, START = 2, PROCESSED = 3, DIRECTIONS = [ {"row":-1,"col":-1}, // U...
// Karma configuration for unit tests module.exports = function (config) { 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 fi...
/* eslint-env node */ const { VENDOR, /* SCRIPT_TAGS */ } = require('@ember-intl/polyfill/lib/strategies'); module.exports = function(/* env */) { return { /** * Collection of locales that the application supports * * @property locales * @type {Array} */ locales: ['en-us'], /** ...
const news = require('./news'); it('should return categories', () => { expect(news.categories.length).toBeGreaterThan(0); }); it('should have the ny times key defined', () => { expect(process.env.NYTIMES_KEY).toBeTruthy(); }); it('should return article data', done => { news.article(news.categories[0]) .the...
var H5ComponentPoint = function( name, cfg){ var component = new H5ComponentBase(name, cfg); var base = cfg.data[0][1]; //原始比例大小,设为100% $.each(cfg.data, function(idx, item){ var point = $('<div class="point point_+'+idx+'">'); var name = $('<div class="name">'+item[0]+'</div>'); var rate = $('<div class="p...
#! /usr/bin/env node var replace = require('./replace') var opts = require('rc')('gen', { year: new Date().getFullYear() }) if(!opts.name) new Error("nameless module does not compute") process.stdin.resume() process.stdin .pipe(replace(opts)) .pipe(process.stdout)
/* * The copyright in this software is being made available under the BSD License, included below. This software may be subject to other third party and contributor rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Digital Primates * All rights reserved. *...
import React, { Component } from 'react'; import Container from '../container'; import Link from "gatsby-link"; import MediaQuery from 'react-responsive'; import styles from './index.module.css'; const MenuItems = () => { return ( <div className={styles.menuitems}> <Link exact to='/' className={styles.na...
var expect = require('chai').expect; var sinon = require('sinon'); var prepare = require('../../lib/prepare'); var fs = require('fs'); describe('lib/prepare', function () { it('removes data.textPath and place the content of its file to data.text', function () { var data = { textPath: 'textPath' }; ...
var Challenge = require('../models/challenge'), User = require('../models/user'); bCrypt = require('bcryptjs'); var createHash = function(password) { return bCrypt.hashSync(password, bCrypt.genSaltSync(10), null); } var isValidPassword = function(user, password) { return bCrypt.compareSync(password, user.pas...
/*global require*/ 'use strict'; require.config({ baseUrl: 'scripts', paths: { 'jquery': '../../bower_components/jquery/dist/jquery', 'underscore': '../../bower_components/underscore/underscore', 'backbone': '../../bower_components/backbone/backbone' }, shim: { 'jquery': { deps: [],...
'use strict'; exports.__esModule = true; var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createReactClass = require('create-react-class'); var _createReactClass2 = _interopRequireDefaul...
/* * Third party */ //= ../../bower_components/jquery/dist/jquery.min.js //= ../../bower_components/jquery-ui/jquery-ui.min.js //= ../../bower_components/slideout.js/dist/slideout.min.js //= ../../bower_components/ladda/dist/spin.min.js //= ../../bower_components/ladda/dist/ladda.min.js /* * Custom scripts */ $(f...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
"use strict"; const formatter = require("./terminal-utils/formatter"); const annotationLoader = require("./ann_loader"); const EError = require("./eerror"); const STR_DRUP = "$".gray + " drup"; const STR_ARGUMENT_START = "<".gray; const STR_ARGUMENT_END = ">".gray; const STR_OPTIONAL_START = "[".gray; const STR_OPT...
return boilerplate( svg({ width: 30, height: 46, viewBox: "0 0 30 46" })( text({ "font-family": "RobotoBold", "font-size": "46px", "fill": themes.dark.text.primary.css, "stroke": themes.dark.background.css, "stroke-width": 2, "filter": "url(#z-depth1)", "x": "50...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { requirejs: [path.join(__dirname, '../src/requirejs.js')] }, output: { path: path.join(__dirname, '../dist'), filename: '[name].js', publicPath: '/dist/' }, module: { ...
var util = require('util') , pkg = require('../package.json') , bytes = require('jsr-util').bytes , proc = require('getrusage') , ConfigKey = require('jsr-conf').Types , COMMENT = '#' , NA = 'n/a' , EOL = '\n' , DAY_SECS = (60 * 60 * 24) , SERVER = 'server' , CLIENTS = 'clients' , MEMORY = 'memory...
var bootstrap = require('bootstrap'); require('bootstrap/less/bootstrap.less'); require('font-awesome/less/font-awesome.less'); require('./login.css'); var React = require('react'); var TransitionGroup = require('react/lib/ReactCSSTransitionGroup'); var ReactRouter = require('react-router'); var Route = require('reac...
var argv = require('optimist').argv var util = require('util') var path = require('path') var fs = require('fs') var archy = require('archy') exports.tabulate = require('tabulate') exports.filter = function filter(a, b) { return a.filter(function(n) { if(b.indexOf(n) === -1) { return false } re...
// Copyright 2018-2021, University of Colorado Boulder /** * GQEquationFactory creates strings that display various equations needed by this sim. * The strings contain markup that is compatible with SCENERY/RichText. * Equations are reduced so that they don't contain terms that evaluate to zero, * and coefficients...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
import { Icon, Menu } from "@blueprintjs/core"; import React from "react"; import { createCommandMenu } from "teselagen-react-components"; import viewSubmenu from "../MenuBar/viewSubmenu"; import getCommands from "../commands"; import ToolbarItem from "./ToolbarItem"; import { connectToEditor } from "../withEditorProps...
'use strict'; angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, $ionicScrollDelegate, $ionicPopup, $ionicSideMenuDelegate, $httpBackend, latestReleaseService, feeService, bwcService, pushNotificationsService, lodash, go, profileService, configSer...
var settings = require('../../settings.js'); var randomHex = require('random-hex'); const discord = require ('discord.js'); const yt = require('ytdl-core'); exports.run = (client, msg) => { msg.reply(`See this Video: https://www.youtube.com/watch?v=Qi3gsKxt3ZY`); };//run exports.conf = { enabled: true, ...
setTimeout(function() { window.nitrogen.HeatworksManager = HeatworksManager; }, 1);
import React, { Component } from 'react'; class TypingTestTimer extends Component { constructor() { super(); this.renderTimeDigits = this.renderTimeDigits.bind(this); } renderTimeDigits(x) { if (x < 10) { return("0" + x); } else return x; } render() { return( <div>...
/* Script for test */ $(document).ready(function(){ var $demoCard = $('#cw'), background = '#bgEl', $targetBg = $(background), filterValue = 5, cardColor = 'white', draggable = true, shadow = true, bgAttach; var $card = $demoCard.children('.tl-card-...
/** * @license Highstock JS v9.2.0 (2021-08-18) * @module highcharts/indicators/ppo * @requires highcharts * @requires highcharts/modules/stock * * Indicator series type for Highcharts Stock * * (c) 2010-2021 Wojciech Chmiel * * License: www.highcharts.com/license */ 'use strict'; import '../../Stock/Indicat...
App.ApplicationRoute = Ember.Route.extend({ setupController: function(controller) { // Do loading logic here } });
ml.module('three.extras.geometries.TetrahedronGeometry') .requires('three.Three', 'three.core.Geometry', 'three.extras.geometries.PolyhedronGeometry') .defines(function(){ /** * @author timothypratley / https://github.com/timothypratley */ THREE.TetrahedronGeometry = function ( radius, detail ) ...
/** * Created by Administrator on 2015/12/30. */ var Person=require("./2.Human.js"); var girl=new Person('小龙女',18); var boy=new Person('杨过',15); console.log(girl.getName(),girl.getAge()); console.log(boy.getName(),boy.getAge()); girl.setName('龙女'); girl.setAge(20); console.log(girl.getName(),girl.getAge()); con...
/*global module*/ /* Copyright (c) 2015 Victor Woeltjen 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, p...
import * as d3Force from "d3-force"; import * as d3Collection from "d3-collection"; import mathjs from 'mathjs' import utils from './utils' export class MarkovChain { constructor(states, P) { // Config this.type = "mp" // Markov process this.states = utils.checkStates(stat...
// Copyright 2008 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
/* * Fuel UX Wizard * https://github.com/ExactTarget/fuelux * * Copyright (c) 2012 ExactTarget * Licensed under the MIT license. */ define(['require','jquery'],function (require) { var $ = require('jquery'); var old = $.fn.wizard; // WIZARD CONSTRUCTOR AND PROTOTYPE var Wizard = function ...
var RuneTx = RuneTx || {}; RuneTx.random = function(max) { return Math.floor(Math.random() * (max + 1)); }; RuneTx.createCanvas = function(div, width, height) { var canvas = document.createElement("CANVAS"); div.appendChild(canvas); canvas.width = width; canvas.height = height; canvas.style.position = "ab...
/*! * typeahead.js 0.11.1 * https://github.com/twitter/typeahead.js * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT */ (function(root, factory) { if (typeof define === "function" && define.amd) { define("typeahead.js", [ "jquery" ], function(a0) { return factory(a0)...
module.exports = ({ onConflict, value, condition, description, dataType, source, item, items }) => { const reconstructStatement = (val) => { return Object.assign( condition ? {condition} : {}, description ? {description} : {}, { value: val || value, onConflict,...
import React from 'react'; /* Helper function to only inject LogList when debugging */ export default function injectRender(props) { if (process.env.NODE_ENV !== 'production') { const component = require('./LogList').default; return React.createElement(component, props); } }
define(["rcu.amd"],function(e){return e.init(Ractive),function(n,r,i){e.make(r,{loadImport:function(e,t,r){n(["rvc!"+t.replace(/\.html$/,"")],r)},loadModule:function(e,t,r){n([t],r)},require:function(e){return n(e)}},i)}});
const util = require('util'); const moment = require('moment'); const chalk = require('chalk'); const config = require('./config/config.js'); const onFinished = require('on-finished'); var mail; module.exports = function (config) { var levels = { EMERG: 0, ALERT: 1, CRIT: 2, ERR: 3, WARNING: 4, NOTICE:...
module.exports = function (config) { config.set({ basePath: './', frameworks: ['jasmine'], browsers: ['PhantomJS'], files: [ 'node_modules/angular/angular.js', 'node_modules/angular-mocks/angular-mocks.js', 'source/*.js', 'tests/*.js' ], plugins: [ 'karma-jasmine'...
require('../users_db/usersModel.js') var mongoose = require('mongoose') , LocalStrategy = require('passport-local').Strategy , User = mongoose.model('User'); module.exports = function(passport) { // serialize sessions passport.serializeUser(function(user, done) { done(null, user.id) }); passport.de...
var alasql = require('alasql'); var db = new alasql.Database(); db.exec('CREATE TABLE test(one INT, two INT)'); db.tables.test.data = [ {one: 3, two: 4}, {one: 5, two: 6} ] var test = db.exec('SELECT * FROM test'); console.log('원본: ', alasql('SELECT * FROM ?', [test]), '\n'); console.log('쿼리: SELECT * FROM test...
// 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/...
module.exports = [ (req, res, next) => { req._middleWare = "This is the first middleWare."; if (req.params.middleWareThrowError) { throw Error("Sorry, there are some errors in middle-ware."); } next(); } ];
import { factory } from '../../../utils/factory' import { deepMap } from '../../../utils/collection' const name = 'bignumber' const dependencies = ['typed', 'BigNumber'] export const createBignumber = /* #__PURE__ */ factory(name, dependencies, ({ typed, BigNumber }) => { /** * Create a BigNumber, which can stor...
module.exports = { entry:{ index:'./src/index.js' }, output:{ filename:'./dist/[name].js' }, module: { loaders: [ { test: /\.js[x]?$/, exclude: /node_modules/, loader: 'babel-loader', query: { presets: ['env'] } }, { test: /\.css$/,...
import bookshelf from '../../../dal/bookshelf.js'; import knexConfig from '../../../database/knexfile'; import schema from '../../../database/BaseSchema.js'; import DatabaseConnection from './databaseConnection'; class DatabaseUnitOfWork { constructor(config) { this.config = config; } async setUpAsync() { ...
'use strict'; const router = require('express').Router(); const JudgementService = require('../../models/services/judgement-service'); const judgementService = new JudgementService(); router.post('/judgement', function(req, res, next) { let newJudgement = { _createdBy: req.user._id, _studentId: re...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Report = mongoose.model('Report'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, user, r...
import { getFilenameFromDid, defaultCreatedPrepaidCardDID, } from '@cardstack/web-client/utils/test-factories'; import { nativeCurrencies } from '@cardstack/cardpay-sdk'; import config from '@cardstack/web-client/config/environment'; export default function () { this.namespace = 'api'; this.get('/exchange-rat...
// Import dependencies const webpack = require('webpack'); const path = require('path'); const NodeObjectHash = require('node-object-hash'); const ManifestPlugin = require('webpack-manifest-plugin'); const ChunkManifestPlugin = require('chunk-manifest-webpack-plugin'); const WebpackMd5Hash = require('webpack-md5-hash'...
'use strict'; var Group = require('./Group'); var _animations = [], _animationsLength = 0; function Animation(options) { this.data = options.data || function () { throw 'no data'; }(); this.then = 0; this.pausedTime = 0; this.duration = this.data.duration; this.timeRatio = this.d...
"use strict"; define("ace/mode/doc_comment_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;...
/*! * Connect - staticProvider * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed */ /** * Module dependencies. */ var fs = require('fs') , path = require('path') , join = path.join , basename = path.basename , normalize = path.normalize , utils = require('../utils') ...
var debug = require('debug')('permission'); /** * Returns a middleware that checks the permission in the user's session * @param permission * @returns (Function) A middleware that check the user's permission. */ module.exports = permission => (req, res, next) => { if (permission && req.user.permissions...
'use strict'; import React from 'react'; export class INLINECODE extends React.Component { render() { return <code>{ this.props.children }</code>; } } export default INLINECODE;
/** * {id: 1, name: 'Bean 1'} => 1 * null => null * * Evita excções undefined */ function id(bean){ return bean && bean.id } /** * [{id: 1, name: 'Bean 1'}, {id: 2, name: 'Bean 2'} => [1, 2] * null => null * * Evita exceções undefined */ function ids(beans){ return beans && beans.map(bean => bean.id...
/** * The Render Engine * A wooden crate toy * * @author: Brett Fattori (brettf@renderengine.com) * * @author: $Author: bfattori $ * @version: $Revision: 1396 $ * * Copyright (c) 2010 Brett Fattori (brettf@renderengine.com) * * Permission is hereby granted, free of charge, to any person obtainin...
//'use strict'; // //(function() { // // Locations Controller Spec // describe('Locations Controller Tests', function() { // // Initialize global variables // var LocationsController, // scope, // $httpBackend, // $stateParams, // $location; // // // The $resource service augments the response object with method...
'use strict'; var Type = require('./Type.js'); var Mixer = require('./Mixer.js'); var Callbacks = { Type: Type, mixInto: Mixer.mixInto }; module.exports = Callbacks;
(function () { 'use strict'; angular .module('core') .controller('HomeController', HomeController); HomeController.$inject = ['PagesService']; function HomeController(PagesService) { var vm = this; vm.events = PagesService.getEvents(); } }());
let fields = ['name']; let options = {keepHistory: 1000 * 60 * 5, localSearch: true}; ProductSearch = new SearchSource('products', fields, options); Template.products.helpers({ // getProducts: function() { // return ProductSearch.getData({ // transform: function(matchText, regExp) { // //return mat...
import { ADD_PROJECT, REMOVE_PROJECT, ADD_ISSUE, REMOVE_ISSUE, EDIT_ISSUE } from '../actions/types'; export default function projects(state = {}, action) { const newState = Object.assign({}, state); let locArr = []; let id = ''; if (action.pathname) { locArr = action.pathname.split('/'); id = locArr[...
import * as React from 'react'; import Link from 'next/link' import Head from '../component/Head'; import css from 'next/css' import Menu2 from '../component/Menu2'; const styles = { header: css({ display: 'flex', marginBottom: 20, marginTop: 150 }) } export default class App extends React.Component ...
class FunctionHelper { constructor() { this.regex = /^_exp:(.*)/; } /** * Returns whether or not the given string is a text expression * @param textExpression */ isTextExpression(textExpression) { return typeof textExpression === 'string' && this.regex.test(textExpressio...
var getstation = function (n, s) { var scale = Math.pow(10, Math.round(Math.log(n) / Math.log(10))); var step; if (n / scale < 1) { step = s ? .01 : .05; } else { step = s ? .05 : .1; } step = step * scale; n = Math.round(n / step) * step; return n; }; var trimCoord = mov...
const httpProxy = require('http-proxy'); const psl = require('psl'); const proxy = httpProxy.createProxyServer(); proxy.on('error', function(err, req, res) { res.writeHead(500, { 'Content-Type': 'text/plain' }); console.log(err); res.end(err); }); const subdomainNamespace = `deploys`; const subdomainRegex = ne...
// @flow import type { Program } from 'acorn'; import type MagicString from 'magic-string'; import { compose } from '../utils/compose'; import render from './render'; import staticName from './static-name'; import parseSource from './parse-source'; export type TransformResult = { map: Object; code: string; }; e...
require('babel-polyfill'); require('./gremlins-tests'); require('./Gremlin-tests'); require('./Mixins-tests'); require('./GremlinElement-tests');
const validator = require('validator') const Badge = require('./Badge') const logger = require('winston') const mongoose = require('mongoose') const Schema = mongoose.Schema // TODO: Add debug and logging let UserSchema = new Schema({ uid: { type: String, required: true, unique: true }, name: { ...
/* License: The MIT License (MIT) Author: Ezequiel Calderara Web: http://ironicnet.github.io/Vigilant/ Repository: https://github.com/ironicnet/Vigilant Version: 0.1.1 */ function Vigilant() { var self = this; self.activeReporter =null; self.reportOnlyActive = false; self.reporters = []; self.watchEvents = ...
(function () { 'use strict'; angular .module('webcastApp') .controller('LogoutController', LogoutController); LogoutController.$inject = ['$location', '$auth']; function LogoutController($location, $auth) { //if (!$auth.isAuthenticated()) { return; } $auth.logout() ...
var mongoose = require("mongoose"); var Schema = mongoose.Schema; var FoodSchema = new mongoose.Schema({ text: String, created_at: {type: Date, default: Date.now} }); FoodSchema.path('text').required(true, 'Text cannot be empty'); FoodSchema.path('text') .validate(function (v) { return v.length >= 1; }, 'Text ...
"use strict"; app.controller('thirdPartyEntryController', ['$scope', '$state', 'Security', function ($scope, $state, Security, $rootScope) { $scope.directiveScopeDict = {}; $scope.directiveCtrlDict = {}; $scope.thirdPartyID = $state.params.thirdPartyID; function Initialize(){ var entryForm = {}; ...
var koa = require('koa'), db = require('./db'), methods = require('./methods'), router = require('./router'); var app = koa(); app.use(db()); app.use(methods()); app.use(router()); app.listen(3000); console.log("Listening on port 3000");
import GofUtils from "./gof-utils"; import GofDb from "./gof-db"; import GofValidation from "./validation/validation"; import GofDbListeners from "./gof-db-listeners"; /** * geo on fire entry point */ export default class Gof { /** * * @param {string} name - Name for the Gof query. * @param {Firebase} ...
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as PostActions from '../../actions/post' import FindNewer from './FindNewer' import FindOlder from './FindOlder' import SingleArticle from './SingleArticle' import Config from '....
(function(window, factory) { if (typeof define === 'function' && define.amd) { define([], function() { return factory(); }); } else if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(); } else { (window.LocaleData || (...