code
stringlengths
2
1.05M
"use strict"; describe("Response Handlers", () => { const expect = require("chai").expect; const ValidationError = require("../index.js").ValidationError; const responseHandlers = require("../index.js").responseHandlers; describe(".success()", () => { let response = null; beforeEach(() => { resp...
'use strict'; /** * @ngInject */ function Routes($stateProvider, $locationProvider, $urlRouterProvider) { $locationProvider.html5Mode(true); $stateProvider .state('Home', { url: '/', controller: 'HomeCtrl as home', templateUrl: 'home.html', title: '고려대학교 연구포털 공동기기 네트워크 맵' }); $urlRouterP...
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const markdownIt = require("markdown-it"); const createSlide = require("./plugins/create-slide"); module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(syntaxHighlight); eleventyConfig.addPassthroughCopy("assets"); eleventy...
/*! (c) 2012 Uzi Kilon, Splunk Inc. Backbone Poller 0.3.0 https://github.com/uzikilon/backbone-poller Backbone Poller may be freely distributed under the MIT license. */ // (function (root, factory) { // 'use strict'; // if (typeof define == 'function' && define.amd) { // define(['underscore', 'backbone'], fact...
'use strict'; const common = require('../common'); const noop = () => {}; const TTY = process.binding('tty_wrap').TTY = function() {}; TTY.prototype = { setBlocking: noop, getWindowSize: noop }; const { WriteStream } = require('tty'); const methods = [ 'cursorTo', 'moveCursor', 'clearLine', 'clearScreen...
var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?29e357192159be39f03d0477711f79c3"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();
/* global monaco */ import { getOffsetAt, locToRange, getCurrentWord } from '../comm'; import { request } from '../provider-child'; export default function renameProvider() { monaco.languages.registerRenameProvider('lua', { provideRenameEdits(model, position, newName, token) { return new Promise((resolve, ...
// enter file of limited Konva version with only core functions // @ts-ignore var Konva = require('./_CoreInternals').Konva; // add Konva to global variable Konva._injectGlobal(Konva); // @ts-ignore exports['default'] = Konva; Konva.default = Konva; // @ts-ignore module.exports = exports['default'];
import React from 'react' import { Editor } from 'slate' import { observer } from 'mobx-react'; import Popover from 'react-popover'; import classnames from 'classnames' import { Icon, noop } from '../helpers'; import { } from './styles.scss'; import schema from './schema' const markIcons = [ ['bold', 'bold'], ['c...
/** * Module dependencies. */ var express = require('express'); var compress = require('compression'); var session = require('express-session'); var bodyParser = require('body-parser'); var logger = require('morgan'); var errorHandler = require('errorhandler'); var lusca = require('lusca'); var dotenv = require('dote...
'use strict'; /** * * @param {number} wordsPerMinute * @returns {Function} */ module.exports = function fromWords(wordsPerMinute){ wordsPerMinute = wordsPerMinute || 200; /** * @returns {number} Time needed to read these words, in milliseconds */ return function (wordCount){ var minutes = wordCount / wo...
var util = require('util'); var Stream = require('stream'); var Buffer = require('buffer').Buffer; /** * A Readable stream for a string or Buffer. * * This works for both strings and Buffers. */ function StringReader(str) { this.data = str; } util.inherits(StringReader, Stream); module.exports = StringReader; S...
import Angular from "angular"; import HomeRoute from "./home.route"; const module = Angular.module('swamp.home', []) .config(HomeRoute); export default module.name;
var assert = require( 'assert' ); module.exports = { description: 'skips a dead branch', code: function ( code ) { assert.equal( code.indexOf( 'obj.foo = function' ), -1, code ); } }
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global', './ListItemBaseRenderer', 'sap/ui/core/Renderer'], function(jQuery, ListItemBaseRenderer, Render...
/* * grunt-contrib-sass * http://gruntjs.com/ * * Copyright (c) 2014 Sindre Sorhus, contributors * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, all: [ 'Gruntfile.js', ...
var jr = require( "jackrabbit" ); var sp = require( "serialport" ); var loggly = require( "loggly" ); var config = require( "./configuration" ); exports.jackrabbit = function () { return jr( config.rabbitURL, 1 ); }; exports.logger = function ( tag ) { return loggly.createClient( { token: config.log...
const { promises: fs } = require('fs'); const MILLISECONDS = 1000; /** * Check to see if file has expired based on the given TTL. * * @example checkCacheExpiry('temp/cache.txt', 1800).catch(() => console.log('Cache has expired.')); * @param {String} path File path to check. * @param {Number} ttl TTL (Time to liv...
// delete cookie en cas de bug // document.cookie = "active=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; // Fonction qui retourne la valeur du cookie que l'on recherche function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split('...
/** * Created by michaelsilvestre on 1/03/15. */ var crypto = require('crypto'); function genUuid(callback) { if (typeof(callback) !== 'function') { return uuidFromBytes(crypto.randomBytes(16)); } crypto.randomBytes(16, function(err, rnd) { if (err) return callback(err); callbac...
var http = require('http'); var fs = require('fs'); var formidable = require("formidable"); var util = require('util'); var processAllFieldsOfTheForm = function (req, res) { var form = new formidable.IncomingForm(); form.parse(req, function (err, fields, files) { res.writeHead(200, { ...
var classMensajes = [ [ "Mensajes", "classMensajes.html#a35ea792bfc9e0906a1f3ad5520be4735", null ], [ "Mensajes", "classMensajes.html#a024b1e59811c21e05e2a5fbe8f8ddfd2", null ], [ "~Mensajes", "classMensajes.html#a7f21f5e74c8b485187e83241e8d1c10e", null ], [ "agregarMensaje", "classMensajes.html#ac9cef9...
/*------------------------------------------------------------------------------ Function: eCSStender.css3-selectors.js Author: Aaron Gustafson (aaron at easy-designs dot net) Creation Date: 2009-09-17 Version: 0.3 Homepage: http://github.com/easy-designs/eCSStender.css3-selectors.js License...
import { VIEW, DISPLACEMENT, CATCH, DROP, factory as makeEvent, typeIs } from './events'; import { CARRY, GOTO, factory as makeGoal } from './goals'; import * as actions from './actions'; import { positionString, randomNumber } from './utils'; import Agent from './Agent.js'; import Leaf from './Leaf.js'; import Hole fr...
import webpack from "webpack"; import ExtractTextPlugin from "extract-text-webpack-plugin"; import baseConfig from "./webpack.config.base"; const config = { ...baseConfig, devtool: "source-map", entry: "./app/index", output: { ...baseConfig.output, publicPath: "../dist/" }, ...
import { ADDRESS_CLAMP_TO_EDGE, PIXELFORMAT_R8_G8_B8, PIXELFORMAT_R8_G8_B8_A8, TEXTURETYPE_DEFAULT, TEXTURETYPE_RGBM } from '../graphics/constants.js'; import { Asset } from '../asset/asset.js'; import { Texture } from '../graphics/texture.js'; /** @typedef {import('../asset/asset-registry.js').AssetRegistry}...
import _ from 'lodash'; import Bluebird from 'bluebird'; import fs from 'fs'; import _path from 'path'; /** * @class JSONStorage */ module.exports = class JSONStorage { /** * Constructs JSON file storage. * * @param {Object} [options] * @param {String} [options.path='./umzug.json'] - Path to JSON file ...
Template.registerHelper('areFriends', function (friendId) { if (validations.hasFriend(Meteor.userId(), friendId)) { return validations.validateUserRelations({ userId: Meteor.userId(), status: STATUSES.friend }, { userId: friendId, status: STATUSES.frie...
import { mount } from 'riot'; export default function renderCompiledButUnmounted(component) { mount('root', component.tagName, component.opts || {}); }
exports.init = function(plugins, bot){ bot.addCommand('wolfram', '<question>', 'Answer question using wolfram alpha', USER_LEVEL_GLOBAL); if(this.config.client){ var wolfram = require('wolfram').createClient(this.config.client); }else{ throw new Error('No application id specified!'); } plugins.listen(this, 'co...
/** * `this` refers to the EventHandler object of the WebdriverIO instance * `that` refers to the Browserevent instance */ var addEventListener = module.exports = function(that) { return function(eventName,elem,callback,useCapture) { if(!that.socket) { // try again after 100ms ...
'use strict'; // An object describing a push notification. function Notification(kind, message, userIds, objectId) { this.kind = kind; this.message = message; this.userIds = userIds; this.objectId = objectId; }; // Parses and returns a configured Notification object. // - blob: { meta: JSON, data: J...
(function () { var config, options, dictionary; config = { DEFAULT_SCALE_FACTOR: 1.1, TAB_EVENTS: 0, TAB_COURSES: 1, TAB_RESULTS: 2, TAB_DRAW: 3, TAB_LOGIN: 4, TAB_CREATE: 5, TAB_EDIT: 6, TAB_MAP: 7, TAB_DELETE_MAP: 8, INVALID_MAP_ID: 9999, // translated when output ...
export const rupiah = n => new Intl.NumberFormat('id-ID', { style: 'currency', currency: 'IDR' }).format(n) export const readFile = file => new Promise((res, rej) => { const reader = new FileReader() reader.onload = e => { const src = e.target.result res(src) } reader.readAsDataURL(file...
// parse command line options var minimist = require('minimist'); var mopts = { string: [ 'node', 'runner', 'server', 'suite', 'task', 'version' ] }; var options = minimist(process.argv, mopts); // remove well-known parameters from argv before loading make, // ot...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import HistoriqueCommandesUtilisateur from 'components/HistoriqueCommandesUtilisateur'; export default class HistoriqueCommandes extends Component { static propTypes = { utilisateurId: PropTypes.string.isRequired, }; state = { ...
// All symbols in the Hiragana block as per Unicode v5.0.0: [ '\u3040', '\u3041', '\u3042', '\u3043', '\u3044', '\u3045', '\u3046', '\u3047', '\u3048', '\u3049', '\u304A', '\u304B', '\u304C', '\u304D', '\u304E', '\u304F', '\u3050', '\u3051', '\u3052', '\u3053', '\u3054', '\u3055', '\u3056', '\u3...
module.exports = { Bitmap: require('./lib/bitmap') };
/** * QUnit - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2011 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. * Pulled Live from Git Wed Sep 14 11:20:01 UTC 2011 * Last Commit: 96e42601cadcba989...
import { h, Component } from 'preact'; import { bind } from 'decko'; export default class TodoItem extends Component { shouldComponentUpdate({ todo, onRemove }) { return todo!==this.props.todo || onRemove!==this.props.onRemove; } @bind remove() { let { onRemove, todo } = this.props; onRemove(todo); } ren...
module.exports = { extends: 'airbnb', env: { 'mocha': true }, rules: { 'arrow-body-style': ['error', 'always'] } };
version https://git-lfs.github.com/spec/v1 oid sha256:a6403d8d6ac6a60c0935fd3e3251d7e2f30be098f94483b89a8720349710e3b0 size 2166
import { Configurator } from 'substance' import SaveHandlerStub from './SaveHandlerStub' import FileClientStub from './FileClientStub' class TextureConfigurator extends Configurator { constructor(...args) { super(...args) this.config.saveHandler = new SaveHandlerStub() this.config.fileClient = new File...
/*! * Kratos * Seaton Jiang <seatonjiang@vtrois.com> */ ;(function () { 'use strict' var KRATOS_VERSION = '4.0.1' var navbarConfig = function () { $('#navbutton').on('click', function () { $('.navbar-toggler').toggleClass('nav-close') }) } var tooltipConfig = functi...
var classJson_1_1StreamWriterBuilder = [ [ "StreamWriterBuilder", "classJson_1_1StreamWriterBuilder.html#ab95b76179c152673ad14abc639a46ee4", null ], [ "~StreamWriterBuilder", "classJson_1_1StreamWriterBuilder.html#a93263f8ef1e2d22593907075d8f0aaef", null ], [ "newStreamWriter", "classJson_1_1StreamWriterBui...
/*! * Bootstrap-select v1.7.3 (http://silviomoreto.github.io/bootstrap-select) * * Copyright 2013-2015 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Registe...
const isNumber = require("../object/isNumber.js"); /** * Evaluate if a value is a port. * @param {Number} value The value to evaluate * @returns {Boolean} True if value is a port, false otherwise */ function isPort(value) { value = parseInt(value, 10); if (!isNumber(value)) ...
import React from 'react-native'; import stacktraceParser from 'stacktrace-parser'; // import _ from 'underscore'; const NativeBugsnag = React.NativeModules.RNBugsnag; /* * The instance of our singleton * Setting up block level variable to store class state * , set's to null by default. */ let instance = ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Route | session/index', function (hooks) { setupTest(hooks); test('it exists', function (assert) { const route = this.owner.lookup('route:session/index'); assert.ok(route); }); });
import React, {PropTypes, Component} from 'react'; import reactElementToJSXString from 'react-element-to-jsx-string'; import AutoCompleteComposite from '../../src/AutoCompleteComposite'; import AutoComplete from '../../src/AutoComplete'; import Label from '../../src/Label'; export default class Form extends Component...
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var _ = Package.underscore._; var Accounts = Package['accounts-base'].Accounts; var Twitter = Package.twitter.Twitter; var HTTP = Package.http.HTTP; (function () { ////////////////////////////////////////////////////////////////////////////////////////...
const _ = require('lodash') const mongoose = require('mongoose') const request = require('supertest') const should = require('should') const nassert = require('n-assert') const app = require('../../src/app') const User = mongoose.model('user') describe('users / controller', () => { describe('getUsers', () => { ...
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M16.05 16.29l2.86-3.07c.38-.39.72...
/** * 시퀀스 이미지에 대한 하나의 인스턴스를 생성한다. * @class * @param {Int} width 한 컷의 이미지 넓이 * @param {Int} height 한 컷의 이미지 높이 * @param {Int} scene 컷 갯수 * @param {Int} speed ms 단위의 컷 당 변화 시간 * @param {DOM} selector background-image 로 지정되어 있는 DOM * @param {Boolean} isReplay 반복재생 여부 * @example * // Installation * <script src...
var Vt00 = { // CELLS // Public to allow access to /*verilator_public*/ items; // otherwise the application code can consider these internals. // PORTS // The application code writes and reads these signals to // propagate new values into/out from the Verilated model. clk : verilated.VL_IN8 (0,0), c : verilate...
import ApplicationSerializer from 'appkit/serializers/application'; export default ApplicationSerializer.extend({ normalizeHash: { events: function(hash) { hash.id = [hash.world_id, hash.map_id, hash.event_id].join('.'); hash.eventName = hash.event_id; hash.eventDetail = hash.event_id; h...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z" /> , 'SwapCallsSharp');
define("view/modal/setting-tabs/personal/password", ["require", "exports", "module", "view/modal/setting-tabs/personal/formBase", "lang/index", "service/userProfile", "utils/server"], function(e, t) { var i = e("view/modal/setting-tabs/personal/formBase").View, n = e("lang/index"), s = e("service/userProfile"), ...
// src/app-client.js import React from 'react'; import ReactDOM from 'react-dom'; import AppRoutes from './components/AppRoutes'; window.onload = () => { ReactDOM.render(<AppRoutes/>, document.getElementById('main')); };
var person = { name : "Mosh", walk : function(){ this.trigger("walking", { speed : 1, startTime: "8:00" }); } }; _.extend(person , Backbone.Events); //person.on("walking", function(e){ // console.log("Person is walking"); // console.log("Event:" + e); //}); /...
import * as is from '../stringConstants/stringConstants'; const triangularOrNot = (inputNum) => { if (/[a-z]/i.test(inputNum)) { return inputNum; } let triangularNumber = 0; let nextAddition = 1; while (triangularNumber < inputNum) { triangularNumber += nextAddition; nextAddition += 1; } re...
/// <reference path="../typings/node/node.d.ts"/> /* var xmlhttp = new XMLHttpRequest(); var apply = 'title=00111101211u0122i40&content=222&recipient_id={"userId":"5672592b202517dedb"},{"userId":"2517dedb"},{"userId":"5670f202517dedb"}'; xmlhttp.open('POST','http://localhost:3000/api/v1.0/apply/add',true); xmlhttp.setR...
exports.name = "sotd.status"; exports.check = function (sr, done) { if (!sr.config.sotdStatus) return done(); var $sotd = sr.getSotDSection(); if (!$sotd || !$sotd.length) { sr.error(exports.name, "no-sotd"); return done(); } if (!sr.norm($sotd.text()).match(new RegExp(sr.config.lon...
import cssRules from './cssRules'; import $ from 'jquery'; import loaders from './loadHTML'; cssRules.importStyle(); let state = 'dinamicly loaded'; console.log(`main loaded loaded ${state}`); loaders.table(); // loaders.list();
define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.items = [ (_a = { key: 'newItem', name: 'New', icon: 'Add', ariaLabel: 'New. Use left and ...
import React from 'react'; import { mount } from 'enzyme'; import SimpleSlider from '../SimpleSlider'; import { repeatClicks } from '../../test-helpers'; describe('Simple Slider', function () { it('should have 8 slides (6 actual and 2 clone slides)', function () { const wrapper = mount(<SimpleSlider />); exp...
module.exports = { __test_name: 'delegated/disabled' };
import { shallowRender } from '../src'; import { h, Fragment } from 'preact'; import { expect } from 'chai'; import { spy } from 'sinon'; describe('shallowRender()', () => { it('should not render nested components', () => { let Test = spy(({ foo, children }) => ( <div bar={foo}> <b>test child</b> {childr...
if (!Array.prototype.filter) { Array.prototype.filter = function(fun/*, thisArg*/) { 'use strict'; if (this === void 0 || this === null) { throw new TypeError(); } var t = Object(this); var len = t.length >>> 0; if (typeof fun !== 'function') { throw new TypeError(); } v...
"use strict"; (function (ImAddressKey) { ImAddressKey[ImAddressKey["ImAddress1"] = 0] = "ImAddress1"; ImAddressKey[ImAddressKey["ImAddress2"] = 1] = "ImAddress2"; ImAddressKey[ImAddressKey["ImAddress3"] = 2] = "ImAddress3"; })(exports.ImAddressKey || (exports.ImAddressKey = {})); var ImAddressKey = exports....
version https://git-lfs.github.com/spec/v1 oid sha256:99519206345dbda635b50e44e1604eb10fa2b8f5d2487bdeb55d58d92279f01b size 1617
/** * @module typedarray-polyfill */ var methods = ['values', 'sort', 'some', 'slice', 'reverse', 'reduceRight', 'reduce', 'map', 'keys', 'lastIndexOf', 'join', 'indexOf', 'includes', 'forEach', 'find', 'findIndex', 'copyWithin', 'filter', 'entries', 'every', 'fill']; if (typeof Int8Array !== 'undefined') {...
/*! jQuery nCookie - v0.1.0 - 2012-08-08 * https://github.com/nak0yui/jquery.ncookie.js * Copyright (c) 2012 nak0yui; Licensed MIT, GPL */ (function(a,b){"use strict";var c={expires:1,path:"/"},d=function(d,e,f){var g={},h=[];a.inflate(g,c,f);if(d===null||typeof d=="undefined")return;if(e===null||typeof e=="undefined")...
"use strict"; const csv2gexf = require('../lib/index'); // ------------------------------------------------------------------------------------------------- var config = { graphParams: { defaultEdgeType: 'directed', meta: { description: 'An example graph.', creator: 'csv2g...
// annyang // version : 0.2.0 // author : Tal Ater @TalAter // license : MIT // https://www.TalAter.com/annyang/ (function(a){ "use strict"; var b=a.webkitSpeechRecognition||a.mozSpeechRecognition||a.msSpeechRecognition||a.oSpeechRecognition||a.SpeechRecognition; if(!b) return a.annyang=null,null; ...
angular.module('nbaRoutes').controller('teamCtrl', function($scope, $stateParams, teamService, teamData) { $scope.teamData = teamData; $scope.newGame = {}; $scope.showNewGameForm = false; $scope.toggleNewGameForm = function() { $scope.showNewGameForm = !$scope.showNewGameForm; }; $scope.submitGame = fu...
var util = require('util'); var songHistory = []; /** * That is this and this is that * @type {Room} */ var that = null; var User = function(data) { this.avatarID = data.avatarID ? data.avatarID : ''; this.badge = data.badge ? data.badge : 0; this.blurb = data.blurb ? data.blurb : undefined; this.e...
sample.controller('sampleIndexController', ['$scope', function($scope){ }]);
'use strict'; exports.init = function(req, res){ if (req.isAuthenticated()) { res.redirect(req.user.defaultReturnUrl()); } else { res.render('login/reset/index'); } }; exports.set = function(req, res){ var workflow = req.app.utility.workflow(req, res); workflow.on('validate', function() { if ...
'use strict'; /*global SVG, mill */ /* Features: - image preloading - stepping - zoom - animation paths */ function SVGjsAnim(id) { this.draw = SVG(id) .fixSubPixelOffset(); this.scene = this.draw.group() .attr({ id: 'scene' }); this.positionAndScale();...
/** * Created by socialmoneydev on 8/30/2014. */ var AccountIdOnly = function(){ var self = this; self.accountId = null; }; module.exports = AccountIdOnly;
'use strict'; module.exports = { sms: { url: 'http://sslsms.cafe24.com/sms_sender.php', userId: 'bitpr', secure: 'a8178aeb09e085a76dc64909397f4805 ', source: { phone1: '02', phone2: '598', phone3: '1234' } } }
'use strict'; var util = require('util'); var events = require('events'); function Worker(name, handler, options) { events.EventEmitter.call(this); options = options || {}; this.name = name; this.options = options.queue || {}; this.handler = handler; this.handlerOptions = options.consumer || {}; this.p...
/* @flow */ var moment = require('moment'); var rest = require('restler'); var util = require('./util'); var config = require('./../private/config.json'); var neaAuthKey = config.NEA.key; var nowcastURL = 'http://api.nea.gov.sg/api/WebAPI?dataset=2hr_nowcast&keyref=' + neaAuthKey; var psiURL = 'http://api.nea.gov.sg/...
/* @echo header */ var // dictonary _dict = { fr: { search: 'Recherche de votre positionnement', position: 'Votre position', unavailable: 'Service de localisation non-disponible', deactivated: 'Service de localisation désactivé', notFound: 'Position indisponible', timeout: ...
//= require ./model (function () { 'use strict'; var node = typeof window === 'undefined'; var app = node ? {} : window.app; var Model = node ? require('./model') : app.Model; var Endpoint = Model.extend({}); Endpoint.Collection = Model.Collection.extend({ model: Endpoint }); node ? module.exp...
var Analyzer = (function() { function Analyzer(options) { var defaults = {}; this.opt = _.extend({}, defaults, options); this.init(); } Analyzer.prototype.init = function(){ this.ctx = this.opt.ctx; this.paths = []; // init canvas this.onUpdate(); // this.loadNodes(); this.lo...
import { mount } from '@vue/test-utils' import useI18nGlobally from '../../../__utils__/i18n' import { PluginInstallModal } from '@/components/PluginManager/PluginManagerModals' jest.mock('electron', () => ({ ipcRenderer: { on: jest.fn(), send: jest.fn(), removeListener: jest.fn() } })) const i18n = u...
angular .module('app.directives') .directive('wager', wager) ; /* @ngInject */ function wager(TemplateUrls) { return { scope: { wager: '=' }, templateUrl: TemplateUrls.WAGER, replace: true, restrict: 'E' }; }
export { default, initialize } from 'ember-m3/initializers/m3-store';
'use strict'; var express = require('express'); var socketio = require('socket.io'); var app = express(); app.use(express.static('client')); var server = app.listen(3000, function(){ console.log('server listening on port 3000'); }); var io = socketio(server); io.on('connection', function(socket){ console.log...
// path: test/fixtures/barView.js // filename: barView.js define(['test/fixtures/barView'], function(BarView) { 'use strict'; describe('test/fixtures/barView', function() { var barView; beforeEach(function() { barView = new BarView(); }); describe('constructor', function() { }); }); ...
import Model, { attr } from "@ember-data/model"; export default class UserModel extends Model { @attr firstName; @attr lastName; @attr aboutMe; @attr country; @attr gender; @attr terms; @attr color; }
'use strict'; // B.2.3.12 String.prototype.strike() require('./_string-html')('strike', function (createHTML) { return function strike() { return createHTML(this, 'strike', '', ''); }; }); //# sourceMappingURL=es6.string.strike.js.map
define({ root: ({ methodNotConfigured: 'Function ${method} is not configured for controller ${controller}.', noDefaultMethod: 'Controller ${controller} has no default method defined', noConfig: 'Controller name ${controller} could not be found in the di config.', noMethod: 'Function ${method} could not ...
/** * Created by AntecPC on 4/11/2015. */ (function (){ 'use strict'; //var app = angular.module('blogApp'); //get data from json app.factory('basicService', function ($http, $q){ return { savePair: function (pair) { var defer = $q.defer(); $htt...
/** * MENU3 - 재무회계 페이지 함수 모음 */ // 구분 목록상자 선택1 (capital2.php // capital_edit.php // capital3.php) function inoutSel(form, no, pj){ // ==capital2.php 와 capital_edit.php => form // capital3.php => no // 현장전도금일때 pj 인자활용 var class1_str = "class1_"; var class1 = class1_str+no; // 구분1 var class2_str = "class2_"; var c...
module.exports = ` <html> <head> <title>Show Me A Dog</title> <style>{{{css}}}</style> </head> <body> <h1>Here is your {{breed}}!</h1> <div><img src="{{image}}"></div> <div class="links"> <div class="link"><a href="javascript:window.location.reload(false);">Another?</a></div> <div ...
import{a as e}from"./chunk-S4JGXK5I.js";function i(t,r){e(t,"beforebegin",r)}export{i as a}; //# sourceMappingURL=chunk-JNJ2L7JL.js.map