code
stringlengths
2
1.05M
'use strict'; exports.foobar = 'yadan';
export default { isLoading: true, stream: null, streams: {}, ui: { isOtherChatActive: false, chatSize: localStorage ? Number(localStorage.getItem('chatSize')) || 400 : 400, }, self: { isLoggedIn: false, profile: { err: null, isFetching: false, data: null, }, }, user...
import config from './config' import * as data from './data' export default { name: "mk-app-stock-type-card-test", version: "1.0.0", description: "mk-app-stock-type-card-test", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), r...
var Element=(function(){ function Element(element){ this._construct(element); }; ClassUtil.extend(Element,EventDispatcher); ClassUtil.implement(Element,IElement); var prototype= { _element:null, _construct:function(element){ this._element = element; }, getElement:function(){ return this._...
System.register(['angular2/core', 'angular2/router', './classroom.service'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? tar...
$(document).ready(function(){ var isUeReady = false; //ueditor编辑器是否初始化完成 var $btn_publish = $('#btn_publish'); //按钮发布 var $btn_draft = $('#btn_draft'); //按钮暂存 var $btn_preview = $('#btn_preview'); //按钮预览 $btn_publish.attr('disabled','disabled'); $btn_draft.attr('disabled','disabled'...
"use strict"; const extend = require( 'extend' ); const util = require( 'util' ); class PluginTags { static onHandleTag( ev ) { ev.data.tag.forEach( function( item ) { if ( ( item.access === null ) && ( item.name[ item.name.length - 1 ] === '_' ) ) { item.access = 'private'; } } ); } }; module.exp...
module.exports = { path: 'centered', getComponent(nextState, cb) { require.ensure([], (require) => { cb(null, require('./components/Centered')); }); } };
(function(){ 'use strict'; var _ = require('lodash'); var PrivateMatch = function() { this.waitingText = null; this.dots = 0; this.nextDot = 0; }; PrivateMatch.prototype.create = function() { this.game.socketHandler.startPrivateMatch(); this.game.stage.backgroundColor = '#C8F7C5'; this.sendLinkText = ...
/** * This file includes the required ext-all js and css files based upon "theme" and "direction" * url parameters. It first searches for these parameters on the page url, and if they * are not found there, it looks for them on the script tag src query string. * For example, to include the neptune flavor of ext fr...
// flow-typed signature: 4c4d15d7be5e11edd59bb9e69070cf20 // flow-typed version: <<STUB>>/@babel/cli_v^7.12.10/flow_v0.143.1 /** * This is an autogenerated libdef stub for: * * '@babel/cli' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with t...
var searchData= [ ['macierz',['Macierz',['../class_macierz.html',1,'']]], ['macierz_2ecpp',['macierz.cpp',['../macierz_8cpp.html',1,'']]], ['macierz_2ehh',['macierz.hh',['../macierz_8hh.html',1,'']]], ['main',['main',['../main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4',1,'main.cpp']]], ['main_2ecpp',['main....
//Part of the DuskWolf engine //Licensed under the MIT license, see COPYING.txt for details "use strict"; load.provide("test", function() { /** This is a namespace that allows tests to be ran. * @since 0.0.20-alpha * @namespace * @alias test */ var test = {}; /** The currently running test package, should...
var starMadeAdminServices = angular.module('starMadeAdminServices', ['ngResource']); starMadeAdminServices.factory('Api', ['$resource', function($resource){ return $resource( '/app_dev.php/:resourceName/:entityId\.json?apikey=asdasdasd&limit=:limit&offset=:offset&term=:term&order=:order' , {} ...
var unit = require("deadunit/deadunit.browser") var ajax = require('../ajax') var testFileContents = require("raw!./testFile.txt") unit.test(function(t) { this.count(2) ajax('testFile.txt').then(function(response) { t.ok(response.text === testFileContents) }).done() ajax('nonExistantFile.txt'...
var mongodb = require('mongodb-core'); var each = require('each-series'); var oid = mongodb.BSON.ObjectID.createPk; var cmdkeys = { insert: 'nInserted', delete: 'nRemoved', update: 'nUpserted' }; var Bulk = (function () { function Bulk(colName, ordered, onserver, dbname) { this.colName = colName...
version https://git-lfs.github.com/spec/v1 oid sha256:ff4e4975ef403004f8fe8e59008db7ad47f54b10d84c72eb90e728d1ec9157ce size 94020
/*jslint browser: true, node: true */ /*global require, module, describe, it */ "use strict"; var assert = require("assert"); var fs = require('fs'); var nifti = require('../src/nifti.js'); var buf = fs.readFileSync('./tests/data/little.nii.gz'); var data = nifti.Utils.toArrayBuffer(buf); var nifti1 = null; descr...
// Get all subscriptions var config = require('../config'); var utils = require('../utils'); var collection = require('../collections/clients'); module.exports.handler = function(request, reply) { if (config.get('publicList')) { collection .list() .then(function(doc) { reply(doc); }) ...
'use strict'; // Use Application configuration module to register a new module ApplicationConfiguration.registerModule('followed');
const gulp = require('gulp'); const sass = require('gulp-sass'); const rename = require('gulp-rename'); const autoprefixer = require('gulp-autoprefixer'); // Cactu scss source const cactuUrl = './scss/**/*.scss'; const docUrl = './_sass/**/*.scss'; const sassOpts = { outputStyle: 'compressed', precison: 3, errL...
const moment = require('moment'); const util = require('../core/util'); const _ = require('lodash'); const log = require('../core/log'); const marketData = require('./coinfalcon-markets.json'); const CoinFalcon = require('coinfalcon'); var Trader = function(config) { _.bindAll(this); if (_.isObject(config)) { ...
let QuotesLambdaFunction = require('../obj/src/container/QuotesLambdaFunction').QuotesLambdaFunction; module.exports = new QuotesLambdaFunction().getHandler();
import GoCardless from './GoCardless'; module.exports = GoCardless;
import angular from 'angular'; import getUniqueName from './getUniqueName'; let dependencyMap = new Map(); let defaultModule = angular.module(getUniqueName(), []); export default class DependencyManager { static findImplementation(clazz) { return dependencyMap.get(clazz); } static getDefaultModuleName() { ...
require(['js/config'], function(){ require(['jquery'], function($){ function Walker() { var x, y; var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); x = canvas.width/2; y = canvas.height/2; this.display ...
/* ************************************************************** Copyright 2011 Zoovy, Inc. 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...
var PropTypes = require('prop-types'); var React = require('react'); var createReactClass = require('create-react-class'); var SetupMixin = require('./mixins/rangeFinderSetupMixin.js'); var MakerMixin = require('./mixins/componentMakerMixin.js'); var CalcMixin = require('./mixins/calculatedPropertyMixin.js'); var Sc...
$(document).ready(function() { test("Basic plugin tests", function() { ok($("a").prepare_links(), "Should immediately respond as a jQuery plugin"); }); test("Should open external links in new window.", function() { UnitTest.setup.sandbox(); UnitTest.setup.links([ {id : 'google', url : 'http://google.com'}...
var Surface = require('@src/traces/surface'); var Plotly = require('@lib/index'); var failTest = require('../assets/fail_test'); var createGraphDiv = require('../assets/create_graph_div'); var destroyGraphDiv = require('../assets/destroy_graph_div'); var Lib = require('@src/lib'); describe('Test surface', function()...
window.AvatarUploaderModel = new qq.FineUploader({ element: $('#manual-fine-uploader')[0], request: { endpoint: '../logged/api/account/1/photos/avatar', customHeaders: { Accept: 'application/json' } }, autoUpload: false, validation: { allowedExtensions: [...
'use strict'; var config = require('../config'); var SSHConfig = require('../lib/ssh-config-reader'); var sqliteDb = require('../db'); var JsonStore = require('../lib/json-store'); var dbRoutes = require('./database'); var excludedTables = new JsonStore('excluded-tables').getAll(); sqliteDb.connect(); function Ro...
'use strict'; tripExchange.controller('SignUpCtrl', ['$scope', '$location', 'auth', 'notifier', function SignUpCtrl($scope, $location, auth, notifier) { $scope.emailPattern = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-...
// install : cordova plugin add cordova-plugin-device // link : https://github.com/apache/cordova-plugin-device //angular.module('ngCordova.plugins.device', []) angular.module('starter.services').factory('$cordovaDevice', [ function() { return { /** * Returns the whole device object. * * @...
/** * Simulator process * Pokemon Showdown - http://pokemonshowdown.com/ * * This file is where the battle simulation itself happens. * * The most important part of the simulation happens in runEvent - * see that function's definition for details. * * @license MIT license */ //require('sugar'); //global.Con...
import * as EditorChanges from '../change/editor'; const EditorController = { [EditorChanges.SELECT_ENTITY]: (event, store) => { store.state.globals.editor.selectedEntity = event.data.entity; } }; export default EditorController;
// @flow import SimpleChanMsgPlugin from 'plugins/SimpleChanMsgPlugin'; import Norbert from 'lib/Norbert'; import template from 'lib/template'; export function stripTimestamps(input:string) { return input.replace(/.*?([^\w\s]?[+%@&~]?[a-z])/i, '$1').trim(); } export default class QuotePlugin extends SimpleChanMs...
var conversationController = require(global.__main_root + 'controllers/api/v1/ConversationController.js'); var conversationRouteValidator = require(global.__main_root + 'validators/api/v1/ConversationRouteValidator.js'); var createNewConversation = { path: '/api/v1/conversations', method: 'POST', config: {...
(function() { var isBrowser = (typeof window !== 'undefined'); //TODO: performance optimization -- merge geometries. http://learningthreejs.com/blog/2011/10/05/performance-merging-geometry/ function _ObstacleBoxFactory(THREE) { var textureLoader = new THREE.TextureLoader(); var obstacleBoxTexture1 = (isBrowser)...
var aCenters = []; function generateCenters(iLvl, mostleft, center) { aCenters.push(center); if (iLvl !== 9) { if (mostleft) { //gen up center if (center.y % 2) { //odd generateCenters(iLvl+1, true, { x: center.x, y: center.y - 3 }); } else { gen...
(function () { 'use strict'; angular .module('money.login') .run(webRun); webRun.$inject = ['routerHelper']; /* @ngInject */ function webRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [{ state: 'logi...
var CryptoJS = require('crypto-js'); var secretKey = 'bgvyzdsv'; var mine = function(secretKey) { var num = 0; var hash = CryptoJS.MD5(secretKey + num).toString(CryptoJS.enc.hex); while (hash.slice(0,6) !== '000000') { num++; hash = CryptoJS.MD5(secretKey + num).toString(CryptoJS.enc.hex); } consol...
const altForEachImplReplacement = require('./common-replacements').altForEachImplReplacement , altForEachUseReplacement = require('./common-replacements').altForEachUseReplacement , altIndexOfImplReplacement = require('./common-replacements').altIndexOfImplReplacement , altIndexOfUseReplacement = require(...
import React from 'react' import { Route } from 'react-router' import BaseLayout from 'layouts/BaseLayout' import App from 'containers' import { NotFound } from 'components/common' export default (<Route> <Route component={BaseLayout}> <Route path='/' component={App.Home} /> </Route> <Route path='*' compone...
$(document).ready(function(){ try { var SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition || window.oSpeechRecognition || window.msSpeechRecognition; ...
// Generated by CoffeeScript 1.10.0 (function() { var median; median = function() {}; }).call(this); //# sourceMappingURL=median.js.map
import _reduce from 'fast.js/array/reduce'; import invariant from 'invariant'; export const reduce = { method: function(reduceFn, initial) { invariant( typeof reduceFn === 'function', 'reduce(...): reducer argument must be a function' ); this._addPipeline('reduce', reduceFn, initial); r...
module.exports = require('lodash/array/first');
/* The MIT License Copyright (c) 2012 Olaf Horstmann, indiegamr.com 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...
/** * Watches for changes to the quantity of items in the shopping cart, to update * cart count indicators on the storefront. */ define(['modules/jquery-mozu', 'modules/api'], function ($, api) { $(document).ready(function () { var $cartCount = $('[data-mz-role="cartmonitor"]'), timeout; ...
var app = angular.module('yellowpages', ['ngRoute', 'ngCookies']).config(config); config.$inject = ['$routeProvider', '$locationProvider']; function config($routeProvider, $locationProvider){ $routeProvider.when('/', { controller: 'UpdateCtrl', templateUrl:'/login' }); }
import React from 'react'; const Hello = (props) => <div>Hello, {props.name}</div>; Hello.propTypes = { name: React.PropTypes.string } Hello.defaultProps = { name: 'John Doe' } export default Hello;
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. /** * Interface to wrap the native File interface. * * This interface is necessary for creating zero-length (empty) files, * something the Filesystem API allows you to d...
const { GraphQLInputObjectType, GraphQLNonNull, GraphQLString } = require('graphql'); const ProfileEnum = require('../enums/ProfileEnum'); const AddProfileType = new GraphQLInputObjectType({ name: 'AddProfile', fields: () => ({ id: { type: GraphQLString }, type: { type: new GraphQL...
window.uploadFile = (function() { var busy = false; return function(file) { var defer = jQuery.Deferred(); if(busy) { defer.reject(); return defer.promise(); } busy = true; $("#progress-bar").removeClass("hidden"); var formData = new FormData(); formData.append('file', file); var xhr = new ...
$ = $.noConflict(); $(document).ready(function() { $("#signupForm").submit(function(event) { event.preventDefault(); }); // hide the span elements which show errors (initially) $("#invEmail").hide(); $("#existEmail").hide(); $("#succSignUp").hide(); $("#btnSignUp").click(function() {...
var searchData= [ ['faq_640',['FAQ',['../md_docs_md_faq.html',1,'']]] ];
#!/usr/bin/env node require('../lib/d2.stat');
describe('Angular-Validation Full Tests:', function () { // global variables var requiredErrorMessages = { 'en': 'Field is required.', 'es': 'El campo es requerido.', 'fr': 'Le champ est requis.', 'no': 'Feltet er påkrevd.', 'ru': 'Поле обязательно для заполнения.' }; var languages = ['en',...
// All symbols in the `Armenian` script as per Unicode v4.1.0: [ '\u0531', '\u0532', '\u0533', '\u0534', '\u0535', '\u0536', '\u0537', '\u0538', '\u0539', '\u053A', '\u053B', '\u053C', '\u053D', '\u053E', '\u053F', '\u0540', '\u0541', '\u0542', '\u0543', '\u0544', '\u0545', '\u0546', '\u0547', '...
import { typeOf } from '@ember/utils'; import { toInternal, isInternal, isInternalObject, isInternalArray } from 'documents/util/internal'; import { empty } from './-base'; const createDeserializeMixin = Class => class DeserializeMixin extends Class { _createInternalObject(parent, type) { return this....
import _ from "lodash"; import AvroElement from "../avro-objects/avro-element"; import AvroNode from "../avro-objects/avro-node"; import avroTypes from "../constants/avro-types"; import {isArray, isDefined, isObject} from "../utilities"; export default class Avroizer { constructor(avroSchema, visitors) { t...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
exports.catchErrors = (fn) => { return function(req, res, next) { return fn(req, res, next).catch(next) } } exports.notFound = (req, res, next) => { const err = new Error('Not Found') err.status = 404 next(err) } exports.flashValidationErrors = (err, req, res, next) => { if (!err.errors) return next(e...
'use strict'; var postsPolicy = require('../policies/posts.server.policy'), comments = require('../controllers/comments.server.controller'), ideas = require('../controllers/ideas.server.controller'), photos = require('../controllers/photos.server.controller'), posts = require('../controllers/posts.serv...
// jquery, react and parrot2 const $ = require('jquery'); const React = require('react'); const ReactDOM = require('react-dom'); const {Parrot} = require('../../../../node_modules/nest-parrot2/dist/nest-parrot2'); const {Model, Layout, Envs, NForm, NComponent, NPanel, NTab} = Parrot; // electron related const electron...
var config = {filters:[]}
const { readFile } = require('fs'); const xml2js = require('xml2js'); process.once('message', filename => { readFile(filename, (error, xmlString) => { if (error) { process.send({ error, result: null }); return; } const parser = new xml2js.Parser(); parser.parseString(xmlString, (error, re...
//////////////////////////////////////////////////////////////////////////////// // Directory Selector Control // // Tree control designed specifically to display directories //////////////////////////////////////////////////////////////////////////////// /*global jQuery */ var app = app || {}; var alldirs = false; ap...
angular.module('myApp').controller('EditCtrl', ['$scope', '$stateParams', function($scope, $stateParams){ $scope.listRecieved.then(function(){ $scope.todo = _.findWhere( $scope.todos, { id: parseInt($stateParams.id) } ); }) }]);
'use strict'; const hasBlock = require('../../utils/hasBlock'); const isStandardSyntaxAtRule = require('../../utils/isStandardSyntaxAtRule'); const nextNonCommentNode = require('../../utils/nextNonCommentNode'); const rawNodeString = require('../../utils/rawNodeString'); const report = require('../../utils/report'); c...
"use strict"; var connect = require("connect"), logger = connect.logger(":method :url :status - :response-time ms"); var config = require("../../../shared/config"), paths = config.paths, env = require("../../../shared/env.js"); var Bundler = require("../../../core/bundle/Bundler.class.js"), parseURL ...
(function (app) { var helper = app('helper'); var pushToWatchedArray = helper('pushToWatchedArray'); var dom = app('dom'); var UiPopupClass = app('bb-co')('ui-popup-menu', 'ui-popup', { tpl: 'scripts/ui-controllers/components/ui-controls/menus/ui-popup-menu', overflow: false, in...
"use strict"; var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; /** * * * Created by Adm...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Bubbles from '../../components/Bubbles/Bubbles.container'; import env from '../../.env'; import './Hub.css'; class Hub extends Component { componentDidMount() { this.props.listenData(); } render() { return ([ <d...
import React from 'react' import { View } from 'react-vr' import Asteroid01 from './Asteroid01'; import Asteroid02 from './Asteroid02'; import Asteroid03 from './Asteroid03'; import Earth from './Earth'; import Moon from './Moon'; export default class World extends React.Component { render() { return ( <Vi...
import {isIdentifierStart, isIdentifierChar} from "./identifier.js" import {Parser} from "./state.js" import UNICODE_PROPERTY_VALUES from "./unicode-property-data.js" import {has} from "./util.js" const pp = Parser.prototype export class RegExpValidationState { constructor(parser) { this.parser = parser thi...
import Vue from 'vue'; import Layout from 'component/layout/html'; Vue.component(Layout.name, Layout);
// monkey patching String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; }; var libsw = new LibSpaceWalk(); var storedValues = {}; var colors = { orange: '#e89f49', lime: '#b6ce4e', turquise: '#5dd1a4', blue: '#3fc0c9', lightBlue: '#C1DFE1', laven...
import BatchDownloadController, { buildDownloadOptionsIndex } from './base'; /** * Batch-download controller for downloads in individual sections within a file table of the file * gallery. It only offers one download options. * @param {object} dataset Contains dataset with files to download * @param {object} quer...
function loadfs() { //check if browser supports file api and filereader features if (window.File && window.FileReader && window.FileList && window.Blob) { //this is not completely neccesary, just a nice function I found to make the //file size format friendlier //http://stackoverflow.com/questions/10420352/co...
var internApplication = (function(){ var currentLat, currentLong, responseData, currentRestaurant, currentRestaurantNum, initialSearchFinished; var options = {}; // set options based on filters chosen by user var setOptions = function(){ var radiusValu...
//Change 'test123' below and in python interface to a more secure password var Sequelize = require('sequelize'); var sequelize = new Sequelize('adna', 'postgres', 'test123', { dialect: 'postgres' }); module.exports = sequelize;
module.exports = function (grunt) { var js_files = ['Gruntfile.js', 'chance.js', 'test/*.js']; grunt.initConfig({ 'js-test': { options: { coverage: true, coverageTool: 'istanbul', coverageFormat: 'lcov', identifier: 'chance-cov...
export default stats => (req, res, next) => res.send('Hello Server');
 /* var randomBetween = function (from, to) { return Math.floor(Math.random() * (to - from + 1) + from); }; */ var createUUID= (function (uuidRegEx, uuidReplacer) { return function () { return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(uuidRegEx, uui...
define(function(undefined){ /** * Represents a key on the keyboard. An enum of common keys can be found at {@link thruster.input.Keys}. * @class * @memberof thruster.input * @param {String} key The W3C key value for this key. See {@link http://www.w3.org/TR/DOM-Level-3-Events-key/}. * @param {Number} keyCo...
/// <reference path="./global.d.ts" /> // // @ts-check /** * Determine the prize of the pizza given the pizza and optional extras * * @param {Pizza} pizza name of the pizza to be made * @param {Extra[]} extras list of extras * * @returns {number} the price of the pizza */ export function pizzaPrice(pizza, ...ex...
/** @jsx jsx */ import { Editor } from 'slate' import { jsx } from '../../..' export const run = editor => { Editor.liftNodes(editor, { at: [0, 1] }) } export const input = ( <editor> <block> <block>one</block> <block>two</block> <block>three</block> </block> </editor> ) export const...
/** * Provides a set of classes and methods for handling Neuroevolution and * genetic algorithms. * * @param {options} An object of options for Neuroevolution. */ var Neuroevolution = function(options){ var self = this; // reference to the top scope of this module // Declaration of module parameters (options)...
Dagaz.Controller.persistense = "none"; Dagaz.Model.NO_SOUND = true; ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR: 9, SET_A...
var VNode = require('../vnode/vnode.js'); var VText = require('../vnode/vtext.js'); var isVNode = require('../vnode/is-vnode'); var isVText = require('../vnode/is-vtext'); var isWidget = require('../vnode/is-widget'); var isHook = require('../vnode/is-vhook'); var isVThunk = require('../vnode/is-thunk'); var parseTag ...
/* ----------------------------------------------------------------------------- Kebab Project 1.5.x (Kebab Reloaded) http://kebab-project.com Copyright (c) 2010-2011 lab2023 - internet technologies TURKEY Inc. http://www.lab2023.com * LICENSE * * This source file is subject to the Dual Licensing Mode...
// // SmoothScroll for websites v1.4.0 (Balazs Galambosi) // http://www.smoothscroll.net/ // // Licensed under the terms of the MIT license. // // You may use it in your theme if you credit me. // It is also free to use on any individual website. // // Exception: // The only restriction is to not publish any // exte...
var assert = require('assert'); var NotificationCenter = require('notifications/notificationcenter'); var Notification = require('notifications/notification'); /* Sender */ function Sender(nc) { this.notificationCenter = nc; }; Sender.prototype.postNotification = function(name, info) { this.notificationCenter.po...
const BloomFilter = require('@mixmaxhq/bloom-filter'); /** * `sha.js` is an isomorphic hashing library that implements its hashing functions synchronously. * This is important for our usage of it, as we wish to support this library without resorting to * browser-only or node-only APIs. * * We could use `create...
var express = require('express') , passport = require('passport') , util = require('util') , FamilySearchStrategy = require('passport-familysearch').LegacyStrategy; var FAMILYSEARCH_DEVELOPER_KEY = "insert_familysearch_developer_key_here"; // Passport session setup. // To support persistent login sessions, P...
//index.js const AV = require('../../libs/av-weapp-min.js') var app = getApp() Page({ data: { motto: 'Hello World', userInfo: {} }, //事件处理函数 bindViewTap: function() { wx.navigateTo({ url: '../logs/logs' }) }, onLoad: function() { console.log('onLoad') this.saveUser() }, saveUser() { var that =...
'use strict'; module.exports = ['$q', '$log', '$http', 'authService', chapterService]; function chapterService($q, $log, $http, authService) { $log.debug('chapterService()'); let service = {}; service.createChapter = (manuscriptData, chapterData) => { $log.debug('chapterService.createChapter()'); ret...
'use strict' let cli = require('heroku-cli-util') let co = require('co') let emptyFormationErr = (app) => { return new Error(`No process types on ${cli.color.app(app)}. Upload a Procfile to add process types. https://devcenter.heroku.com/articles/procfile`) } function * run (context, heroku) { const compact = re...