code
stringlengths
2
1.05M
tinymce.addI18n('ga',{ "Cut": "Gearr", "Heading 5": "Ceannteideal 5", "Header 2": "Ceannt\u00e1sc 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "N\u00ed f\u00e9idir le do bhrabhs\u00e1la\u00ed teacht go d\u00edreach ar an ngearrthaisce. Bain ...
require('../modules/es6.object.to-string'); require('../modules/es6.string.iterator'); require('../modules/web.dom.iterable'); require('../modules/es6.promise'); module.exports = require('../modules/_core').Promise;
require('./angular-locale_zh-hans'); module.exports = 'ngLocale';
/* A JavaScript implementation of the SHA family of hashes, as defined in FIPS PUB 180-2 as well as the corresponding HMAC implementation as defined in FIPS PUB 198a Copyright Brian Turek 2008-2015 Distributed under the BSD License See http://caligatio.github.com/jsSHA/ for more information Several functions t...
/** * Copyright 2012 Craig Campbell * * 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 ...
YUI.add('event-touch', function(Y) { /** * Adds touch event facade normalization properties (touches, changedTouches, targetTouches etc.) to the DOM event facade * * @module event-touch */ var SCALE = "scale", ROTATION = "rotation", IDENTIFIER = "identifier"; /** * Adds touch event facade normalization ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("widget","hr",{move:"Klikni i povuci da pomakneš",label:"%1 widget"});
/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){var e=["../emitter"];window.matchMedia||e.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",t,e)}(function(t,e,n,i,c,o,a){"use strict";function r(){var t=this,e=t.mql;t.emi...
/** * @license Highmaps JS v1.0.3 (2014-07-03) * * Standalone Highcharts Framework * * License: MIT License */ /*global Highcharts */ var HighchartsAdapter = (function () { var UNDEFINED, doc = document, emptyArray = [], timers = [], timerId, Fx; Math.easeInOutSine = function (t, b, c, d) { return -c / ...
/** * @fileoverview Rule to suggest using "Reflect" api over Function/Object methods * @author Keith Cirkel <http://keithcirkel.co.uk> * @deprecated in ESLint v3.9.0 */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------...
"use strict" // Description of supported double byte encodings and aliases. // Tables are not require()-d until they are needed to speed up library load. // require()-s are direct to support Browserify. module.exports = { // == Japanese/ShiftJIS ==================================================== // All...
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { th...
var os = require('os'), fs = require('fs'), path = require('path'), childProcess = require('child_process'), glob = require('glob'), chokidar = require('chokidar'), mv = require('mv'), db = require(__dirname + '/utils/mongodb.js'), ...
var shpwrite = require('shp-write'), clone = require('clone'), geojson2dsv = require('geojson2dsv'), topojson = require('topojson'), saveAs = require('filesaver.js'), tokml = require('tokml'), githubBrowser = require('@mapbox/github-file-browser'), gistBrowser = require('@mapbox/gist-map-bro...
import serviceGeoservice from './geoservice'; import serviceMapillary from './mapillary'; import serviceNominatim from './nominatim'; import serviceOpenstreetcam from './openstreetcam'; import serviceOsm from './osm'; import serviceTaginfo from './taginfo'; import serviceWikidata from './wikidata'; import serviceWikipe...
'use strict'; const compressAndCompare = require('../src/aws/compressAndCompare'), fs = require('fs'), crypto = require('crypto'), yaml = require('js-yaml'), path = require('path'), tmp = require('tmp'), unzip = require('adm-zip'), fsReadFile = require('../src/utils/fs').fsRea...
const Router = require('express').Router() const ApiController = require('../controllers/api') Router.get('/short', ApiController.index) Router.post('/short', ApiController.post) Router.get('/short/:short', ApiController.get) Router.put('/short/:short', ApiController.put) Router.delete('/short/:short', ApiController....
import sign from "./sign.js"; /** * [Bisection method](https://en.wikipedia.org/wiki/Bisection_method) is a root-finding * method that repeatedly bisects an interval to find the root. * * This function returns a numerical approximation to the exact value. * * @param {Function} func input function * @param {numb...
var Actions = require('ui/comment-actions') , React = require('react') , test = require('tap').test ; test('new Actions()', function (tap) { tap.ok(React.isValidClass(Actions), 'is React Class'); tap.end(); }); test('Actions html', function (tap) { var actions = new Actions(); var actionsHTML = React.re...
'use strict'; test(() => { assert_equals(document.currentFragment, document.querySelector('#test-8-1-nested')); }, 'Fixture 8-1 see document.currentFragment - fragment8-1');
import React from 'react' import {navigate} from '../actions' export default (props) => { const click = (event) => { if (event.metaKey) return event.preventDefault() navigate(props.href) } return <a {...props} onClick={click}>{props.children}</a> }
import assert from "assert"; import {utcHour} from "../src/index.js"; import {utc} from "./date.js"; it("utcHour.floor(date) returns hours", () => { assert.deepStrictEqual(utcHour.floor(utc(2010, 11, 31, 23, 59)), utc(2010, 11, 31, 23)); assert.deepStrictEqual(utcHour.floor(utc(2011, 0, 1, 0, 0)), utc(2011, 0...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MinKey = void 0; /** * A class representation of the BSON MinKey type. * @public */ var MinKey = /** @class */ (function () { function MinKey() { if (!(this instanceof MinKey)) return new MinKey(); } ...
const mongoose = require('mongoose'); //Use our own promise library. Mongoose's is deprecated. mongoose.Promise = global.Promise; mongoose.connect(process.env.MONGODB_URI); module.exports = { mongoose };
angular.module('beer-tab.services', []) .factory('AuthService', function ($http, $location, $window) { var authService = {}; authService.login = function (credentials) { return $http .post('/api/users/login', credentials) .then(function (resp) { return resp.data.token; }); }; ...
import round from 'round-to' export default function (accountData) { return { guildCount: guildCount(accountData), wvwRank: wvwRank(accountData), playtime: playtime(accountData), playtimePerDay: playtimePerDay(accountData), _luckFromAccount: luckFromAccount(accountData) } } // Count of joined ...
var TestObj = { alertMe: function (text) { alert(text); }, logMe: function (text) { console.info("Foo " + text); } };
/** * @file mip-zmall-yunfei 组件 * @author liu.xianggui@zol.com.cn */ define(function (require) { var customElement = require('customElement').create(); var util = require('util'); // toast function toast(str, pause) { var element = this.element; var toastHtml = '<div c...
import React, {Component} from 'react' import '../../assets/styles/Footer.styl' class Footer extends Component { render () { return ( <div id='Footer'> <div className='Footer_park1'> <h2><img src={require('../../assets/images/Footer_img/footer_img1.png')} />电影订座 就上卖座</h2> <div ...
import {takeLast} from './takeLast' test('with arrays', () => { expect(takeLast(1, ['foo', 'bar', 'baz'])).toEqual(['baz']) expect(takeLast(2)(['foo', 'bar', 'baz'])).toEqual(['bar', 'baz']) expect(takeLast(3, ['foo', 'bar', 'baz'])).toEqual(['foo', 'bar', 'baz']) expect(takeLast(4, ['foo', 'bar', 'baz']))....
/* * cli-test.js: Tests for the cli levels available in winston. * * (C) 2010 Charlie Robbins * MIT LICENSE * */ var path = require('path'), vows = require('vows'), assert = require('assert'), winston = require('../lib/winston'), helpers = require('./helpers'); vows.describe('winst...
module.exports = { deploy: { username: 'user.name@yourcompany.com', password: 'YourPasswordAndPossiblySecurityToken', login_url: 'https://login.salesforce.com', api_version: 36.0, timeout: 120000, poll_interval: 5000, }, visualforc...
// @flow import { PLACEHOLDERS_ALIAS } from "../definitions"; /** * Test if a `placeholderType` is a `targetType` or if `targetType` is an alias of `placeholderType`. */ export default function isPlaceholderType( placeholderType: ?string, targetType: string, ): boolean { if (placeholderType === targetType) ret...
var request = require('request'); var crypto = require('crypto'); var xml2js = new require('xml2js').Parser(); var config = require('../config'); var Log = require('log'), log = new Log(config.log.level); FRITZ_NUMBER_OF_ENTRIES = '<?xml version="1.0" encoding="utf-8"?>' + '<s:Envelope s:encodingStyle="http://sch...
IntlMessageFormat.__addLocaleData({locale:"smn",pluralRuleFunction:function(e,o){return o?"other":1==e?"one":2==e?"two":"other"}});
'use strict' import { removeUser, removePet, modifyUser, modifyPet, getUsers, getPets, getUser, getPet, addUser, addPet, } from './' addUser({name: 'Tyler', age: 27, gender: 'Male', friends: ['Joseph']}) .then(result => { console.log(result) return getUser({name: 'Tyler'}) .then(result => console.log(...
//TASK1 & TASK4 var str = 'something'; var int = 123; var float = 12.3; var obj = { name: 'Pesho', age: 25 }; var arr = [1, 2, 3]; var bool = true; var func = function() { alert('This is a function!'); }; var nullValue = null; var undef; //TASK2 var quotedStrFirstWay = '\'How you doin\'?\', Joey said.';...
module.exports = '<div class="greeting-target"></div>\n';
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var fs = require('fs'); var resolve = require('resolve'); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "func...
/* Use strict */ // CONSTRUCTORS // Here is where you'll create your constructors for you player and monster. // e.g. function Monster(){}; // e.g. function Player(){}; function Player(options){ this.name = options.name; this.health = options.health; this.attack = function(monsta){ return monsta.health = mo...
/* WHILE STATEMENTS */ var cnt = 0; var goal = 10; function setup() { createCanvas(800,600); while (cnt <= goal) { cnt++; console.log(cnt); } } function draw() { }
const fs = require( "fs" ); const glob = require( "tiny-glob/sync" ); // This is a meta test to validate structural expectations of our // tests, such as checking for fixture files that aren't used or // missing from one of the test targets. QUnit.module( "structure", () => { QUnit.module( "test/main/*.js", () => { ...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:user/packages', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var controller = this.subject(); assert.ok(controller);...
/** usage: $.tips({ content: '', class: 'tip-holder', maxNum: 3 }) */ $.tips = function(options) { var defaults = { selector: '#tipHolder', maxNum: 3, autoClose: false, showTime: 5 }; var opts=$.extend({}, defaults, options); var o = $.meta ? $.extend({}, opts, $(this).data()) : opts; if (!$(o.sel...
// Public domain // http://unlicense.org/ Script.requireExtension("Console"); var x = {a: 100, b: 101, c: 102, d: 103}; var kx = []; var vx = []; var n = 0; for(var m in x) { kx[n] = m; vx[n] = x[m]; ++n; }; if( (kx[0] == "a" && vx[0] == 100) && (kx[1] == "b" && vx[1] == 101) && (kx[2] == "c"...
/** * Created by leoriccao on 2015/9/1. */ LBF.define('qidian.comp.emoji',function (require, exports, module) { var jEmoji = require('qidian.comp.emoji.emoji'); function emoji(){ this.parse=function(text){ return jEmoji.unifiedToHTML(text); } } module.exports=new emoji(); ...
Object.defineProperty(exports, "__esModule", { value: true }); var reg_1 = require("./reg"); var _ = new reg_1.default(); var storage; if ((typeof Storage) !== 'undefined') { storage = window.localStorage; } var Store = (function () { function Store() { } Store.prototype.getCookie = function (name) { ...
import _ from 'lodash'; import ui from 'src/util/ui'; import chemspider from './chemspider'; import chemexper from './chemexper'; import epfl from './epfl'; const defaultOptions = { chemexper: true, chemspider: true, epfl: false }; module.exports = { chemspider: chemspider, chemexper: chemexper, epfl: ep...
var App, container; var compile = Ember.Handlebars.compile; module("Application Lifecycle - Component Registration", { setup: function() { Ember.TEMPLATES["components/expand-it"] = compile("<p>hello {{yield}}</p>"); Ember.TEMPLATES.application = compile("Hello world {{#expand-it}}world{{/expand-it}}"); }, ...
define(["ko"], function(ko){ function KarmaViewModel(){ var self = this; self._ = { shown: false, disposed: false }; self.shown = function(){ if(!self._.shown){ self._.shown = true; } }; self.hidden = ...
;(function(){ var setVisibleStep,getCompIdByName,tmplid,approveid = location.hash.substr(1); var stepData = {},sendids = [],step; jsonReq.post('/open/approve','show',{id:approveid},function(data){ var strUsers = []; stepData = data.result; step = stepData.status; $('#approve_name p span').html(stepData.n...
import expect from 'expect'; import headerReducer from '../reducer'; import { fromJS } from 'immutable'; describe('headerReducer', () => { it('returns the initial state', () => { expect(headerReducer(undefined, {})).toEqual(fromJS({})); }); });
var Generator = require('./../../node-forge/src/Generator'); var _ = require("underscore") var americano = require('./../americano'); /** * A generator */ module.exports = Generator.extend({ // set the generator name key: 'model', project_dir: americano.generatorpath, /** * What to do on setup (will be...
{"response":{"bookname":"1 Thessalonians","number_of_chapters":"5","chapters":[{"chapter":"1","link":"./?book=1-Thessalonians&chapter=1"},{"chapter":"2","link":"./?book=1-Thessalonians&chapter=2"},{"chapter":"3","link":"./?book=1-Thessalonians&chapter=3"},{"chapter":"4","link":"./?book=1-Thessalonians&chapter=4"},{"cha...
"use strict"; var _ = require('underscore'); var util = require('substance-util'); var errors = util.errors; var Schema = require('./schema'); var Property = require('./property'); var Index = require('./graph_index'); var GraphError = errors.define("GraphError"); // Data types registry // ------------------- // Av...
var baseCastPath = require('./_baseCastPath'), has = require('./has'), isKey = require('./_isKey'), last = require('./last'), parent = require('./_parent'); /** * The base implementation of `_.unset`. * * @private * @param {Object} object The object to modify. * @param {Array|string} pa...
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-03-09 using // generator-karma 0.9.0 module.exports = function (config) { "use strict"; config.set({ // enable / disable watching file and executing tests whenever any file changes ...
/** * Use jsdom and jquery */ var scrapinode = require('./../'); scrapinode.use(/http:\/\/society6.com/,'title',function(window){ var $ = window.$; var title = $('h1[itemprop="name"]').text(); return title; }); var options = { url : 'http://society6.com/product/Sounds-Good-Dude_T-shirt', engine : 'jsdom' }; ...
/* * grunt-sourcemap-localize * https://github.com/abovethewater/grunt-sourcemap-localize * * Copyright (c) 2013 Joe Mathews * Licensed under the MIT license. * http://abovethewater.mit-license.org/ */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-...
let request = require('supertest'); let expect = require('chai').expect; let config = require('../../lib/config'); let _ = require('lodash'); let getSession = require('../helpers/get-session'); let HowhapList = require('howhap-list'); describe('POST /auth/register', function() { describe('responseFormat json', funct...
/* * * Author reducer * */ import { fromJS } from 'immutable'; import { AUTHOR_PROFILE_LOADED, AUTHOR_PROFILE_LOADING_ERROR, } from './constants'; const initialState = fromJS({ author: { fetching: true, error: false, data: {}, }, }); function authorReducer(state = initialState, action) { sw...
var barChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { fillColor : "rgba(106, 218, 228, 0.8)", data : [65,59,90,81,56,55,40] }, { ...
(function( document, stik ){ stik.createBehavior = function behavior( spec ){ if ( !spec.name ) { throw "Stik: Behavior name is missing"; } if ( spec.name.indexOf(" ") !== -1 ) { throw "Stik: '" + spec.name + "' is not a valid Behavior name. Please replace empty spaces with dashes ('-')"; } if ( !spec.exe...
/** * Created by Kevin Boutin on 08/23/15. */ angular.module('crudApp.services', []).factory('Item', function ($resource) { return $resource('http://crudapp.weprovideit.com/api/items/:id', { id: '@id' }, { 'get': { method: 'GET' }, 'query': { method: 'GET', isArray: true }, 'update': { method: 'POST' }, 're...
var gulp = require('gulp') gulp.task('default', [ 'css', 'app' ])
import Ember from 'ember-metal/core'; // A import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import run from "ember-metal/run_loop"; import Registry from 'container/registry'; import Namespace from "ember-runtime/system/namespace"; import { classify } from "ember-runtime/s...
/*jshint node:true*/ /* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var APP_OPTIONS = {}; var app_deploy_target = process.env['APP_DEPLOY_TARGET']; APP_OPTIONS.fingerprint = { "prepend": process.env['APP_DEPLOY_FINGERPRINT...
require('proof')(2, require('cadence')(prove)) function prove (async, okay) { var Procession = require('..') var Reader = require('../reader') var Writer = require('../writer') var stream = require('stream') var through = new stream.PassThrough var reader = new Reader(new Procession, through) ...
define("model/project", ["require", "exports", "module", "configs/settings", "lang/index", "utils/log", "service/userProfile"], function(e, t) { var i = e("configs/settings"), n = e("lang/index"), s = e("utils/log"), a = e("service/userProfile"); t.Model = Backbone.Model.extend({ default...
{ ("use strict"); var HTMLElement = scope.wrappers.HTMLElement; var mixin = scope.mixin; var registerWrapper = scope.registerWrapper; var OriginalHTMLContentElement = window.HTMLContentElement; function HTMLContentElement(node) { HTMLElement.call(this, node); } HTMLContentElement.prototype = Obje...
module.exports = { "env": { "es6": true, "node": true, "mocha": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "space-before-function-paren": ["error", { "anonymous": "always", "name...
// @flow import React from 'react' import styled from 'styled-components' import { myTheme } from '../../styles' import assets from './assets' const { color, breakpoint, borderRadii } = myTheme // Profile Photo // ---------------------------------------- const StyledProfilePhoto = styled.img` width: 100%; obje...
var expect = require("chai").expect, triggerDeps = require('../src/trigger'); describe("Trigger", function () { it("should run all systems with given event", function () { var called = false, trigger = triggerDeps({ frame: [function () { called = true; }] });...
(function($) { "use strict"; $.extend({ isiPhone : /iphone/img.test(navigator.userAgent), isiPad : /ipad/img.test(navigator.userAgent), isiPod : /ipod/img.test(navigator.userAgent), isiOS : /ip(hone|od|ad)/img.test(navigator.userAgent), isAndroid : (/android/img.test(navigator.userAgent) && !/tr...
(function($) { window.getWeather = function(latitude, longitude, callback) { var getAddressFromLocation = function(lat, lng, cb) { $.get('http://maps.googleapis.com/maps/api/geocode/json?latlng=' + lat + ',' + lng + '&sensor=true&language=ko', function(response) { if (response.status === 'OK') { var add...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/m/ToolbarLayoutData'],function(T){"use strict";var O=T.extend("sap.m.OverflowToolbarLayoutData",{metadata:{propert...
import React, {Component} from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { staleDucks, staleUser } from 'helpers/utils' import * as usersActionCreators from 'redux/modules/users' import * as usersDucksActionCreators from 'redux/mod...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _Table = require('./Table'); Object.defineProperty(exports, 'default', { enumerable: true, get: function get() { return _interopRequireDefault(_Table).default; } }); var _TableBody = require('./TableBody'); Object.definePr...
// Generated by CoffeeScript 2.4.1 (function() { //Language: Danish //Translators: LarsBuur var da; da = { add: "tilføj", and: "og", back: "tilbage", changePassword: "Skift kodeord", choosePassword: "Vælg kodeord", clickAgree: "Ved at klikke på tilmeld accepterer du vores", configur...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
import styled from 'styled-components'; export default styled.div` position: absolute; overflow: hidden; height: 100%; width: 100%; `;
export const ic_tour_twotone = {"viewBox":"0 0 24 24","children":[{"name":"g","attribs":{},"children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24"},"children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24"},"children":[]}]},{"name":"g","attribs":{},"children":[{"name":"g","at...
/** * Breaks Gulp tasks into different files. */ 'use strict'; var requireDir = require( 'require-dir' ); requireDir( './gulp/tasks', { recurse : true } );
!function(Framework, exports) { 'use strict'; var Scene = Framework.Scene, Location = Framework.Location, Game = Framework.Game; var score = 5, index = 0, called = false, scenes = [], locations = []; function decrement() { score--; next(Location.get(this.attributes...
/** * Created by tom on 5/6/14. */ (function ($, google) { var resizeFont = function () { var fontSize = $('#help').height() * 0.67; // 10% of container height if(fontSize > 20) { fontSize = 20; } $('#help-p').css('font-size', fontSize); }; $(window).resize(resizeFont); // Give me all of the execut...
/** * Grunt JSCS plugin * https://github.com/jscs-dev/grunt-jscs */ module.exports = { options: { config: '.jscsrc', fix: false }, frontend: [ '<%= srcPath %>**/*.js' ], grunt: [ '<%= gruntPath %>**/*.js', 'Gruntfile.js' ], karma: [ ...
$(document).ready(function () { $('#submit-button').parent().hide(); var wait; $('#id_search_string').keyup( function(){ clearTimeout(wait); wait = setTimeout("getPosts()", 1000); } ); }); function getPosts(){ $.ajax({ beforeSend: function(){ ...
var burntToast = new BurntToast(); var toastBtn1 = document.querySelector('#make_toast'); var toastBtn2 = document.querySelector('#make_toast_2'); var toastAction = document.querySelector('#make_toast_action'); function doUndo() { burntToast.makeToast('Undo action success!'); } toastBtn1.addEventListener('click',...
Number.prototype.formatMoney = function(c, d, t){ var n = this; var c = isNaN(c = Math.abs(c)) ? 2 : c; var d = d == undefined ? "," : d; var t = t == undefined ? "." : t; var s = n < 0 ? "-" : ""; var i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + ""; var j = (j = i.length) > 3 ? j % 3 : 0; ...
'use strict'; var theModule = angular.module('gservDocsApp', [ 'ngResource','ngRoute','ngLocale', 'ui.bootstrap' ]); theModule.config(function ($routeProvider) { $routeProvider .when('/general', { templateUrl: 'views/general.html', controller: "GServGeneralDocsCtrl" }).w...
/*globals casper, __utils__, url */ CasperTest.begin("Settings screen is correct", 18, function suite(test) { casper.thenOpen(url + "ghost/settings/", function testTitleAndUrl() { test.assertTitle("Ghost Admin", "Ghost admin has no title"); test.assertUrlMatch(/ghost\/settings\/general\/$/, "Ghost ...
import Packet from './Packet'; export default class PacketTOT extends Packet { utc = 0; descriptorLength = 0; descriptors = []; constructor(data) { super(data); } };
var webpack = require('webpack'); var path = require('path'); var config = require('./webpack.config'); config.output = { filename: '[name].bundle.js', publicPath: '/', path: path.resolve(__dirname, 'client') }; config.plugins = config.plugins.concat([ new webpack.DefinePlugin({ 'api': '"http://api...
function solveTask(number) { for (var i = 1; i <= number; i++) { if (i % 3 === 0 && i % 7 === 0) { console.log(i); } } } solveTask(5); solveTask(999); solveTask(28713);
'use strict'; module.exports = function redirector(/* options */) { var Poison = require('poison'); var log = require('unilog'); var Util = require('util'); Poison.getModulesByName('debug').forEach(redirect); Poison.addHook('debug', function(moduleName, mod) { redirect(mod); }); function redirect(debugMo...
this.NesDb = this.NesDb || {}; NesDb[ '1F6072AE901F3D3530ADCD3C136178E3C7354990' ] = { "$": { "name": "Star Wars: The Empire Strikes Back", "class": "Licensed", "catalog": "NES-EK-NOE", "publisher": "JVC", "developer": "LucasFilm Games", "portdeveloper": "Sculptured Software", "region": "Germany", "pl...
var webpack = require("webpack"); var path = require("path"); var node_modules_dir = path.join(__dirname, "node_modules"); var config = { cache: true, context: __dirname, entry: { app: [ "webpack/hot/dev-server", "./index.js" ] }, output: { path: path.join(__dirname, "./build"), f...
import React from 'react'; const Header = () => { return ( <nav className="nav navbar-default"> <div className="navbar-header"> <a className="navbar-brand">ShortenMyLink</a> </div> </nav> ); }; export default Header;
/** * Adapted from Kes Thomas' JavaScript Perlin noise code at * http://asserttrue.blogspot.ca/2011/12/perlin-noise-in-javascript_31.html **/ // This is a port of Ken Perlin's Java code. The // original Java code is at http://cs.nyu.edu/%7Eperlin/noise/. // Note that in this version, a number from 0 to 1 is returne...