code
stringlengths
2
1.05M
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Messenger Messenger * @ingroup UnaModules * @{ */ /** * Record video js file. */ function oJotVideoRecorder(oOptions) { this.bstart = oOptions.bstart || '#start-record'; this.bplay = oOptions.b...
console.log("Start Bot"); var Twit = require('twit'); var client = new Twit(require('./config')); var fs = require('fs'); var exec = require('child_process').exec; folder = require('path').dirname(require.main.filename); blender = false; // Check for the operating system if(process.platform === 'win32') { console.l...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), fs = require('fs'), path = require('path'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), multer = require('multer'), config = require(path.resolve(...
import { debug, sendMessageRequest, } from '../../utils/'; import { ACTION, } from '../../constants/'; import { patchXHR } from './patch-xhr'; import { patchFetch } from './patch-fetch'; const clientLog = debug.scope('legacy'); const registrations = {}; export class LegacyClient { /** * Indicates which m...
(function(){ 'use strict'; var context = null; var contextReal; var width = null; var height = null; var addSnow = true; var maxSnowTheta = Math.PI*1/3; var timer; var nBranchDivisions; //var nTrees = 1; var forest = function(canvasId){ self = {}; self.init = function(){ var canv...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Holodeck = require('../../../../../../holodeck'); /* jshint ignore:line */ var R...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.mergeImages = factory()); }(this, (function () { 'use strict'; // Defaults var defaultOptions = { format: 'image/png', qu...
module.exports = require('./lib/qbws');
/* global hexo */ 'use strict'; hexo.extend.filter.register('theme_inject', injects => { if (injects.comment.raws.length > 1) { hexo.log.warn('It is currently not supported to launch mutli-comments systems at the same time, so stay tuned for subsequent versions of iteration.'); hexo.log.warn('Please keep on...
import { defaultAction, } from '../actions'; import { DEFAULT_ACTION, } from '../constants'; describe('TrackingPage actions', () => { describe('Default Action', () => { it('has a type of DEFAULT_ACTION', () => { const expected = { type: DEFAULT_ACTION, }; expect(defaultAction()).to...
'use strict'; const RuleTester = require('eslint').RuleTester; const rule = require('../../lib/rules/no-nested-tests'); const ruleTester = new RuleTester(); ruleTester.run('no-nested-tests', rule, { valid: [ 'it()', 'it(); it(); it()', 'describe("", function () { it(); })', 'descri...
import { PostsList } from "../PostsList/PostsList" import { ArrowLink } from "../../shared/ArrowLink/ArrowLink" import { SharePost } from "../../posts/SharePost/SharePost" import { Footer, Container, Bio, RelatedPost, AuthorLabel, StyledProfilePicture } from "./styles" const PostFooter = ({ post }) => { return ( ...
var app = require('express')(), wizard = require('hmpo-form-wizard'), steps = require('./steps'), fields = require('./fields'); app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' })); app.use(wizard(steps, fields, { controller: require('../../../controllers/form'), tem...
/** * MouseEvent * @param src * @param props * @constructor * @require System,Event,Math,Object; */ function MouseEvent( type, bubbles,cancelable ) { if( !(this instanceof MouseEvent) )return new MouseEvent(type, bubbles,cancelable); Event.call(this, type, bubbles,cancelable ); } System.MouseEvent=MouseE...
/** * Sprite.js * * HTML5游戏开发者社区 QQ群:326492427 127759656 Email:siriushtml5@gmail.com * Copyright (c) 2014 Sirius2D www.Sirius2D.com www.html5gamedev.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to dea...
var app = require('express')(); var server = require('http').Server(app); var io = require('socket.io')(server); var redis = require('redis'); server.listen(8080, function () { console.log('Tiny server is running...'); }); io.on('connection', function (socket) { console.log('New client connected...'); va...
module.exports = function(str) { //var regex = /"[a-z\s]*"/g; var regex = /"[^"]*"/g; return str.match(regex); };
'use strict'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import getScrollbarWidth from '../utils/getScrollbarWidth'; import CSSCore from '../utils/CSSCore'; module.exports = { setDimmerContainer: function () { let container = (this.props.container && ReactDOM.findDOM...
Array.prototype.removeDuplicates = function() { return this.filter((element, index, array) => array.indexOf(element) == index); };
/* globals $, _ */ var Plumage = require('PlumageRoot'); var Field = require('view/form/fields/Field'); var Select = require('view/form/fields/Select'); module.exports = Plumage.view.form.fields.CategorySelect = Select.extend({ className: 'category-select field', template: require('view/form/fields/templates/Cat...
import { namespace, whitespaceChecker } from "../../utils"; import { utils } from "stylelint"; import { variableColonSpaceChecker } from "../dollar-variable-colon-space-after"; export const ruleName = namespace("dollar-variable-colon-space-before"); export const messages = utils.ruleMessages(ruleName, { expectedBef...
const mongoose = require('mongoose'); mongoose.Promise = global.Promise; mongoose.connect(process.env.MONGODB_URL); module.exports={ mongoose }
(function() {var implementors = {}; implementors["growable"] = [{"text":"impl&lt;T:&nbsp;?<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.ht...
import { PureComponent } from 'react' import PropTypes from 'prop-types' import autobind from 'autobind-decorator' import { GMAP_EVENTS } from './utils/const' import { setupEvents, removeEvent } from './utils/mapEventHelpers' const enableControls = (enable = true) => ({ draggable: enable, zoomControl: enable, sc...
function demo() { multiConnection(); } function multiConnection() { var node_button = LiteGraph.createNode("widget/button"); node_button.pos = [100,400]; graph.add(node_button); var node_console = LiteGraph.createNode("basic/console"); node_console.pos = [400,400]; graph.add(node_console); node_button.connec...
__history = [{"date":"Fri, 12 Jul 2013 08:56:49 GMT","sloc":28,"lloc":26,"functions":4,"deliveredBugs":0.36255791263629855,"maintainability":69.84781893414903,"lintErrors":4,"difficulty":14.57142857142857}]
/** * @file 检查版本更新 * @author zqyadam(zqyadam@qq.com) */ /* eslint-disable no-console */ 'use strict'; const chalk = require('chalk'); const semver = require('semver'); const packageConfig = require('../package.json'); const shell = require('shelljs'); function exec(cmd) { return require('child_process').exec...
var Spritesheet = (function () { //Here is where you should put all your rendering code, which will be private //This canvas will be used as a buffer to store the image off-screen var buffercanvas = document.createElement("canvas"); buffercanvas.width = 1366; buffercanvas.height = 768; var buf...
import { TypeOf } from 'element-ui/src/utils/funcs'; import objectAssign from 'element-ui/src/utils/merge'; import { getValueByPath } from 'element-ui/src/utils/util'; let columnIdSeed = 1; const defaults = { default: { order: '' }, selection: { width: 48, minWidth: 48, realWidth: 48, order:...
System.config({ baseURL: "./", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system" ], "compact" : false }, paths: { "test/*": "./test/*", "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*...
import { Component, PropTypes } from 'react'; import ReactComponent from 'components/ReactComponent'; export default class Components extends Component { static propTypes = { components: PropTypes.array.isRequired } renderComponents() { return this.props.components.map((component) => { return ( <ReactCo...
'use strict'; /* jshint sub: true */ var path = require('path'); var EventEmitter = require('events').EventEmitter; var should = require('chai').should(); var crypto = require('crypto'); var bitcore = require('bitcore-lib'); var _ = bitcore.deps._; var sinon = require('sinon'); var proxyquire = require('proxyquire');...
var assert = require('assert'); var helpers = require('./helpers'); var args = []; describe('retries', function() { this.timeout(1000); it('are ran in correct order', function(done) { helpers.runMocha('retries/hooks.js', args, function(err, res) { var lines, expected; assert(!err); lines...
// Eloquent JavaScript // Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on! // Program Structure // Write your own variable and do something to it. // var Illusion = "Is it a dream?" // console.log(Illusion) /* Write a short program that asks for a user to input their...
vti_encoding:SR|utf8-nl vti_author:SR|OMCORP\\saten.kumar vti_modifiedby:SR|OMCORP\\saten.kumar vti_timelastmodified:TR|26 May 2006 15:17:10 -0000 vti_timecreated:TR|26 May 2006 15:17:10 -0000 vti_cacheddtm:TX|26 May 2006 15:17:10 -0000 vti_filesize:IR|1882 vti_extenderversion:SR|6.0.2.6551 vti_backlinkinfo:VX|
var React = require('react'); module.exports = React.createClass({ render : function() { return <div>No route found : 404</div> } });
/* eslint-disable no-var, no-unused-vars, no-underscore-dangle */ // Create the WebdriverIO browser object var client = {}; // Make a proxy of the global Jest expect function so we can test the global // Chai version global._expect = global.expect;
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "es-CU", identity: { language: "es", territory: "CU" }, territory: "CU", numbers: { symbols: { decimal: ".", group: ",", list: ";", percentSign: "%", ...
Template.afEachArrayItem.helpers({ innerContext: function afEachArrayItemContext(options) { var c = AutoForm.Utility.normalizeContext(options.hash, "afEachArrayItem"); var formId = c.af.formId; var name = c.atts.name; var docCount = fd.getDocCountForField(formId, name); if (docCount == null) { ...
if (typeof(MIDI) === 'undefined') var MIDI = {}; if (typeof(MIDI.Soundfont) === 'undefined') MIDI.Soundfont = {}; MIDI.Soundfont.acoustic_grand_piano = { "A0": "data:audio/ogg;base64,YQB1AGQAaQBvAA==", "Bb0": "data:audio/ogg;base64,YQB1AGQAaQBvAA==", "B0": "data:audio/ogg;base64,YQB1AGQAaQBvAA==", "C1": "data:a...
var Menu, MenuItem; Menu = yamvc.View.$extend({ defaults: { tpl: new yamvc.view.Template({ config: { id: 'tpl-menu', tpl: [ '<nav class="navbar navbar-inverse navbar-embossed" role="navigation">', '<div class="navbar-header...
(function () { "use strict"; /** ** DEPENDENCIES ** - angular translate ** - underscore **/ angular.module("lui.translate") .directive("luidTranslations", ["$translate", "_", "$filter", "$timeout", function ($translate, _, $filter, $timeout) { function link(scope, element, attrs, ctrls) { var ng...
import { $async, $await } from '../generate/async.macro' import multiPartition from './$multi-partition' import { $iterableCurry } from './internal/$iterable' function $partition (func, iter) { const [first, second] = multiPartition($async(item => $await(func(item)) ? 0 : 1), iter) return [first, second] } expor...
/** * 然不是!闭包有非常强大的功能。举个栗子: 在面向对象的程序设计语言里,比如Java和C++,要在对象内部封装一个私有变量,可以用private修饰一个成员变量。 在没有class机制,只有函数的语言里,借助闭包,同样可以封装一个私有变量。我们用JavaScript创建一个计数器: * Created by hank on 2017/3/13. */ "use strict"; function create_counter(initial) { var x = initial || 0; return { inc: function () { retu...
(function($){ $('document').ready(function(){ app = $.sammy('#content', function() { // Override this function so that Sammy doesn't mess with forms this._checkFormSubmission = function(form) {return (false);}; storage = new Storage(); function unescap...
module.exports=require('./lib/atraxi');
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'ta...
/** * Ternific Copyright (c) 2014 Miguel Castillo. * * Licensed under MIT */ define(function (require /*, exports, module*/) { 'use strict'; var HintHelper = require("HintHelper"); function TernTypes(ternProvider) { var _self = this; _self.ternProvider = ternProvider; _self._...
var routes = require("./routes/index.js"); module.exports = function(){ routes = routes.call(this); this.get("/api/book/:bookId/checkout", routes.checkout); this.get("/api/book/:bookId/checkin", routes.checkin); this.post("/api/books/add", routes.addBook); this.get("/api/books/all", routes.getAll); this.get("/*...
'use strict'; const assert = require('assert'); const getFbInfo = require('../../../../src/services/user/hooks/getFbInfo.js'); describe('user getFbInfo hook', function() { it('hook can be used', function() { const mockHook = { type: 'before', app: {}, params: {}, result: {}, data: ...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { typedDependencies } from './dependenciesTyped.generated'; import { createAbs } from '../../factoriesAny.js'; export var absDependencies = { typedDependencies: typedDependencies, createAbs: createAbs };
// NODE MODULES const mongoose = require('../services/mongoose'); // ROUTES CONFIG const APP_CONFIG = require('../app.config'); const ROUTES_CONFIG = APP_CONFIG.ROUTES_CONFIG; const routeSchema = new mongoose.Schema({ url: { type: String, required: true }, method: { type: String,...
import model from 'platform/models/model' import bcrypt from 'bcrypt-nodejs' import Asset from 'platform/models/asset' import Role from 'platform/models/role' import SecurityQuestion from 'platform/models/security_question' import Team from 'platform/models/team' export default model.extend({ tableName: 'users', ...
'use strict'; describe('myApp.version module', function() { beforeEach(module('sandbox.version')); describe('version service', function() { it('should return current version', inject(function(version) { expect(version).toEqual('0.1'); })); }); });
'use strict'; var debug = require('diagnostics')('bigpipe:compiler') , browserify = require('browserify') , preprocess = require('smithy') , mkdirp = require('mkdirp') , crypto = require('crypto') , stream = require('stream') , async = require('async') , File = require('./file') , path = require('path'...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports", "prop-types", "lodash/clone", "lodash/get", "lodash/has", "react", "react-final-form-arrays", "react-bootstrap/lib/Panel", "react-bootstrap/lib/Button", "react-bootstrap/lib/Row", "react-bootstrap/lib/Col", "react-b...
// == `math.js` == // function add(num1: number, num2: number): number { return num1 + num2; }; // This is how we export the `add()` function in CommonJS exports.add = add; function sub(num1, num2) { return num1 - num2; } var two: number = add(1, 2); var one: number = sub(2, 1);
// What if I want to re-use a result elsewhere? 'use strict'; var fs = require('fs'), async = require('async'), files = ['data/data1', 'data/data2', 'data/data3']; // files = ['data/data1', 'data/datxxa2', 'data/data3']; function useThirdFileSize(size) { console.log('the third files size is ', size); } function ...
angular.module('app').controller('loginCtrl', function($location, currentIdentity, auth, toastr) { if(currentIdentity.authenticated()) { $location.path('/home'); } this.login = function() { auth.login({ username: this.email, password: "pass" }).then(function() { $locat...
'use strict'; const Promise = require('bluebird'); const User = require('../models/User'); module.exports = function() { const create = function(userData) { return new Promise((resolve, reject) => { const user = new User(userData); user.createdAt = Date.now(); user.updatedAt = Date.now(); ...
'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { serverViews: ['app/views/**/*.*'], serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'], clientViews: ['public/modules/**/views/**/*.html'], clientJS: ['public/js/*.js', 'public/modules/**/*.js'], ...
var win = Ti.UI.createWindow(); var AndroidID = require('ti.android.deviceid'); Ti.API.error( " ANDROID_ID is : " + AndroidID.getAndroidID()); Ti.API.error( " ANDROID_UUID is : " + AndroidID.getAndroidUUID()); win.open();
module( "fns.core module" ); test( "fns.mixin", 9, function(){ equals( typeof fns.mixin, "function", "Function existence verification" ); var test = {}; var out = fns.mixin( test, { a:1, b: "test"} ); equals( test, out ); equals( typeof test.a, 'number' ); test = { a: 5, b: 5 }; out = { b: 10, c: 10 }; fn...
import test from 'ava' import { setMatchInProgress, getNextMinute, pauseMatch, homeGoal, awayGoal } from '../../actions/match-actions' import reducer from '../match-reducer' const componentUnderTest = 'Match Reducer' const testReduction = (assert, stateBeforeAction, action, expectedState) => { assert.deepE...
Template.eraseButton.events({ 'click': function () { Meteor.call('removeAllData'); } });
(function () { 'use strict'; angular .module('widgets.imagezoomer', []) .directive('imagezoomer', function () { return { restrict: 'AE', link: function (scope, element, attrs) { //Will watch for changes on the attribute attrs.$observe('zoomImage', function () { linkEl...
function gallery() { var $tour = $("#tour"); var $frame = $("#frame"); $tour.on("click", function () { $frame.css("pointer-events", "auto"); }); $tour.on("mouseleave", function () { $frame.css("pointer-events", "none"); }); }
export const objectUngroup = {"viewBox":"0 0 2304 1792","children":[{"name":"path","attribs":{"d":"M2304 768h-128v640h128v384h-384v-128h-896v128h-384v-384h128v-128h-384v128h-384v-384h128v-640h-128v-384h384v128h896v-128h384v384h-128v128h384v-128h384v384zM2048 512v128h128v-128h-128zM1408 128v128h128v-128h-128zM128 128v12...
chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { 'use strict'; if (request.action && sender.id) { switch (request.action) { case 'getSelection': sendResponse(window.getSelection().toString()); } } });
/** * Created by yangguo on 2016/4/21 0021. */ var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 3000)); app.get('/', function (req, res) { res.send('Hello World!'); }); app.get('/test', function (req, res) { var str = req.query.params; console.log(str); res...
/* * Update the scaling WITH configuration */ const request = require('request'); const password = 'YOUR_COMMANDER_PASSWORD'; const opts = { method: 'PATCH', url: 'http://localhost:8889/api/config', json: { instance: { scaling: { max: 300, }, }, ...
const fs = require('fs') const include = require('./utils').include const includeMimeType = require('./file').includeMimeType const findInFile = require('./file').findInFile /** * All elements that always ignored */ const ALWAYS_IGNORED = ['.git', 'node_modules', '.DS_Store'] /** * Check of an element is a directo...
// Load modules var EventEmitter = require('events').EventEmitter; var Fs = require('fs'); var Os = require('os'); var Path = require('path'); var Stream = require('stream'); var Code = require('code'); var Lab = require('lab'); var lab = exports.lab = Lab.script(); var Hoek = require('hoek'); var GoodFile = require(...
import { connect } from "react-redux"; import StatsTab from "../components/stats_tab"; import { fetchIdentificationCategories, fetchPopularObservations, fetchQualityGradeCounts } from "../ducks/project"; import { setConfig } from "../../../shared/ducks/config"; function mapStateToProps( state ) { return { ...
XO('Event',function($){ this.on= function(fullName,handler){ if(arguments.length<=2){ XO.$body.on(fullName,handler); return; } $(arguments[0]).on(arguments[1],arguments[2]); }; this.trigger = function(fullName,args){ if(arguments.length<=2){ ...
/** * manage window size save read and set */ const lastStateManager = require('./last-state') // const log = require('./log') const { isDev, minWindowWidth, minWindowHeight } = require('../utils/constants') exports.getScreenCurrent = () => { const rect = global.win ? global.win.getBounds() : { x: 0...
var view; require([ "esri/Map", "esri/layers/FeatureLayer", "esri/views/MapView", "esri/PopupTemplate", "dojo/domReady!" ], function(Map, FeatureLayer, MapView, PopupTemplate) { var defaultSym = { type: "simple-fill", // autocasts as new SimpleFillSymbol outline: { // autocasts as new SimpleLi...
'use strict'; let moment = require('moment'); let SensorUtils = require('../Command/Sensor/Utils'); const DEFAULT_CONDITION = { sensor: null, attribute: null, operator: null, value: null, }; /** * Condition * * Condition object */ class Condition { /** * Constructor * * @param {Objec...
/** * Created by patiernom on 09/03/2015. */ module.exports = { options: { banner: '/*!\n' + ' * <%= pkg.name %> v<%= pkg.version %>\n' + ' * Copyright 2014-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + ' * Licensed under <%= pkg.license.type %> (<%= pkg.l...
'use strict'; var Twitter = require('twitter'); var express = require('express'); var http = require('http'); var generate = require('./lib/generate'); var app = express(); var port = process.env.PORT || 3000; var tweetInterval = process.env.TWEET_INTERVAL || 1800000; var tweet = new Twitter({ consumer_key: process...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define(["require","exports","dojo/Deferred"],function(g,d,f){function e(a,b){if(Array.isArray(b)){var c=new f;a(b,function(){for(var b=[],a=0;a<arguments.length;a++...
const { src, dest, series, parallel } = require('gulp'); const del = require('del') const rev = require('gulp-rev') const clean_css = require('gulp-clean-css') const terser = require('gulp-terser') const image = require('gulp-image') const uploadQcloud = require('gulp-qcloud-cos-upload') const revCollector = require('g...
const fs = require('fs'); const path = require('path'); const configFile = JSON.parse(fs.readFileSync('./config.json')); // Solves cyclic dependency issue const texFilename = path.parse(configFile.resume_filename).name + '.tex'; const config = { configFile: configFile, distDirname: configFile.dist_dir, srcDirna...
(function(pangu) { 'use strict'; var ignore_tags = /^(code|pre|textarea)$/i; var space_sensitive_tags = /^(a|del|pre|s|strike|u)$/i; var space_like_tags = /^(br|hr|i|img|pangu)$/i; var block_tags = /^(div|h1|h2|h3|h4|h5|h6|p)$/i; /* 1. 硬幹 contentEditable 元素的 child nodes 還是會被 spacing ...
'use strict'; import React from 'react'; import Header from '../../header'; module.exports = React.createClass({ displayName: 'app/pages/home/index.js', getDefaultProps() { return { title: 'home', body: 'welcome home' }; }, render() { return ( ...
window.cytubeEnhanced.addModule('videoResize', function (app, settings) { 'use strict'; var that = this; var defaultSettings = { turnedOn: true }; settings = $.extend({}, defaultSettings, settings); function setWight() { var self = this; self.ARROW = 'data:image/p...
import { Resource } from 'resource-loader'; import path from 'path'; import * as core from '../core'; const BATCH_SIZE = 1000; export default function () { return function spritesheetParser(resource, next) { let resourcePath; const imageResourceName = `${resource.name}_image`; // skip...
var lpstream = require('length-prefixed-stream') var duplexify = require('duplexify') var ids = require('numeric-id-map') var crypto = require('crypto') var events = require('events') var bitfield = require('bitfield') var util = require('util') var messages = require('./messages') var MAX_BITFIELD = 4 * 1024 * 1024 v...
import { LIGHT_TYPE } from '../../const.js'; import { Light } from './Light.js'; import { DirectionalLightShadow } from './DirectionalLightShadow.js'; /** * A light that gets emitted in a specific direction. * This light will behave as though it is infinitely far away and the rays produced from it are all parallel. ...
import React from 'react' import {shallow} from 'enzyme' import App from './App' test('should render Header correctly', () => { const wrapper = shallow(<App />) expect(wrapper).toMatchSnapshot() })
import _ from 'lodash'; export default class IncludesResolver { /** * @param {Model} model */ static of(model) { return new IncludesResolver(model); } /** * @param {Model} model */ constructor(model) { this.grm = model.orm; this.model = model; } /** * @param {array|object|b...
window.City = Backbone.Model.extend({ urlRoot: 'rest/api/accounts', defaults: { "id": null, "username": "", "email": "", "roles": "", "about": "", "group": "", "country": "", "city": "", "password": "" } }); window.AccountList = Backbo...
'use strict'; var React = require('react'); var IconBase = require(__dirname + 'components/IconBase/IconBase'); var AndroidArrowDropleftCircle = React.createClass({ displayName: 'AndroidArrowDropleftCircle', render: function render() { return React.createElement( IconBase, null, React.createElement( ...
'use strict'; var estraverse = require('estraverse'); var defaults = { pre: require('./labels/pre'), post: require('./labels/post'), main: require('./labels/main'), invariant: require('./labels/invariant') }; /** * Process an AST and return the modified structure. * * @param {Object} ast The AST to pr...
const config = require('../config') const utils = require('./utils') const path = require('path') const webpack = require('webpack') const webpackConfig = process.env.BROWSER !== 'ie8' ? require('./webpack.dev.conf') : require('./webpack.dev.ie8.conf') const express = require('express') const opn = require('opn') cons...
version https://git-lfs.github.com/spec/v1 oid sha256:a4970e0ff5d9717322b4b1ff097e4972c08256d6ce3e440379cc11df773c460a size 138
/* global describe, it */ /* eslint-disable no-unused-expressions */ describe('The Coordinate class', () => { const { expect } = window.chai; const { Coordinate } = window.OdoHelpers; it('can initialize', () => { let c = new Coordinate(); expect(c.x).to.equal(0); expect(c.y).to.equal(0); c = ne...
var Tokenizer = require('./../tokenizer'), englishTokenizer = new Tokenizer(), TfIdf = require('./../tfidf'); describe('The Tf-Idf calculator', function() { it('should add documents', function() { var tfidfCalculator = new TfIdf(englishTokenizer); tfidfCalculator.addDocument('The q...
'use strict'; import plugins from 'gulp-load-plugins'; import yargs from 'yargs'; import browser from 'browser-sync'; // import nodemon from 'gulp-nodemon'; import gulp from 'gulp'; import yaml from 'js-yaml'; import rimraf from 'rimraf'; import fs from 'fs...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'templates', 'ko', { button: '템플릿', emptyListMsg: '(템플릿이 없습니다)', insertOption: '현재 내용 바꾸기', options: '템플릿 옵션', selec...