code
stringlengths
2
1.05M
/*! * froala_editor v3.1.1 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2020 Froala Labs */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) : typeof define === 'function...
var request = require('request'), log = require('bole')('npme-send-data'), config = require('../../../config') module.exports = function (formGuid, data, callback) { var hubspot = config.license.hubspot.forms .replace(":portal_id", config.license.hubspot.portal_id) .replace(":form_guid", formGuid...
module.exports = { env: { mocha: true }, plugins: [ 'mocha' ] };
/* eslint-disable flowtype/require-parameter-type, flowtype/require-return-type, no-magic-numbers */ import {test} from "tap" import {spy} from "sinon" import aside from "./" test(({equal, end}) => { const unction = spy(() => "b") equal(aside([unction])("a"), "a") end() }) test(({ok, end}) => { const uncti...
var doNothing = function () {} /** * The `Base` log defines methods that transports will share. */ var Base = module.exports = function (config, defaults) { var cedar = require('../../cedar') // A log is a shorthand for `log.log`, among other things. var log = function () { log.log.apply(log, arguments)...
import type {ResponseType} from "./base.type"; function parseJSON(response: ResponseType): Object { return response.json(); } export {parseJSON};
var request = require('request'), mongoose = require('mongoose'), util = require('util'), url = require('url'), helpers = require('./helpers'), sync = require('./sync') // turn off request pooling request.defaults({ agent:false }) // cache elasticsearch url options for elmongo.search() to use var ...
/** * Copyright 2015 Telerik AD * * 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 * * Unless required by applicable law or agreed to ...
// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2 // flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x declare module 'http-errors' { declare class SpecialHttpError extends HttpError { constructor(): SpecialHttpError; } declare class HttpError extends Error { expose: bool; mess...
var PixiText = require('../../lib/pixi/src/core/text/Text'), utils = require('../core/utils'), math = require('../../lib/pixi/src/core/math'), Sprite = require('../display/Sprite'), CONST = require('../core/const'); function Text(text, style, resolution){ this._init(text, style, resolution); } Tex...
/** * A wrapper around JSLint to drop things into the console * * Copyright (C) 2011 Nikolay Nemshilov */ var RightJS = require('./right-server.js'); var JSLint = require('./jslint').JSLINT; var fs = require('fs'); exports.Linter = new RightJS.Class({ extend: { Options: { debug: false, // no d...
import React, { PropTypes } from 'react' import ActionDelete from 'material-ui/svg-icons/action/delete' import { colors } from '/styles' import moduleStyles from '/styles/fileTree' const RemoveBtn = ({ onClick }) => ( <ActionDelete onClick={onClick} style={moduleStyles.listIcon.base} ...
import { Observable } from './observable' export default function drop(count, source) { return Observable(add => { let dropped = 0 return source.subscribe((val, name) => { if (dropped++ >= count) add(val, name) }) }) }
import React, { Component } from 'react' import { FlexGrid, Content, Container, AdminItemsViewTable, Table, Button } from 'components' import { AddItemAboutContainer, AddItemPhotoContainer, SpecialSetupContainer } from 'containers' import { adminLink } from 'config' import s from './AdminItemsView.sass' c...
const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", entry: "./index", stats: "normal", plugins: [new LogTestPlugin()] };
import { expect } from 'chai' import browser from '../../src/util/browser' describe('util (node)', () => { describe('browser', () => { it('is false', () => { expect(browser).to.be.false }) }) })
// Seriously awesome GLSL noise functions. (C) Credits and kudos go to // Copyright (C) Stefan Gustavson, Ian McEwan Ashima Arts // MIT License. define(function(require, exports){ exports.permute1 = function(x){ return mod((34.0 * x + 1.0) * x, 289.0) } exports.permute3 = function(x){ return mod((34.0 * x + 1....
var $ = require('jquery'); var keymaster = require('keymaster'); var ChartEditor = require('./component-chart-editor.js'); var DbInfo = require('./component-db-info.js'); var AceSqlEditor = require('./component-ace-sql-editor.js'); var DataGrid = require('./component-data-grid.js'); var QueryEditor = function () { ...
// # Frontend Route tests // As it stands, these tests depend on the database, and as such are integration tests. // Mocking out the models to not touch the DB would turn these into unit tests, and should probably be done in future, // But then again testing real code, rather than mock code, might be more useful... con...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
const BaseStep = require('../step'); const EntryProxy = require('../../entry-proxy'); const analyze = require('../../helpers/analytics/analytics')('gst'); // TODO pull below out to (variation) helper function convertVariationalPath(variations, from, toVariationId) { const toDir = variations.find(variation => varia...
'use strict'; // MODULES // var tape = require( 'tape' ); var pow = require( 'math-power' ); var MAX_INT16 = require( './../lib' ); // TESTS // tape( 'the main export is a number', function test( t ) { t.ok( true, __filename ); t.equal( typeof MAX_INT16, 'number', 'main export is a number' ); t.end(); }); tape...
/*! * iScroll v4.1.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org * Released under MIT license, http://cubiq.org/license */ (function(){ var m = Math, vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' : (/firefox/i).test(navigator.userAgent) ? 'Moz' : 'opera' in window ? 'O' : '', // Brows...
var path = require('path'), fs = require('fs'), Source = require(hexo.lib_dir + '/core/source'), config_dir = path.dirname(hexo.configfile), config = hexo.config; function testver(){ var ver = hexo.env.version.split('.'); var test = true; if (ver[0] < 2) test = false; else if (ver[0] == 2 &...
const request = require('request-promise'); const oauth = require('./config').auth; const rootUrl = 'https://api.twitter.com/1.1'; let allItems = []; /* API methods */ const API = { /** * Search for tweets * @param options {Object} Options object containing: * - text (Required) : String * - co...
//@flow const {foo, Bar, baz, qux} = require('./jsdoc-exports'); const { DefaultedStringEnum, InitializedStringEnum, NumberEnum, BooleanEnum, SymbolEnum, } = require('./jsdoc-objects'); /** a JSDoc in the same file */ function x() {} ( ); // ^
ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHi...
(function(){ 'use strict'; angular .module('app') .factory('ceUsers', ceUsers); ceUsers.$inject = ['$resource']; function ceUsers ($resource) { console.log('ok'); return $resource('https://mysterious-eyrie-9135.herokuapp.com/users/:username', {username: '@username'}, {'update': { me...
'use strict'; import gulp from 'gulp'; import gutil from 'gulp-util'; import uglify from 'gulp-uglify'; import stylus from 'gulp-stylus'; import watch from 'gulp-watch'; import plumber from 'gulp-plumber'; import cleanCss from 'gulp-clean-css'; import imagemin from 'gulp-imagemin'; import concat from 'gulp-concat'; im...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
import { set } from 'ember-metal'; import { jQuery } from 'ember-views'; import { moduleFor, RenderingTest } from '../../utils/test-case'; import { Component, compile } from '../../utils/helpers'; import { strip } from '../../utils/abstract-test-case'; class AbstractAppendTest extends RenderingTest { constructor() ...
(function () { var g = void 0, k = !0, m = null, o = !1, p, q = this, r = function (a) { var b = typeof a; if ("object" == b) if (a) { if (a instanceof Array) return "array"; if (a instanceof Object) return b; ...
import HomeRoute from 'routes/Home'; describe('(Route) Home', () => { let _component; beforeEach(() => { _component = HomeRoute.component(); }); it('Should return a route configuration object', () => { expect(typeof HomeRoute).to.equal('object'); }); it('Should define a route...
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './input.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
var searchData= [ ['clear',['clear',['../d8/d84/a00001.html#a11dc3b617f2fedbb3b499971493b9c4f',1,'ArrayBase']]] ];
/*jslint node: true, vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 2, maxerr: 50*/ /*global define, $, brackets, Mustache, window, appshell*/ define(function (require, exports, module) { "use strict"; // HEADER >> var NodeConnection = brackets.getModule("utils/NodeConnection"), ...
const ASSETS_MODS_LENGTH = 13;//'/assets/mods/'.length; const CONTENT_TYPES = { 'css': 'text/css', 'js': 'text/javascript', 'json': 'application/json', 'png': 'image/png', 'jpg': 'image/jpeg', 'jpeg': 'image/jpeg', 'html': 'text/html', 'htm': 'text/html' }; /** * @type {Map<string, JSZip>} */ const jszipCac...
/* micropolisJS. Adapted by Graeme McCutcheon from Micropolis. * * This code is released under the GNU GPL v3, with some additional terms. * Please see the files LICENSE and COPYING for details. Alternatively, * consult http://micropolisjs.graememcc.co.uk/LICENSE and * http://micropolisjs.graememcc.co.uk/COPYING ...
export { default as createShallow } from './createShallow'; export { default as createMount } from './createMount'; export { default as createRender } from './createRender'; export { default as findOutermostIntrinsic, wrapsIntrinsicElement } from './findOutermostIntrinsic'; export { default as getClasses } from './getC...
var expect = require("chai").expect; var reindeerRace = require("../../src/day-14/reindeer-race"); describe("--- Day 14: (1/2) distance traveled --- ", () => { it("counts the distance traveled after 1000s", () => { var reindeerSpecs = [ "Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seco...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var jsdom = require("jsdom"); var chai_1 = require("chai"); var ColorManager_1 = require("./ColorManager"); describe('ColorManager', function () { var cm; var dom; var document; var window; beforeEach(function () { ...
/** * Copyright 2014 Google Inc. 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 * * Unless required by appli...
/* * Copyright 2017 Hewlett Packard Enterprise Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ define([ 'underscore', 'jquery', 'find/idol/app/page/dashboard/widgets/updating-widget', 'find/idol/app/page/...
import PropTypes from 'prop-types' import React from 'react' import { List } from 'immutable' import Modal from './warningmodal.js' import Path from 'path' const FilesList = ({ folders, folderPathToRemove, actions }) => { const addStorageLocation = () => actions.addFolderAskPathSize() const removeStorageLocation =...
/** * Framework APIs (global - app.*) * * Note: View APIs are in view.js (view - view.*) * * @author Tim Lauv * @created 2015.07.29 * @updated 2017.04.04 */ ;(function(app){ /** * Universal app object creation api entry point * ---------------------------------------------------- * @deprecated Use the...
// Base64 encoder/decoder with UTF-8 support // // Copyright (c) 2011 Vitaly Puzrin // Copyright (c) 2011 Aleksey V Zapparov // // Author: Aleksey V Zapparov AKA ixti (http://www.ixti.net/) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentatio...
module.exports = require("npm:acorn@2.4.0/dist/acorn");
import actionTypes from '../../client/actions/types'; const defaultState = { data: {}, errors: 'Not Found', }; export default function domainDetailReducer(state = defaultState, action = {}) { switch (action.type) { case actionTypes.getDomainDetail: return Object.assign({}, state, { data: actio...
// This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically // be included in the compiled file accessible from http://example.com/assets/application.js // It's not advisable to add code directl...
/** * Copyright 2014 Pacific Controls Software Services LLC (PCSS). All Rights Reserved. * * This software is the property of Pacific Controls Software Services LLC and its * suppliers. The intellectual and technical concepts contained herein are proprietary * to PCSS. Dissemination of this information or reprodu...
define(function(require) { var test = require('../../../test') var count = 0 require.async('./a', function(a) { test.assert(a.name === 'a', 'load CMD module file') done() }) require.async('./b.js', function() { test.assert(global.SPECS_MODULES_ASYNC === true, 'load normal script file') glo...
const fs = require('fs'); const path = require('path'); const cleanCss = require('../../index.js'); module.exports = { name : 'basic test', this : function () { const str = fs.readFileSync(path.resolve('test/styles/basic.dirty.scss'), 'utf8'); const clean = cleanCss({ css : str }); return c...
angular.module('starter.controllers', []) // A simple controller that fetches a list of data from a service .controller('PetIndexCtrl', function($scope, PetService) { // "Pets" is a service returning mock data (services.js) $scope.pets = PetService.all(); }) // A simple controller that shows a tapped item's dat...
// Copyright 2011, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condition...
/** * Created by maomao on 2020/4/20. */ Java.perform(function() { var cn = "android.telephony.SubscriptionManager"; var target = Java.use(cn); if (target) { target.addOnSubscriptionsChangedListener.overloads[0].implementation = function(dest) { var myArray=new Array() myAr...
"use strict"; const chalk = require("chalk"); const readline = require("readline"); /** * Fill screen with blank lines, move to "0" afterwards and clear screen afterwards. * Note that it is still possible to "scroll back" afterwards. * * Function performs nothing in case the stdout is NOT a TTY. */ exports.cls =...
const assert = require('assert') const crypto = require('crypto') const { createRequest } = require("../util/util") describe('测试搜索是否正常', () => { it('获取到的数据的 name 应该和搜索关键词一致', done => { const keywords = "海阔天空" const type = 1 const limit = 30 const data = 's=' + keywords + '&limit=' + limit + '&type=' ...
export default function collapseDuplicateDeclarations() { return (root) => { root.walkRules((node) => { let seen = new Map() let droppable = new Set([]) node.walkDecls((decl) => { // This could happen if we have nested selectors. In that case the // parent will loop over all its...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true, "jasmine" : true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "no-mixed-spaces-and-tabs": [2, "smart-tabs"], "linebre...
version https://git-lfs.github.com/spec/v1 oid sha256:42fcecf8fdabe110af986ac81bb56b598f5a3fa59c6d0c4cc8b80daa2dca0473 size 1121
$(document).ready(function(){ var Previewer = { preview: function(content, output) { $.ajax({ type: 'POST', url: "/govspeak", data: { govspeak: content.val() }, dataType: 'json' }).success(function(data){ output.html(data['govspeak']); }); } }; $(...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Structs */ module.exports = { List: require('./List'), Map: require('./Map'), ProcessQueue: require('./P...
YUI.add("yuidoc-meta", function(Y) { Y.YUIDoc = { meta: { "classes": [ "Audio" ], "modules": [ "gallery-audio" ], "allModules": [ { "displayName": "gallery-audio", "name": "gallery-audio" } ] } }; });
'use strict'; var fs = require('fs'), util = require('util'), Duplexify = require('duplexify'), _ = require('lodash'), su = require('bindings')('serialutil.node'), fsu = require('./fsutil'), pins = require('./pins'), Dto = require('./dto'), dto = new Dto(__dirname + '/../templates/uart.dts'); var DEFA...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
'use strict'; var convert = require('./convert'), func = convert('findLastIndexFrom', require('../findLastIndex')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2Zw...
/* * 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. */ '...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (fn /*, ...args*/) { var args = (0, _slice2.default)(arguments, 1); return function () /*callArgs*/{ var callArgs = (0, _slice2.default)(arguments); return fn.apply(null, args....
'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; var assert = require('yeoman-assert'); describe('test framework', function () { describe('mocha', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(__dirname, ...
/*jshint maxstatements:false*/ define(function (require, exports) { "use strict"; var moment = require("moment"), Promise = require("bluebird"), _ = brackets.getModule("thirdparty/lodash"), CodeInspection = brackets.getModule("language/CodeIn...
var Path = require('path'); var Hapi = require('hapi'); var server = new Hapi.Server(); var port = process.env.PORT || 5000; server.connection({ port: port }); server.views({ engines: { html: require('handlebars') }, path: Path.join(__dirname, 'views') }); server.route([ { path: '/', ...
/** * Module dependencies. */ var api = require('lib/db-api'); var config = require('lib/config'); var express = require('express'); var jwt = require('lib/jwt'); var passport = require('passport'); var log = require('debug')('democracyos:auth:facebook:routes'); var User = require('lib/models').User; var fbSignedPar...
// © 2000 NEOSYS Software Ltd. All Rights Reserved.//**Start Encode** function form_postinit() { //enable/disable password changing button neosyssetexpression('button_password', 'disabled', '!gusers_authorisation_update&&gkey!=gusername') //force retrieval of own record if (gro.dictitem('USER...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @m...
'use strict'; const path = require('path'), mongoose = require('mongoose'), Promise = require('bluebird'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); mongoose.Promise = Promise; const User = mongoose.model('User'); const ...
/*jshint unused:false*/ var chai = require('chai'), expect = chai.expect; var request = require('supertest'); module.exports = function() { 'use strict'; this.Then(/^The JSON is returned by issuing a "GET" at the specified uri:$/, function(json, callback) { request(this.serverLocation) .get('/hello...
/* global sinon, setup, teardown */ /** * __init.test.js is run before every test case. */ window.debug = true; var AScene = require('aframe').AScene; beforeEach(function () { this.sinon = sinon.sandbox.create(); // Stub to not create a WebGL context since Travis CI runs headless. this.sinon.stub(AScene.prototy...
"use strict"; var mathUtils = require("./math-utils"); exports.shuffle = function(array) { var len = array.length; for ( var i=0; i<len; i++ ) { var rand = mathUtils.randomInt(0,len-1); var temp = array[i]; array[i] = array[rand]; array[rand] = temp; } };
/* eslint quote-props: ["error", "consistent"] */ // Japanese Hirajoshi scale // 1-4-2-1-4 // Gb G B Db D Gb export default { 'a': { instrument: 'piano', note: 'a4' }, 'b': { instrument: 'piano', note: 'eb3' }, 'c': { instrument: 'piano', note: 'd6' }, 'd': { instrument: 'piano', note: 'eb4' }, 'e': { inst...
// ========================================================================== // Project: SproutCore Metal // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== require('sproutcore-metal...
var Promise = require('ember-cli/lib/ext/promise'); module.exports = { normalizeEntityName: function() {}, afterInstall: function() { var addonContext = this; return this.addBowerPackageToProject('jquery-ui', '1.10.1') .then(function() { return addonContext.addBowerPackageToProject('jquer...
Date.CultureInfo = { /* Culture Name */ name: "fr-FR", englishName: "French (France)", nativeName: "français (France)", /* Day Name Strings */ dayNames: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], abbreviatedDayNames: ["dim.", "lun.", "mar.", "mer.", "jeu.", ...
/////////////////////// /// UTILS /// /////////////////////// var u = {}; u.distance = function (p1, p2) { var dx = p2.x - p1.x; var dy = p2.y - p1.y; return Math.sqrt((dx * dx) + (dy * dy)); }; u.angle = function(p1, p2) { var dx = p2.x - p1.x; var dy = p2.y - p1.y; return u.degre...
const core = require('brigadehub-core') var pkg = require('./package.json') var brigade = require('./brigade')()[0] const bhConfig = { dotenv: require('./dotenv')(), info: '[Brigadehub]', version: pkg.version, brigade: brigade } core(bhConfig)
/** * @license Angular v4.0.3 * (c) 2010-2017 Google, Inc. https://angular.io/ * License: MIT */ import { Compiler, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, Inject, Injector, NgModule, NgZone, ReflectiveInjector, SimpleChange, Testability, Version } from '@angular/core'; import { platformBrows...
var searchData= [ ['player',['player',['../classplayer.html#a4c43d838817775e2a2b0241d30de4abc',1,'player']]] ];
/* dtpicker javascript jQuery */ (function($) { // 严格模式 'use strict'; // 控件类名 var pluginName = 'dtpicker'; var PluginClass=T.UI.Controls.DTPicker; var pluginRef = 't-plugin-ref'; // 胶水代码 $.fn[pluginName] = function(options) { if(typeof options === 'string'){ // 2. ...
const assert = require('assert'); const md5 = require('blueimp-md5'); const createApp = require('../../lib'); describe('tokenize service', () => { it('tokenizes and stems', () => { const app = createApp(); const text = `what's the weather in vancouver`; const hash = md5(text); return app.service('to...
'use strict'; var getTemplatedStylesheet = require('./templatedStylesheet'), path = require('path'); module.exports = getTemplatedStylesheet(path.join(__dirname, '/templates/stylus.tpl'));
import React from 'react' import Icon from 'react-icon-base' const MdTonality = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.9 23.4c0.1-0.6 0.2-1.2 0.3-1.8h-11.6v1.8h11.3z m-2.5 5c0.4-0.6 0.9-1.2 1.2-1.8h-10v1.8h8.8z m-8.8 4.8c1.8-0.2 3.4-0.8 4.9-1.6h-4.9v1.6z m0-16.6v1.8h11.6c-0.1-0.6...
'use strict' const dotenv = require('dotenv') const ENV = process.env.NODE_ENV || 'development' if (ENV === 'development') dotenv.load() const config = { ENV: process.env.NODE_ENV, PORT: process.env.PORT, PROXY_URI: process.env.PROXY_URI, WEBHOOK_URL: process.env.WEBHOOK_URL, BATTLESHIP_COMMAND_TOKEN: pro...
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(funct...
window.hideAlert = function () { $('#alertMessage').addClass("hidden"); $('#alertMessage').text(""); }; window.showAlert = function (msg) { $('#alertMessage').text(msg); $('#alertMessage').addClass("alert-danger"); $('#alertMessage').removeClass("hidden"); $('#alertMessage').fadeOut(100).fadeI...
define('controllers/panel',['require','jquery','backbone','utils/metrics','utils/browser','utils/video-player','utils/pubsub','controllers/panel-display'],function(require) { var $ = require('jquery'), Backbone = require('backbone'), Metrics = require('utils/metrics'), Browser = require('uti...
// Design Basic Game Solo Challenge // This is a solo challenge // Your mission description:To complete a line of the same figure, horizontal, diagonal or vertical // Overall mission: To win all the time :) // Goals: make a line of the same kind before computer does // Characters:You and the computer // Objects:tic ...
// GridFS // Copyright(c) 2013 Siddharth Mahendraker <siddharth_mahen@me.com> // MIT Licensed exports.GridFS = require('./lib/GridFS'); exports.GridStream = require('./lib/GridStream');
// @flow class A { x = [1, 2, 3]; y = 4; foo() { this.x = this.x.map(function (z) { this.y; // error, function has wrong this }); } } class B { x = [1, 2, 3]; y = 4; foo() { this.x = this.x.map(function (z) { this.y; // ok, function gets pass...
import collectionClass from "./collections.class"; import collectionColor from "./collections.color"; function collectionBackgroundStyles(contentItem) { return ` .${collectionClass(contentItem)} { background-color: #${collectionColor(contentItem)}; } `; } export default collectionBackgroundStyles;
version https://git-lfs.github.com/spec/v1 oid sha256:71736be070607c3c30f4c139b063edf1b1ffa587cf725a0acc1e06c6d3af0e48 size 53235
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), CurrentModel = mongoose.model('Attendance'), Schedule = mongoose.model('Schedule'), Group = mongoose.model('Group'), _ = require('lodash'); exports.attendance = function(req, res, next, id) { CurrentModel.load(id, function(err...