code
stringlengths
2
1.05M
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm12 12h2v-2h-2v2zm6-18H7v14h14V3zm-2 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2zm-4 0h2v-2H3v2z" /> , 'FlipToFrontSharp');
'use strict' module.exports = [ { name: 'mc-web', script: 'node_modules/mc-core/src/server.js', node_args: '--optimize_for_size --max_old_space_size=920 --gc_interval=100' }, { name: 'mc-worker-pipelines', script: 'node_modules/mc-core/src/workers/pipeline/worker.js' } ]
version https://git-lfs.github.com/spec/v1 oid sha256:d3224e0e3fc56600f89f0345cd0affb1df8d1b4c03cd81f9d745e80d80583076 size 60961
/** * Modlog * Pokemon Showdown - http://pokemonshowdown.com/ * * Interface for viewing and searching modlog. These run in a * subprocess. * * Also handles searching battle logs. * * Actually writing to modlog is handled in chat.js, rooms.js, and * roomlogs.js * * @license MIT */ 'use strict'; const FS =...
import { BlazeLayout } from 'meteor/kadira:blaze-layout'; import signedIn from '/core/client/lib/router'; // Add route to signedIn group, requires user to sign in signedIn.route('/dashboard', { name: 'dashboard', action () { BlazeLayout.render('masterLayout', { main: 'dashboard' }); }, });
require('source-map-support/register');
/** * Game class library, utility functions and globals. * * (C) 2010 Kevin Roast kevtoast@yahoo.com @kevinroast * * Please see: license.txt * You are welcome to use this code, but I would appreciate an email or tweet * if you do anything interesting with it! * * 30/04/09 Initial version. * 12/05/09 Refact...
/** * Ajax Submit v0.1.4 * http://github.com/bogdan/ajaxsubmit * * Copyright 2011-2012, Bogdan Gusiev * Released under the MIT License */ // Generated by CoffeeScript 1.6.3 (function() { (function($) { var applyValidation, applyValidationMessage; $.errors = { attribute: "validate", activationClas...
var assert = require('assert') var debug = require('debug')('primus-graphql:query-executor') var isFunction = require('101/is-function') var GraphQL = require('graphql') var getErrorStatus = function (err, defaultStatus) { if (err.status) return err.status if (err.statusCode) return err.statusCode if (err.origin...
// Module dependencies. var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = module.exports = express(); app.set('port', process.env.PORT ||...
/** * This file isn't used in this project. It was created by express-generator. */ //var express = require('express'); //var router = express.Router(); // //router.get('/', function(req, res, next) { // res.send('respond with a resource'); //}); // //module.exports = router;
(function () { 'use strict'; angular.module('app.core', [ // Angular modules // Custom modules 'blocks.exception', 'blocks.logger' // 3rd Party Modules ]); }());
//>>built define({doNew:"[nieuw]",edit:"[bewerken]",save:"[opslaan]",cancel:"[annuleren]"});
/** * @param _ * @param path * @ignore */ function Module(_, path) { /** * @param {string} repo */ return ['git:repo', function (repo) { return repo || _.last(process.cwd().split(path.sep)); }]; } module.exports = [ 'lodash', 'path', Module ];
var crypto = window.crypto || window.msCrypto module.exports = function (bytes) { return crypto.getRandomValues(new Uint8Array(bytes)) }
// All links-related publications import { Meteor } from 'meteor/meteor'; Meteor.publish('company.all', function () { return Links.find(); });
import path from 'path'; export default function normalizePath(str, separator = path.sep) { if (separator === '\\') { str = str.replace(/\\/g, '/'); } return str; }
define("data/typography",function(){return{title:"Typography"}});
// Approach: // // 1. Get the minimatch set // 2. For each pattern in the set, PROCESS(pattern, false) // 3. Store matches per-set, then uniq them // // PROCESS(pattern, inGlobStar) // Get the first [n] items from pattern that are all strings // Join these together. This is PREFIX. // If there is no more remaining, ...
import Ember from "ember"; import config from "../config/environment"; import ajax from "../utils/ajax"; import { getAccessToken, setAccessToken } from '../adapters/application'; import { getPersistedToken } from "../utils/tokens"; function clearSession(){ setAccessToken(null); } function persistSession(accessToken...
/** * Copyright <%= year %> Telerik AD * * 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 agr...
// Generated by CoffeeScript 1.6.2 define(function(require) { var Mat4, PerspectiveCamera, Ray, Vec2, Vec3, Vec4, _ref; _ref = require('pex/geom'), Vec2 = _ref.Vec2, Vec3 = _ref.Vec3, Vec4 = _ref.Vec4, Mat4 = _ref.Mat4, Ray = _ref.Ray; return PerspectiveCamera = (function() { var projected; function Per...
/* * snapshots.js: Commands related to snapshots resources * * (C) 2010, Nodejitsu Inc. * */ var fs = require('fs'), semver = require('semver'), dateformat = require('dateformat'), jitsu = require('../../jitsu'), ProgressBar = require('progress'), utile = jitsu.commo...
var UnitVertexBuffer = function(gl) { var self = {}; var ITEM_SIZE = 2; var VERT_COUNT = 4; var vertexBuffer; var ctor = function() { vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer); var vertAr = [ -1.0, -1.0, 1.0, -1....
import { selectBoldr, selectRouter, selectUi, selectDashboard, selectAdmin, } from './adminSelectors'; describe('admin selectors', () => { test('should select the boldr state', () => { const boldrState = {}; const mockedState = { boldr: boldrState, }; expect(selectBoldr(mockedState))....
/** * Copyright 2015 Telerik AD * * 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 ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
const DrawCard = require('../../drawcard.js'); class GuardingTheRealm extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Take control of character in discard pile', phase: 'marshal', target: { cardCondition: card => card.controller !==...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M5 17c0 .55.45 1 1 1h1v-4H5v3zm12-3h2v4h-2z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { d: "M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5...
version https://git-lfs.github.com/spec/v1 oid sha256:0a0f62e47ecc984adec5e0d7beedbcc777f4e7ca47879ee157e348608650baaa size 1729
var compression = require('compression'); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var env = process.env.NODE_ENV || 'development'; module.exports = function (app, config, passport) { // bodyParser should be above methodOverride app.use(bodyParser.json({limit: '50...
let noop = () => { }; let isFn = (fn) => typeof fn === 'function'; class Deferred { constructor(onFulfilled, onRejected, promise) { this.resolve = typeof onFulfilled === 'function' ? onFulfilled : null; this.reject = typeof onRejected === 'function' ? onRejected : null; this.promise = promise; } } cl...
/** * @param {number[]} nums * @return {number} */ var maxSubArray = function(nums) { var sum = 0; var m = Number.NEGATIVE_INFINITY; for(var i = 0; i < nums.length; i++){ sum += nums[i]; m = Math.max(m, sum); if(sum<0){ sum = 0; } } retu...
import React, { PropTypes } from 'react'; const Login = (props) => <a onClick={ props.onClick }>Login</a>; Login.displayName = 'Login'; Login.propTypes = { onClick: PropTypes.func.isRequired, }; export default Login;
/* YUI 3.7.2 (build 5639) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('selector-native', function (Y, NAME) { (function(Y) { /** * The selector-native module provides support for native querySelector * @module dom * @submodule selector-na...
ClassExtend('Controller', function PseudoVariablesController() { // nothing to do. });
/*! * Ext JS Library 3.1.1 * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.grid.Column * <p>This class encapsulates column configuration data to be used in the initialization of a * {@link Ext.grid.ColumnModel ColumnModel}.</p> * <p>While subclasses...
/*! backbone-viewport - v0.5.3 - 2017-01-12 * https://github.com/dzhdmitry/backbone-viewport * Copyright (c) 2017 Dmitry Dzhuleba; * Licensed */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define(['underscore', 'backbone'], factory); } else { root.Viewport = fa...
/* * catbox-couchbase * Copyright (c) 2015 Yieldbot, Inc. (http://github.com/yieldbot/catbox-couchbase) * For the full copyright and license information, please view the LICENSE.txt file. */ /* jslint node: true */ 'use strict'; module.exports = require('./lib/index');
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2015 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * A collection of useful mathematical functions. * * These are normally accessed through `game.math`. * * @...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.2...
var Engine = function() {} var fs = require('fs'); Engine.prototype.init = function() { console.log('init engine...'); } Engine.prototype.destroy = function() { console.log('destroy engine...'); } Engine.prototype.start = function() { console.log('starting engine...'); } module.exports = { id: "engine", order:...
'use strict'; const assert = require('./../../assert'); const common = require('./../../common'); let battle; describe('Wandering Spirit', function () { afterEach(() => battle.destroy()); it(`should exchange abilities with an attacker that makes contact`, function () { battle = common.createBattle([[ {specie...
/** mouse.js Copyright (c) 2020 NTT DOCOMO,INC. Released under the MIT license http://opensource.org/licenses/mit-license.php */ let mMouseLastX; let mMouseLastY; let mStartTime; let mDragFlag = false; let mMouseMode; /* Show Mouse page */ function showMouse(serviceId) { initAll(); setTitle('Mouse Profil...
exports.config = { protocol: 'http', specs: [ 'test/*.js' ], exclude: [ ], capabilities: [{ browserName: 'chrome', version: '54.0', platform: 'OS X 10.11' }], sync: true, logLevel: 'silent', coloredLogs: true, screenshotPath: './errorShots/', baseUrl: (process.env.CI ? 'http://co...
/* * ALA Embedded Comment Utilities * https://github.com/alistapart/comment-embed * * Copyright (c) 2013 A List Apart * Licensed under the MIT license. */ (function( w, undefined ) { // Enable JS strict mode "use strict"; var doc = w.document, ala = function( el ){ var elType = typeof( el ), ret = ...
/* Problem 5. Selection sort Sorting an array means to arrange its elements in increasing order. Write a script to sort an array. Use the selection sort algorithm: Find the smallest element, move it at the first position, find the smallest from the rest, move it at the second position, etc. */ var array = [], ar...
var gulp = require('gulp'); var less = require('gulp-less'); var path = require('path'); var livereload = require('gulp-livereload'); gulp.task('less', function () { return gulp.src('./src/server/assets/stylesheets/**/*.less') .pipe(less({ paths: [ path.join(__dirname, 'less', 'includes') ] })) .pi...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.2...
/** * React (with addons) v15.3.1 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="un...
import 'react-native'; import React from 'react'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; import Dialog from '../../src/components/dialog'; import TIPS from '../../src/constants/TIPS'; it('renders correctly', () => { // eslint-disable-next-line no-unu...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/http'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; ...
const autoprefixer = require('autoprefixer'); module.exports = { plugins: [autoprefixer] };
define(function(require, exports, module) { 'use strict'; var Helper = require('../core/Helper').Class; /** * @extends Helper * @constructor */ function ServiceHelper(context) { Helper.call(this, context); } ServiceHelper.prototype = Object.create(Helper.prototype); ...
/** * Copyright (c) Facebook, Inc. and its affiliates. 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. */ // This file is missing 'use strict' to force babel into doing something // as we have `transform-strict-mode`...
import assign from 'ember-metal/assign'; QUnit.module('Ember.assign'); QUnit.test('Ember.assign', function() { var a = { a: 1 }; var b = { b: 2 }; var c = { c: 3 }; var a2 = { a: 4 }; assign(a, b, c, a2); deepEqual(a, { a: 4, b: 2, c: 3 }); deepEqual(b, { b: 2 }); deepEqual(c, { c: 3 }); deepEqual...
import {identity} from 'ladda-fp'; export const createApiFunction = (fn, config = {}) => { const fnCopy = fn.bind(null); fnCopy.operation = config.operation || 'NO_OPERATION'; fnCopy.invalidates = config.invalidates || []; fnCopy.idFrom = config.idFrom || 'ENTITY'; fnCopy.byId = config.byId || false; fnCop...
define(['./totalDaysInMonth', './totalDaysInYear', '../time/convert'], function(totalDaysInMonth, totalDaysInYear, convert){ /** * calculate the difference between dates (range) */ /** * Description * @method diff * @param {} start * @param {} end * @param {} unitName * ...
/*global describe, beforeEach, module, inject, it, spyOn, expect, $, angular, afterEach, runs, waits */ describe('uiTinymce', function () { 'use strict'; var scope, $compile, $timeout, element, directiveElement, id, text = '<p>Hello</p>'; beforeEach(module('ui.tinymce')); beforeEach(function() { // throw s...
const DrawCard = require('../../drawcard'); class JanosSlynt extends DrawCard { setupCardAbilities() { this.forcedReaction({ when: { onCardOutOfShadows: event => event.card === this }, target: { cardCondition: card => card.controller === t...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Moves the element at the start of the array to the end, shifting all items in the process. * The "rotation" happens to the left. * * @...
/// <reference path="../test1.ts" /> 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; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var test2; (function (tes...
import SlChart from 'sl-ember-components/components/sl-chart'; export default SlChart;
import PropTypes from "prop-types"; import { Link } from "react-router"; const Success = ({ person, onExit }) => ( <div className="soft soft-double-ends one-whole text-center"> <h4 className="text-center push-ends"> Welcome{person.nickName ? ` ${(person.nickName || person.firstName)}` : ""}! </h4> ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
(function () { 'use strict'; function AddCatController($location, cats) { var vm = this; vm.addCat = function (cat, catForm) { if (catForm.$valid) { cats.addCat(cat) .then(function (catId) { $location.path('/cats/details/...
goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.control'); goog.require('ol.layer.Tile'); goog.require('ol.source.OSM'); goog.require('ol.source.TileJSON'); /** * Create the map. */ var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.OSM(), minResolution: 2...
'use strict'; /* jshint unused: false */ var should = require('chai').should(); var expect = require('chai').expect; var _ = require('lodash'); var bitcore = require('../../..'); var Transaction = bitcore.Transaction; var PrivateKey = bitcore.PrivateKey; var Address = bitcore.Address; var Script = bitcore.Script; var...
//# sourceMappingURL=iContent.js.map
version https://git-lfs.github.com/spec/v1 oid sha256:234fad7d745b30a7cb428a16786d88fd76a821f89a3e1b0fd6f7471d4061db16 size 109
$( document ).ready(function() { QUnit.test( "sort loan test 1", function( assert ) { var id = '0'; var payment = 25; var current_interest = {'0' : 30, '1': 20}; var current_principal = {'0' : 30, '1': 0}; var remaining_loans = {'0' : new Loan(0,'asd', 30,5,6), '1' : new Loan(0,'asd', 30,5,5)}; va...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
Sidebars.Properties.Geometry.SphereGeometry = function ( signals, object ) { var container = new UI.Panel(); var geometry = object.geometry; // radius var radiusRow = new UI.Panel(); var radius = new UI.Number( geometry.parameters.radius ).onChange( update ); radiusRow.add( new UI.Text( 'Radius' ).setWidth( ...
var Level4 = (function (){ this.game; var Resource = { loading: 11, Image: { background: new Image(), character: new Image(), characterLeft: new Image(), jetpack: new Image(), jetpackLeft: new Image(), portal: new Image(), enemyType1: new Image(), enemyType1Left: new Image(...
(function($) { $.fn.F_slider = function(options){ var defaults = { page : 1, len : 0, // 滚动篇幅 axis : 'y' // y为上下滚动,x为左右滚动 } var options = $.extend(defaults,options); return this.each(function(){ var $this = $(this); var len = options.len; var page = options.page; if(options.axis == 'y'){...
/* jshint node:true, browser:true, undef:true */ /* global QUnit, QUNIT_BDD_OPTIONS */ ;(function(global, exports, QUnit, options) { if (!QUnit) { throw new Error('Unable to locate QUnit! Please load it before qunit-bdd.'); } /** * Represents an execution context for tests created by calls to `describe`...
/** * @ngdoc module * @name material.components.bottomSheet * @description * BottomSheet */ angular .module('material.components.bottomSheet', [ 'material.core', 'material.components.backdrop' ]) .directive('mdBottomSheet', MdBottomSheetDirective) .provider('$mdBottomSheet', MdBottomSheetProvider);...
$(document).ready(function(){ $('a[href^="#"]').on('click',function (e) { e.preventDefault(); var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 1000, 'swing', function () { window.location.hash = target; ...
import API from 'lib/api'; import Model from 'lib/component-model'; export default class PageTypeTodosExampleModel extends Model { /** * Loads data for the page * @returns {Promise} */ load() { this.setState({ isLoading: true }); return API .get('/api/components/PageTypeTodosExample') ...
/*! * .______ _______ ___ .______ ______ ___ .__________. * ( _ ) ( ____) / \ ( _ ) ( ) / \ ( ) * | |_) ) | |__ / ^ \ | |_) ) | ,----' / ^ \ `---| |---` * | _ < | __) / /_\ \ | ) | | / /_\ \ | | * |...
(function(){ XML3D.css = {}; XML3D.css.TRANSFORM_PROPERTY = null; XML3D.css.init = function(){ if('transform' in document.body.style) XML3D.css.TRANSFORM_PROPERTY = 'transform' else if('WebkitTransform' in document.body.style) XML3D.css.TRANSFORM_PROPERTY = '-webkit-transform' ...
var postcss = require('postcss'); var Tokenizer = require('css-selector-tokenizer'); function normalizeNodeArray(nodes) { var array = []; nodes.forEach(function(x) { if(Array.isArray(x)) { normalizeNodeArray(x).forEach(function(item) { array.push(item); }); } else if(x) { array.pu...
/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ (function() { var guardElements = { table:1,ul:1,ol:1,blockquote:1,div:1 }, directSelectionGuardElements = {}, // All guard elements which can ha...
'use strict'; import expect from 'expect.js'; import mongoose from 'mongoose'; const Slide = mongoose.model('Slide'); let s1; describe('Slide Model Test:', () => { before(() => { s1 = { title: 'Slide One', description: 'description', image: 'image_url', url: 'link_url', alt: 'imag...
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule('repository');
import gulp from 'gulp'; export default (plugin, src, config) => { // Launch a Node.js/Express server gulp.task('serve', ['build:watch'], () => { src.server = [ 'build/server.js', 'build/templates/**/*' ]; plugin.nodemon({ script: 'build/server.js', env: Object.assign({NODE_ENV:...
'use strict'; var config = require('../config'); var gulp = require('gulp'); var gulpif = require('gulp-if'); var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var sourcemaps = require('gulp-sourcemaps'); var buffer = require('vinyl-buffer'); var st...
smalltalk.addPackage('Examples', {}); smalltalk.addClass('Counter', smalltalk.Widget, ['count', 'header'], 'Examples'); smalltalk.addMethod( unescape('_decrease'), smalltalk.method({ selector: unescape('decrease'), fn: function (){ var self=this; (self['@count']=((($receiver = self['@count']).klass === smalltalk.Number...
describe("Testing Services", function() { describe("App Service:", function() { //jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000 beforeEach(angular.mock.module('appTasker')); var app; var ws; var data; beforeEach(function (done) { inject(['appUI...
/** * joinDirective Module * * Description */ angular .module('cmps.entry', []) .directive('entry', [function(){ // Runs during compile return { // name: '', // priority: 1, // terminal: true, // scope: { // at: '@', // and: '&', // eq: '=', // }, // {} = isolate, true = child, false/undefined = ...
var path = require('path'); var expect = require('chai').expect; var test = require('../..').test; var run = require('../util/run'); var files = require('../util/files'); describe('cli-fs:', function() { it('should test character file - missing (false)', function(done) { var result = false; var expr ...
import styled from '@emotion/styled'; import * as React from 'react'; const RegularDiv = styled.div({ backgroundColor: 'orange', color: 'white' }); const Container = styled.div(props => ({ display: 'flex', flexDirection: props.column && 'column', width: '50%' })); // regular button const Button = styled.but...
'use strict'; module.exports = function(grunt) { var fs = require('fs'); var swig = require('swig'); var path = require('path'); grunt.registerMultiTask('swig_it', 'swig templater', function(tpl_context) { var options = this.options(); var config = this; var context = tpl_context || ''; var globalVars = ...
'use strict'; var getCssPrefixedValue = require('./getCssPrefixedValue') module.exports = function(target){ target.plugins = target.plugins || [ (function(){ var values = { 'flex':1, 'inline-flex':1 } return function(key, value){ if (key === 'display' && value in values){ return { ...
var Tetris = (function(){ var interval; var cols = 13; var rows = 20; var blockSize = 32; var speed = 800; var gameOver = false; // Tetris Constructor function Tetris(){ this.board = new Board(); this.timer = new Timer(); this.score = new Score(); this.level = new Level(); this.highScore = new High...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * @fileoverview Tests for no-magic-numbers rule. * @author Vincent Lemeunier * @copyright 2015 Vincent Lemeunier. All rights reserved. * See LICENSE in root directory for full license. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //--------...
async () => 2;
$(function() { var logado = _userdata["session_logged_in"]; if (logado) { $('#rankPersonalizado').after('Você está logado.'); } }); $(function() { if (_userdata["session_logged_in"]) { $('#rankPersonalizado').after('Você está logado.'); } }); $(function() { var logado = _userda...
/// <reference path="../../src/Dexie.js" /> (function (window, publish, isBrowser, undefined) { "use strict" /** class DatabaseChange * * Object contained by the _changes table. */ var DatabaseChange = Dexie.defineClass({ rev: Number, // Auto-incremented primary key sou...