code
stringlengths
2
1.05M
var gulp = require('gulp'); var browserSync = require('browser-sync'); var sass = require('gulp-sass'); var prefix = require('gulp-autoprefixer'); var cp = require('child_process'); var cssnano = require('gulp-cssnano'); var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';...
var fs = require('fs'); fs.readFile('input.txt', 'utf8', function(err, contents) { var distances = contents.split('\n'); var distanceMap = buildDistanceMap(distances); var solution = calculatePaths(distanceMap); console.log(solution); }); // Build a map so that given any initial point a, it is easy // to loo...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /></g> , 'ExitToApp');
/** * The OpenWeatherJS Library. * The JavaScript library to work with weather information and forecasts data * provided by Open Weather Map. Built using TypeScript. * * The MIT License (MIT) * * Copyright (C) 2016 The OpenWeatherJS Project * * Permission is hereby granted, free of charge, to any person obtai...
/* The view. This takes care of hooking into the Gmail page, * and sending appropriate events to the controller whenever * the user or Gmail does something we're interested in. * * There are two views: RegularView and UpdatedView. * RegularView takes care of interposing on the old * Gmail Compose, whereas Updat...
;(function(ns, window, document, undefined){ var fextend = function(f, a){ f.prototype = Object.create(this.prototype); for (var k in a) { Object.defineProperty(f.prototype, k, Object.getOwnPropertyDescriptor(a, k)); } f.prototype.constructor = f; f.extend = exten...
const _PROJECTNAME = 'dbarjs'; var gulp = require('gulp'), watch = require('gulp-watch'), batch = require('gulp-batch'), print = require('gulp-print'), plumber = require('gulp-plumber'), concat = require('gulp-concat'), concatCSS = require('gulp-concat-css'), //cleanCSS = require('gulp-clean-css'), rename = re...
import Ember from 'ember'; export default Ember.View.extend({ didInsertElement: function () { $("[type='checkbox']").bootstrapSwitch(); } });
define([ 'lib/sortable', 'services/search' ], function(Sortable, search) { const $content = document.getElementById('content-editor'); const $remove = document.getElementById('content-editor-remove'); const $add = document.getElementById('content-editor-add'); const $filter = document.getElementById('filter'); ...
/** * Created by Rahul Jujarey on 03-03-2016. */ (function () { 'use strict'; angular .module('angular-utilities', []) })();
import React, { Component, Children } from 'react'; import PropTypes from 'prop-types'; import TitleBar from '../../TitleBar/macOs'; import View from '../../View/macOs'; import styles from './styles/10.11'; import WindowFocus from '../../windowFocus'; import Padding, { paddingPropTypes, removePaddingProps } from '....
if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('..'); } else { __dirname = '.'; }; describe('Test 251 Overwrite XLSX file', function() { it('1. Overwrite',function(done){ alasql('SELECT HOUR(NOW()), MINUTE(NOW()), SECOND(NOW()) \ INTO XLSX("reste...
// plugins/pulsewire/pulsewire.js // Copyright (C) 2014 Rob Colbert <rob.isConnected@gmail.com> // License: MIT 'use strict'; var PuretechFoundation = require('puretech-foundation'); var RouteAssembler = PuretechFoundation.Express.RouteAssembler; var GUID = PuretechFoundation.Tools.GUID; var Pul...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Route | course-visualize-vocabulary', function (hooks) { setupTest(hooks); test('it exists', function (assert) { const route = this.owner.lookup('route:course-visualize-vocabulary'); assert.ok(route); }); });
/* jshint node: true */ /* global describe, it */ 'use strict'; var assert = require('assert'); var fs = require('fs'); var PassThrough = require('stream').PassThrough; var path = require('path'); var usemin = require('../index'); var vfs = require('vinyl-fs'); var Vinyl = require('vinyl'); function getFile(filePath...
'use strict'; action('generate portfolio settings'); describe('generate the necessary setting defaults for the portfolio project'); cli(function (program, dispatch) { var action = this; program.command('settings:generate').description('generate settings files for a portfolio').action(dispatch(action.api.runner)...
'use strict'; exports.before = exports.before || 'fail'; exports.after = 'fail';
'use strict'; // Declare app level module which depends on views, and components angular.module('JokesMaker', ['ngRoute']). config(['$routeProvider', function($routeProvider) { $routeProvider .when('/', { templateUrl: 'views/main.html', controller: 'mainCtrl' }) .when('/loadjokes',{...
var React = require('react'), githubActions = require('../../actions/githubActions'), githubStore = require('../../stores/githubStore'), Middle; Middle = React.createClass({ getInitialState () { return { repos: githubStore.getRepos() }; }, componentWillReceiveProps (obj) { githubActions.getUserRepo...
'use strict'; const join = require('path').join; // 连接字符串方法 const path = join(__dirname, '../app/controllers'); const routeTools = require('./routeTools'); const urlTools = require('url'); const env = process.env.NODE_ENV || 'development'; const csrf = require('csurf'); const envConfig = require('./index'); /** * 添加...
let counter = -1; function nextId() { counter += 1; return counter; } export default nextId;
'use strict'; 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 ("va...
(function() { 'use strict'; angular .module('g2MatriculaApp') .factory('Activate', Activate); Activate.$inject = ['$resource']; function Activate ($resource) { var service = $resource('api/activate', {}, { 'get': { method: 'GET', params: {}, isArray: false} ...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
import { SearchParameters, SearchResults } from 'algoliasearch-helper'; import connect from '../connectMenu'; jest.mock('../../core/createConnector', () => (x) => x); let props; let params; describe('connectMenu', () => { describe('single index', () => { const contextValue = { mainTargetedIndex: 'index' }; ...
define(['jquery', 'cfgs', 'API', 'core/core-modules/framework.event', 'core/core-modules/framework.ajax', 'core/core-modules/framework.base64', 'core/core-modules/framework.block', 'core/core-modules/framework.dialog', 'core/core-modules/framework.generator', 'core/core-modules/framework.layout', ...
import Vue from 'vue' import { looseEqual } from 'shared/util' /** * setting <select>'s value in IE9 doesn't work * we have to manually loop through the options */ function updateSelect (el, value) { var options = el.options var i = options.length while (i--) { if (looseEqual(getValue(options[i]), value))...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Skill Schema */ var SkillSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Skill name', trim: true }, description:{ type: String, default: '...
//$("#markItUp").markItUp(myMarkdownSettings); var editor = new EpicEditor().load(); var btn_edit_doc = $('#btn_edit_doc'); btn_edit_doc.click(function () { $.get('http://localhost/kuku.html', function(data) { editor.importFile('kuku', data); //Imports a file when the user clicks this button }); ...
/*globals TemplateTests:true,MyApp:true,App:true,Ember:true */ /*jshint newcap:false*/ import Ember from "ember-metal/core"; // Ember.lookup import jQuery from "ember-views/system/jquery"; // import {expectAssertion} from "ember-metal/tests/debug_helpers"; import { forEach } from "ember-metal/enumerable_utils"; import...
export const EXAMPLE_PATH = 'cms-strapi' export const CMS_NAME = 'Strapi' export const CMS_URL = 'https://strapi.io/' export const HOME_OG_IMAGE_URL = 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Strapi**.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffro...
import Kibo from "@brianpeiris/kibo"; const getShortcut = function(key) { key = key || ""; return ["alt shift " + key, "ctrl shift " + key]; }; export default class KeyboardHandler { constructor(sketchController) { this._sketchController = sketchController; } _bindNumberShortcuts(domTextArea, file, kib...
var version={taracotjs:"0.5.170"};module.exports=version;
var find = require('lodash.find'); var mutil = require('miaow-util'); var path = require('path'); var postcss = require('postcss'); var Promise = require('promise'); function generateUrl(css, context) { var root; var srcAbsPath = path.resolve(context.context, context.src); try { root = postcss.parse(css, {f...
"use strict"; var fs = require('fs'), soap = require('..'), assert = require('assert'), request = require('request'), http = require('http'); var test = {}; test.server = null; test.service = { StockQuoteService: { StockQuotePort: { GetLastTradePrice: function(args) { if (args.tick...
import React from 'react'; import Helmet from 'react-helmet'; import styles from './styles.scss'; export default () => ( <div className={styles.NotFound}> <Helmet title="Oops" /> <p>Oops, Page was not found!</p> </div> );
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 The Regents of the University of California * * 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 * wit...
module.exports = function(grunt) { grunt.initConfig({ elm: { compile: { files: { "tomato-tracker.js": ["Tomato.elm"] } } }, watch: { elm: { files: ["Tomato.elm"], tasks: ["elm"] } }, clean: ["elm-stuff/build-artifacts"] }); gr...
import { combineReducers } from 'redux'; import user from './user'; const app = combineReducers({ user, }); export default app;
// Warning at test_files/quote_props/quote.ts:9:13: Quoted has a string index type but is accessed using dotted access. Quoting the access. // Warning at test_files/quote_props/quote.ts:10:1: Quoted has a string index type but is accessed using dotted access. Quoting the access. // Warning at test_files/quote_props/quo...
/** * Created by lawrencenyakiso on 2016/06/13. */ (function() { angular .module('jdapp') .constant('authConstants', { path:"CloudCommandService/oauth/token", mockPath:'jdashboard/mock/auth.json', client_id:"test", client_secret:"d3dbe8e9888f454a9079...
exports.up = knex => knex.schema.createTable('user_repository_rights', table => { table.bigincrements('id').primary() table .bigInteger('userId') .notNullable() .index() table.foreign('userId').references('users.id') table .bigInteger('repositoryId') .notNullable() ...
Color = function(options){ this.palette = []; this.customColors = []; this.starterColors = []; this.hexadecimalChar = ""; this.init(options); }; Color.hexadecimalChar = "0123456789ABCDEF"; Color.prototype.init = function(options){ if(options.starteColors != undefined && options.starterColors != nul...
export function RoutesRun ($rootScope, $state, $auth, AclService, $timeout, API, ContextService,editableOptions) { 'ngInject' AclService.resume() editableOptions.theme = 'bs3' /*eslint-disable */ let deregisterationCallback = $rootScope.$on('$stateChangeStart', function (event, toState) { if (toState.dat...
/** * DevExtreme (viz/chart_components/multi_axes_synchronizer.js) * Version: 16.2.6 * Build date: Tue Mar 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var $ = require("jquery"), deb...
import React from 'react' import dedent from 'dedent-js' import { DescriptionBlock } from '../../styled' import { Markdown } from '../../Markdown' import { Highlight } from '../../Highlight' const ColorsColor = () => ( <DescriptionBlock> <h2>Single color property</h2> <Markdown source={...
/* Objects Variables are containers for data values. Objects are also variables that can contain many values. Information stored as name:value pairs (properties). Methods are functions stored as object propeties. */ // In JS everything is an object // Functions are also objects // Below a variable Person is created a...
Package.describe({ name: 'jss:meteor-google-prediction', version: '0.3.2', summary: 'Google Prediction API v1.6 client', git: 'https://github.com/JSSolutions/meteor-google-prediction' }); Package.onUse(function (api) { api.versionsFrom('1.1.0.2'); api.addFiles('connector.js', 'server'); api.export('Googl...
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@Export('AddCh...
'use strict'; // http://docs.webix.com/api__refs__ui.datatable.html var dataTable = { view: 'datatable', id: 'datatable', // Columns can usually be omitted and they can be automatically detected with autoconfig: true // But since we don't know what data in the DB might confuse the autodetection, we'll specify:...
import { inject, NewInstance } from 'aurelia-framework'; import { DialogController } from 'aurelia-dialog'; @inject(DialogController) export class RestoreSelection { dialogController = null; jbselection = {}; constructor(dialogController, validationControllerFactory, title) { this.dialogContr...
var spawn = require('child_process').spawn var versions = process.argv.slice(2) var npm = process.platform === 'win32' ? 'npm.cmd' : 'npm' function command (arg) { const args = arg.split(' ') return new Promise((resolve, reject) => { spawn(args.shift(), args, { stdio: 'inherit' }) .on('close', (code) => { ...
$(document).ready(function() { $(".resPage").hide(); $(".calPage").hide(); console.log("JS"); pages(); }); function pages() { $("#cLink").click(function() { $("#container").fadeOut(250); $(".calPage").fadeIn(500); }); $("#rLink").click(function() { $("#container").fadeOut(250); $(".resPage").fadeIn(500)...
jQuery(function($) { $('#simple-colorpicker-1').ace_colorpicker({pull_right:true}).on('change', function(){ var color_class = $(this).find('option:selected').data('class'); var new_class = 'widget-box'; if(color_class != 'default') new_class += ' widget-color-'+color_class; $(this).closest('.widget-box...
const ws = require('ws') const crypto = require('crypto') const MapSet = require('./map_set') const WebSocketServer = ws.Server const log = (message) => { if (GroupServer.log) console.log(message) } // Connecting clients are assigned randomly generated public IDs to identify // them to their peers. We want to cl...
var curry = require('fnkit/curry'); module.exports = function(watch){ watch('todoToggled', _updateTodo({ completed: function(c){return !c;}, })); watch('todoEdited', _updateTodo({ status:'editing' })); watch('todoDestroyed', onTodoDestroyed); watch('todoSaved', _updateTodo(function(data){ return...
// Copyright 2021, University of Colorado Boulder /** * Fails with an assertion if the string is not a valid repo name. See https://github.com/phetsims/chipper/issues/1034. * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ const assert = require( 'assert' ); /** * Fails with an assertion if the string...
define(['lib', 'webapp/mqtt/received-data-model', 'webapp/mqtt/received-data-view', 'lang!webapp/mqtt/lang.json'], function (lib, models, views, lang) { var messageList = lib.common.AppSection.extend({ start: function () { this.loadMessageList(); }, reloadMessages: function (view) { ...
const gulp = require('gulp') const fs = require('fs') const shell = require('shelljs') const argv = require('yargs').argv const configPath = `${process.cwd()}/data/config.json` const config = JSON.parse(fs.readFileSync(configPath, 'utf8')) const base = '/web/bgapps/html/' const host = 'shell.boston.com' gulp.task('ssh...
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import Joi from '@hapi/joi'; import Utils from '../utils/util'; const defaultOptions = { stripUnknown: true, }; const defaultWindowWidth = 1000; const defaultWindowHeight = 700; const minWindowWidth = 400...
/* * Copyright (C) 2015 Marcel Bollmann <bollmann@linguistics.rub.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 *...
export default class NotFoundError extends Error { constructor(flowName) { super(`Flow ${flowName} not recognised`); } }
/** * Created by wenshao on 2017/3/13. * 加密相关 */ const crypto=require("crypto"); function getSoleId() { const secret = 'token'; return crypto.createHmac('md5', secret) .update(new Date().getTime()+" "+Math.ceil(Math.random()*100)) .digest('hex'); } exports.getSoleId=getSoleId;
'use strict'; var _ = require('lodash'); var validator = require('./validator'); module.exports = function(options) { options = _.defaults(options || {}, { strategy : 'layout', pjaxHeader : 'X-PJAX', isPjaxKey : 'isPjax', layoutKey : 'layout', defaultLayout : 'layou...
describe('Observerable', function(){ it('should be defined', function(){ expect(Observable).toBeDefined(); }); it('should create observables', function(){ expect(new Observable()).toBeDefined(); }); it('should register observers', function(){ var observable = new Observable(); observable.addO...
// flow-typed signature: 2a9427d70aaaa41706cc8fe369552118 // flow-typed version: <<STUB>>/@knit/read-pkg_vfile:src/packages/@knit/read-pkg/flow_v0.108.0 /** * This is an autogenerated libdef stub for: * * '@knit/read-pkg' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encoura...
/** * <TextInput> * Kevin Lee 3 Sept 2017 **/ import React from 'react' import { TextInput } from 'react-native' import { Screen, Content, Bar, DataBar, DataBlock, H3, D3 } from '../rn-naive' export default class App extends React.Component { render() { k = 1 return ( <Screen> <Bar lines={0.7}...
var Checker = require('../../../lib/checker'); var assert = require('assert'); describe('rules/require-padding-newline-after-variable-declaration', function() { var checker; beforeEach(function() { checker = new Checker(); checker.registerDefaultRules(); checker.configure({ requirePadd...
import { meta as curiMeta } from "./api/curi"; import { meta as prepareRoutesMeta } from "./api/prepareRoutes"; import { meta as RoutePropertiesMeta } from "./api/route-objects"; export default [ { title: "Installation", hash: "installation" }, { title: "About", hash: "about" }, { title: ...
var should = require('chai').should(), scapegoat = require('../index'), escape = scapegoat.escape, unescape = scapegoat.unescape; describe('#escape', function() { it('converts & into &amp;', function() { escape('&').should.equal('&amp;'); }); it('converts " into &quot;', function() { escape(...
var app = {}; app.init = function() { console.log('APP INIT!!!!!'); //functions //synchronous function var syncFunc = function(number) { var sum = 0; for(var i = 0; i<number; i++){ sum +=i; }; // console.log(sum); // for sync function, you can return the result via 'return' return sum; }; //assign...
"use babel"; import TargetComponent from '../../lib/views/target-component'; import Repository from '../../lib/models/repository'; import Fork from '../../lib/models/fork'; import PullRequest from '../../lib/models/pull-request'; import demoTransport from '../../lib/transport/demo'; describe("TargetComponent", () =...
(function ($) { /*** * A sample AJAX data store implementation. * Modified by ANT to load CSV data from a Python script served via cherrypy */ function RemoteModel( tn ) { // private var PAGESIZE = 50; var data = {length: 0}; var searchstr = ""; var sortcol = null; var sortdir = 1; ...
//CtCI 2.1 // "Implement a method to remove duplicates in an unsorted linked list" // Cracking the Coding Interview, p77 // // Also used this coding challenge to investigate the use of the // so-called "JavaScript Module Pattern" (see // http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatt...
import Ember from 'ember'; export default Ember.Route.extend({ init: function() { console.log('application route...'); }, actions: { } });
import React, {PropTypes} from "react" import App from "./components/App" import AuthService from "./util/AuthService" import ChatPage from "./pages/ChatPage" import Login from "./components/Login" import Logout from "./components/Logout" import {Route, IndexRedirect} from "react-router" const auth = new AuthService('...
'use strict'; /** * @ngdoc function * @name uixApp.controller:FormCtrl * @description * # FormCtrl * Controller of the uixApp */ angular.module('uixApp') .controller('FormCtrl', function ($scope, $rootScope, APP, resourceManager, exMsg, $state, $stateParams, $http, $translate, fieldService, lookupService, sche...
exports.BattleFormatsData = { bulbasaur: { viableMoves: {"sleeppowder":1,"gigadrain":1,"hiddenpowerfire":1,"hiddenpowerice":1,"sludgebomb":1,"powerwhip":1,"leechseed":1,"synthesis":1}, eventPokemon: [ {"generation":3,"level":70,"moves":["sweetscent","growth","solarbeam","synthesis"]}, {"generation":3,"level"...
var debug; if (process.env.NODEFLY_DEBUG && /proxy/.test(process.env.NODEFLY_DEBUG)) { debug = function(x) { console.error(' PROXY: %s', x); }; } else { debug = function() { }; } var EventEmitter = require('events').EventEmitter; var nodefly; exports.init = function() { nodefly = global.nodefly; } function b...
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe("object"); //A mistake? - http://javascript.crockford.com/remedial.html expect(emptyArray.length).to...
export default class ConfigStore { _config = {}; _spec = {}; constructor(config, defaults = {}, spec = {}) { const _config = Object.assign(defaults, config); this._spec = spec; for (let key in _config) { this.set(key, _config[key]) } } get(key, _defa...
"use strict"; import { DEFAULT_MAXIMUM_DEPTH } from "../constants"; export default class Context { constructor(ruleMap, tokens, index, depth, maximumDepth) { this.ruleMap = ruleMap; this.tokens = tokens; this.index = index; this.depth = depth; this.maximumDepth = maximumDepth; } getRuleMap() { ...
// jQuery.equalize 1.8 function equalize(g,e){'use strict';g=g||'.group';e=e||'.equalize';$(g).each(function(){var h=0;$(e,this).css('height','auto');$(e,this).each(function(){if($(this).innerHeight()>h){h=$(this).innerHeight()}});$(e,this).innerHeight(h)})}
describe("Epic", function() { }) exports.create = function create({ document }) { return document.data }
'use strict' const resolve = require('resolve-path') const rawBody = require('raw-body') const parse = require('deps-parse') const mime = require('mime-types') const spdy = require('spdy-push') const assert = require('assert') const path = require('path') const etag = require('etag') const fs = require('mz/fs') const ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_schedule = exports.ic_schedule = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3...
import _ from 'three'; export default that => { const light = new _.DirectionalLight(0xffffff, 1); const z = 100; // Yep, need to change that light.position.set(100, 100, z); light.castShadow = true; light.shadowCameraNear = 0.01; light.shadowCameraFar = 2 * z; light.shadowCameraFov = 45; light.shad...
import { distanceFromPageTop, documentHeight, elementOffsetHeight, visibleDocumentHeightPercentage } from './dom-utils'; const scrollBarState = {}; const percentageOfPageToScrollBarPixels = currentHeight => { const percentageOfPageScrolled = currentHeight / scrollBarState.documentHeight; retu...
export const ADD_MEMO = "ADD_MEMO"; export const REMOVE_MEMO = "REMOVE_MEMO"; export const SET_MEMOS = "SET_MEMOS"; export const UPDATE_MEMOS = "UPDATE_MEMOS"; export function addMemo(data) { return { type: ADD_MEMO , data}; } export function removeMemo(id) { return { type: REMOVE_MEMO, id} } export function s...
import React from 'react' import ReactDOM from 'react-dom' import {Modal, Button, ButtonGroup, Form, FormGroup, FormControl, ControlLabel, Col, Table, Panel, ListGroup, ListGroupItem} from 'react-bootstrap' import StarRatingComponent from 'react-star-rating-component' import * as constants from './constants.js' impo...
// This script builds a production output of all of our bundles. import webpack from 'webpack'; import appRootDir from 'app-root-dir'; import { resolve as pathResolve } from 'path'; import rimraf from 'rimraf'; import webpackConfigFactory from '../../webpack/configFactory'; import { exec } from '../../utils'; import co...
import {lookupComponent} from '../utils/lookup'; import eachView from '../utils/each-view'; var K = function(){}; export default function(appOrContainer, expectation, count, options, customMessage){ var container; if (appOrContainer.__container__) { container = appOrContainer.__container__; } else { con...
version https://git-lfs.github.com/spec/v1 oid sha256:83405de858139df240861e5b894b4f212f49bb2493231ac4b4994a56dd46bde4 size 3594
import React from 'react' import styles from './ThumbnailGrid.module.css' const ThumbnailGrid = ({ children }) => { return ( <ul className={styles.container}> {children.map((el, idx) => ( <li className={styles.thumbnail} key={idx}>{el}</li> ))} </ul> ) } export default ThumbnailGrid
var app = angular.module('redirect', ['ngRoute']) .config(function($routeProvider, $locationProvider) { $routeProvider .when('/', { templateUrl: 'views/none.html', controller: 'mainCtrl' }) .when('/add', { templateUrl: 'view...
7.0-alpha1:7d30a58a478ffd8c4b0341199218c50beed5a08a33eb58fa7d0aeb59622af447 7.0-alpha2:7d30a58a478ffd8c4b0341199218c50beed5a08a33eb58fa7d0aeb59622af447 7.0-alpha3:7d30a58a478ffd8c4b0341199218c50beed5a08a33eb58fa7d0aeb59622af447 7.0-alpha4:5d500270fe4bd1a0ecf0b0472e3427ca00b19afc1de6d9b4edf8fc32aeb639eb 7.0-alpha5:2f1fb...
/* * ------------------------------------------ * 瀑布式列表模块实现文件 * @version 1.0 * @author genify(caijf@corp.netease.com) * ------------------------------------------ */ /** @module util/list/waterfall */ NEJ.define([ 'base/global', 'base/klass', 'base/event', 'base/element', 'base/util', '...
// start multiple sessions // tested with 2000 sessions apr 2014 node 0.10.26, basex 7.8.2 // was failing with around 200 sessions var basex =require("../index"); var log = require("../debug"); basex.debug_mode = false; var sCount=300; // max 200 var sessions=[]; //show supplied msg then basex server response /** * De...
function gridify(self) { var results = []; var row = []; Object.keys(self.productList).forEach(function (k, i) { var item = m('div.col.centered.w25', [ m('img', {src: self.productList[k].imgUrl}), m('p', [ m('span.title', self.productList[k].title), ...
describe('Test Suite for mapstats bundle', function() { var appSetup = null, appConf = null, statsPlugin = null, sandbox = null; before(function() { appSetup = getStartupSequence(['openlayers-default-theme', 'mapfull']); var mapfullConf = getConfigForMapfull(); ...