code
stringlengths
2
1.05M
import fs from 'fs-extra' import _debug from 'debug' import webpackCompiler from '../build/webpack-compiler' import webpackConfig from '../build/webpack.config' import config from '../config' const debug = _debug('app:bin:compile') const paths = config.utils_paths ;(async function () { try { debug('Run compiler...
import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { Songs } from '../../api/songs.js'; import { Playlists } from '../../api/playlists.js'; import "./layout.html"; import "../navbar/navbar.js"; var mySound; Template.layout.onCreated(function() { Session.set({"volume": 100...
/** * @file mip-nph 组件 * @author fengzihao */ define(function (require) { var customElement = require('customElement').create(); var callAppEvent = require('./OpenApp'); customElement.prototype.build = function () { // 获取config try { var script = this.element.querySelector(...
import Router from 'koa-router'; import * as controller from './project.controller.js'; const router = new Router(); router.get('/', controller.getAllProjects); router.post('/add', controller.addProject); router.get('/:id', controller.getProjectById); router.get('/:id/build', controller.buildProjectById); router.get...
/*! @license ©2013 Ruben Verborgh - Multimedia Lab / iMinds / Ghent University */ /* A TurtleFragmentIterator reads data and metadata from Linked Data Fragments in Turtle. */ var TransformIterator = require('../iterators/Iterator').TransformIterator, BufferIterator = require('../iterators/Iterator').BufferIterator...
/*********************** * Adobe Edge Animate Composition Actions * * Edit this file with caution, being careful to preserve * function signatures and comments starting with 'Edge' to maintain the * ability to interact with these actions from within Adobe Edge Animate * ***********************/ (function($, Edge, com...
'use strict'; /** * FUNCTION: noop( val ) * An array function which does not change an array element. * * @param {Number} val - array value * @returns {Number} array value */ function noop( val ) { return val; } // EXPORTS // module.exports = noop;
/* * MainScene.js * 2015/01/06 * @auther minimo * This Program is MIT license. * */ (function() { tm.define("jsstg.MainScene", { superClass: tm.app.Scene, //タッチ情報 startX: 0, startY: 0, moveX: 0, moveY: 0, beforeX: 0, beforeY: 0, //経過時間 time: 0, background: "rg...
module.exports = { "extends": "google", "plugins": [ "react" ], "settings": { "react": { "pragma": "React", // Pragma to use, default to "React" "version": "0.14.0" // React version, default to the latest React stable release } }, "parserOptions":...
describe('wokArmyBuilder.builder.recordSheet', function () { beforeEach(module('wokArmyBuilder')); describe('wokRecordSheetController', function () { var controller, $scope, Army, Models; beforeEach(inject(function ($controller, $rootScope, _Army_, _Models_) { $scope = $rootScope.$new(); Army ...
import React from "react"; import _ from "lodash"; import PropTypes from "prop-types"; export function wrapWithHandlers() { return BaseComponent => { const handlers = _.keys(BaseComponent.propTypes).filter(x => { const type = BaseComponent.propTypes[x]; return type === PropTypes.func || type === Pro...
'use strict'; angular.module('mean.system').controller('IndexController', ['$http', '$location', '$scope', 'Global', function($http, $location, $scope, Global) { $scope.global = Global; $location.url('/dashboard'); } ]);
var Q = require('q'); var builder = require('../../lib'); function create(opts) { opts = opts || {}; var apiOpts = {}; if (opts.sessionManager) { apiOpts.sessionManager = getSessionManager(); } if (opts.cors) { apiOpts.cors = true; } console.log(apiOpts); return builder.createApiController(apiO...
/*globals requireJS*/ /*eslint-env node*/ /** * * @module Server:UserProject * @author pmeijer / https://github.com/pmeijer */ 'use strict'; var CONSTANTS = requireJS('common/storage/constants'), generateKey = requireJS('common/util/key'), UTIL = requireJS('common/storage/util'), HELPER = require('./st...
/** * @ngdoc object * @name appfy.theme.component:corner **/ (function () { 'use strict'; angular.module('appfy.theme').component('corner', { bindings: { ngModel: '=' }, templateUrl: "app/themes/default/components/corner/corner.html", controller: /*@ngInject*/ func...
import HarcWidgetTemperatureController from './harc-widget-temperature-controller'; export default { template: require('./harc-widget-temperature.html'), controller: HarcWidgetTemperatureController, bindings: { data: '<', }, require: { dashboardCtrl: '^^harcDashboard', }, };
import { takeLatest, call, put } from 'redux-saga/effects'; import API from 'utils/API'; import { FETCH, } from './constants'; import { fetchSuccess, fetchError, } from './actions'; export function* fetchGroup({ id }) { try { const group = yield call(API.group.get, id); yield put(fetchSuccess(group)...
version https://git-lfs.github.com/spec/v1 oid sha256:d36c62304a9edfed906f3cf1c298cb9a4913e90b842fff8ace91cdddd12c9945 size 1874
var Type = require("@kaoscript/runtime").Type; module.exports = function() { function foobar() { let x = null; let y = null; quxbaz(Type.isValue(x) ? x : Type.isValue(y) ? y : 42); } function quxbaz(x) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + arguments.length + " ...
var $mod$405 = core.VW.Ecma2015.Utils.module(require('../moment')); exports.default = $mod$405.default.defineLocale('lo', { months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.s...
module.exports = function(config){ config.set({ basePath : './', files : [ 'app/bower_components/angular/angular.js', 'app/bower_components/angular-route/angular-route.js', 'app/bower_components/angular-mocks/angular-mocks.js', 'app/test/**/*.js' ], autoWatch : true, fr...
import Math from 'math/Math.js'; // This will be a Phaser Game level class var math = new Math(); // Should snap to 10 console.log(math.snap.to(12, 5)); // Should snap to 5 console.log(math.snap.floor(9, 5)); // Should snap to 15 console.log(math.snap.ceil(11, 5)); window.pmath = math;
--- layout: null --- $(document).ready(function() { var $active, $content, $links = $(".tab"); $active = $($links.filter('[href="'+location.hash+'"]')[0] || $links[$links.length - 1]); $active.addClass('active'); $content = $($active[0].hash); $links.each(function() { $(this.hash).hide(); }); $conten...
export {default} from "./JTable";
import './server/cron'; import './modules';
/* eslint-disable no-undef, no-console , import/no-extraneous-dependencies */ import colors from 'colors'; // eslint-disable-line no-unused-vars import express from 'express'; import fs from 'fs'; import open from 'open'; import path from 'path'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack...
describe('form', function () { "use strict"; browser.ignoreSynchronization = true; it('should generate valid overlay summary', function () { browser.get('#/form').then(function () { // Delivery section return uiModel.formCtrl.waitAndClickByCss('button', 'div[id="delivery"]'); ...
define(function (require, exports) { //const WebSite=require("WebSite"); //const ns2depspec=WebSite.ns2depspec; const ns_m="mapEditor2"; const ns_k="kernel"; const starter={ name: "StartMapEditor.tonyu", content: `//「実行」→「StartMapEditorを実行」で起動 $editorConfig={ //レイヤー名,レイヤーで使えるパター...
var maximum = function (a, b) { return a > b ? a : b; }; /** * @param {number[]} nums * @return {number} */ var maxSubArray = function (nums) { let result = nums[0]; let maxTillNow = nums[0]; for (let i = 1; i < nums.length; i++) { maxTillNow = maximum(nums[i], maxTillNow + nums[i]); ...
var exec = require('cordova/exec'); /** * Create a new instance of Bluetooth(Plugin). * * @class Bluetooth * @classdesc BluetoothPlugin for cordova 3.0.0+ (PhoneGap). */ var Bluetooth = function() { this.platforms = [ "android" ]; }; /** * Check if the API is supported on this platform. Requires the...
const { AuditError } = require('../../middleware/error-handler'); /** * Save audit change for deletion of paranoid instances. Only delete instances * that are paranoid. * * @param {object} auditCtrl Instance of AuditCtrl * @param {object} auditLog Audit log Sequelize instance * @param {object} instance The Sequelize i...
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term...
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */ var self = (typeof window !== 'undefined') ? window // if in browser : ( (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) ? self // if in worker : {} // if in node js ); /** * Prism: L...
var ps; var repeller; var repeller2; var repeller3; var w = window; var wX = w.innerWidth; var wY = w.innerHeight; var count = 0; var positions = []; var positions2 = []; var positions3 = []; var positions4 = []; var positions5 = []; var positions6 = []; var positions7 = []; function setup() { createCanvas(wX,wY);...
var class_hacknet_1_1_folder = [ [ "Folder", "class_hacknet_1_1_folder.html#a5bda723b1a8af21b3018ad94e94d0dc6", null ], [ "containsFile", "class_hacknet_1_1_folder.html#a17e0b1259e5f0a8baca8c23848ca553e", null ], [ "containsFile", "class_hacknet_1_1_folder.html#a49405f451c6e5dcb2d39632a1780310b", null ], ...
import CTabNav from './tab-nav' import TabPaneProvider from './tab-pane-provider' export default { name: 'CTabs', props: { activeKey: { type: String, default: '1' }, tabPosition: { type: String, default: 'top', validator(value) { return ['top', 'bottom', 'left', '...
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function ...
console.log("tyu");
// All code points in the `Ethiopic` script as per Unicode v7.0.0: [ 0x1200, 0x1201, 0x1202, 0x1203, 0x1204, 0x1205, 0x1206, 0x1207, 0x1208, 0x1209, 0x120A, 0x120B, 0x120C, 0x120D, 0x120E, 0x120F, 0x1210, 0x1211, 0x1212, 0x1213, 0x1214, 0x1215, 0x1216, 0x1217, 0x1218, 0x1219, 0x121A, 0x121B,...
import { enhanceStore } from 'redux-fly' import { createStore } from 'redux' import fs from 'fs' import React from 'react' import ReactDOM from 'react-dom/server' import serialize from 'serialize-javascript' import { Provider } from 'react-redux' import config from '../config' import qs from 'qs' import { fetchCounter ...
Package.describe({ summary: "jQuery qtip" }); Package.on_use(function (api, where) { api.use('jquery', 'client'); api.add_files("jquery.qtip-1.0.0-rc3.js", "client"); });
var http = require('http'); var https = require('https'); var fs = require('fs'); var fs_extra = require('fs-extra'); var path = require('path'); var morton = require('morton'); var zipFolder = require('./zip-folder'); var async = require('async'); var DownloadableObject = require('./downl...
'use strict'; /** * Module dependencies. */ const mongoose = require('mongoose'); const LocalStrategy = require('passport-local').Strategy; const User = mongoose.model('User'); /** * Expose */ module.exports = new LocalStrategy({ usernameField: 'email', passwordField: 'password' }, function (email, ...
var searchData= [ ['parse',['parse',['../classdice_1_1parser.html#a9166865af1db0974b2b372885bcc1501',1,'dice::parser']]], ['parser',['parser',['../classdice_1_1parser.html',1,'dice']]], ['probability',['probability',['../classdice_1_1random__variable.html#a0759c25151ebb5618e2ff0ecbb91c80d',1,'dice::random_variabl...
'use strict'; const PORT = 3000; module.exports = { getNormalizedPort: (port) => { const normalizedPort = parseInt(port, 10); if (isNaN(normalizedPort)) { return PORT; } if (normalizedPort >= 0) { return normalizedPort; } return PORT; }, };
/* * Copyright (C) 2014 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ /** * @exports NominatimGeocoder * @version $Id: NominatimGeocoder.js 3133 2015-06-02 16:48:25Z tgaskins $ */ define([ '../util/Logg...
import DS from 'ember-data'; import Ember from 'ember'; export default DS.Model.extend({ name: DS.attr('string'), logoUrl: DS.attr('string'), // References rules:DS.hasMany('rule'), // todo: this is a complete hack, // how can I make the server return the correct url to begin with? logoRealUrl: Ember.c...
'use strict' var chords = require('./dictionary') var getter = require('../dictionary/getter') /** * Get a chord by name using a dictionary. * * You can get chord notes with a note as tonic or the chord intervals by passing * `false` as tonic * * There is two ways to get a chord: * - With type and tonic: `chor...
define(['knockout'], function(ko) { return function(chnl) { var self = this; self.id = chnl.id ? chnl.id : 0; self.name = ko.observable(chnl.name ? chnl.name : ''); self.dispName = self.name(); self.time = chnl.time ? chnl.time : []; self.well = chnl.well ? chnl.well...
angular.module('myApp').directive('tournamentView', function() { var yDimension = 880; var xDimension = 1200; var isWicketBall = function(d) { return d.wicket == true && d.extras_type != "Nb" && d.extras_type != "Wd"; } var decideColor = function(d) { if (isWicketBall(d)) { ...
/** * 9. 命令模式:指一个执行某些特定事情的指令 * * 应用场景:有时候需要向某些对象发送请求,但并不知道请求的具体对象与请求后的操作。 * 松耦合关系。 */
import Ember from 'ember'; import { module, test } from 'qunit'; import FlexberryMapModelApiMixin from 'ember-flexberry-gis/mixins/flexberry-map-model-api'; import sinon from 'sinon'; import crsFactory4326 from 'ember-flexberry-gis/coordinate-reference-systems/epsg-4326'; module('Unit | Mixin | flexberry map model api...
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' import img1 from './img/img1.png' import img2 from './img/img2.jpg' const mockData = fetch.mockData function initMockData() { //类型 if (!mockData.stockCategories) { mockData.stockCategories = [{ ...
import React from 'react'; import {mount} from 'enzyme'; import {mountToJson} from 'enzyme-to-json'; import {AuthLinksComponent} from './AuthLinks'; import {initReactDevise} from '../config'; describe('<AuthLinksComponent />', () => { const resourceName = 'users'; const currentUser = {isLoggedIn: false}; const A...
import * as uid from './uid' /** * Keyframe rule. * * @api private */ export default class KeyframeRule { constructor(selector, frames, options) { this.id = uid.get() this.type = 'keyframe' this.selector = selector this.options = options this.frames = this.formatFrames(frames) } /** *...
(function () { 'use strict'; angular.module('coolpoll') .controller('ResultsCtrl', [ '$scope', 'Specs', 'Polls', function ($scope, Specs, Polls) { $scope.$on('ready', function () { $scope.ready = true; $scope.specs = Specs.get(); if (!$scope.specs) { $scope.error...
export default Ember.View.extend({ tagName: 'section', classNames: ['canvas'] });
define([ "../core", "../var/support", "../ajax" ], function( jQuery, support ) { jQuery.ajaxSettings.xhr = function() { try { return new XMLHttpRequest(); } catch( e ) {} }; var xhrId = 0, xhrCallbacks = {}, xhrSuccessStatus = { // file protocol always yields status code 0, assume 200 0: 200, // Suppor...
import Icon from '../components/Icon.vue' Icon.register({ 'rupee-sign': { width: 320, height: 512, paths: [ { d: 'M308 96h-72.9c6 9.8 10.8 20.5 14.3 32h58.7c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-52.8c-7.2 74.5-61.8 125.6-138.3 127.9l150.9 139.3c8 7.4 2.8 20.8-8.1 20.8h-82.6c-3.1 0-6-1.2...
'use strict'; module.exports = function(app) { var categories = require('../../app/controllers/category.server.controller'); //Categories Routes // Routes to the professional profile app.route('/categories').get(categories.list); app.route('/categoriesCreate').post(categories.create); };
module.exports = function(mongoose){ var crypto = require('crypto'); var Schema = mongoose.Schema; //Configure the Slot schema var SlotSchema = new Schema({ name: {type: String}, time: {type: Date}, details: { email: {type: String}, name: {type: String} } }); ...
"use strict"; /* * ooiui/static/js/views/common/ModalDialogView.js * Model definitions for Arrays * * Dependencies * Partials * - ooiui/static/js/partials/ModalDialog.html * Libs * - ooiui/static/lib/underscore/underscore.js * - ooiui/static/lib/backbone/backbone.js * Usage */ var TermsDialogView = Backbone...
(function () { 'use strict'; angular .module('articles') .controller('MailinglistListController', MailinglistListController); MailinglistListController.$inject = ['Authentication', '$window', 'MailinglistListService', '$stateParams', '$http']; function MailinglistListController(Authentication, $windo...
/* Burst Energy website burstenergy.ca * Copyright (c) 2014 Burst Energy * * Site specific CSS * * Site created by Wm Minchin * Last updated January 25, 2014 */ /* For IE 10 in Win8 and Win Phone 8 */ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement("style...
/** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
import Ember from 'ember'; /** Alpha Sort component Alphabetical sort (iOS style) @class AlphaSortComponent */ export default Ember.Component.extend({ alphabet: Ember.Object.create({ letters: null }), filterByModel: function() { var currentContext = this.get('model'), currentModel = curre...
$(document).ready(function() { $("h2").hide(); $("h1").click(function() { $("h2").show(1000); }); });
var webpack = require('webpack'); var path = require('path'); var nib = require('nib'); var paths = { src: path.join(__dirname, 'src'), dest: path.join(__dirname, 'dist'), }; module.exports = { entry: paths.src + '/scripts/main.js', output: { path: paths.dest, filename: 'main.js', }, module: { ...
var a = {}; a[Symbol.toPrimitive] = function() { return 7; }; console.log(a == 7);
var num1=prompt('Ingrese el numero 1'); var num2=prompt('Ingrese el numero 2'); document.write('AND <br /><br />'); if (num1>10 && num2<10) { document.write('La condicion es verdadera'); }else{ document.write('La condicion es falsa totalmente o parcialmente'); }; document.write('<br /><br /> OR <br /><br />'); if (...
(function($){ $(function(){ $('.button-collapse').sideNav(); $(".dropdown-button").dropdown(); $('.tooltipped').tooltip({delay: 50}); $('.collapsible').collapsible(); }); // end of document ready })(jQuery); // end of jQuery name space
/*! * QUnit 1.14.1-pre * http://qunitjs.com/ * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-21T22:02Z */ (function( window ) { var QUnit, assert, config, onErrorFnPrev, testId = 0, fileName = ( sourceFromStacktra...
import { TransactionHandling } from "./transaction-handling.js"; export class BaseModel extends TransactionHandling { /** * Opens IDBRequest to perform action on object store * @param objectStore */ request(objectStore) { const direction = this.cursor || undefined; if (this.indexB...
function Foxhound(options){ options = options || {} this.options = { container: options.container || '*[fh-container=true]', query: options.query || '*[fh-query=true]', pagination: options.pagination || '*[fh-pagination=true]', template: options.template || '', handle_data: options.handle_data ...
//UVS function LGraphCamToPixelWS() { this.addOutput("Camera To Pixel","vec3", {vec3:1}); this.shader_piece = PCameraToPixelWS; // hardcoded for testing } LGraphCamToPixelWS.title = "CameraToPixelWS"; LGraphCamToPixelWS.desc = "The vector from camera to pixel"; LGraphCamToPixelWS.prototype.onExecute = funct...
var socialServiceOffices = { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4757" } }, "features": [ { "type": "Feature", "properties": { "ADDRESS": "4 Sago Lane #03-101 Singapore 050004", "NAME": "Social Service Office @ Kreta Ayer", "POSTAL_COD": 50004, "OBJECTID"...
import { createSelector } from "reselect"; const _selectState = state => state.settings || {}; export const selectDaemonSettings = createSelector( _selectState, state => state.daemonSettings || {} ); export const selectClientSettings = createSelector( _selectState, state => state.clientSettings || {} ); exp...
// app/services/store.js import DS from 'ember-data'; export default DS.Store.extend();
// We first require our express package var express = require('express'); var bodyParser = require('body-parser'); var movieData = require('./data.js'); // We create our express isntance: var app = express(); app.set('view engine', 'ejs'); app.use(bodyParser.json()); // for parsing application/json app.use(bodyParse...
'use strict'; var config = require('config'); var path = require('path'); var lib = require(path.resolve('./lib/config')); var myDefaultConfigs = { _url: lib.deferredSetUrl(), url: { protocol: 'http', slashes: true, hostname: 'localhost', pathname: 'api', port: 3030 ...
const Ball = require('./ball'); const HatBody = require('../bodies/hat'); module.exports = class { constructor({game, id, x, y}) { this.game = game; this.id = id; this.body = HatBody({game, x, y}); } handlePreStep = () => { this.body.setActive(!this.carrier); } handleContact(ball) { if ...
'use strict'; /*global require */ var Drone = require('drone'), blocks = require('blocks'); /************************************************************************ ### Drone.castle() method Creates a Castle. A castle is just a big wide fort with 4 taller forts at each corner. See also Drone.fort() method. #### ...
import actionTypes from './actionTypes' function initialize() { return { type: actionTypes.ANNOTATIONS_INITIALIZE } } function finalize() { return { type: actionTypes.ANNOTATIONS_FINALIZE } } function layersListFetched(layers) { return { type: actionTypes.ANNOTATIONS_LAYERS_LIST_FETCHED, layers, } } f...
import { types } from '../actions'; export default function reducer(state = {}, action) { // console.log('reducer called! \naction:', action.type); switch (action.type) { case types.clickTest: return Object.assign(state, action.payload, { clickCount: state.clickCount + 1 }); case types.changeLoca...
'use strict'; //import {reset} from 'aexpr-source-transformation-propagation'; describe('Signal Logic', function() { it('one simple dataflow', () => { let a = 0; const s = a; expect(s).to.equal(0); a = 42; expect(s).to.equal(42); expect(s).to.equal(a); }); ...
/* jslint node: true */ "use strict" module.exports = require('./lib');
#! /usr/bin/env node /* * btcwallet * https://github.com/christiangenco/btcwallet * * Copyright (c) 2014 Christian Genco * Licensed under the MIT license. */ 'use strict'; exports.awesome = function() { return 'awesome'; }; var userArgs = process.argv.slice(2); var searchParam = userArgs[0]; var exec = req...
"use strict"; const Deferred = require("./lib/deferred"); const Disposable = require("./lib/disposable"); const StreamConverter = require("./lib/stream_converter"); const chainStreams = require("./lib/chain_streams"); const assertType = require("./lib/assert_type"); const assertProp = require("./lib/assert_prop"); con...
(function () { 'use strict'; angular.module('app.widgets', ['ngAnimate','ngAria','ngMaterial']); })();
const initialState = { isAuthenticated: false, isAuthenticating: true, currentUser: {}, token: null, errors: [] } export default (state = initialState, action) => { switch(action.type) { case 'AUTHENTICATION_REQUEST': return { ...state, isAuthenticating: true } case 'A...
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Header } from 'style/base'; import Logo from 'components/modules/Logo'; import AnimeGrid from 'components/modules/AnimeGrid'; const HomePageContainer = styled.div``; const Home = (props) => { const { ani...
'use babel' import React, {Component, PropTypes} from 'react' import RedBox from 'redbox-react' const style = { position: 'relative !important', zIndex: '1' } class StackTrace extends Component { render() { let {data} = this.props if (data instanceof Error) { return <RedBox error={data} style={s...
var searchData= [ ['mat',['mat',['../class_circular_mat.html#a2fda90511b0e0340bedafdde0e1a61df',1,'CircularMat']]], ['maturebasecount',['matureBaseCount',['../class_gene.html#ae9b5ce686564f7ed11bfa1eba8aa0034',1,'Gene::matureBaseCount()'],['../class_protein_complex.html#a84f95364e4185ffd0bf17a59694093d8',1,'Protein...
// All code points in the Supplemental Arrows-C block as per Unicode v9.0.0: [ 0x1F800, 0x1F801, 0x1F802, 0x1F803, 0x1F804, 0x1F805, 0x1F806, 0x1F807, 0x1F808, 0x1F809, 0x1F80A, 0x1F80B, 0x1F80C, 0x1F80D, 0x1F80E, 0x1F80F, 0x1F810, 0x1F811, 0x1F812, 0x1F813, 0x1F814, 0x1F815, 0x1F816, 0x1F817, ...
$(function () { if (!$('#line-chart').length) { return false; } line (); $(window).resize (target_admin.debounce (line, 325)); }); function line () { $('#line-chart').empty (); Morris.Line({ element: 'line-chart', data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', ...
function initializeAutocomplete(id) { var element = document.getElementById(id); if (element) { var autocomplete = new google.maps.places.Autocomplete(element, { types: ['geocode'] }); google.maps.event.addListener(autocomplete, 'place_changed', onPlaceChanged); } } function onPlaceChanged() { var plac...
function euler445() { // Good luck! return true } euler445()
"use strict"; /** * Annotates entities. * * @param entityConfiguration * @returns {function(Function)} * @constructor */ function Entity(entityConfiguration) { return function (constructor) { var entityMetadata = constructor; if (entityMetadata.entity) { throw "Cannot set @Table, i...
import React, { Component } from 'react'; import { Route, DefaultRoute, NotFoundRoute } from 'react-router'; import { App } from './App.js'; import Home from './Home'; import Gallery from './Gallery'; import ToDo from './ToDo'; import { NotFound } from './NotFound.js'; export let routes = ( <Route handler={App...
function initialize(){ drawChart(); create_bar_chart(); } function drawChart() { var data = google.visualization.arrayToDataTable([ ['Mon', 20, 28, 38, 45], ['Tue', 31, 38, 55, 66], ['Wed', 50, 55, 77, 80], ['Thu', 77, 77, 66, 50], ['Fri', 68, 66, 22, 15] // Treat first ...