code
stringlengths
2
1.05M
YUI.add("lang/calendar-base_es",function(e){e.Intl.add("calendar-base","es",{very_short_weekdays:["Do","Lu","Ma","Mi","Ju","Vi","Sa"],first_weekday:1,weekends:[0,6]})},"patched-v3.16.0");
/** * @file TLS certificate tools. * @author zdying */ 'use strict'; var fs = require('fs'); var os = require('os'); var https = require('https'); var path = require('path'); var forge = require('node-forge'); var pki = forge.pki; var md5 = forge.md.md5; var mkdirp = require('./mkdirp'); var dirtool = require('../...
module.exports={A:{A:{"1":"A B","2":"H D G E EB"},B:{"1":"C p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 X Y Z b c d e f g h i j k l m n o M q r s t u v w y","2":"ZB BB F K H D G E A B C p x J L XB RB","4":"N I O P Q R S T U V W"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h ...
const helpers = require('./helpers'); const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin'); const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin'); const {CheckerPlugin} = require('awesome-typescript-loader'); const getConfig = (hasCoverage, isTddMode) => { let extraRul...
;(function($){ "use strict"; Metis.formGeneral = function() { $('.with-tooltip').tooltip({ selector: ".input-tooltip" }); /*----------- BEGIN autosize CODE -------------------------*/ if($('#autosize').length){ $('#autosize').autosize(); } /*----------- END autosize CODE...
(function() { Dagaz.View.KO_ALPHA = 0.3; var checkVersion = Dagaz.Model.checkVersion; Dagaz.Model.checkVersion = function(design, name, value) { if (name != "uxo-restrictions") { checkVersion(design, name, value); } } var CheckInvariants = Dagaz.Model.CheckInvariants; Dagaz.Model.CheckInvari...
module.exports = { mixins: [ "oembed-title", "oembed-thumbnail", "oembed-author", "oembed-site", "oembed-video-responsive-nonhtml5" ], getLinks: function(oembed) { return { href: "http://www.screenr.com/public/images/apple-touch-icon.png", ...
// Grouping module ;(function($){ "use strict"; $.extend($.jgrid,{ template : function(format){ //jqgformat var args = $.makeArray(arguments).slice(1), j, al = args.length; if(format===undefined) { format = ""; } return format.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g, function(m,i){ if(!isNaN(p...
// ========================================================================== // // Wheel // Basic mouse weheel support for gallery navigation // // ========================================================================== (function(document, $) { "use strict"; var prevTime = new Date().getTime(); $(document)....
module.exports = ["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"","","","","","","","","","","",null,null,null,null,null,nu...
var express = require("express"); var router = express.Router(); var Post = require("../models/post"); var authMiddleware = require("../middlewares/auth"); router.route("/") .get(function(req, res, next) { Post.find({}, function(error, posts) { return res.render("posts/list", {posts: posts}); }); ...
/** * Created by Denislav on 18.6.2016 г.. * Дадени са текст и списък от думи, разделени със запетайка. Списъкът описва думи, които са нецензурни и не трябва да се съдържат в текста. * Напишете програма, която замества всички нецензурни думи от текста със звездички. Например ако имаме текста "Какъв хикс дириш тука б...
NC.noisymapsMarkers = function(params) { // Create our "tiny" marker icon this.imgTube = "http://s3-eu-west-1.amazonaws.com/noisyimages/icons/underground.png"; this.imgAtm = "http://s3-eu-west-1.amazonaws.com/noisyimages/icons/bank.png"; this.imgSmileDone = "http://s3-eu-west-1.amazonaws.com/noisyimage...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2022 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Input Plugin Shutdown Event. * * This internal event is dispatched by the Input Plugin when it shuts down, signalling to all of its...
function Vector(x, y) { this.x = x; this.y = y; } Vector.prototype.mul = function(scalar) { return new Vector(this.x * scalar, this.y * scalar); }; Vector.prototype.add = function(other) { return new Vector(this.x + other.x, this.y + other.y); }; Vector.prototype.lengthSquared = function() { return this.x ...
const express = require('express') const methodOverride = require('method-override') const _ = require('lodash') const lodashId = require('lodash-id') const low = require('lowdb') const Memory = require('lowdb/adapters/Memory') const FileSync = require('lowdb/adapters/FileSync') const bodyParser = require('../body-pars...
'use strict' module.exports = [ { key: 'standard', value: 'Standard', code: 'SUB' }, { key: 'startup', value: 'Startup', code: 'SUB' }, { key: 'professional', value: 'Professional', code: 'SUB' }, { key: 'business', value: 'Business', code: 'SUB' }, { ...
/*! * ui-grid - v4.9.0 - 2020-09-27 * Copyright (c) 2020 ; License: MIT */ (function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.pinning * @description * * # ui.grid.pinning * * <div class="alert alert-success" role="alert"><strong>Stable</strong> This feature is stable. Ther...
/** * Created by sunNode on 16/10/22. */ var should = require('should') var app = require('../app') var request = require('supertest') describe('get single product test', function () { it('should get this is ios product success', function (done) { request(app) .get('/single-product/582724b31a3fb68e...
/* jshint node: true */ "use strict"; var Filter = require('broccoli-persistent-filter'); var fs = require('fs'); module.exports = class FastbootManifestRewrite extends Filter { constructor(inputNode, assetMap) { super(inputNode, { annotation: 'broccoli-asset-rev/fastboot-manifest-rewrite'}); this.assetMap ...
import moment from 'moment'; export default class Template { constructor() { this.templatePattern = { 'year': this.getYear, 'month': this.getMonth, 'date': this.getDate, 'user': this.getUser, }; } getYear() { return moment().format('YYYY'); } getMonth() { return mom...
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "m.", "p." ], "DAY": [ "domenica", "luned\u00ec", ...
import { registerVersion, _registerComponent, _getProvider, getApp } from 'https://www.gstatic.com/firebasejs/9.6.8/firebase-app.js'; /** * @license * Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
/* * * * Streamgraph module * * (c) 2010-2020 Torstein Honsi * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ import BaseSeries from '../Core/Series/Series.js'; import '../Series/AreaSplineSeries.js'; /** * @private * @class * @...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // ...
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.jsforce=e()}}(function(){var define,module,exports;return (function e(t,n,r){functio...
appControllers.controller('subscriberCtrl', ['$scope','$http','subscriberService',function UsersCtrl($scope,$http,subscriberService) { $scope.subscribe = function() { console.log('in subscribe'); subscriberService.subscribeCall($scope.name,$scope.mail).then(function(res){ console.log(res); ...
define(function (require) { describe("removeEventListener tests", function () { var removeEventListener = require("src/modules/helpers/remove_event_listener"); var events = require("src/modules/component/events/events"); var clickFunction1 = function () { console.log("click function 1"); }; var clickF...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { ConcatSource } = require("webpack-sources"); const Template = require("../Template"); const propertyAccess = require("../util/propertyAccess"); const AbstractLibraryPlugin = require("./AbstractLib...
(function( ) { 'use strict'; function getViewModel() { return new app.model.todo(); } app.view.todo = Mortar.view.extend({ fqn: 'js/view/todo', model: getViewModel }); })( );
exports.method = function() { return 'Hello'; }; exports.method2 = function() { return 'Hello again'; };
// Generated by CoffeeScript 1.3.3 (function() { var BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTIN...
import {routes as routeArray} from '../config' import React from 'react' import Debug from 'debug' let debug = Debug('keystone:pages:component:util'); // build a route object let routes = {} for (let v of routeArray) { routes[v.path] = v } export function getFileName(url) { /** * return an object with filename ...
L.Control.Sidebar = L.Control.extend({ includes: L.Mixin.Events, options: { closeButton: true, position: 'left', autoPan: true, }, initialize: function (placeholder, options) { L.setOptions(this, options); // Find content container var content = this._...
'use strict'; var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/; var EMAIL_REGEXP = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/; var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/; var inputType = { /** * @ngdoc inputType * @name ng.directive...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('log', 'Log', { // Specify the other units that are required for this test. needs: ['model:user', 'model:pairing'] }); test('it exists', function() { var model = this.subject(); // var store = this.store(); ok(!!model); });
var React = require('react'); var joinClasses = require('./utils/joinClasses'); var classSet = require('./utils/classSet'); var BootstrapMixin = require('./BootstrapMixin'); var constants = require('./constants'); var Glyphicon = React.createClass({displayName: 'Glyphicon', mixins: [BootstrapMixin], propTypes: { ...
// Generated by CoffeeScript 1.6.3 var FOCUS_ELEMENTS, HTML, elementType, setAttribute, setFocus, _i, _len, _ref; HTML = require("jsdom").dom.level3.html; FOCUS_ELEMENTS = ["INPUT", "SELECT", "TEXTAREA", "BUTTON", "ANCHOR"]; HTML.HTMLDocument.prototype.__defineGetter__("activeElement", function() { return this._in...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("codesnippet","lv",{button:"Ievietot koda fragmentu",codeContents:"Code content",emptySnippetError:"A code snippet cannot be empty.",language:"Lan...
/*globals define*/ /*jshint browser: true*/ /** * @author brollb / https://github/brollb * * STRING CONSTANT DEFINITIONS USED IN CONSTRAINT EDITOR */ define([], function () { 'use strict'; //return string constants return { /* * TERRITORY EVENTS */ SELF: '__SELF__', ...
var environment = function() { return process.env.NODE_ENV || 'development'; }; var appConfig = require('./config_' + environment()); module.exports = appConfig;
define([ "dojo", "dijit", "dojox", "dijit/_editor/_Plugin", "dijit/_editor/html", "dojo/_base/connect", "dojo/_base/declare" ], function(dojo, dijit, dojox, _Plugin, editorHtml) { dojo.declare("dojox.editor.plugins.NormalizeStyle", _Plugin,{ // summary: // This plugin provides NormalizeStyle capability to th...
'use strict'; import parseLogs from '../client/parse-logs'; describe('parseLogs', function () { let logs = function () { return ` Running target/debug/lib-a8870084aab755f9 running 5 test test tests::some_test ... ok test tests::some_other_test ... ok test tests::just_another_...
/* global menu */ let isLoading; let filterText = ''; let usernamesFromClient; let resultsFromClient; Meteor.startup(() => { isLoading = new ReactiveVar(false); }); const toolbarSearch = { shortcut: false, clear() { const $inputMessage = $('textarea.input-message'); if (0 === $inputMessage.length) { return...
(function () { 'use strict'; angular.module('multi-file', ['ng']) .service('service1', function ($http) { // TEST: a completion list shows up below // $http. return { member1: 'test' }; }); })();
#!/usr/bin/env node require("../phantom/boot")();
'use strict'; describe('Customers E2E Tests:', function () { describe('Test customers page', function () { it('Should report missing credentials', function () { browser.get('http://localhost:3001/customers'); expect(element.all(by.repeater('customer in customers')).count()).toEqual(0); }); }); ...
"use strict"; const path = require("path"); const webpack = require(".."); describe("NodeTemplatePlugin", () => { jest.setTimeout(20000); it("should compile and run a simple module", done => { webpack( { mode: "production", context: path.join(__dirname, "fixtures", "nodetest"), target: "node", ...
/** * Module dependencies. */ var EventEmitter = require('events').EventEmitter; var mixin = require('utils-merge'); var proto = require('./application'); var Route = require('./router/route'); var Router = require('./router/index'); var req = require('./request'); var res = require('./response'); /** * Expose `cr...
/** * View for a collection of tracks * * @file Views.Tracks.js * @author Jan Myler <honza.myler[at]gmail.com> * @copyright Copyright 2012, Jan Myler (http://janmyler.com) * @license MIT License (http://www.opensource.org/licenses/mit-license.php) * * Licensed under The MIT License * Redistri...
"use strict"; var instances = require("./instances.js"); var when = require("when"); /** * Terminates all running PhantomJS processes. Returns a Promises/A+ compliant promise * which resolves when a processes terminated cleanly. * * @returns {Promise} */ function disposeAll() { var copy = instances.slice(0);...
'use strict'; const Page = require( './page' ); class UserLogoutPage extends Page { open() { super.open( 'Special:UserLogout' ); } } module.exports = new UserLogoutPage();
(function ($) { var methods = { init : function() { return this.each(function() { // For each set of tabs, we want to keep track of // which tab is active and its associated content var $this = $(this), window_width = $(window).width(); $this.width('100%'); // Set ...
'use strict'; module.exports = require('./src');
/* ======================================================================== * Bootstrap: scrollspy.js v3.1.1 * http://getbootstrap.com/javascript/#scrollspy * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/b...
/*! * BarCode Coder Library (BCC Library) * BCCL Version 2.0 * * Porting : jQuery barcode plugin * Version : 2.0.3 * * Date : 2013-01-06 * Author : DEMONTE Jean-Baptiste <jbdemonte@gmail.com> * HOUREZ Jonathan * * Web site: http://barcode-coder.com/ * dual licence...
import get from 'lodash-es/get'; import {createSelector} from 'reselect'; import getCompiledProjects from './getCompiledProjects'; export default createSelector([getCompiledProjects], compiledProjects => { const mostRecentCompiledProject = compiledProjects.last(); const title = get(mostRecentCompiledProject, ['ti...
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { syncReduxAndRouter } from 'redux-simple-router'; import Root from './containers/Root'; import configureStore from './store...
angular.module('vr.directives.nlForm.text',[]) .directive('nlText', function(){ return { restrict: 'EA', replace: true, scope: { placeholder: '@', subline: '@', name: '@', value: '=' }, template: '<div ng-form class="nl-field nl-ti-text" ng-cl...
module.exports = function(app) { var express = require('express'); var commentsRouter = express.Router(); var commentID = 0; var comments= [{id: 1, text: "First comment"}]; commentsRouter.get('/', function(req, res) { res.send({ 'comments': [] }); }); commentsRouter.post('/', function(req, ...
jest.mock(`fs`, () => { return { existsSync: jest.fn(), readFileSync: jest.fn(), } }) const fs = require(`fs`) const Remark = require(`remark`) const plugin = require(`../index`) const { PROTOCOL_BABEL, PROTOCOL_CODEPEN, PROTOCOL_CODE_SANDBOX, PROTOCOL_RAMDA, } = require(`../constants`) const REM...
'use strict'; function from(source) { return { to: function (target) { return { imply: function (mappings, overwrite) { Object.keys(mappings).forEach(function (sourceProperty) { var targetProperty; if (source.hasOwnProperty(sourceProperty)) { targetProperty = mappings[sourceProperty]...
import {lineBreakG} from "./whitespace.js" // These are used when `options.locations` is on, for the // `startLoc` and `endLoc` properties. export class Position { constructor(line, col) { this.line = line this.column = col } offset(n) { return new Position(this.line, this.column + n) } } export...
ModuleCommon.PostItModule = ModuleCommon.PostItModule || (function () { var _args; var module = this; return { init: function (args) { _args = $.extend({ }, args); }, start: function () { ko.postbox.publish(Enums.Postbox...
import { FETCH_ALL_USERS_REQUEST, FETCH_ALL_USERS_SUCCESS, FETCH_ALL_USERS_FAILURE, FETCH_USER_REQUEST, FETCH_USER_SUCCESS, FETCH_USER_FAILURE } from '../actions/admin-actions'; const initialState = { isFetching: false, users: { isFetching: false, currentlyEditing: null, res...
/*! * Bootstrap-select v1.13.14 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2020 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (root === undefined && window !== undefined) r...
module('Ember.String.camelize'); if (!Ember.EXTEND_PROTOTYPES && !Ember.EXTEND_PROTOTYPES.String) { test("String.prototype.camelize is not modified without EXTEND_PROTOTYPES", function() { ok("undefined" === typeof String.prototype.camelize, 'String.prototype helper disabled'); }); } test("camelize normal str...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = defaultFormatter; var _react = require('react'); var React = _interopRequireWildcard(_react); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) {...
/** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict';...
/*! lg-zoom - v1.3.0-beta.0 - October-05-2020 * http://sachinchoolur.github.io/lightGallery * Copyright (c) 2020 Sachin N; Licensed GPLv3 */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module unless amdModuleId is set define(['jquery'], funct...
export { default } from 'ember-bootstrap/components/bs-alert';
'use strict'; const rewire = require('rewire'); const memory = require('./memory'); const projectDb = rewire('./authorities-db'); const C = require('../../chai'); /*global describe, it, expect, beforeEach, afterEach */ describe('Authorities DB', () => { let db; let hashTable; beforeEach(() => { db = {}; ...
/*global define*/ define([ '../Core/AssociativeArray', '../Core/Cartesian3', '../Core/defined', '../Core/destroyObject', '../Core/DeveloperError', '../Core/JulianDate', '../Core/Matrix3', '../Core/Matrix4', '../Core/ReferenceFrame', '../Cor...
'use strict'; const common = require('../common'); if (!common.hasIntl) { // A handful of the tests fail when ICU is not included. common.skip('missing Intl'); } const fixtures = require('../common/fixtures'); const URL = require('url').URL; const { test, assert_equals } = require('../common/wpt').harness; const ...
/*! kibana - v3.0.0milestone5 - 2014-02-11 * Copyright (c) 2014 Rashid Khan; Licensed Apache License */ define("panels/derivequeries/module",["angular","app","lodash"],function(a,b,c){var d=a.module("kibana.panels.derivequeries",[]);b.useModule(d),d.controller("derivequeries",["$scope",function(a){a.panelMeta={status...
var template = require('../'); var fs = require('fs'); var test = require('tape'); var concat = require('concat-stream'); var expected = fs.readFileSync(__dirname + '/skills/expected.html', 'utf8'); test('skills', function (t) { t.plan(1); var html = template(); var skills = html.template('skill'); ...
YUI.add('dd-constrain', function (Y, NAME) { /** * The Drag & Drop Utility allows you to create a draggable interface efficiently, * buffering you from browser-level abnormalities and enabling you to focus on the interesting * logic surrounding your particular implementation. This component enables...
import mountTemplate from 'test/utils/mountTemplate' import MdChips from './MdChips.vue' test('should render the chips', async () => { const template = '<md-chips></md-chips>' const wrapper = await mountTemplate(MdChips, template) expect(wrapper.hasClass('md-chips')).toBe(true) }) test('should render the theme...
require({cache:{ 'dojox/charting/plot2d/_PlotEvents':function(){ define(["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/_base/connect"], function(lang, arr, declare, hub){ return declare("dojox.charting.plot2d._PlotEvents", null, { constructor: function(){ this._shapeEvents = []; this._e...
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
version https://git-lfs.github.com/spec/v1 oid sha256:e186313df948b17407246b3d2a25f335194c6fc4beeecbe691f5b534f854ec53 size 729
module.exports = app => { app.get('home', '/', app.controller.home); app.get('async', '/async', 'async.index'); app.get('empty', '/empty', app.controller.empty); // app.get('/only_require', app.controller.onlyRequire); app.get('/xss', app.controller.xss); app.post('/context', app.controller.context); app....
const foo = { bar(props) { ;([x, ...super.client] = props); } }
// Note: This is the list of formats // The rules that formats use are stored in data/rulesets.js exports.Formats = [ // XY Singles /////////////////////////////////////////////////////////////////// { name: "Random Battle", section: "ORAS Singles", team: 'random', ruleset: ['PotD', 'Pokemon', 'Sleep Cla...
$(document).ready(function () { 'use strict'; /* ======================================================================== Fullscreen burger menu ========================================================================== */ $(".menu-trigger, .mobilenav").click(function () { $(".mobilenav").fadeToggle(5...
angular.module('mainModule') .factory('CoreFactory', ['Restangular', function (Restangular) { return { } }]);
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. */ 'use strict'; var assert = require('chai').assert; var delay = require('../../../../lib/delay'); var Mercury = require('../../../../../src/client/mercury/mercury'); var MockSpark = require('../../../lib/mock-spark'); var MockSocket = require...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
/**************************************************************************** Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
var path = Npm.require('path'); var Fiber = Npm.require('fibers'); var Future = Npm.require(path.join('fibers', 'future')); Meteor._noYieldsAllowed = function (f) { var savedYield = Fiber.yield; Fiber.yield = function () { throw new Error("Can't call yield in a noYieldsAllowed block!"); }; try { return...
var BASE_PATH = process.env.NIGHTWATCH_COV ? 'lib-cov' : 'lib'; var Api = require('../../../'+BASE_PATH+'/core/api.js'); module.exports = { setUp: function (callback) { callback(); }, 'urlEquals assertion passed' : function(test) { var assertionFn = require('../../../'+BASE_PATH + '/api/assertions/ur...
module('Mapping'); test('ko.mapping.toJS should unwrap observable values', function () { var atomicValues = ["hello", 123, true, null, undefined, { a: 1 }]; for (var i = 0; i < atomicValues.length; i++) { var data = ko.observable(atomicValues[i]); var result = ko.mapping.toJS(data); equal(ko.isOb...
"use strict"; angular.module('arethusa.core').service('arethusaGrid', [ 'gridsterConfig', '$window', 'plugins', '$rootScope', 'notifier', 'globalSettings', function(gridsterConfig, $window, plugins, $rootScope, notifier, globalSettings) { var self = this; var win = angular.element($window); ...
import styled from 'styled-components'; const BackgrndStyle = styled.section` position: relative; height: 300px; background: #6bc9c5; border-bottom-left-radius: 50% 30%; border-bottom-right-radius: 50% 30%; `; export default BackgrndStyle;
'use strict'; const common = require('../common'); const assert = require('assert'); const child_process = require('child_process'); if (common.isWindows) common.skip('fs.closeSync(n) does not close stdio on Windows'); function runTest(fd, streamName, testOutputStream, expectedName) { const result = child_process...
/* ======================================================================== * Bootstrap: tooltip.js v3.0.3 * http://getbootstrap.com/javascript/#tooltip * Inspired by the original jQuery.tipsy by Jason Frame * ======================================================================== * Copyright 2013 Twitter, I...
/* Theme Name: The Project - Responsive Website Template * Author:HtmlCoder * Author URI:http://www.htmlcoder.me * Author e-mail:htmlcoder.me@gmail.com * Version:1.2.0 * Created:March 2015 * License URI:http://support.wrapbootstrap.com/ * File Description: Place here your custom scripts */
function jade_fix_style(style) { return typeof style === "string" ? style.split(";").filter(function (str) { return str.split(":").length > 1; }).reduce(function (obj, style) { obj[style.split(":")[0]] = style.split(":").slice(1).join(":"); return obj; }, {}) : style; }
/* * Top navigation bar. Features of the bar: * - Hide content if the display width is less than 768px. In this case the menu icon is displayed. * When the icon is clicked, the menu content is displayed on the left side of the page. * - If the content doesn't fit the navbar, it can be dragged left and right. *...