code
stringlengths
2
1.05M
/* * grunt-tankipas * https://github.com/Leny/grunt-tankipas * * Copyright (c) 2014 Leny * Licensed under the MIT license. */ "use strict"; var chalk, error, spinner, tankipas; tankipas = require("tankipas"); chalk = require("chalk"); error = chalk.bold.red; (spinner = require("simple-spinner")).change_seque...
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/karma-adapter frameworks: ['jasmine'], files: [ 'node_modules/jq...
// test: indent_only const foo = 1 + 2 ; const foo = [1, 2]; const foo = [ 1, 2]; const foo = {a, b}; const foo = { a, b}; someMethod(foo, [ 0, 1, 2,], bar); someMethod( foo, [0, 1, 2,], bar); someMethod(foo, [ 0, 1, 2, ], bar); someMethod( f...
/* * Snapshot multiple pages using arrays. * * Use an array to snapshot specific urls. * Use per-page selectors. * Use per-page output paths. * Remove all script tags from output. * Use javascript arrays. */ var path = require("path"); var util = require("util"); var assert = require("assert"); var htmlSnapsho...
/*! * Office for Experience Design v1.0.0 (http://ing-experience-design.com/) * Copyright 2016 ING, Office for Experience Design * Licensed under MIT (https://spdx.org/licenses/MIT) */
var async = require('async'), fs = require('graceful-fs'), path = require('path'), colors = require('colors'), swig = require('swig'), spawn = require('child_process').spawn, util = require('../../util'), file = util.file2, commitMessage = require('./util').commitMessage; // http://git-scm.com/docs/git...
// config.pro.spec.js import config from '../../../src/constants/config.pro' describe('Config PRO constants', function () { test('exist', () => { expect(config).toMatchSnapshot() }) })
const DrawCard = require('../../drawcard.js'); class VaesTolorro extends DrawCard { setupCardAbilities(ability) { this.interrupt({ when: { onCharacterKilled: event => event.card.getPower() >= 1 }, cost: ability.costs.kneelSelf(), handler: cont...
ga(function(){var e,t=ga.getAll();t&&t.length&&(e=t[0].get("clientId"),document.getElementById("clid").value=e)});
//~ name a361 alert(a361); //~ component a362.js
const fs = require("fs"); module.exports = function (config) { var mod = require("./mod.js")(config); config[mod.name] = mod; function tryPatchComponent(componentName) { if (config[componentName] && fs.existsSync(`${__dirname}/${componentName}.js`)) { require(`./${componentName}`)(conf...
/*jshint quotmark: false*/ 'use strict'; var Blueprint = require('../models/blueprint'); var Task = require('../models/task'); var parseOptions = require('../utilities/parse-options'); var merge = require('lodash-node/modern/objects/merge'); module.exports = Task.extend({ run: function(options) {...
angular.module('app') .controller('ProgressController', ['$scope', function ($scope) { $scope.percent = 45; $scope.setPercent = function(p) { $scope.percent = p; } }])
containerRemoveSchemas = new SimpleSchema({ force: { type: Boolean, optional:true, label: "Force" }, link: { type: Boolean, optional:true, label: "Link" }, v: { type: Boolean, optional:true, label: "Volumes" } ,id: { type: String, autoform: { type: 'hidde...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Picture = mongoose.model('Picture'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credenti...
app.controller('DashboardController',function($scope,$http,Article){ //Pagination configuration $scope.maxSize = 5; $scope.numPerPage = 5; $scope.currentPage = '1'; $scope.isEdit = false; $scope.isError= false; $scope.newarticle = {}; // Edit/New panel model $scope.curArticle = {}; /...
/* google-paper.js */ 'use strict'; navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; var RAD_2_DEG = 180/Math.PI; function moving_average(period) { var nums = []; return function(num) { nums.push(num); if (nums.length > period) nums.splic...
'use strict'; /* jasmine specs for services go here */ describe('base', function() { beforeEach(function(){ module('d3-uml-modeler.base'); module('d3-uml-modeler.uml-abstract-factory'); module('d3-uml-modeler.constants'); module('d3-uml-modeler.notifications'); }); describe('BaseModelElement', function(...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable global-require */ // The top-level (par...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.utils = exports.default = void 0; var reducers = _interopRequireWildcard(require("./reducers")); var _utils = _interopRequireWildcard(require("./utils")); exports.utils = _utils; function _getRequireWildcardCache() { if (typeof ...
/////////////////////////////////////////////////////////////////////////////// // // Effect // /////////////////////////////////////////////////////////////////////////////// //// IMPORTS ////////////////////////////////////////////////////////////////// import { toJs } from 'mori'; import diff from 'virtual-dom/dif...
if (typeof global === 'undefined') { global = window; } else { global.XRegExp = require('../../xregexp-all'); } // Ensure that all opt-in features are disabled when each spec starts global.disableOptInFeatures = function() { XRegExp.uninstall('namespacing astral'); }; // Property name used for extended re...
'use strict'; let datafire = require('datafire'); let openapi = require('./openapi.json'); let aws = require('aws-sdk'); const INTEGRATION_ID = 'amazonaws_data_jobs_iot'; const SDK_ID = 'IoTJobsDataPlane'; let integ = module.exports = new datafire.Integration({ id: INTEGRATION_ID, title: openapi.info.title, de...
'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } var _jquery = require('...
var five = require("johnny-five"), board = new five.Board(); board.on("ready", function() { var led = new five.Led(12); var rgb = new five.Led.RGB([6, 5, 3]); var index = 0; this.loop(10, function() { // led.toggle(); if (index === 16777215) { index = 0; } rgb.color(index.toSt...
var mysql = require('mysql'); var bcrypt = require('bcryptjs'); var connection = mysql.createConnection({ host: process.env.FOLIO_HOST, user: process.env.FOLIO_USER, database: process.env.FOLIO_DATABASE, password: process.env.FOLIO_PASSWORD }); console.log("[*] Database connection open") console.log("[*] Resettin...
import React from 'react' import PropTypes from 'prop-types' import { MarkerCanvasProvider } from './MarkerCanvasContext' import TimelineMarkersRenderer from './TimelineMarkersRenderer' import { TimelineStateConsumer } from '../timeline/TimelineStateContext' // expand to fill entire parent container (ScrollElement) co...
const mongoose = require('mongoose') const Schema = mongoose.Schema let AgencySchema = new Schema({ }) module.exports = mongoose.model('Agency', AgencySchema)
const mix = require('laravel-mix'); mix .js('resources/assets/app.js', 'public/js') .extract(['vue', 'lodash']) ;
window.test = 1;
const express = require('express'), handler = require('../handlers/sitemap'), requestHelper = require('../helpers/request-helper'), router = express.Router(); router.get('/', requestHelper.cache(), (req, res, next) => { requestHelper.initRouter({ req: req, res: res, handler: handler, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TooltipDelay; (function (TooltipDelay) { TooltipDelay[TooltipDelay["zero"] = 0] = "zero"; TooltipDelay[TooltipDelay["medium"] = 1] = "medium"; })(TooltipDelay = exports.TooltipDelay || (exports.TooltipDelay = {})); //# sourceMappi...
require("./71.js"); require("./143.js"); require("./286.js"); require("./571.js"); module.exports = 572;
var joi = require('joi'); var _ = require('lodash'); module.exports = function(router, db) { // This is our "class" that accesses/modifies notes in the db var NoteService = require('../lib/db-notes') var noteService = new NoteService(db); // Joi is a wonderful library that takes strings and converts them into th...
'use strict'; var twoSum = require('../src/two-sum/naive'); describe('twoSum naive', function () { it('should return undefined when called on an empty array', function () { expect(twoSum([], 1)).toBe(undefined); }); it('should return correct result when it exists in sorted lists', function () { expect(t...
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/svg-icons/image/photo-size-select-actual": require('material-ui/svg-icons/image/photo-size-select-actual') } }, name: "ImagePhotoSizeSelectActual", ports: { input: {}, ...
import _ from 'lodash/fp' export const TYPES = { ADDON: 'addon', COLLECTION: 'collection', ELEMENT: 'element', VIEW: 'view', MODULE: 'module', } const TYPE_VALUES = _.values(TYPES) /** * Determine if an object qualifies as a META object. * It must have the required keys and valid values. * @private * @...
/** * DevExtreme (ui/scroll_view/ui.scroll_view.js) * Version: 16.2.6 * Build date: Tue Mar 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var $ = require("jquery"), devices = require(...
var Backbone = require('backbone'), _ = require('underscore'); global.App = {}; App.Task = Backbone.Model.extend({ url : 'http://localhost:9292/tasks/' + this.get('id'), defaults : { title: 'Untitled Task 1', done : false } }); App.TaskCollection = Backbone.collection.extend({ mod...
var model = require(__dirname + '/../models/model.js'); var controller = function() {}; //create new user function create(id) { var newUser = new model({ id: id, currentCowntt: 0, apiCallsMade: 0 }); return newUser; } function getUser(id, cb) { model.findOne({ //find by unique id id: id }, ...
import React, {PropTypes, Component} from 'react'; import moment from 'moment'; import StyleSheet from 'styles/agenda.styl'; export default class AgendaChart extends Component { static propTypes = { items: PropTypes.array, currentDate: PropTypes.number, roomName: PropTypes.string } render() { con...
import { tshirtImageVersions, imageVersionProps } from './fragments' export default ` ${imageVersionProps} ${tshirtImageVersions} { categoryNav { id name slug level tileImage { ...tshirtImageVersions } } } `
/** * Created with JetBrains WebStorm. * User: yuzhechang * Date: 13-9-24 * Time: 下午3:47 * To change this template use File | Settings | File Templates. */ (function($) { var ngmod = angular.module("framework.controllers", ["framework.serviceService"]); ngmod.controller("pageCtrl",function($scope,$rootSc...
/** * This animation class is a mixin. * * Ext.util.Animate provides an API for the creation of animated transitions of properties and styles. * This class is used as a mixin and currently applied to {@link Ext.dom.Element}, {@link Ext.CompositeElement}, * {@link Ext.draw.sprite.Sprite}, {@link Ext.draw.sprite.Com...
/** * Created by Dennis on 08/11/16. */ /* * action types */ export const KNOWLEDGEBASE_CHANGE = 'KNOWLEDGEBASE_CHANGE' /* * other constants */ /* * action creators */ export function setKnowledgebase(k){ return function (dispatch) { dispatch({type: KNOWLEDGEBASE_CHANGE, knowledgebase: k}); } }
import Component from '@ember/component'; import layout from '../templates/components/slds-dropdown-item'; export default Component.extend({ layout, tagName: '', clicked: null, actions: { clicked(handler, next) { if (handler) { handler(next); } } } });
/** * Internationalization / Localization Settings * (sails.config.i18n) * * If your app will touch people from all over the world, i18n (or internationalization) * may be an important part of your international strategy. * * * For more information, check out: * http://links.sailsjs.org/docs/config/i18n */ m...
var searchData= [ ['m_5fcontent',['m_content',['../class_message.html#a93ebdb6d1f8da485353a83bf72b6eeb7',1,'Message']]], ['m_5fdisplay_5fsize',['m_display_size',['../class_thread_list.html#a40884e201bc524b54e2f0bea7b867f68',1,'ThreadList']]], ['m_5fhead',['m_head',['../class_message.html#a96e95c41fb7e3ce7b6306737...
import Setting from '../models/setting'; import KhongDau from 'khong-dau'; export function getSettings(req, res) { Setting.find({ disable: false }).exec((err, settings) => { if(err) { res.json({ settings: [] }); } else { res.json({ settings }); } }) }
/** * @fileOverview first_run.js shows the necessary navigation and * design elements to be integrated into the privly-applications * bundle. */ /** * Initialize the applications by showing and hiding the proper * elements. */ function init() { // Set the nav bar to the proper domain privlyNetworkService.i...
require("./46.js"); require("./93.js"); require("./186.js"); require("./372.js"); module.exports = 373;
var doc = require('dynamodb-doc'); var dynamodb = new doc.DynamoDB(); exports.handler = function(event, context) { console.log(JSON.stringify(event, null, ' ')); var bname = event.name.replace(/\W/g, ''); bname = bname.charAt(0).toUpperCase() + bname.slice(1); dynamodb.updateItem({ "...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const Inte...
'use strict'; // Author: ThemeREX.com // user-interface-buttons.html scripts // (function($) { "use strict"; // Init Theme Core Core.init(); // Init Demo JS Demo.init(); // Init Ladda Plugin Ladda.bind('.ladda-button', { timeout: 2000 }); // Simula...
'use strict'; // Teams controller angular.module('teams').controller('TeamsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Teams', 'Players', '$filter', function($scope, $stateParams, $location, Authentication, Teams, Players, $filter) { $scope.authentication = Authentication; // Create n...
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ /* eslint no-console: ["error", { allow: ["log"] }] */ const gulp = require('gulp'); const modifyFile = require('gulp-modify-file'); const path = require('path'); const rollup = require('rollup'); const buble = require('rollup-plugin-b...
import {expect} from 'chai'; import {camel_case} from '../src'; describe('CamelCase', () => { it('should be exists.', () => { expect(camel_case).to.be.exists; }); it('should convert helloThere to HelloThere.', () => { expect(camel_case('helloThere')).to.be.equals('HelloThere'); })...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _base = require('./base'); var _base2 = _interopRequireDefault(_base); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var config = { appEnv: 'test' // don't remove the appEnv proper...
import React from 'react' import ColorWheel from './ColorWheel.jsx' React.render(<ColorWheel title='ColorWheel' />, document.querySelector('#color-wheel'))
const uAPI = require('../../index'); const config = require('../../test/testconfig'); const AirService = uAPI.createAirService( { auth: config, debug: 2, production: false, } ); const AirServiceQuiet = uAPI.createAirService( { auth: config, production: false, } ); const requestPTC = 'ADT';...
var objc = require('../') objc.dlopen('/System/Library/Frameworks/AppKit.framework/AppKit'); NSApplication = objc.objc_getClass('NSApplication'); console.log(NSApplication); var sharedApplication = objc.sel_registerName('sharedApplication'); var app = objc.objc_msgSend(NSApplication, sharedApplication); console.log(...
/* * Elfenben - Javascript using tree syntax! This is the compiler written in javascipt * */ var version = "1.0.16", banner = "// Generated by Elfenben v" + version + "\n", isWhitespace = /\s/, isFunction = /^function\b/, validName = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, noReturn = /^var\b|^set\b|^throw\...
/** * Created by Dennis Schwartz on 16/12/15. */ var THREE = require('three'); var TrackballControls = require('three.trackball'); var OrthographicTrackballControls = require('three.orthographictrackball'); var Layouts = require('./layouts'); var Fixed = Layouts.connectedMultilayer; var ForceDirectedLayered = Layout...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({zoom:"P\u0159ibl\u00ed\u017eit na",next:"Dal\u0161\u00ed prvek",previous:"P\u0159edchoz\u00ed prvek",close:"Zav\u0159\u00edt",dock:"Ukotvit",undock:"Zru\u01...
const minimatch = require( "minimatch" ); const webpack = require( "webpack" ); const _ = require( "lodash" ); module.exports = function( options ) { function isMatchingModule( mod ) { return mod.resource && _.some( options.paths, path => minimatch( mod.resource, path ) ); } return new webpack.optimize.CommonsCh...
// Private array of chars to use var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); var ID = {}; ID.uuid = function (len, radix) { var chars = CHARS, uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | ...
// ==UserScript== // @name mineAI // @namespace minesAI // @include http://minesweeperonline.com/#beginner-night // @version 1 // @required http://localhost:8000/convnetjs.js // @grant none // ==/UserScript== // Load the library. var D = document; var appTarg = D.getElementsByTa...
var test = require('tst') var assert = require('assert') var noise = require('..') test('white noise', () => { assert(typeof noise.white() === 'function') }) test('pink noise', () => { assert(typeof noise.pink() === 'function') }) test('brown noise', () => { assert(typeof noise.pink() === 'function') })
define(function () { 'use strict'; ({ get foo () { console.log( 'effect' ); return {}; } }).foo.bar; ({ get foo () { return {}; } }).foo.bar.baz; ({ get foo () { console.log( 'effect' ); return () => {}; } }).foo(); ({ get foo () { return () => console.log( 'effect' ); } }).fo...
import {module, inject, createRootFactory} from '../mocks'; describe('solPopmenu directive', function () { let $compile; let $rootScope; let createRoot; let rootEl; beforeEach(module('karma.templates')); beforeEach(module('ui-kit')); beforeEach(inject((_$compile_, _$rootScope_) => { ...
import React from 'react' import Button from 'components/Button' import Flex from 'components/Flex' import { Explanation, TextStep, Buttons } from '../styles' import explanation from 'images/bearing-explanation.svg' export class Step extends React.Component { render () { return ( <TextStep> <div...
export { default } from './ElectronOriginalWordmark'
'use-strict'; var hours = ['6:00am', '7:00am', '8:00am', '9:00am', '10:00am', '11:00am', '12:00pm', '1:00pm', '2:00pm', '3:00pm', '4:00pm', '5:00pm', '6:00pm', '7:00pm']; var allLocations = []; var theTable = document.getElementById('pike'); var el = document.getElementById('moreStores'); // var hourlyTotals = []; //...
var express = require('express'); var router = express.Router(); // Play a game from the DB router.get('/games', function (req, res) { res.render('games', data); }); module.exports = router;
import React from 'react'; import ReactTouchPosition from '../../../dist/ReactTouchPosition'; import TouchPositionLabel from './TouchPositionLabel'; import OnPositionChangedLabel from './OnPositionChangedLabel'; import InstructionsLabel from './InstructionsLabel'; export default class extends React.Component { c...
/** * React Starter Kit for Firebase * https://github.com/kriasoft/react-firebase-starter * Copyright (c) 2015-present Kriasoft | MIT License */ import { graphql } from 'graphql'; import { Environment, Network, RecordSource, Store } from 'relay-runtime'; import schema from './schema'; import { Context } from './c...
import { Feature } from 'core/feature'; import * as toolkitHelper from 'helpers/toolkit'; export class TargetBalanceWarning extends Feature { constructor() { super(); } shouldInvoke() { return toolkitHelper.getCurrentRouteName().indexOf('budget') !== -1; } invoke() { $('.budget-table-row.is-sub...
angular.module('kindly.requests').directive('request', function() { return { restrict: 'E', replace: true, scope: { request: '=' }, controller: function($scope) { $scope.is = function(medium) { return $scope.request.medium === medium; }; }, templateUrl: 'requests/...
/** * @license Copyright (c) 2013, Viet Trinh All Rights Reserved. * Available via MIT license. */ /** * A card entity. */ define([ 'framework/entity/base_entity' ], function(BaseEntity) { /** * Constructor. * @param rawObject (optional) * The raw object to create the entity with. */ var Card = funct...
import Ember from 'ember'; import ObjectProxyMixin from '../mixins/object'; export default Ember.ObjectProxy.extend(ObjectProxyMixin, { _storageType: 'session' });
class Auth { isAuthenticate () { return this.getToken() !== null } setToken (token) { window.localStorage.setItem('access_token', token) } getToken () { return window.localStorage.getItem('access_token') } removeToken () { window.localStorage.removeItem('access_token') } } export def...
'use strict' // import Device from './Device' let Device = require('./Device').Device module.exports = { Device: Device }
(function (window, $, _, Concrete) { 'use strict'; /** * Area object, used for managing areas * @param {jQuery} elem The area's HTML element * @param {EditMode} edit_mode The EditMode instance */ var Area = Concrete.Area = function Area(elem, edit_mode) { this.init.apply(...
//= require active_admin/base //= require jquery.nested-fields //= require chosen-jquery //= require bootstrap //= require bootstrap-wysihtml5 //= require ./active_tweaker
import '../../../../css/rpt/styles.global.css'; import styles from '../../../css/rpt/styles.css'; import React, { Component, PropTypes } from 'react'; import 'react-widgets/lib/less/react-widgets.less'; import DateTimePicker from 'react-widgets/lib/DateTimePicker'; import Multiselect from 'react-widgets/lib/Multiselect...
/*! Pushy - v0.9.1 - 2013-9-16 * Pushy is a responsive off-canvas navigation menu using CSS transforms & transitions. * https://github.com/christophery/pushy/ * by Christopher Yee */ $(window).load(function () { var e = false; if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { ...
/* eslint-env mocha */ /* eslint-disable func-names, prefer-arrow-callback */ import mainContent from '../pageobjects/main-content.page'; import sideNav from '../pageobjects/side-nav.page'; describe.skip('emoji', ()=> { it('opens general', ()=> { sideNav.openChannel('general'); }); it('opens emoji menu', ()=> {...
module.exports = function(config) { config.set({ basePath: './', frameworks: ['systemjs', 'jasmine'], systemjs: { configFile: 'config.js', config: { paths: { "*": null, "src/*": "src/*", "typescript": "node_modules/typescript/lib/typescript.js", ...
import React, { useState } from 'react'; import { UncontrolledAlert } from 'reactstrap'; import Alert from '../../../src/Alert'; export const AlertFadelessExample = (props) => { const [visible, setVisible] = useState(true); const onDismiss = () => setVisible(false); return ( <div> <Alert color="prima...
/*jshint browser: true, strict: true, undef: true */ /*global define: false */ ( function( window ) { 'use strict'; // class helper functions from bonzo https://github.com/ded/bonzo function classReg( className ) { return new RegExp("(^|\\s+)" + className + "(\\s+|$)"); } // classList support for class mana...
"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...
import { div } from '../core/dom-api'; import { urls } from '../urls'; const commentsSort = (a, b) => { if (a.time < b.time) return -1; if (a.time > b.time) return 1; return 0; }; const commentElement = (data) => { let replies = data && data.comments && data.comments.length && data.comments ....
'use strict'; var assert = require('assert'); var resource = require('../resource'); exports.Person = resource.create('Person', {api: 'person', version: 2}) .extend({ flag: function(options){ return this.constructor.post('/people/' + this.id + '/flag', options); } }, { find: function(options...
var opn = require('opn'); console.log('打开二维码...') // Opens the image in the default image viewer opn('static/img/qr.jpg').then(() => { console.log('关闭二维码!') });
//= require "dep3-1-1.js, dep3.js"
function init_map(field_id) { //console.log(field_id); } /*acf.fields.address = acf.field.extend({ type: 'address', $el: null, $input: null, status: '', // '', 'loading', 'ready' geocoder: false, map: false, maps: {}, pending: $(), actions: { 'ready': 'initialize' }, initialize: funct...
// flow-typed signature: 02c97f596f96a486574f8fb0fd727a55 // flow-typed version: <<STUB>>/eslint-config-google_v0.14.0/flow_v0.108.0 /** * This is an autogenerated libdef stub for: * * 'eslint-config-google' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to shar...
import { combineReducers } from 'redux' import userInfo from './userInfo' import userFeed from './userFeed' import popularFeed from './popularFeed' export default combineReducers({ userInfo, userFeed, popularFeed })
/* comment */ var g = 1, i = 2, j = 2/* *//1+g+"\/*"/i, x = 3, a = 2/1/g, b = (i)/i/i/* */, s = 'aaa\ bbb\ ccc'; var z = 1;
const matcher = require('../lib/matcher'); describe('Matcher', () => { describe('path', () => { let mock; let request; beforeEach(() => { mock = { request: { path: '/test' } }; request = { originalUrl: '/test?blah=test', path: '/test' }; }); test('should return true if r...