code stringlengths 2 1.05M |
|---|
import React, { PureComponent } from 'react'
import { AutoSuggestField, Button } from 'react-ui-core/src'
import { action } from '@storybook/addon-actions'
const ClearButton = props => (<Button {...props}>X</Button>)
const SubmitButton = props => (<Button {...props}>Submit</Button>)
class Example extends PureComponen... |
import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableHighlight
} from 'react-native';
import moment from 'moment';
import _ from 'lodash';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import Icon from 'react-native-vector-icons/Ionicons';
import { decodeHTML, getBloggerAv... |
'use strict';
const PNGToolkit = require('../../src/components/png-toolkit'),
PNG = require('pngjs').PNG;
describe('PNGToolkit', () => {
// creates a fake PNG with coordinates encoded into R and G colours, so we can inspect the clip easily
const initPic = function (width, height) {
const png = new PNG({width: w... |
import { createSelector } from 'reselect';
import { contractReceiptsPerTradeSelector, pipSizesPerTradeSelector, tradingTimesPerTradeSelector, feedLicensesPerTradeSelector, tradeParamsWithSymbolNameSelector } from '../BasicTradeSelectors';
export const tradeViewChartSelector = createSelector(
[
contractRece... |
import m from "mithril";
import Stream from "mithril/stream";
export default class TagInput {
add (e, tags) {
if (e.keyCode === 13 && e.target.value) {
if (tags().indexOf(e.target.value) === -1) {
let tmp = tags();
tmp.push(e.target.value);
tags(tmp);
}
e.target.value = ... |
module.exports = function(RED) {
if (false) { // Test for nodes compatibilities
throw "Info : not compatible";
}
function NodeConstructor(config) {
RED.nodes.createNode(this, config);
var node = this;
node.on("input", function(msg) {
node.send(msg);
... |
(function(){
angular.module('app').directive('newNote', function(){
return {
templateUrl: 'new-note.html',
controller: NewNoteController,
controllerAs: 'newNoteCtrl'
};
function NewNoteController(NoteService)
{
var vm = this;
vm.note = null;
vm.createNote = createNote;
vm.newNote = newN... |
version https://git-lfs.github.com/spec/v1
oid sha256:58e291de12c87cb0748f737e3123ad446efcc6220d2f288ceb92bf87bab8a33f
size 1750
|
import React from "react";
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import formInput from ".";
describe("formInput", () => {
const EnhancedInput = formInput("input");
describe("onChange and value", () => {
let onChangeSpy;
beforeEach((... |
var class_tempest_1_1_shader_program_holder =
[
[ "BaseType", "class_tempest_1_1_shader_program_holder.html#acaa3176b59cf6ec1845005e47a10e632", null ],
[ "Source", "class_tempest_1_1_shader_program_holder.html#ab201c86c73d4133ae3053387647d7267", null ],
[ "ShaderProgramHolder", "class_tempest_1_1_shader_pro... |
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
// You can use CoffeeScript in this file: http://coffeescript.org/
angular.module('receta',['wu.masonry', 'ui.bootstrap', 'ui-rangeSlider'])
.controller('DemoCtrl', functi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _sparkPlugin = require('../lib/spark-plugin');
var _sparkPlugin2 = _interopRequireDefault(_sparkPlugin);
var _sparkCore = require('../spark-core');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defaul... |
module.exports = {
"key": "rufflet",
"moves": [
{
"learn_type": "tutor",
"name": "roost"
},
{
"learn_type": "tutor",
"name": "superpower"
},
{
"learn_type": "tutor",
"name": "heat-wave"
},
... |
module.exports = {"NotoSansLydian":{"normal":"NotoSansLydian-Regular.ttf","bold":"NotoSansLydian-Regular.ttf","italics":"NotoSansLydian-Regular.ttf","bolditalics":"NotoSansLydian-Regular.ttf"}}; |
'use strict';
const Webpack = require('webpack');
const WebpackDevMiddleware = require('webpack-dev-middleware');
exports.register = (server, options, next) => {
const config = options.config;
const compiler = Webpack(config);
server.app.webpackCompiler = compiler;
const middleware = WebpackDevMiddl... |
'use strict';
var fs = require('fs'),
_ = require('lodash'),
colors = require('cli-color'),
utils = require('./utils.js');
function doSnapShot(roadMapPath, urlPrefix) {
var target,
payload,
response,
url;
var roadMap = utils.getRoadMapFromPath(roadMapPath);
console.log... |
import React from "react"
import CommentList from "./CommentList"
import CommentForm from "./CommentForm"
export default class CommentBox extends React.Component {
constructor(props) {
super(props)
this.state = {
data: []
}
}
componentDidMount() {
// Pull data from server.
}
handleCo... |
'use strict';
var Dispatcher = require('./Dispatcher');
var merge = require('react/lib/merge');
/**
* Bridge function between the views (which will
* be generating some actions) and the
* dispatcher, 'painting' the action as a
* 'VIEW_ACTION' so that whoever will receive
* the payload will know how to deal with ... |
/* eslint no-console:"off" */
const {resolve} = require('path');
const webpack = require('webpack');
const {getIfUtils, removeEmpty} = require('webpack-config-utils');
module.exports = env => {
const {ifProd, ifNotProd} = getIfUtils(env);
const config = {
context: resolve('src'),
entry: {
app: './ind... |
IntlMessageFormat.__addLocaleData({locale:"tk",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"}}); |
//think about a better way to organize the data in this, maybe using forms--as it it seems unlikely to work
$(document).ready(function(){
var thisNumber = '';
var lastNumber = '';
var operation;
var calcDisplay = document.getElementById('calcDisplay');
//build the calculator
var firstRow =[['on/c','on'],... |
/*
* NoPromise: Promise A+ compliant implementation, also with ES6 interface
* Copyright 2016 Avi Halachmi (:avih) http://github.com/avih/nopromise
* License: MIT
*
* Interface, e.g. after var Promise = require("nopromise") :
* new Promise(function executor(resolveFn, rejectFn) { ... })
* Promise.prototype... |
/**
* String utilities
* this one is compatible with frontend too, so written in a way it can be
* included in frontend, and accessible via window.Util_Str
*/
(function (w) {
'use strict';
w.Util_Str = {
/**
* capitlise
* @param str
* @returns {string}
*/
capitalise(str) {
ret... |
angular.module('conrep', ['ui.bootstrap'])
.controller('ProjectPickerController', function($scope, $dialog) {
//initial load
$scope.options = [{ name: "Wells Fargo - CORE", value: 1, description:"Wells Description",
startDate:"2013-03-20", endDate:"2013-08-20"},
{ ... |
/**
* StereoCamera
*/
import {
Camera,
OBJECT_TYPE,
Object3D,
TEXEL_ENCODING_TYPE
} from "../../../build/zen3d.module.js";
var StereoCamera = function() {
Object3D.call(this);
this.type = OBJECT_TYPE.CAMERA;
this.cameraL = new Camera();
this.cameraR = new Camera();
this.near = 1;
this.far = 1000;
}
St... |
chesskid.module
.controller('play', function($scope) {
}) |
import actionTypes from '../actions/actionTypes';
export const addTransaction = (channel, payload) => dispatch => {
dispatch({ type: actionTypes.ADD_TRANSACTION_REQUEST });
channel
.push('new_transaction', payload)
.receive('error', () => {
dispatch({ type: actionTypes.ADD_TRANSACTION_FAILURE });
... |
var React = require('react')
var {RouteHandler} = require('react-router')
var Reddit = React.createClass({
displayName: 'Reddit',
statics: {
fetchData: require('../controllers/reddit')
},
render: function() {
var listings = this.props.redditListings && this.props.redditListings.map(function(listing)... |
const gulp = require('gulp');
const mocha = require('gulp-mocha');
const terser = require('gulp-terser');
const concat = require('gulp-concat');
const minifyCss = require('gulp-cssnano');
const ejsmin = require('gulp-ejsmin');
const through = require('through2')
gulp.task('testEnv', (done) =... |
export function selectToken(symbol, address) {
return {
type: "TRANSFER.SELECT_TOKEN",
payload: { symbol, address }
}
}
export function errorSelectToken(message) {
return {
type: "TRANSFER.THOW_ERROR_SELECT_TOKEN",
payload: message
}
}
export function specifyGas(value) {
return {
type: "... |
/**
* @module pipeline
* @copyright 2012 Charles Jolley
*
* Exposes an asset pipeline. Add the generated files you want by passing a
* config. You should include at a minimum:
*
* pipeline = new Pipeline(); // also can pass configs here.
* pipeline.add("path/to/asset.js", {
* type: "javascript"... |
/**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
// TODO constrain eslint import/no-unresolved rule to this block
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json'; // eslint-disable-li... |
'use strict';
var observatory = require('../lib/observatory');
var faker = require('faker');
var q = require('q');
function delay(ms) {
var deferred = q.defer();
setTimeout(deferred.resolve, faker.random.number(ms || 2000));
return deferred.promise;
}
function createRandomTask() {
var task = observa... |
// rewrite by efront authors
/*!
Copyright (C) 2010-2013 Raymond Hill: https://github.com/gorhill/Javascript-Voronoi
MIT License: See https://github.com/gorhill/Javascript-Voronoi/LICENSE.md
*/
/*
Author: Raymond Hill (rhill@raymondhill.net)
Contributor: Jesse Morgan (morgajel@gmail.com)
File: rhill-voronoi-core.js
Ve... |
// example configuration of how data used to mock up the GA config getting used in Drupal
window.drupalSettings = {
google_analytics: {
trackCrossDomains: ['developer.mozilla.org'],
},
};
const TRACKING_ID = 'UA-127403924-1';
// eslint-disable-next-line no-return-assign
window.ga = window.ga || ((...args) => ... |
'use strict';
const path = require('path');
const fs = require('fs');
const glob = require('glob');
const fm = require('front-matter');
const test = require('tape');
const dedent = require('dedent-js');
// Splits a string, normalizing line endings and filtering empty lines
const split =
str => str.replace(/\r\n|\r... |
var files = require('./files');
var parser = require('./parser');
var yaml = require('js-yaml');
var fs = require('fs');
var _ = require('lodash');
/**
* Executes the conversion process. Depending on the given config, .json files are deflated into .properties or
* .propeties file are inflated into .json files. Thes... |
function EnglishDigit(input) {
var num = input[0];
var numToString = input.toString(); // pravim si 4isloto v string, za da si vzemem posledniq mu element, po-lesno
var lastDigit = +numToString.slice(-1); // vzimame posledniq element of stringa- v slu4aq poslednata cifra ot 4islo vzima//
... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.9.0-rc2-master-041ffe9
*/
goog.provide('ng.material.components.tooltip');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.tooltip
*/
angular
.module('material.components.tooltip', [ 'mat... |
var express = require('express');
var config = require('../profile.json');
var router = express.Router();
// var Accounts = require(config.models_factary)("account");
var main = require(config.main_mp2);
var login = require(config.login_mp);
var customer = require(config.customer_mp);
router.get('/', main.authorize_s... |
/**
* @return the root <html> tag.
*/
function getRootHtmlTag () {
return document.getElementsByTagName('html')[0]
}
/**
* Add print-view class to the html tag on print layout components
* to ensure that iOS scroll fix only applies to non-print views.
*/
export function addPrintViewClassToRootHtml () {
getRoo... |
var slowest, i, entries = performance.getEntries();
slowest = entries[0];
for (i=0; i<entries.length; i++) {
if (entries[i].duration > slowest.duration) slowest = entries[i];
}
console.log(slowest); |
/**
* Handles Error Defintions
*/
/**
* Creates Error classes
*
* @param {String} message
* @return {Error}
*/
function defineError(message) {
var _Error = function(customMessage) {
this.message = customMessage || message;
}
_Error.prototype = Object.create(Error.prototype);
_Error.prototype.construct... |
"use strict";
module.exports = {
"extends": [
"./rules/react",
"./rules/react-hooks"
].map((path) => require.resolve(path)),
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
}
};
|
System.config({
transpiler: 'typescript',
typescriptOptions: {
emitDecoratorMetadata: true
},
map: {
app: './app'
},
packages: {
app: {
main: './main.ts',
defaultExtension: 'ts'
}
}
}); |
import { attr } from '@ember-data/model';
import BaseModel from './base';
export default class AttachmentModel extends BaseModel {
@attr('rendered') title;
@attr media_details;
@attr('string') source_url;
@attr('rendered') caption;
@attr('rendered') description;
}
|
"use strict";
const express = require('express');
const _ = require('lodash');
const path = require('path');
const router = express.Router();
const news = require('../controllers/news.js');
const weather = require('../controllers/weather.js');
const uppers = require('../controllers/uppers.js');
router.get('/api', (... |
'use strict';
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/map', {templateUrl: 'partials/map.html', controller: 'mapPageCtrl'});
$routeProvider.otherwise({redi... |
import {renderToString} from 'react-dom/server';
import {createMemoryHistory, match, RouterContext} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import {StyleSheetServer} from 'aphrodite';
import routes from '../../routes';
import {ApolloProvider} from 'react-apollo';
import ApolloClien... |
import React from 'react';
import { Message } from 'semantic-ui-react';
const NotFound = props => (
<div>
<Message negative>
<Message.Header>404</Message.Header>
<p>Sorry, that page could not be found</p>
</Message>
</div>
);
export default NotFound;
|
$(function() {
// Cache the window object
var $window = $(window);
// Parallax background effect
$("section[data-type='background']").each(function() {
var $bgobj = $(this); // assigning the object
$(window).scroll(function() {
// scroll the background at var speed
// the yPos is a negative value bec... |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik M�ller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'mo... |
"use strict";
var core_1 = require('@angular/core');
var _reflect = Reflect;
/**
* @private
*/
function Page(config) {
return function (cls) {
// deprecated warning: added beta.8 2016-05-27
void 0;
config.selector = 'ion-page';
config.host = config.host || {};
config.host['... |
/**
* ImageController
*
* @description :: Server-side logic for managing images
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
};
|
define(["require", "exports", "@microsoft/load-themed-styles"], function (require, exports, load_themed_styles_1) {
"use strict";
var styles = {};
load_themed_styles_1.loadStyles([{ "rawString": ".ms-TooltipExample{margin-top:30px;text-align:center}" }]);
return styles;
});
/* tslint:enable */
//# sou... |
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
export default ({ text, icon }) => {
const cx = useStyles()
return (
<div className={cx.root}>
<div className={cx.container}>
{icon}
<div className={cx.tex... |
(function(angular, undefined) {
'use strict';
angular.module('chat.constants', [])
.constant('appConfig', {userRoles:['guest','user','admin']})
;
})(angular); |
Number.prototype.setSlotsIfAbsent(
{
cssString: function()
{
return this.toString();
},
milliseconds: function()
{
return this;
},
seconds: function()
{
return Number(this) * 1000;
},
minutes: function()
{
return this.seconds() * 60;
},
hours: function()
{
return this.minutes() * 60;
},... |
//@steal-clean
//
// LESS - Leaner CSS v1.0.34
// http://lesscss.org
//
// Copyright (c) 2010, Alexis Sellier
// Licensed under the Apache 2.0 License.
//
(function (window, undefined) {
//
// Stub out `require` in the browser
//
function require(arg) {
return window.less[arg.split('/')[1]];
};
// ecma-5.js
//
/... |
var fs = require('fs'),
gulp = require('gulp'),
es = require('event-stream'),
concat = require('gulp-concat'),
config = require('../config');
/**
* Build vendor, Concat and build our dependencies
*/
gulp.task('vendor', function() {
"use strict";
return es.concat(
gulp.src(c... |
import React, { PropTypes } from 'react';
import colorByCharacter from '~/constants/colorByCharacter';
function WordCard(props) {
const { word, isClues } = props;
let cardClasses = `flex flex--jc--c align-items--center card--container `;
if (isClues) {
cardClasses += ' flip ';
cardClasses += word.isRev... |
import { expect } from 'chai';
import $ from './data/_.fixes'; // FORMS
import Form from '../src';
describe('$A Field values checks', () => {
it('$A qwerty value should be equal to "0"', () =>
expect($.$A.$('qwerty').value).to.be.equal(0));
});
describe('$B Field values checks', () => {
it('$B inventoryLevel... |
// External Dependencies
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
// Our Dependencies
import { track } from '../../util/analytics';
import * as BooksAPI from '../../BooksAPI';
import { getSuggetions } from '../../util/search';
// Our Components
import BookL... |
module.exports = {
rules: {
'no-undef': 0,
},
};
|
'use strict';
var app = angular.module('app', ['ngRoute', 'ngResource', 'ngMaterial', 'ngAnimate', 'textAngular', 'ngSanitize', 'ngMessages', 'ngPassword', 'ngCookies', 'appFilters'])
.config(['$routeProvider', '$locationProvider', '$mdThemingProvider',
function ($routeProvider, $locationProvider, $mdThemi... |
define(['commondep', 'plugindep-2.0'], function(cd, pld) {
var exports = {};
function init() {
cd.showAboutBox(pld.name, pld.version);
}
exports.init = init;
return exports;
});
|
jQuery("#simulation")
.on("click", ".s-de173d30-80d5-4d0e-841f-c319c16877bd .click", function(event, data) {
var jEvent, jFirer, cases;
if(data === undefined) { data = event; }
jEvent = jimEvent(event);
jFirer = jEvent.getEventFirer();
if(jFirer.is("#s-Label_85")) {
cases = [
{
... |
'use strict';
var nextTick = require('just-next-tick');
var toStr = Object.prototype.toString;
var isFunction = function (value) {
return toStr.call(value) === '[object Function]';
};
/*
* Big Integer Minimum
*
* Pass in two strings that are otherwise valid integers, positive or negative.
* No leading zeroes.
... |
/**
* There are feautures of two types:
* 1) features derived from real entities (Message etc.)
* 2) virtual features (Summary_Message etc.)
*
* This method returns the feature type as a string to be able to differentiate different types of features.
*/
export const _featureType = function (feature) {
retur... |
/*global require,define,angular*/
define('angular', [], function () {
'use strict';
return angular;
});
require.config({
paths: {
'angular-bootstrap': 'bower_components/angular-bootstrap/ui-bootstrap.min',
'angular-bootstrap-tpls': 'bower_components/angular-bootstrap/ui-bootstrap-tpls.min... |
export function isCorrectSwipe(swipingDirection, absX, absY) {
return (swipingDirection === 'x' && absX > absY) || (swipingDirection === 'y' && absY > absX);
}
/**
* We need to use global document object to check whether DOM is focused.
*/
export function isFocused(element) {
/* eslint-disable no-undef */
ret... |
import CaravanaList from './caravanas-list';
import CreateCaravana from './create-caravana';
import EditCaravana from './edit-caravana';
export {
CaravanaList,
CreateCaravana,
EditCaravana,
};
|
define(function() {
return window.isNaN;
}); |
import {fromJS} from 'immutable';
import {NavigationExperimental} from 'react-native';
import {isNumber} from 'lodash';
import AppStrings from '../../localization/appStrings';
const {StateUtils: NavigationStateUtils} = NavigationExperimental;
// Actions
const PUSH_ROUTE = 'NavigationState/PUSH_ROUTE';
const POP_ROUTE... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.5... |
(function(angular) {
'use strict';
function ViewUserDetailModalController($state) {
var ctrl = this;
ctrl.userDetail = (ctrl.resolve && ctrl.resolve.details) || {};
ctrl.isDisabled = Object.keys(ctrl.userDetail).length > 0;
ctrl.init = function() {
}
ctrl.cance... |
var LOADER_0143 = [
"E005000008D12FE75F7A8F6DC9",
"E0060000E8700FD503C165F942C1ABEA2D2EF0045A8223FD60CE37A0AED953BD3C6735355798088E3F116932517D32B51D3849FEEA605F2E31EB3B41C4BE39834129B875E945DBD2CBC45FC5870893940286BA8306028D2400999BD1F0203FDCB18378C9F179D90ABCA99160ED56C148E2D5747BCB3AE6EA4E50C5A775114BEA5CC0B7F818E... |
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GrpcConnection = undefined;
var _app = require('../../app');
var _app2 = _interopRequireDefault(_app);
var _stream_bridge = require('... |
module.exports=require('../../decode-ranges.js')('wWwJAILaEEWANACAAZESZABhHBEAOAdxkgA4NsNYAEAAABABAhrgglqRg_Bg1gnLhzCAAAiG') |
/*===================================================*\
* Requires
\*===================================================*/
var merge = require('merge'),
CharacteristicManager = require('./characteristics/CharacteristicManager'),
JClass = require('jclass'),
HashArray = require('hasharray'),
EventDispatcher... |
var ADODBStream = WScript.CreateObject('ADODB.Stream');
ADODBStream.open();
ADODBStream.type = 1;
ADODBStream.loadFromFile('Write.js');
// ADODBStream.write(01011001);
ADODBStream.position = 0;
var bA = ADODBStream.read();
var stream = WScript.CreateObject('ADODB.Stream');
stream.open();
stream.type = 1;
stream.write(... |
'use strict';
//Setting up route
angular.module('examinations').config(['$stateProvider',
function($stateProvider) {
// Examinations state routing
$stateProvider.
state('listExaminations', {
url: '/examinations',
templateUrl: 'modules/examinations/views/list-examinations.client.view.html',
act... |
/**
* Copyright 2012-2018, Plotly, Inc.
* 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.
*/
'use strict';
var scatterAttrs = require('../scatter/attributes');
var plotAttrs = require('../../plots/attributes');
var colo... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _throttle = _interopDefault(require('lodash.throttle'));
var SkyScrollPlugin = {
install: function install(Vue, options... |
'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
describe('generator-react-component:app', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withPrompts({someAnswer: true})
.on('end', do... |
require(['backbone', 'marionette', 'modules/common/util','modules/simulator/DisplayUtil', 'modules/common/Router', 'modules/common/Controller','modules/main/MainView'], function (Backbone,Marionette, Util, DisplayUtil, Router, Controller, MainView) {
window.util = Util;
window.displayUtil = DisplayUtil;
window... |
/**
* The global state selectors
*/
import { createSelector } from 'reselect';
export const selectGlobal = (state) => state.get('global');
export const makeSelectCurrentUser = () => createSelector(
selectGlobal,
(globalState) => globalState.get('currentUser')
);
export const makeSelectLoading = () => createSe... |
/*var Vec3 = require('../math/Vec3');
var Transform = require('../math/Transform');
var RaycastResult = require('../collision/RaycastResult');
var Utils = require('../utils/Utils');
module.exports = WheelInfo;*/
/**
* @class WheelInfo
* @constructor
* @param {Object} [options]
*
* @param {Vec3} [options.chassisC... |
/**
* Test for ctxInjector.
* Runs with mocha.
*/
'use strict'
const ctxInjector = require('../lib/helpers/ctxInjector')
const { ok, equal } = require('assert')
describe('ctx-injector', () => {
before(() => {
})
after(() => {
})
it('Do test', () => {
})
})
/* global describe, before, after, it */
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import qs from 'qs';
@connect((store) => {
return {
currClass: store.globalReducer.currClass,
currTeam: store.globalReducer.currTeam,
students: store.globalReducer.students
}
})
class InstrDash e... |
var express = require('express');
var swig = require('swig');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var compression = require('compression');
var cluster = require('cluster');
var app = express();
var env = app.get('env') || 'development';
app.set('env', env);
var boot... |
const jobName = 'noStages';
/** @module noStages
* @memberof karaoke
* @description TEST: logs tailing a pipeline job without stages, but with steps - karaoke mode
*/
module.exports = {
/** Create Pipeline Job "noStages" */
'Step 01': function (browser) {
const pipelinesCreate = browser.page.pipeline... |
/*jshint undef:false */
(function (window) {
var document = window.document;
var script = document.createElement('script');
var sibling = document.getElementsByTagName('script')[0];
script.src = 'submit/waterfall-subscription-widget.1.0.0.js';
script.async = true;
script.type = 'text/javascript';
sibling.... |
const config = require('./config/webpack.config.dev.js');
module.exports = config;
|
/** @jsx html */
import { html } from '../../../snabbdom-jsx';
import Type from 'union-type';
import { bind, pipe, isBoolean, targetValue, targetChecked } from './helpers';
import { KEY_ENTER } from './constants';
import Task from './task';
// model : { nextID: Number, editingTitle: String, tasks: [task.mode... |
version https://git-lfs.github.com/spec/v1
oid sha256:be40e33689bd3f6df14831dddafc6a67db6f0ab121ce993ff48486182bae98b6
size 55359
|
/*
* An environment is just an object that maps identifiers to JLambda expressions
* with a few built-in (a standard Prelude environment)
*/
import errors from "./errors.js";
import rep from "./representation.js";
// creates a new environment initialized with the pairs in values
function makeEnv(name, values) {
... |
'use strict';
var mongoose = require('mongoose');
var Governance = mongoose.model('Governance');
var modelClass = require('../modelClass');
var renderModel = new modelClass.RenderModel( Governance, 'governance/governance.tex', 'governance/na.tex');
var is = require('is-js');
var defaultData = require('../default.js... |
import './app'
import './query'
import './mutation'
import './subscription'
import './relations'
import './directive'
|
/**
* Functionality specific to Twenty Thirteen.
*
* Provides helper functions to enhance the theme experience.
*/
( function( $ ) {
var body = $( 'body' ),
_window = $( window );
/**
* Adds a top margin to the footer if the sidebar widget area is higher
* than the rest of the page, to help the foot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.