code
stringlengths
2
1.05M
'use strict'; module.exports = { db: 'mongodb://localhost/metroapp-test', port: 3001, app: { title: 'MetroApp - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { ...
'use strict'; describe('Controller: AboutCtrl', function () { // load the controller's module beforeEach(module('restangularAppApp')); var AboutCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AboutCtrl...
module.exports = { transport: { web: { port: 9003 } } }
import React from 'react' import { Header } from 'shengnian-ui-react' const HeaderExampleDisabled = () => ( <Header as='h2' disabled> Disabled Header </Header> ) export default HeaderExampleDisabled
let DATE_COLOR = '#399FC3'; let DATE_FONT_SIZE = '8'; let ENTRY_MARGIN = 0.05; let TEXT_WIDTH_W_PHOTO = 0.50; let TEXT_WIDTH_WO_PHOTO = 0.75; let AUTO_BOLD_FIRST_LINE = true; let AUTO_BOLD_LINE_MAX_LENGTH = 50; let PAGE_WIDTH = 594; let PAGE_HEIGHT = 693; let PAGE_ORIENT = 'landscape'; let FONT = 'Lora'; export defaul...
var Autowire = require("autowire"); Autowire.alias("Promise", "bluebird"); module.exports = Autowire;
/* eslint no-unused-vars: 0 */ "use strict"; exports.__esModule = true; exports.TaggedTemplateExpression = TaggedTemplateExpression; exports.TemplateLiteral = TemplateLiteral; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in...
jui.define("chart.grid.rule", [ "util.scale", "util.base" ], function(UtilScale, _) { /** * @class chart.grid.rule * @extends chart.grid.core */ var RuleGrid = function() { this.top = function(g) { var height = this.axis.area('height'), half_height = height/2; g.append(this.axisLine({ y1 : th...
var http = require("http").createServer(handler); //on request - handler var io = require("socket.io").listen(http); //socket library var fs = require("fs"); var firmata = require("firmata"); var board = new firmata.Board("/dev/ttyACM0", function(){// ACM (Abstract Control Model) for serial communication with Arduino ...
module.exports = { pageAnimationHeight : 800, pageHeight : {min: -5000, max: 1500}, pageWidth : {min: -2000, max: 2000}, pageDepth : {min: 1500, max: 2000}, pageFrontDepth : {min: 2400, max: 2700}, rad : {z: 2750, x: 1000, y: 1000 } };
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.url ? "* " + pkg.u...
/** * Copyright {%= grunt.template.today('yyyy') %} {%= author_name %}{% if( licenses.length ) { %} * Released under the {%= licenses.join(', ') %} license{%= licenses.length === 1 ? '' : 's' %}.{% } %} */ define( [ 'angular' ], function( ng ) { 'use strict'; ///////////////////////////////////////////////...
/** * * Enemies is a factory who seed the entities group with the given enemies of the level * * * * @params Game * */ (function() { 'use strict'; function Enemies(game) { this.game = game; // spawn timer this.enemiesTimer = this.game.time.create(false); this.enemi...
/* Product Name: dhtmlxSuite Version: 4.0.3 Edition: Professional License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com Copyright UAB Dinamenta http://www.dhtmlx.com */ dhtmlXGridObject.prototype._in_hea...
import { LitElement, html } from 'lit-element'; const Format = require('d3-format'); import { BaseGetProps, propDef, getProp, setProp, getPropFunction, dispatchUpdates, getIFrameFunction } from './InkDynamicProps.js'; class InkVar extends BaseGetProps{ static get properties() { return { name...
"use strict"; module.exports = collectDependents; function collectDependents(nodes) { const collected = new Set(); nodes.forEach(currentNode => { if (currentNode.localDependents.size === 0) { // no point diving into a non-existent tree return; } // breadth-first search const queue = ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 webpack from 'webpack'; im...
define(['Components/Basic/radio-group', 'backbone'], function(RadioGroupComponent, Backbone) { return function() { var model = new Backbone.Model({ prop: "name" }), collection = new Backbone.Collection(), radioGroupComponent = new RadioGroupComponent({ ...
import React, { Component } from 'react'; import {Content, TestMonitor} from '../../../lib'; import TodoApp from './TodoApp'; import { createStore, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react...
if (!(typeof MochaWeb === 'undefined')) { MochaWeb.testOnly(function () { describe("Server.Contacs", function () { describe("allow", function () { it("should only allow owner insert/update/delete", function () { for( var mode in Server.allow.owner) { if(mode !== 'fetch') { ...
/*! Material Components for the web Copyright (c) 2017 Google Inc. License: Apache-2.0 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory)...
export const defaultColor = '#4286f4'; export const metricColorMap = { 'acc': '#9be55e', 'loss': '#f46242' }; export const getMetricColor = (metricKey) => (metricColorMap[metricKey] || defaultColor);
/* * Copyright (C) 2012-2016 DFKI GmbH * Deutsches Forschungszentrum fuer Kuenstliche Intelligenz * German Research Center for Artificial Intelligence * http://www.dfki.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentat...
var gulp = require('gulp'); var del = require('del'); var sourcemaps = require('gulp-sourcemaps'); var uglify = require('gulp-uglify'); function clearGulpTscTemp() { del([ './gulp-tsc-tmp-*' ]); del([ './source/.gulp-tsc-tmp-*' ]); } gulp.task( // This renders the same output as WebStorm's configuration. 'typescr...
(function(exports){ exports.provider = { print: function(v){ console.log(v); return v; }, trace: function(){ console.log(this); }, apply: function(op, list){ return op.apply(this, list); } }; })(exports);
export { default as blurComments } from "./blurComments" export { default as blurFunctionArguments } from "./blurFunctionArguments" export { default as configurationError } from "./configurationError" export { default as cssDeclarationIsMap } from "./cssDeclarationIsMap" export { default as cssFunctionArguments } from ...
var express = require('express'), app = express(), http = require('http'), server = http.createServer(app), jade = require('jade'), io = require('socket.io').listen(server) _ = require('underscore')._; server.listen(3000); app.set('views', __dirname+'/views'); // path for views app.set('view engine', 'jade'); /...
angular.module('helloAngularControllers', []).controller('PeopleController', ['$scope', 'Person', function($scope, Person) { $scope.user = {}; $scope.peoples = []; function getUsers() { Person.find().$promise.then(function(data){ $scope.peoples = data; }); }...
import hbs from 'htmlbars-inline-precompile'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('is-before',{ integration: true }); test('one arg (comparisonDate)', function(assert) { assert.expect(1); this.render(hbs`{{is-before '2011-10-19'}}`); assert.equal(this.$().text(), 'false...
app.controller('searchUserController', function ($scope, $location, $rootScope, $modal, $timeout, userService, paginationFactory, userFactory, toast) { angular.extend($scope, paginationFactory); angular.extend($scope, userFactory); $scope.perfilsUser = profil...
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.emq=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(...
{ this.callback_ = callback; this.nodes_ = []; this.records_ = []; this.uid_ = ++uidCounter; }
var express = require('express'); var router = express.Router(); /* GET home page. */ // router.get('/', function(req, res, next) { // res.render('index', { title: 'Express' }); // }); router.get('/messageboard', function(req, res, next) { res.render('messageboard.jade', { title: "Heroes of the Storm - Message ...
var pane = document.getElementById('calcPanel'); var mymodule = (function () { //Private //Public return { $$: function (id) { 'use strict'; if (typeof id != 'undefined') { return document.getElementById(id); } else { return ...
/** * Created by dmytro.romenskyi on 8/4/2016. */ 'use strict'; function Logger() { this.enabled = false; this.debugEnabled = false; } Logger.prototype.debug = function(text) { if(this.enabled && this.debugEnabled) { console.log(text); } };
var AgendaSectionView = Backbone.View.extend({ el: '#content', initialize: function() { this.render(); }, render: function(){ $(this.el).html(template.section.agenda( this.options)); var calendarView = new CalendarView({ collection: new CalendarEventList()}); ...
angular .module('app.controllers') .controller('AppController', [ '$scope', 'APP_VERSION', 'AppModel', function($scope, APP_VERSION, AppModel) { $scope.APP_VERSION = APP_VERSION; $scope.clickC = function() { console.log(AppModel.event...
'use strict';/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('StudyEmployee', { studyID: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true }, employeeID: { type: DataTypes.INTEGER(11), allowNull: false, p...
function run() { init(); boxes = [MaxWavePlane.clone(), MaxSquaresPlane.clone(), MaxStretchPlane.clone()] //boxes = [MaxPlane.clone(), MaxCube.clone(), MaxSquaresPlane.clone(), MaxWavePlane.clone(), MaxStretchPlane.clone()] //boxes = [MaxSquaresPlane.clone(), MaxWavePlane.clone(), MaxStretchPlane.clone()] boxInde...
/*jshint unused: false */ /*global equal, module, test, deepEqual, notDeepEqual, notEqual, start, stop */ /*global require, requireBaseModules */ /* expect, ok */ require(["jquery", "shared/stringFormat"], function($, stringFormat) { "use strict"; module("utils.stringFormat test", { }); test("Basic substitutio...
import Ember from 'ember'; /** Modal body element used within [Components.Modal](Components.Modal.html) components. See there for examples. @class ModalBody @namespace Components @extends Ember.Component @public */ export default Ember.Component.extend({ classNames: ['modal-body'] });
!function(a){function b(a){if(!a)return new Error("Walter requires a image or array of images");a="string"==typeof a?[a]:a;var b=a.map(function(a){return c(a)});return d(b)}function c(a){return new Promise(function(b,c){var d=new Image;d.src=[e.path,a].join("/"),d.onerror=c,d.onload=function(){b(d)}})}function d(a){var...
/** * 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 React, { PropTypes } from 'react'; import withSty...
Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.def...
const config = require('woodward').config; const server = require('woodward').server; config.set('port', 4000); server.run();
export const loadNotes = () => { try { const serialisedData = localStorage.getItem('notes'); if (serialisedData === null) { return undefined; } return JSON.parse(serialisedData); } catch (e) { return undefined; } }; export const saveNotes = (state) => { try { const serialisedData ...
/** * 编辑器主类,包含编辑器提供的大部分公用接口 * @file * @module UE * @class Editor * @since 1.2.6.1 */ /** * UEditor公用空间,UEditor所有的功能都挂载在该空间下 * @unfile * @module UE */ /** * UEditor的核心类,为用户提供与编辑器交互的接口。 * @unfile * @module UE * @class Editor */ (function () { var uid = 0, _selectionChangeTimer; /** * 获取编辑器...
/* * Copyright 2016 Google Inc. All Rights Reserved. * * 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...
exports.Item = require('./item'); exports.Feed = require('./feed');
$(document).ready(function() { var ledCount = 30; var run = false; var sequence = []; var currentStep = 0; var sequenceData = { ledStartID: 0, ledEndID: 0, red: 0, green: 0, blue: 0, delay: 10 }; createLedStrip(); $(".row").on('click', '...
'use strict'; let chai = require('chai'); let chaiHttp = require('chai-http'); chai.use(chaiHttp); module.exports = function(app) { let agent = chai.request.agent(app); /** * Creates a User using the API * @param {User} user User to create * @return {Promise} Promise that resolves to an expres...
(function() { 'use strict'; angular .module('myApp') .config(appConfig); appConfig.$injector = ['$stateProvider', '$urlRouterProvider', '$logProvider', '$localStorageProvider', 'RestangularProvider', 'envServiceProvider']; function appConfig($stateProvider, $urlRouterProvider, $logProv...
/*! dynamics-web-api-callbacks v1.7.4 (c) 2021 Aleksandr Rogov */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("DynamicsWebApi", [], factory); else i...
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["text", "icon", "className"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Tag } from '...
/** * Mongoose node example * install: npm install --save mongoose */ // open and closing a connection const mongoose = require('mongoose'); const db = mongoose.connect('mongodb://localhost/games'); mongoose.disconnect(); // registering a schema const Schema = mongoose.Schema; const Tasks = new Schema( genre:...
import React, { Component } from 'react'; class Landing extends Component { render() { return <div>Landing</div>; } } export default Landing;
if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); var container; var stats; var controls; var camera, scene, renderer; var clothGeometry; var groundMaterial; var sphere; var table; var boundingBox; var object; var collidableMeshList = []; var gui; var guiControls; var poleMat, clothMaterial, ballMaterial; in...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode_languageserver_1 = require("vscode-languageserver"); const nodes_1 = require("../types/nodes"); const parser_1 = require("../services/parser"); const symbols_1 = require("../utils/symbols"); const document_1 = require("../ut...
define([], function() { /***************************************************************************** * * Copyright (c) 2004-2007 Guido Wesdorp. All rights reserved. * * This software is distributed under the terms of the JSBase * License. See LICENSE.txt for license text. * ****...
// Custom matchers beforeEach(function() { this.addMatchers({ to: function (message) { var connector = this.isNot ? " to not " : " to "; this.message = function () { return "Expected " + jasmine.pp(this.actual) + connector + "'" + message + "'"; }; ...
/** * Talisman tokenizers/skipgrams * ============================== * * Functions related to skipgrams' computation. * * [Reference]: https://en.wikipedia.org/wiki/N-gram#Skip-gram */ import combinations from 'obliterator/combinations'; import {seq} from '../../helpers'; import {vec} from '../../helpers/vectors...
export { default } from '../src/pages/Editor';
/** * Finds Elements within a given HTML Element using `querySelectorAll` and * return an Array with those elements. * * @function domFind * * @param {HTMLElement} domEle * @param {String} selector * * @returns {Array<HTMLElement>} */ export function domFind(domEle, selector){ return Array.prototype.slice...
/* eslint-disable no-underscore-dangle */ import { createStore, applyMiddleware, compose } from 'redux'; import logger from 'redux-logger'; import reducers from './reducers'; const getHydratedStore = () => { let preloadedState = {}; const devTools = {}; if (typeof window !== 'undefined') { if (window.__INI...
var Year = require('./leap'); describe('Leap year', function () { it('is not very common', function () { var year = new Year(2015); expect(year.isLeap()).toBe(false); }); it('is introduced every 4 years to adjust about a day', function () { var year = new Year(2016); expec...
'use strict'; angular.module('munch', ['ui.router', 'angucomplete']) .config( ['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { // For any unmatched url, redirect to / $urlRouterProvider.otherwise("/"); $stateProvider .state('home', { url: "/", templateUrl: "h...
var Book = React.createClass({ displayName: "Book", title: "Pro Express.js", publisher: "Apress", year: 2014, render: function () { this.props.title = 'new title'; return React.createElement( "div", null, React.createElement( "i", null, this.title, " ...
'use strict'; import * as handlers from '../handlers'; import Joi from 'joi'; module.exports = [ // Origins { 'method': 'GET', 'path': '/api/origins/{id}', 'handler': handlers.origins.get, 'config': { 'tags': ['api'], 'description': 'Get one origins by id', 'notes': 'Get one orig...
/* eslint no-unused-expressions: 0 */ import chaiHTTP from 'chai-http'; import sinon from 'sinon'; import chai from 'chai'; import models from '../../models'; import server from '../../index'; import dummyData from '../dummy.json'; import AdhocModelService from '../../services/AdhocModelService'; chai.use(chaiHTTP); l...
/** * grunt/pipeline.js * * The order in which your css, javascript, and template files should be * compiled and linked from your views and static HTML files. * * (Note that you can take advantage of Grunt-style wildcard/glob/splat expressions * for matching multiple files.) */ // CSS files to inject in orde...
// @flow import React from 'react' import { BrowserRouter as Router, Route } from 'react-router-dom' import { withRouter } from 'react-router' import Header from './Header' import { Breadcrumb, InvoiceFormContainer, InvoiceListContainer, } from '../../invoices' import styled from 'styled-components' const StyleW...
//@module var ClassUtils = require('./lib/ClassUtils'); var PlayerData = require('./lib/PlayerData'); var Button = require('./button'); var Theme = require('./theme'); var Page = require('./Page'); var PageController = require('./PageController'); var UI = require('./lib/UI'); var ResetPage = function ResetPage() {...
import { getAPI } from './../helpers/request'; import { setItems, addItem } from './../actions/sizeActions'; import { getBillingStates, setContact } from './../actions/contactActions'; import { setPayMethod, getPaymentForm } from './../actions/reviewActions'; function setOrder(newOrder) { return { type: '...
define(['leaflet', 'json!config.json', 'json!localConfig.json'], function(L, config, localConfig) { return L.extend(config, localConfig); });
ScriptLoader.load('Overlay'); var Subscriptions = new Class({ initialize: function (el) { this.element = $(el); if (this.element) { this.element.getElements('input[type=checkbox]').addEvent('click', this.toggle.bind(this)); } }, toggle: function(e) { var id = $(e.target).getAttribute('value'); var...
/** The MIT License (MIT) Copyright (c) 2019 Jacques Archimède 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, modify, m...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; import styles from './ContentPage.css'; import withStyles from '../../decorators/withStyles'; import {changeTitle} from '../../actions/TitleAction'; const title = 'Content Page'; @withStyles(s...
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@Export('Paral...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
const express = require('express'); const bodyParser = require('body-parser'); const path = require('path'); const logger = require('morgan'); const app = express(); const boardController = require('./controllers/board-controller'); const ENV = app.get('env'); if (ENV === 'development') app.use(logger('dev')); let...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-342ee53 */ goog.provide('ngmaterial.components.progressCircular'); goog.require('ngmaterial.core'); /** * @ngdoc module * @name material.components.progressCircular * @description Module for a circular progressbar...
import React from "react" import { Link } from "gatsby" import { graphql } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" class NotFoundPage extends React.Component { render() { const { data } = this.props const siteTitle = data.site.siteMetadata.title retur...
import {Locale} from "../../../../locale/LocaleManager.js"; import {ChangeAction} from "../../../../history/action/ChangeAction.js"; import {Editor} from "../../../../Editor.js"; import {NumberBox} from "../../../../components/input/NumberBox.js"; import {PassNode} from "./PassNode.js"; function UnrealBloomPassNode(pa...
var lodash = require("lodash"), Fn = { extend: lodash.extend, debounce: lodash.debounce }; // Fn.map( val, fromLow, fromHigh, toLow, toHigh ) // // Re-maps a number from one range to another. // Based on arduino map() Fn.map = function( x, fromLow, fromHigh, toLow, toHigh ) { return ( x - fromLow...
const io = require('socket.io')(); // SocketIO::ServerNode const Server = require('socket.io'); const io2 = new Server(); // SocketIO::ServerNode const io3 = Server.listen(); // SocketIO::ServerNode // more SocketIO::ServerNodes: io.serveClient(false); io.set('origins', []); io.path('/m...
import { Gluebert } from './gluebert';
const transform = require('lodash/transform'); const QueryBuilder = require('../query/querybuilder'); const { compileCallback, wrapAsIdentifier } = require('./formatterUtils'); // Valid values for the `order by` clause generation. const orderBys = ['asc', 'desc']; // Turn this into a lookup map const operators = tran...
'use strict'; var user = require ("../controllers/user.controller"); module.exports = function(router) { router.get('/user', user.getAllUsers); router.post('/user', user.addUser); router.put('/user/:id', user.updateUser); router.delete('/user/:id', user.deleteUser); router.get('/user/:id', user.getUser); ...
// Database test var Mistral = require('mistraldb'); var winston = require('winston') var haDb; module.exports = { initialise: function(db_params) { console.log('Initialize database : '); haDB = new Mistral.Database('homeAutomation'); var nodes = new Mistral.Collection(haDB, 'nodes'); var node_logging = ne...
module.exports = function getCurrentId(db, done) { "use strict"; db.find({}) .sort({_id: -1}) .limit(1). exec(function (err, tasks) { if (err) return done(err); if( tasks.length === 0){ return done(null, 0); } if (tasks.len...
/*global jQuery */ /*! * fitMedia -> Based on same principles as FitVids 1.0 by Chris Coyier * http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * * modified for MobileSiteOS ...
var UI = require('ui'); var ajax = require('ajax'); var Vector2 = require('vector2'); var timeParse = function(inputTime) { var year = inputTime.substring(0,4); var month = inputTime.substring(4,6); var day = inputTime.substring(6,8); var hour = inputTime.substring(9,11); var minute = inputTime.sub...
import React from 'react'; import { shallow, mount } from 'enzyme'; import { Bar } from '@vx/shape'; import { NodeGroup } from 'react-move'; import { BarSeries, Histogram } from '../../src'; import AnimatedBarSeries from '../../src/series/animated/AnimatedBarSeries'; describe('<AnimatedBarSeries />', () => { const ...
const path = require("path"); module.exports = { rules: [], presets: ["@textlint/textlint-rule-preset-foo"], rulesConfig: { "@textlint/textlint-rule-preset-foo/a": true }, configFile: path.join(__dirname, ".textlintrc") };
describe('Factory: ngtrumbitta.services.moment', function() { 'use strict'; var moment; beforeEach(module('ngtrumbitta.services.moment')); beforeEach(inject(function(_moment_) { moment = _moment_; })); it('should extract the year from a moment', function() { var date = moment('2011-09-10', 'YYYY-M...
game.ExperienceManager = Object.extend({ init: function(x, y, settings){ this.alwaysUpdate = true; this.gameover = false; }, update: function(){ if(game.data.win === true && !this.gameover){ this.gameOver(true); alert("YOU WIN!"); }else if(game.data.win === false && !this.gameover){ this.gameOver(fa...
$(function () { $(".wizard").wizardFormValidation({ }); });
(function() { var $, append_to_element, blank_dialog, blank_widget, copypasta, cover, css, currentContainer, currentLive, debug_msg, dialog_types, e, editable_click, editable_elements, end_editing, find_current_url, form_data, handle_dialog_message, handle_widget_message, hide_edit_preview, hide_edit_previews, ids, i...
import Model from 'ember-data/model'; import attr from 'ember-data/attr'; import { belongsTo, hasMany } from 'ember-data/relationships'; export default Model.extend({ title: attr('string'), description: attr('string'), slug: attr('string'), skillCount: attr('number'), sport: belongsTo('gossi.trixionary/sport', {i...
module.exports = { parser: 'babel-eslint', plugins: ['flowtype', 'prettier', 'import'], extends: ['plugin:flowtype/recommended', 'prettier', 'airbnb-base'], parserOptions: { ecmaVersion: 2016, sourceType: 'module', ecmaFeatures: { jsx: true, }, }, env: { es6: true, jest: true, ...