code
stringlengths
2
1.05M
export default Example; function Example(headers, data) { this.headers = headers; this.data = data; // this.test = { // passed: true, // status: 'passed', // assertions: [], // log: [], // error: null // }; }
/** * Imports */ import {component, element} from 'vdux' import Grid from 'components/Grid' import {Block} from 'vdux-ui' /** * <Edit Grid/> */ export default component({ render ({props, actions, children}) { const { clickHandler, color = 'black', size = '500px', hideAnimal, my = '...
define([ 'jquery', '../utils', '../keys' ], function ($, Utils, KEYS) { function BaseSelection ($element, options) { this.$element = $element; this.options = options; BaseSelection.__super__.constructor.call(this); } Utils.Extend(BaseSelection, Utils.Observable); BaseSelection.prototype.ren...
/* global define */ define(['jquery', 'orotranslation/js/translator', 'orolocale/js/locale-settings', 'jquery-ui-timepicker'], function($, __, localeSettings) { 'use strict'; var locale = localeSettings.locale; $.timepicker.regional[locale] = { // Default regional settings currentText: __('Now'), ...
function panel(){ ctx.fillStyle = 'rgb(0,0,0)'; ctx.font = "10px serif"; ctx.fillText("y-Velocity: " + charictar.vY, scrWidth - 100, 10); ctx.fillText("y position: " + charictar.y, scrWidth - 100, 20); ctx.fillText("scrHeight: " + scrHeight/2, scrWidth - 100, 30); ctx.fillText("up key: " + keyPress[3...
// Hungarian jQuery.extend(jQuery.fn.pickadate.defaults, { monthsFull: [ 'január', 'február', 'március', 'aprilis', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december' ], monthsShort: [ 'jan', 'febr', 'márc', 'apr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec' ...
/* * Copyright 2013 Palantir Technologies, 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 l...
import Ember from 'ember'; import PropertyUpdater from '../../mixins/d3-property-updater'; const { on, observer } = Ember; export default Ember.Object.extend(PropertyUpdater, { init() { this.set('layout', d3.layout.pie()); }, valueChanged: on('init', observer('value', function() { this.updateProperty('...
var env = require('minimist')(process.argv.slice(2)), gulp = require('gulp'), plumber = require('gulp-plumber'), browserSync = require('browser-sync'), stylus = require('gulp-stylus'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), jeet = require('jeet'...
import React from 'react' import Icon from 'react-icon-base' const MdLoyalty = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.8 25.5c0.7-0.8 1.2-1.8 1.2-3 0-2.3-1.9-4.1-4.1-4.1-1.2 0-2.2 0.4-3 1.1l-1.3 1.3-1.1-1.3c-0.8-0.8-1.8-1.1-3-1.1-2.3 0-4.1 1.8-4.1 4.1 0 1.2 0.4 2.2 1.1 3l7.1 7.1z ...
import fs from "node:fs"; import readline from "node:readline"; import chalk from "chalk"; import { execa } from "execa"; import stringWidth from "string-width"; import fetch from "node-fetch"; import outdent from "outdent"; import getFormattedDate from "./get-formatted-date.js"; readline.emitKeypressEvents(process.st...
hljs.registerLanguage("actionscript",(()=>{"use strict";return e=>({ name:"ActionScript",aliases:["as"],keywords:{ keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace nativ...
// Copyright IBM Corp. 2013,2016. All Rights Reserved. // Node module: loopback-datasource-juggler // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT "use strict"; var g = require("strong-globalize")(); var util = require("util"); var extend = util._extend...
'use strict'; let path = require('path'); let assert = require('yeoman-assert'); let helpers = require('yeoman-test'); describe('react-webpack:component', () => { const generatorComponent = path.join(__dirname, '../../../generators/component'); describe('when using version 3 of the generator', () => { // L...
(function() { 'use strict'; describe('user.client.service.user.js', function () { var $rootScope, User; beforeEach(module('users')); beforeEach(inject(function(_$rootScope_, _User_) { $rootScope = _$rootScope_; User = new _User_(); })); describe('UserAdmin resource', funct...
/*! * Jade - utils * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Convert interpolation in the given string to JavaScript. * * @param {String} str * @return {String} * @api private */ var interpolate = exports.interpolate = function(str){ return str.replace(/(\\)?([#!]){(...
'use strict'; var _ = require('lodash'); var del = require('del'); var gulp = require('gulp'); var argv = require('minimist')(process.argv.slice(2)); var webpack = require('webpack'); var browserSync = require('browser-sync'); var htmlcompress = require('gulp-minify-html'); var gutil = require('gulp-util'); var gif = ...
WithDiscovery = function WithDiscovery(newDiscovery, fn) { var oldDiscovery = Cluster.discovery; Cluster.discovery = newDiscovery; fn(); Cluster.discovery = oldDiscovery; }; WithCluster = function WithCluster(newFields, fn) { var original = _.clone(Cluster); Cluster = _.extend(Cluster, newFields); fn(); ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built define("esri/dijit/metadata/types/gemini/base/DataDocumentType","dojo/_base/declare dojo/_base/lang dojo/has ./GeminiDocumentType ./DataRoot dojo/i18n!../../../nls/...
/* * Gritter for jQuery * http://www.boedesign.com/ * * Copyright (c) 2009 Jordan Boesch * Dual licensed under the MIT and GPL licenses. * * Date: June 26, 2009 * Version: 1.0 */ jQuery(document).ready(function($){ /******************************************** * First, we'll define our ob...
var fs = require("fs"); // Asynchronous read fs.readFile('data/input.txt', function (err, data) { if (err) { return console.error(err); } console.log("Asynchronous read1: " + data.toString()); }); // Synchronous read var data = fs.readFileSync('data/input.txt'); console.log("Synchronous read: " + data.toString()...
angular.module('app.admin.add-version-asset-modal', []) .controller('AddVersionAssetModalController', ['$scope', 'DataService', '$uibModalInstance', 'versionName', function($scope, DataService, $uibModalInstance, versionName) { $scope.DataService = DataService; $scope.versionName = versionName; ...
var five = require("../lib/johnny-five.js"); var board = new five.Board(); board.on("ready", function() { var range = [0, 170]; var slider = new five.Sensor("A0"); var tilt = new five.Servo({ pin: 10, range: range }); slider.scale(range).on("slide", function() { // The slider's value will be s...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import * as ReactDOM from 'react-dom'; import clsx from 'clsx'; import { elementTypeAcceptin...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
'use strict'; // Runs `npm install` in cwd const path = require('path'); const fs = require('fs'); const NpmTask = require('./npm-task'); const formatPackageList = require('../utilities/format-package-list'); class NpmInstallTask extends NpmTask { constructor(options) { super(options); this.command = 'insta...
JCSDL.Loader.addComponent(function($, undefined) { this.GUILogic = function(gui, logic) { var self = this; // reference some useful or required elements of the GUI this.gui = gui; this.config = gui.config; this.parser = gui.parser; // reference some functions that we'd want to reuse this.getTemplate =...
/* Charon Index log documents by doc. Value: timestamp. */ function(doc) { if (doc.charon_doctype !== 'log') return; emit(doc.doc, doc.timestamp); }
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvArtTrack = (props) => ( <SvgIcon {...props}> <path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1.51L3.5 15h7z"/> </SvgIcon> ); ...
/* Copyright 2011-2016 Adobe Systems Incorporated. All Rights Reserved. */ (function(c){"function"===typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],c):c(jQuery)})(function(c){var b=c;if(typeof Muse=="undefined")window.Muse={};Muse.Assert={};Muse.Assert.fail=function(a){alert("JavaScript exception: "...
/** * model/core/async.js */ var asyncModel = models.async = boundModel.extend({ _update: function asyncUpdate() { var self = this; // Allow updates that are as new or newer than the last *update* generation. // This allows rolling updates, where the model may have one or more requests ...
window.awesomeLib = window.awesomeLib || { doSomethingCrazy : function(){ return 'mad'; } };
define({ "drsUrl": "Adatellenőrző szerver URL-címe", "includeReportedBy": "Ellenőrzést végző szakértő", "label": "Réteg", "show": "Foglald bele", "alias": "Aliasnév", "warning": "Helytelen adatbevitel", "defaultSessionId": "Alapértelmezett munkamenet", "setSource": "Beállítás", "getCurrentUser": "Beje...
angular.module('IntrepidJS').config( [ '$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/'); $stateProvider. state('signup', { url: '/accounts/signup',...
var erbium = require('./build/Release/erbium'); //var pkt = new erbium.Erbium(new Buffer([0x60,0x45,0x04,0xd2,0xc2,0x00,0x00,0xff,0x68,0x65,0x6c,0x6c,0x6f])); var pkt = new erbium.Erbium(new Buffer([0x50,0x01,0xe0,0xd6,0x33,0x6d,0x62,0x6b,0x85,0x68,0x65,0x6c,0x6c,0x6f])); console.log(pkt.getHeaderUriPath().toString()...
StartTest(function (t) { t.expectGlobals('0', '1') t.getHarness([ 'testfiles/601_siesta_ui_failing.t.js', 'testfiles/601_siesta_ui_passing.t.js' ]); t.it('Should not crash when starting recorder without a test', function (t) { t.chain( { waitFor : 'harnessRead...
import Ember from "ember-metal/core"; // for Ember.ORDER_DEFINITION import {typeOf} from "ember-metal/utils"; import Comparable from "ember-runtime/mixins/comparable"; // Used by Ember.compare Ember.ORDER_DEFINITION = Ember.ENV.ORDER_DEFINITION || [ 'undefined', 'null', 'boolean', 'number', 'string', 'arr...
module.exports = function(req, res, render) { req.models.{{x-singular-underscore}} .findAll() .then(function({{x-plural-camelcase}}) { render({{x-plural-camelcase}}); }) .catch(function(err) { render(err); }); };
"use strict"; const fs = require('fs'); const path = require('path'); module.exports = { solutionOnly(opts, runCode) { const entry = path.join(opts.dir, 'main.R'); if (opts.setup) fs.writeFileSync(path.join(opts.dir, 'setup.R'), opts.setup); fs.writeFileSync(entry, opts.solution); runCode({ na...
/** * Copyright (c) 2016-present, 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...
import { createStorageRef, noop as noReturnValue } from './helpers' import { FirebaseProviderError } from './errors' export default function deleteFile(path, filename) { const ref = createStorageRef(path).child(filename) return ref.delete().then(noReturnValue).catch(error => { throw new FirebaseProviderError(...
/* global app, angular */ 'use strict'; app.factory('identity', function ($window, UsersResource) { var user; if ($window.bootstrappedUserObject) { user = new UsersResource(); angular.extend(user, $window.bootstrappedUserObject); } return { currentUser: user, isAuthenti...
/*global qs, qsa, $on, $parent, $delegate */ (function (window) { 'use strict'; /** * View that abstracts away the browser's DOM completely. * It has two simple entry points: * * - bind(eventName, handler) * Takes a todo application event and registers the handler *...
var WS = require('../') var tape = require('tape') var pull = require('pull-stream') var JSONDL = require('pull-json-doubleline') tape('simple echo server', function (t) { var server = WS.createServer(function (stream) { pull(stream, stream) }).listen(5678, function () { pull( pull.values([1,2,3])...
/*! * 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...
/** * Layout controller. * * @author Martin Micunda {@link http://martinmicunda.com} * @copyright Copyright (c) 2015, Martin Micunda * @license The MIT License {@link http://opensource.org/licenses/MIT} */ (function () { 'use strict'; /** * @ngdoc controller * @name LayoutCtrl * @modu...
/*global require:true*/ (function( exports ){ "use strict"; var fs = require( 'fs' ); var Pfile = require( '..' + fs.separator + '..' + fs.separator + 'lib' + fs.separator + 'processing-file' ); var bearSVG = '<svg xmlns="http://www.w3.org/2000/svg" width="100" height="62.905px">\n' + '<path d="M11.068,34.558c-1....
var expect = require('expect.js'), fs = require('fs'), path = require('path'), ladder = require('../'); describe('ladder', function() { describe('first.json', function() { it('should be 2 spaces', function() { var result = ladder(fs.readFileSync(path.resolve('test/first.json')).toStrin...
module.exports = require('regenerate')(0xAD, 0x34F, 0x61C, 0x3164, 0xFEFF, 0xFFA0).addRange(0x115F, 0x1160).addRange(0x17B4, 0x17B5).addRange(0x180B, 0x180E).addRange(0x200B, 0x200F).addRange(0x202A, 0x202E).addRange(0x2060, 0x206F).addRange(0xFE00, 0xFE0F).addRange(0xFFF0, 0xFFF8).addRange(0x1BCA0, 0x1BCA3).addRange(0...
/** * Convert Chinese to Pinyin * 未知作者 * 不能识别多音字 */ var PinYin = (function () { var py = { "a": "\u554a\u963f\u9515", "ai": "\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d", "an": "\u978d\u6c28\...
(function ($) { $.fn.dnnModuleDragDrop = function (options) { var isEditMode = $('body').hasClass('dnnEditState'); if (!isEditMode) { $(function () { $('.DNNEmptyPane').each(function () { $(this).removeClass('DNNEmptyPane').addClass('dnnDropEmptyPane...
// // AutoLinker is a named function that will replace links on messages // @param {Object} message - The message object // import Autolinker from 'autolinker'; function AutoLinker(message) { if (RocketChat.settings.get('AutoLinker') !== true) { return message; } if (_.trim(message.html)) { const regUrls = ne...
var validator = require('validator'); var _ = require('lodash'); // validators and sanitizers not prefixed with is/to var additionalValidators = ['contains', 'equals', 'matches']; var additionalSanitizers = ['trim', 'ltrim', 'rtrim', 'escape', 'stripLow', 'whitelist', 'blacklist', 'normalizeEmail']; /** * Initalizes...
/*! jQuery UI - v1.9.2 - 2014-09-21 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.eo={closeText:"Fermi",prevText:"&#x3C;Anta",nextText:"Sekv&#x3E;",currentText:"Nuna",monthNames:["Januaro","Februaro","Marto","Aprilo","Majo","Ju...
'use strict'; var EventEmitter = require('events').EventEmitter; var TextOperation = require('./text-operation'); var WrappedOperation = require('./wrapped-operation'); var Server = require('./server'); var Selection = require('./selection'); var util = require('util'); var LZString = require('lz-string'); var logger...
/* * index.js: Top-level plugin exposing HTTP features in flatiron * * (C) 2011, Nodejitsu Inc. * MIT LICENSE * */ var union = exports; // // Expose version information through `pkginfo` // require('pkginfo')(module, 'version') // // Expose core union components // union.BufferedStream = require('./buffered-s...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'colorbutton', 'ar', { auto: 'تلقائي', bgColorTitle: 'لون الخلفية', colors: { '000': 'أسود', '800000': 'كستنائي', '8B4513': 'بني فا...
define([ 'app/config', 'app/GeoSearch', 'app/HelpPopup' ], function ( config, GS, HP ) {});
/* * 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. */ '...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc)...
/** @module ember-data */ import computedPolyfill from "ember-new-computed"; import Model from "ember-data/system/model"; import normalizeModelName from "ember-data/system/normalize-model-name"; /** `DS.hasMany` is used to define One-To-Many and Many-To-Many relationships on a [DS.Model](/api/data/classes/DS.Mo...
var curSong = curLine = isPlaying = curTime = curStartT = curT = null var height = 500 var width = 750 var baseCharPerSec = 6 var lastCharPerSec = baseCharPerSec var minCharPerSec = 3 var player = d3.select('#player') var red = '#d2130a', blue = '#3b4274', grey = '#ccc' function onYouTubeIframeAPIReady...
var cucumberSteps = function() { var Given = When = Then = this.defineStep; var World = require('./cucumber_world').World; this.World = World; Given(/^a scenario with:$/, function(steps, callback) { this.addScenario("A scenario", steps); callback(); }); Given(/^the step "([^"]*)" has a passing m...
window.initUserList = () => { initUserSelections(); initUserDeleteBtn(); initUserMergeBtn(); }; const initUserSelections = () => { $('input[name=user_db]').each(function() { userSelectRow($(this)); }); $('#select-all').change(function() { $('input[name=user_db]').prop('checked', $(this).is(':checke...
(function () { requirejs.config({ paths: { 'breeze': '../Scripts/breeze.debug', 'breeze.savequeuing': '../Scripts/breeze.savequeuing', 'jquery': '../Scripts/jquery-1.8.3.min', 'ko': '../Scripts/knockout-2.2.0', ...
module.exports = function (grunt) { 'use strict'; // Project configuration. var saucekey = process.env.saucekey; if (!saucekey) { console.warn('Unable to load Saucelabs key'); } grunt.initConfig({ jade: { release: { files: { ...
var oembedUtils = require('./oembedUtils'); module.exports = { provides: ['oembedLinks', '__noOembedLinks'], getData: function(url) { var oembedLinks = oembedUtils.findOembedLinks(url); return { oembedLinks: oembedLinks, __noOembedLinks: !oembedLinks || !oembedLinks.le...
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.setSelection.on('click',...
'use strict'; var _jsxAstUtils = require('jsx-ast-utils'); var _schemas = require('../util/schemas'); var _isHiddenFromScreenReader = require('../util/isHiddenFromScreenReader'); var _isHiddenFromScreenReader2 = _interopRequireDefault(_isHiddenFromScreenReader); function _interopRequireDefault(obj) { return obj &&...
var crypto = require('crypto'); var keystone = require('../'); var scmp = require('scmp'); var utils = require('keystone-utils'); /** * Creates a hash of str with Keystone's cookie secret. * Only hashes the first half of the string. */ function hash(str) { // force type str = '' + str; // get the first half str...
var alias = Ember.computed.alias, not = Ember.computed.not; App.ProjectIndexController = Ember.ObjectController.extend({ // Track the project budget and billing details hoursBudgeted: alias('hourBudget'), clientName: alias('client.name'), isInternal: not('client'), // Sum up the hours logged for...
// Masonry var Masonry = function() { 'use strict'; // Handle Masonry var handleMasonry = function() { var $container = $('.js__masonry'); // initialize Masonry after all images have loaded $container.imagesLoaded( function() { $container.masonry({ itemSelector: '.js__masonry-item', // ...
var loadState={ preload:function(){ //add a loading label on screen var loadingLabel = game.add.text(game.width/2, 150, 'loading...', { font:'30px Arial', fill:'#ffffff'}); loadingLabel.anchor.setTo(0.5,0.5); //display progress bar var progressBar= game.add.sprite(game.width/2,200,'progressBar'); prog...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. 'use strict'; var should = require('should'); var http = require('http'); var util = require('util'); var assert = require('assert'); var _ = require('underscor...
"use strict"; // Replace `#!` with `//` so `typescript`, `flow`, and `espree` can parse it as line comment // Inspired by ESLint parse function https://github.com/eslint/eslint/blob/9d6063add931f0803cae1676d5df307baf114360/lib/linter/linter.js#L635 function replaceHashbang(text) { if (text.charAt(0) === "#" && text....
(function (define) { 'use strict'; define(function (require) { var interceptor; interceptor = require('rest/interceptor'); /** * Authenticates the request using JWT Authentication * * @param {Client} [client] client to wrap * @param {Object} config * * @returns {Client} */ return inte...
/*! * jQuery JavaScript Library v1.11.1 -effects,-effects/Tween,-effects/animatedSelector,-effects/support * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * ...
import Immutable from "immutable"; const UserRecord = Immutable.Record({ id: "", karma: 0, created: null }); export default class User extends UserRecord {}
/* global define, require */ /* Blur Adapted from v002 by Anton Marini and Tom Butterworth * Copyright vade - Anton Marini * Creative Commons, Attribution - Non Commercial - Share Alike 3.0 http://v002.info/plugins/v002-blurs/ */ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define....
/* --- name: Mouse description: Maps mouse events to their touch counterparts authors: Christoph Pojer (@cpojer) license: MIT-style license. requires: [Custom-Event/Element.defineCustomEvent, Browser.Features.Touch] provides: Mouse ... */ if (!Browser.Features.Touch) (function(){ var down = false; var conditio...
/* * @name Figuras simples * @description Este ejemplo incluye una elipse, un rectángulo, un triángulo y una flor. */ function setup() { // crear el lienzo createCanvas(720, 400); background(200); // Definir colores fill(204, 101, 192, 127); stroke(127, 63, 120); // Un rectángulo rect(40, 120, 120,...
import Coordinate from './geom/Coordinate' import CoordinateList from './geom/CoordinateList' import Envelope from './geom/Envelope' import LineSegment from './geom/LineSegment' import GeometryFactory from './geom/GeometryFactory' import Geometry from './geom/Geometry' import Point from './geom/Point' import LineString...
var Promise = require('rsvp').Promise; var merge = require('ember-cli-lodash-subset').merge; var inflection = require('inflection'); module.exports = { description: 'Generates a model and route.', install: function(options) { return this._process('install', options); }, uninstall: function(option...
(function (tree) { tree.mixin = {}; tree.mixin.Call = function (elements, args, index) { this.selector = new(tree.Selector)(elements); this.arguments = args; this.index = index; }; tree.mixin.Call.prototype = { eval: function (env) { var mixins, args, rules = [], match = false; for (va...
import { BoxGeometry, Vector3 } from '../../../build/three.module.js'; const _tempNormal = new Vector3(); function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLength ) { const totArcLength = 2 * Math.PI * radius / 4; // length of the planes between the arcs on each axis const centerLength...
var x = function (foo) { for (var _len = arguments.length, bar = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { bar[_key - 1] = arguments[_key]; } console.log(bar); }; var y = function (foo) { for (var _len2 = arguments.length, bar = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _...
describe( 'MainController', function() { var MainCtrl, $location, $httpBackend, $scope, MapService, state, queryService; beforeEach( module( 'SolrHeatmapApp' ) ); beforeEach( inject( function( $controller, _$location_, $rootScope, _$httpBackend_, _Map_, _$state_, _queryService_) { $location = _$lo...
var searchData= [ ['radians',['radians',['../interface_t_l_m_angle.html#a1cdfede1c67bfae83ac622da174501b8',1,'TLMAngle']]], ['rawdata',['rawData',['../interface_t_l_m_emg_event.html#a7fac6bdf3f8ea4009a71ae1fdaa9fcc9',1,'TLMEmgEvent']]], ['roll',['roll',['../interface_t_l_m_euler_angles.html#a70dea082d7777b03958ad...
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if ...
const Question = Jymfony.Component.Console.Question.Question; const PasswordRenderer = Jymfony.Component.Console.Question.Renderer.PasswordRenderer; const SttyPasswordRenderer = Jymfony.Component.Console.Question.Renderer.SttyPasswordRenderer; const Terminal = Jymfony.Component.Console.Terminal; /** * Represents a qu...
/** * @module gestures */ /** * Single tap and a double tap on a place * * @class Tap * @static */ /** * @event tap * @param {Object} ev */ /** * @event doubletap * @param {Object} ev */ /** * @param {String} name */ (function(name) { var hasMoved = false; function tapGesture(ev, inst) { ...
// The MIT License // Copyright (c) 2010 Atsuya Takagi // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
import TTFGlyph from './TTFGlyph'; /** * Represents a TrueType glyph in the WOFF2 format, which compresses glyphs differently. */ export default class WOFF2Glyph extends TTFGlyph { _decode() { // We have to decode in advance (in WOFF2Font), so just return the pre-decoded data. return this._font._transforme...
'use strict'; const sinon = require('sinon'); require('sinon-as-promised'); const lruCache = module.exports = sinon.stub(); lruCache.set = sinon.stub(); lruCache.get = sinon.stub(); lruCache.instance = { set: lruCache.set, get: lruCache.get }; lruCache.returns(lruCache.instance);
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<08d477ab88c659b4aab42c5c9ba5517b>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disabl...
"use strict"; /* exported Properties */ var Properties = module.exports = { __proto__: null, //A "align-items" : "flex-start | flex-end | center | baseline | stretch", "align-content" : "flex-start | flex-end | center | space-between | space-around | stretch...
var assert = require('assert'); var sodium = require('../build/Release/sodium'); var assert = require('assert'); describe("AEAD", function () { it("aes256gcm should encrypt and decrypt to the same string", function (done) { var message = Buffer.from("This is a plain text message"); var additionalDa...
(function($, undefined) { $.KBWidget({ name: 'kbaseNarrativeCellMenu', parent: 'kbaseWidget', options: {cell: null}, init: function(options) { this._super(options); // console.log(['cell menu', this.options.cell]); var $deleteBtn = $('<button ty...
var Deferred = require("promised-io/promise").Deferred; module.exports = function(conf, log4js) { var logger = log4js.getLogger("prepare"); var deferred = new Deferred(); return function preServerStart() { logger.info('Any setup before server start here'); deferred.resolve(); // do this in ...
// flow-typed signature: 5934458d8287c23337a0363563a548f9 // flow-typed version: b77688cf5d/@babel/register_v7.x.x/flow_>=v0.30.x declare module '@babel/register' { declare type Ignore = boolean | string | RegExp | (filename: string) => boolean; declare type Options = {| ast?: boolean, auxiliaryCommentAfte...