code
stringlengths
2
1.05M
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.3_A1_T13; * @section: 15.10.2.3; * @assertion: The | regular expression operator separates two alternatives. * The pattern first tries to match the left Alte...
exports.types = { NewStartingHashKey: { type: 'String', notNull: true, regex: '0|([1-9]\\d{0,38})', }, StreamName: { type: 'String', notNull: true, regex: '[a-zA-Z0-9_.-]+', lengthGreaterThanOrEqual: 1, lengthLessThanOrEqual: 128, }, ShardToSplit: { type: 'String', notN...
var db = require('./db.js'); module.exports.getId = function(user) { return user.id; }; module.exports.fetchById = function(id,cb) { console.log('calling fetchById'); db.user.findOne({ _id : id }, function(err, obj) { var user = { id: obj._id, userName: obj.userName, firstName: obj.firstName, lastNam...
// Copyright (c) Microsoft Corp. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. (function () { "use strict"; // A property processor should return this if the intention is that the return value is not to be set on the control property va...
require1 = require ("require1"); require2 = require ("require2"); require1.sayHi(); require2.sayHi();
// JavaScript Document // // Persistence Models var Region = persistence.define('Region', { fid: "TEXT", accuracy: "INT", radius: "INT", latitude: "TEXT", longitude: "TEXT", currentlyHere: "TEXT", address: "TEXT", name: "TEXT" }); $('#mainPage').live("pageshow", function() { console.log("page show"...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S8.7_A2; * @section: 8.7; * @assertion: Reference to Self-Modifying Object remain the integrity; * @description: Create a reference to the array, and change original a...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 8h-3V4H1v13h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm13...
import React from 'react'; import App from './App'; React.render(<App id="2"/>, document.getElementById('root'));
/* * cliff.js: CLI output formatting tools: "Your CLI Formatting Friend". * * (C) 2010, Nodejitsu Inc. * */ var colors = require('colors'), eyes = require('eyes'), winston = require('winston'); var cliff = exports, logger; cliff.__defineGetter__('logger', function () { return logger; }); cliff._...
version https://git-lfs.github.com/spec/v1 oid sha256:687a8eeb0916b40f8152b2d4ffd07fc1ab22ee6195b616368fe8196a0d5e4df2 size 2637
/** * @class AsyncTask * @author Daniel Lidón <dlidon@elconfidencial.com> * @classdesc Clase que permite ejecutar una tarea dada en paralelo lanzandola * en otro hilo. La tarea debe estar preparada para ser lanzada como Worker. * * @constructor * @param {Object} options * @returns {AsyncTask} */ var AsyncTas...
(function(window) { var re = { not_string: /[^s]/, number: /[dief]/, text: /^[^\x25]+/, modulo: /^\x25{2}/, placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fiosuxX])/, key: /^([a-z_][a-z_\d]*)/i, key_access: /^...
import React from 'react'; import PropTypes from 'prop-types'; import { Box } from '@strapi/design-system/Box'; import Cross from '@strapi/icons/Cross'; import { Tag } from '@strapi/design-system/Tag'; import { useIntl } from 'react-intl'; const AttributeTag = ({ attribute, filter, onClick, operator, value }) => { c...
goo.V.attachToGlobal(); V.describe('Render pulsating lines of all the different available preset colors.' + '<br>' + 'Colors are, from left to right: white, red, green, blue, aqua, magenta, yellow and black.' + '<br>' + 'The pulsating of lines should affect the amount of render calls.'); var gooRunner = V.initG...
// angular.module('core').directive('stick', function($window, $location) { // return function(scope, elem, attrs) { // console.log(elem); // angular.element($window).bind('scroll', function() { // var windowpos = $window.pageYOffset; // var a = elem[0].offsetTop - windowpos;...
(function() { 'use strict'; /** * @description * The sideMenuCtrl lets you quickly have a draggable side * left and/or right menu, which a center content area. */ angular.module('ionic.ui.slideBox', []) /** * The internal controller for the side menu controller. This * extends our core Ionic side menu controll...
export default from './Banner'
/** * Neon Login Script * * Developed by Arlind Nushi - www.laborator.co */ var neonLogin = neonLogin || {}; ;(function($, window, undefined) { "use strict"; $(document).ready(function() { neonLogin.$container = $("#form_login"); // Login Form & Validation neonLogin.$container.validate({ rules...
/** * config/globals.js * * Configuration for globals */ module.exports = { // @TODO make all keys here globals }
module.exports = function( msg, onErr, cb ) { var err = new Error( msg ); onErr( err ); if( cb ) cb( err ); }
/** * @license RequireJS text 2.0.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ /*jslint regexp: true */ /*global require: false, XMLHttpRequest: false, ActiveXObject: false, define: false, win...
define([ 'angularjs-wrappers', 'globals', 'helpers', 'jquery-wrappers', 'plumbing' ], function(angularjsWrappers, globals, helpers, jQueryWrappers, plumbing) { /** * @ngdoc overview * @name init * @description * Call the init function once to initialize the FamilySearch object before calling any...
var YTAPI = require('../index'); /** * The used Youtube-User 'gronkh' is a famous german lets player, * I just used him to test this functions. Every other should also be working. * * APIKEY must be replaced by a real API Key from Google. * To find out how to get one see: https://developers.google.com/youtube/reg...
initSidebarItems({"struct":[["CrateReader",""]],"fn":[["validate_crate_name",""]]});
describe("Testing array collection property type with its", function() { var classInst = app.getClass('Class/AdvancedDefinition').createInstance(); var prop = classInst.getProperty('propArrayCollectionCollectionArray'); it ("modifying state before manipulations", function() { expect(prop.isModifie...
(function() { define(function(require) { var Color, Context, Mesh, PerspectiveCamera, Scene; Context = require('pex/gl/Context'); Mesh = require('pex/gl/Mesh'); Color = require('pex/color/Color'); PerspectiveCamera = require('pex/scene/PerspectiveCamera'); return Scene = (function() { Sc...
/* * */ var qure = require('../src/qure.js'); describe('Trying out', function() { /* * */ it('sequence', function(done) { qure .sequence('test1', function(arg) { // notice that "this" context is "Qure" this.wait(500) .then(function() { console.log(arg); }); }) ...
var SerialPort = require("serialport"); var intel_hex = require('intel-hex'); // require version 1 of stk500 var stk500 = require('../').v1; var async = require("async"); var fs = require('fs'); var usbttyRE = /(cu\.usb|ttyACM|COM\d+)/; var data = fs.readFileSync('arduino-1.0.6/uno/Blink.cpp.hex', { encoding: 'utf8...
'use strict'; module.exports = { title: 'PM01', unit: 'µg/m³', sensorType: 'PMS 3003', icon: 'osem-cloud' };
Ext.namespace('Phlexible.users.security'); Phlexible.users.security.LoginWindow = Ext.extend(Ext.Window, { modal: false, closable: false, collapsible: false, draggable: false, resizable: false, border: false, shadow: true, width: 420, height: 400, layout: 'border', cls: 'p-s...
/*jshint esversion: 6 */ const md5 = require('js-md5'); const {User, Room, Note, db} = require('./db-config'); const createNewRoom = ({topic, className, lecturer, hostId}, cb) => { const pathUrl = generatePathUrl(topic + className + lecturer + hostId); Room.create({ pathUrl: pathUrl, topic: topic, cl...
/** * [Javascript core part]: swfobject 扩展 */ Jx().$package(function(J){ /* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ /** * @namespace swfobject 名字空间 * @name swfobject */ var swfobje...
Package.describe({ summary: "Latest version of Ionicons", version: "2.0.1_1", name: "pagebakers:ionicons", git: "https://github.com/Pagebakers/meteor-ionicons.git" }); Package.onUse(function (api){ api.addFiles([ 'ionicons.js' ], 'client'); });
import { Box } from '@rocket.chat/fuselage'; import React, { forwardRef } from 'react'; const UserCardContainer = forwardRef(function UserCardContainer(props, ref) { return ( <Box rcx-user-card bg='surface' elevation='2' p='x24' display='flex' borderRadius='x2' width='439px' {...props} re...
function $ViewScrollProvider(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll" ,"$timeout",function(t,n){return e?t:function(e){n(function(){e[0].scrollIntoView()},0,!1)}}]}angular .module("ui.router.state").provider("$uiViewScroll",$ViewScrollProvider);
define(function(require) { 'use strict'; const InterWindowMediator = require('oroui/js/app/services/inter-window-mediator/inter-window-mediator'); return new InterWindowMediator; });
import tools from "crankshaft-tools"; import optimist from "optimist"; import path from "path"; import fsutils from "../utils/fs"; import { print, getLogger } from "../utils/logging"; import cli from "../utils/cli"; const argv = optimist.argv; const printSyntax = (msg) => { if (msg) { print(`Error: ${msg}`); ...
beforeEach(function() { global.disableOptInFeatures(); global.addToEqualMatchMatcher(); }); describe('XRegExp.matchRecursive addon:', function() { describe('XRegExp.matchRecursive()', function() { it('should pass the readme example for basic usage', function() { var str = '(t((e))s)t(...
gd.Spinner = function() { var opts = { lines: 13, // The number of lines to draw length: 20, // The length of each line width: 10, // The line thickness radius: 30, // The radius of the inner circle corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset dire...
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"2":"C p x J L N I"},C:{"2":"0 1 2 3 4 5 6 8 9 ZB BB 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 i j k l m n o M q r s t u v w y XB RB"},D:{"2":"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 i j k l m n o M q ...
import Ember from 'ember'; import DS from 'ember-data'; import ModelWithoutValidation from './model-without-validation'; import EmberValidations from 'ember-validations'; /** Base model that supports projections, validations and copying. @module ember-flexberry-data @class Model @namespace Projection @exten...
import { CylinderGeometry } from './CylinderGeometry.js'; class ConeGeometry extends CylinderGeometry { constructor( radius = 1, height = 1, radialSegments = 8, heightSegments = 1, openEnded = false, thetaStart = 0, thetaLength = Math.PI * 2 ) { super( 0, radius, height, radialSegments, heightSegments, openEnded,...
const Vec3 = require("vec3").Vec3; const path = require('path'); const requireIndex = require('requireindex'); const plugins = requireIndex(path.join(__dirname,'..', 'plugins')); const Command = require('flying-squid').Command; module.exports.server=function(serv,options) { serv._server.on('connection', client => ...
/** * MVC如何实现的 * 控制器C * 1.自然约定 无路由 * 2.手工指定 */ var http = require('http'); var url = require('url'); /** * localhost:8080 /user/add * localhost:8080 /user/delete */ http.createServer(function(req,res){ var handler = { user:{ add:function(req,res,username,age){ res.end('...
module.exports = { before: function (browser) { browser.app = browser.page.app(); browser.signinScreen = browser.page.signin(); browser.selectsTab = browser.page.home().section.fieldsGroup.section.selectsTab; browser.app.navigate(); browser.app.waitForElementVisible('@signinScreen'); browser.signinScreen...
/* * Translated default messages for the jQuery validation plugin. * Locale: NO (Norwegian; Norsk) */ $.extend($.validator.messages, { required: "Dette feltet er obligatorisk.", maxlength: $.validator.format("Maksimalt {0} tegn."), minlength: $.validator.format("Minimum {0} tegn."), rangelength: $.va...
import { AsyncSubject } from '../AsyncSubject'; import { multicast } from './multicast'; /** * @owner Observable * @this {?} * @return {?} */ export function publishLast() { return multicast.call(this, new AsyncSubject()); }
'use strict'; const common = require('../common'); const assert = require('assert'); const fs = require('fs'); const join = require('path').join; common.refreshTmpDir(); const filename = join(common.tmpDir, 'test.txt'); const s = '南越国是前203年至前111年存在于岭南地区的一个国家,国都位于番禺,疆域包括今天中国的广东、' + '广西两省区的大部份地区,福建省、湖南、贵州、云南...
//HERE COMES THE IE SHITSTORM if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (elt /*, from*/) { var len = this.length >>> 0; var from = Number(arguments[1]) || 0; from = (from < 0) ? Math.ceil(from) : Math.floor(from); if (from < 0) from += len; for (; from < len; from++) { i...
var fs = require('fs'); var path = require('path'); var protobuf = require('pomelo-protobuf'); var Constants = require('../util/constants'); var crypto = require('crypto'); var logger = require('pomelo-logger').getLogger('pomelo', __filename); module.exports = function(app, opts) { return new Component(app, opts); }...
// ========================================================================== // sakinijino.com // ========================================================================== // sc_require("core") iRich.LocalDataSource = SC.DataSource.extend({ LOCAL_STORAGE_KEY: "irich.local", _local_version: "", _local_storage...
define({ root: ({ _widgetLabel: "Zoom Slider" }), "ar": 1, "bs": 1, "cs": 1, "da": 1, "de": 1, "el": 1, "es": 1, "et": 1, "fi": 1, "fr": 1, "he": 1, "hi": 1, "hr": 1, "it": 1, "id": 1, "ja": 1, "ko": 1, "lt": 1, "lv": 1, "nb": 1, "nl": 1, "pl": 1, "pt-br": 1, "pt-...
describe("Dependency injector", function() { var api = require('../../index.js')(); it("should have the injector API available", function(done) { expect(api.di).toBeDefined(); expect(api.di).not.toBe(null); done(); }); it("should define a dependency and use it", function(done) { api.di.register("AwesomeM...
file:/home/charlike/dev/glob-fs/fixtures/a/e5.js
/************************** bazaar styler ***************************/ var j = jQuery.noConflict(); j(document).ready(function () { j("div[id$='Available']").addClass('baz_available'); j(".baz_available") .observe('childlist', "div[id$='Available_results']", function(record) { console.log("mut"); u...
// parse command line options var minimist = require('minimist'); var mopts = { string: [ 'runner', 'server', 'suite', 'task', 'version' ] }; var options = minimist(process.argv, mopts); // remove well-known parameters from argv before loading make, // otherwise each arg...
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different ...
var gulp = require('gulp'), connect = require('gulp-connect'), proxy = require('http-proxy-middleware'), minimist = require('minimist'); var defaultOptions = { default: { serverUrl: 'http://127.0.0.1:8081', connectPort: 8000, app: 'app/', output: 'app/', } }; var opt...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import path from 'path'; import express from 'express';...
const hashFile = require('hash-file'); const nconf = require('nconf'); const isProduction = process.env.NODE_ENV === 'production'; // Specifying an env delimiter allows you to override below config when shipping // to production server. nconf.env('__'); function getAssetHash(filePath) { if (!isProduction) return '...
"use strict"; const { collectDependents } = require("./collect-dependents"); module.exports.collectPackages = collectPackages; /** * @typedef {object} PackageCollectorOptions * @property {(node: import("@lerna/package-graph").PackageGraphNode, name: string) => boolean} [isCandidate] By default, all nodes passed in...
define(["require", "exports"], function (require, exports) { var App = (function () { function App() { } App.prototype.configureRouter = function (config, router) { config.title = 'Aurelia'; config.map([ { route: ['', 'welcome'], name: 'welcome', modul...
import { TestModule, getContext } from 'ember-test-helpers'; import test from 'tests/test-support/qunit-test'; import qunitModuleFor from 'tests/test-support/qunit-module-for'; import { setResolverRegistry } from 'tests/test-support/resolver'; function moduleFor(fullName, description, callbacks) { var module = new T...
/** * @file DevTools Author Settings panel */ (function( w, // Window ga, // Google Analytics $, // document.querySelectorAll storage // Chrome Storage API ){ 'use strict'; /** * Panel module * @namespace panel * @global */ var panel = (function(){ /** @private ...
import React from 'react'; /* eslint-disable */ const Open = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g transform="translate(41.625 46.25)"> <polygon points="27.75 0 27.75 60.125 37 60.125 37 0"/> <polygon points="62.438 25.438 2.313 25.438 2.313 34.688 62.438 34....
// Note: You must restart bin/webpack-watcher for changes to take effect /* eslint global-require: 0 */ /* eslint import/no-dynamic-require: 0 */ const webpack = require('webpack') const { basename, join, resolve } = require('path') const { sync } = require('glob') const { readdirSync } = require('fs') const ExtractTe...
/*! * chessboard.js v0.3.0 * * Copyright 2013 Chris Oakman * Released under the MIT license * http://chessboardjs.com/license * * Date: 10 Aug 2013 */ // start anonymous scope ;(function() { 'use strict'; //------------------------------------------------------------------------------ // Chess Util Functions ...
'use strict'; var context = require.context('./components/', true, /-test\.(js|jsx)$/); context.keys().forEach(context);
/** * @author TristanVALCKE / https://github.com/Itee */
infinispan.plusMinus = function(num) { if (num > 0) return 1; else if (num < 0) return -1; else return 1; }; infinispan.errorState = {}; infinispan.errorState.rate = 0.5; infinispan.errorXOffset = 5; infinispan.addMouseover = function(errorElement) { if ($.isArray(errorElement)) { for ( var...
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html module.exports = function (config) { config.set({ basePath: ``, frameworks: [`jasmine`, `@angular/cli`], plugins: [ require(`karma-jasmine`), require(`karma-chrome-...
'use strict'; function committeeContributorsPageController($scope, contributors) { $scope.contributors = contributors; } module.exports = committeeContributorsPageController;
YUI.add("gallery-outside-events",function(B){var A=["blur","change","click","dblclick","focus","keydown","keypress","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","select","submit"];B.Event.defineOutside=function(D,C){C=C||D+"outside";B.Event.define(C,{on:function(G,E,F){E.onHandle=B.one("doc").on(D,f...
import {assert} from '@webex/test-helper-chai'; import RoapUtil from '@webex/plugin-meetings/src/roap/util'; import PeerConnectionManager from '@webex/plugin-meetings/src/peer-connection-manager/index.js'; import sinon from 'sinon'; describe('RoapUtil', () => { describe('updatePeerConnection', () => { let meetin...
require('./camera'); require('./geometry'); require('./material'); require('./light');
var Promise = require('bluebird'); var util = require(__dirname+'/util.js'); var Errors = require(__dirname+'/errors.js'); var schemaUtil = require(__dirname+'/schema.js'); var Feed = require(__dirname+'/feed.js'); /** * Constructor for a Query. A Query basically wraps a ReQL queries to keep track * of the model re...
function WorldEditorOrthographicCamera(domElement) { this.domElement = domElement this.camera = new THREE.OrthographicCamera( -1, 1, 1, -1, -10000, 10000) this.camera.zoom = 10 this.aspect = 1 this.camera.layers.enable(1) E2.core.on('resize', this.resize.bind(this)) } WorldEditorOrthographicCamera.pr...
var fs = require('fs'); var gulp = require('gulp'); var Server = require('karma').Server; var concat = require('gulp-concat'); var jshint = require('gulp-jshint'); var header = require('gulp-header'); var footer = require('gulp-footer'); var rename = require('gulp-rename'); var es = require('event-stream'); var del = r...
var moment = require("../../moment"); /************************************************** Serbian-latin (sr) *************************************************/ exports["locale:sr"] = { setUp : function (cb) { moment.locale('sr'); moment.createFromInputFallback = function () { ...
/* * URI가 주어진 포맷에 맞는지 확인하는 URI_MATCHER 클래스 * * 포맷에 파라미터 구간을 지정할 수 있어 URI로부터 파라미터 값을 가져올 수 있습니다. */ global.URI_MATCHER = CLASS({ init : (inner, self, format) => { //REQUIRED: format let Check = CLASS({ init : (inner, self, uri) => { //REQUIRED: uri let uriParts = uri.split('/'); let isM...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
var mongodb = require('./mongodb'); var Schema = mongodb.mongoose.Schema; var contentSchema = new Schema({ city: String, //发帖所在的城市 title: String, //帖子标题 uptime: String, //发帖时间 text: String, //帖子正文 url: String, //帖子地址 keys: Array, //关键词数组 price...
/*! * Ext JS Library 3.1.1 * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.grid.PropertyRecord * A specific {@link Ext.data.Record} type that represents a name/value pair and is made to work with the * {@link Ext.grid.PropertyGrid}. Typically, Prope...
/** * Copyright 2012-2017, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var d3 = require('d3'); var Color = require('../color'); module.exports = function style(traces) { trace...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = { "syntax-async-generators": require("@babel/plugin-syntax-async-generators"), "syntax-dynamic-import": require("@babel/plugin-syntax-dynamic-import"), "syntax-json-strings": require("@babel/pl...
/** * @author supereggbert / http://www.paulbrunt.co.uk/ * @author mrdoob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ * @author szimek / https://github.com/szimek/ */ THREE.WebGLRenderer = function ( parameters ) { console.log( 'THREE.WebGLRenderer', THREE.REVISION ); parameters = para...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
require('./shim'); require('./src/core.dict'); require('./src/core.$for'); require('./src/core.delay'); require('./src/core.binding'); require('./src/core.object'); require('./src/core.array'); require('./src/core.number'); require('./src/core.string'); require('./src/core.date'); require('./src/core.global'); require(...
// Native Javascript for Bootstrap 3 | Bulk require // by dnp_theme // Require/npm/Bower by Ingwie Phoenix /** @file This file bulk-requires all the native components and gives it back as the exports. Due to the NodeJS-y environment, each entry is a factory function. Once called, it ...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../s...
var _ = require('lodash'); var colors = require('cli-color-keywords')(); var diff = require('diff'); var toInt = require('to-int'); exports.getDiff = function(before, after) { var cmp = diff.diffWords(before.trim(), after.trim()); return cmp.map( function(item, index, collection) { var val = item.value; va...
( function () { 'use strict'; var OSG = window.OSG; var osgViewer = OSG.osgViewer; var osg = OSG.osg; var osgDB = OSG.osgDB; function colorFloatTo255( color ) { return [ color[ 0 ] * 255.0, color[ 1 ] * 255.0, color[ 2 ] * 255.0 ]; } function color255ToFloat( color ) { ...
"use strict"; var bodec = require('bodec'); var treeMap = require('../lib/object-codec').treeMap; module.exports = function (repo) { var loadAs = repo.loadAs; repo.loadAs = newLoadAs; var saveAs = repo.saveAs; repo.saveAs = newSaveAs; function newLoadAs(type, hash, callback) { if (!callback) return new...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to * manage themes registration and loading. */ /** * Manages themes registration an...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
// # disallowAttributeConcatenation: `true` // // Pug must not contain any attribute concatenation. // // ```pug // //- Invalid // a(href='text ' + title) Link // //- Invalid under `'aggressive'` // a(href=text + title) Link // a(href=num1 + num2) Link // ``` var assert = require('assert'); module.exports = function ...
import { InternalHelperReference } from '../utils/references'; import { dasherize } from 'ember-runtime/system/string'; function normalizeClass({ positional, named }) { let value = positional.at(1).value(); let activeClass = named.at('activeClass').value(); let inactiveClass = named.at('inactiveClass').value(); ...
// Copyright 2012 Mark Cavage, Inc. All rights reserved. var crypto = require('crypto'); var EventEmitter = require('events').EventEmitter; var fs = require('fs'); var http = require('http'); var https = require('https'); var os = require('os'); var querystring = require('querystring'); var url = require('url'); var ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > Check For Statement for automatic semicolon insertion. If automatic insertion semicolon would become one of the two semicolons in the header of a For Statement. ...