code
stringlengths
2
1.05M
var iets = process.env.APPLICATION_PORT console.log(iets) console.log("Ik kan ook zo de parameter uit die ene file plakken: " + process.env.APPLICATION_PORT) console.log("put command line parameter here: " + process.argv[2]) //en dan moet je een woord in je terminal toevoegen, of een string en dan pakt ie er die bij
"use strict" const messages = require("..").messages const ruleName = require("..").ruleName const rules = require("../../../rules") const rule = rules[ruleName] testRule(rule, { ruleName, config: ["always"], accept: [ { code: "a { color: pink; }", }, { code: "a { color: pink; } b { color: red; }", ...
export * from './async'; export * from './routing'; export * from './events'; export { default as ValueStore } from './value-store';
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/******************************************** * * scrollView Control * * Darren Hurst * BroadStreet Mobile * Created, Aug 8 2012 * * * setTitle * title = control line above title * * setHtml * takes Html to set to view * */ define(['underscore', 'backbone'], function(_, Backbone) { var scrollViewCo...
const mongoose = require('mongoose') const Schema = mongoose.Schema // Customer Schema const customerSchema = new Schema({ name: String, email: String, phone: String, birthDay: Date, weight: Number, height: Number, sex: String, rich: Boolean, createAt: { type: Date, default: Date.now } }) ...
const { getSplittedDataFromFile, str2num } = require('../utilities'); const d = str2num(getSplittedDataFromFile(5, ',')); const getDigit = (num, pos) => Math.floor(num / Math.pow(10, pos)) % 10; const arg = (m, val) => m === 0 ? d[val] : val; const parseOpcode = k => [ d[k] % 100, arg(getDigit(d[k], 2), d[k + 1...
import { test } from 'substance-test' import { DefaultDOMElement } from 'substance' import { ConvertFig } from 'substance-texture' import readFixture from '../fixture/readFixture' const fixture = readFixture('fig.xml') test('ConvertFig: Extract caption title from figure', function (t) { let dom = DefaultDOMElement....
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import AboutPage from './../AboutPage'; describe('<AboutPage />', () => { it('should have a header called \'Pavel Svitek\'', () => { const wrapper = shallow(<AboutPage />); const actual = wrapper.find('h1').text(); ...
/** * Core */ L.geometrify = { };
'use strict'; import chalk from 'chalk'; import config from 'modernMean/config'; import userModel from './users.server.model.user'; import aclModule from '../config/acl.js'; let users = {}; let userTemplate = { email: 'user@localhost.com', name: { first: 'User', last: 'Local' } }; let adminTemplate = ...
/* eslint-env mocha */ var Promise = require('es6-promise').Promise; var CL_CONSTANTS = require('../src/caplinked-constants'); var HttpRequest = require('../src/http-request'); var chai = require('chai'); var chaiAsPromised = require('chai-as-promised'); var assert = chai.assert; var expect = chai.expect; var should ...
/* @provides dgram @polyfill */ module.exports = require('../builtin/dgram');
import midAngle from './mid-angle'; const getLinePosition = (centroid, d2, offset = 30) => { let pos = []; const angle = (midAngle(d2) / Math.PI) * 180; pos[0] = angle > 180 ? centroid[0] - offset : centroid[0] + offset; pos[1] = centroid[1]; if (angle <= 0 || angle >= 360) { pos[1] -= offset; } else...
// TODO actually recognize syntax of TypeScript constructs CodeMirror.defineMode("javascript", function(config, parserConfig) { var indentUnit = config.indentUnit; var statementIndent = parserConfig.statementIndent; var jsonMode = parserConfig.json; var isTS = parserConfig.typescript; // Tokenizer var k...
version https://git-lfs.github.com/spec/v1 oid sha256:dd691a09aa712edb833457b1e916a95adb742c18ff922c7355f2cad0e59de97f size 2796
/* eslint-disable no-unused-vars, no-unused-expressions, arrow-body-style */ /* @flow */ import React from 'react' import { compose, withProps, hoistStatics } from '../..' import type { HOC } from '../..' type EnhancedCompProps = { a: number } const A = ({ a, b }) => <div> {a} {(b: string)} { //...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var union = function union() {}; exports.union = union;
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { combineHandlers } from '../utils/compositionUtils'; const EnhancedHeadingCell = OriginalComponent => compose( getC...
/* jshint -W098 */ var should = require("should"); describe( "asteroid-arena", function() { describe( "awesome()", function() { it( "should be awesome", function() { 'awesome'.should.equal( 'awesome' ); } ); } ); } );
'use strict'; angular.module('myApp.home', ['ngRoute']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/home', { templateUrl: 'home/home.html', controller: 'HomeCtrl' }); }]) /** * @ngdoc object * @name myApp.home:HomeCtrl ...
/* * config.js * Modifiable configuration values for the entire simulation. * * Author: Benjamin Bengfort <bengfort@cs.umd.edu> * Created: Mon Jan 11 20:17:39 2016 -0500 * * Dependencies: * - jquery * - underscore */ (function() { // Simulation constants consts = { // Network connection types ...
const _ = require('lodash'), assert = require('assert'), library = require('./library') ; /** * Load an map of type names to type definitions into the global type library. * * @memberof runtype * @static * @param {object} schemas Map of type names to schemas. */ function loadIntoLibrary(schemas) { asser...
/* Problem 7. First larger than neighbours Write a function that returns the index of the first element in array that is larger than its neighbours or -1, if there’s no such element. Use the function from the previous exercise. */ var numArray = [6, 3, 8, 2, 7, 9, 14, 1]; function isLargerThanNeighbours() { f...
'use strict'; let mongoose = require('mongoose'); let BaseModel = require('./base'); let formidable = require('formidable'); let path = require('path'); let fs = require('fs'); var cloudinary = require('cloudinary'); class Post extends BaseModel{ constructor() { super(); this.mongooseModel = mongoose.model(...
(function() { var add_mongoskin, create_models, fs, path; fs = require('fs'); path = require('path'); module.exports = function(app) { var _base, _ref, _ref1; app.sequence('models').add('mongoskin', add_mongoskin(app)); app.sequence('models').add('create-models', create_models(app)); if ((_re...
/** * @author John Pittman <johnrichardpittman@gmail.com> */ var fs = require('fs'); var path = require('path'); var usestrictTransform = require('./usestrictTransform.js'); var babelTransform = require('./babelTransform.js'); var opts = {}; var data = ''; var beforeBytes = 0; var afterBytes = 0; var beforeKB = 0;...
import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { List } from 'semantic-ui-react' import { repoURL } from '../../utils' const linkListStyle = { background: '#f7f7f7', boxShadow: '0 0 1em 0.5em #f7f7f7', margin: '0.5em', padding: '0.5em', position: 'absolute', right: ...
/// chosen plugin (function (Handsontable) { "use strict"; var ChosenEditor = Handsontable.editors.TextEditor.prototype.extend(); ChosenEditor.prototype.prepare = function (row, col, prop, td, originalValue, cellProperties) { Handsontable.editors.TextEditor.prototype.prepare.apply(this, arguments...
import React from 'react' import { mount } from 'enzyme' import Badge from '.' const statusTestHelper = status => { test(`Applies ${status} styles if applied`, () => { const wrapper = mount(<Badge status={status}>Zoolander</Badge>) const el = wrapper.find('div.c-Badge') expect(el.hasClass(`is-${status}`...
"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...
import VueToc from './components/Toc.vue'; export default VueToc;
function StateManager(gamemanager) { this.gamemanager = gamemanager; this.states = []; this.currentState = null; this.lastState = null; } StateManager.prototype.create = function(name) { this.states[name] = new window[name + 'State'](this); } StateManager.prototype.switchTo = function(name) { this.lastState...
/** * @jsx React.DOM */ /* not used but thats how you can use touch events * */ //React.initializeTouchEvents(true); /* not used but thats how you can use animation and other transition goodies * */ var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; /** * we will use yes for true * we will use no f...
var app = angular.module('TimingApp', []); /** * Represents a stopwatch that counts down time from its creation * @param {number} counter - The time from the object's creation * @param {number} speed - The interval between tick function calls * @param {number} increment - The number added to the counter each tick ...
'use strict'; var Bus = require('framebus'); var events = require('../shared/events'); var clone = require('../../json-clone'); var BUS_CONFIGURATION_REQUEST_EVENT = require('../../constants').BUS_CONFIGURATION_REQUEST_EVENT; function start() { var serviceChannel = window.name.split('_')[1].split('?')[0]; var con...
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* 'www' app - publicly available parts of the site */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ import Koa ...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var config = require("./config"); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var index = require('./routes/index'); var recipes = require('./r...
const messagesService = require('../common/messages.service'); /** * Return normal API.AI message * @param {string} message to process * @return {promise} message object */ const defaultAction = (messageObj) => { const messages = messageObj.result.fulfillment.messages; let contexts = ''; let constructe...
import React from 'react'; import { mount } from 'enzyme'; import Slider from '../index'; describe('<Slider />', () => { it('should render', () => { const slider = mount(<Slider />); expect(slider).toMatchSnapshot(); }); it('shound render with initialValue', () => { const initialVa...
/** * Copied from existing form-js#Sanitizer * cf. https://github.com/bpmn-io/form-js/blob/master/packages/form-js-viewer/src/render/components/Sanitizer.js */ const NODE_TYPE_TEXT = 3, NODE_TYPE_ELEMENT = 1; const ALLOWED_NODES = [ 'h1', 'h2', 'h3', 'h4', 'h5', 'span', 'em', 'a', 'p', 'd...
package("kb", function(exports) { "use strict"; depends("util/Notifier.js"); depends("Page.js"); depends("Tracking.js"); depends("util/ParseJSON.js"); function Editing(stage) { this.edited = false; this.stage = stage; this.items = {}; } Editing.prototype = { start: function(id) { this.edited = tru...
'use strict' /** * Return a cleaned version of the request body * @param {Object} obj * @param {Array<RegExp>} dataScrub * @param {function(Object):*} callToJSON * @returns {Object} */ module.exports = function (obj, dataScrub, callToJSON) { function copy(x) { let r, key, shouldScrub, i if (x && x.toJSON &...
// The following three lines are *always* required. AudioContext = require('web-audio-api').AudioContext Gibber = require('../../build/gibber.audio.lib.js') Gibber.init() // Please do the `Seq` tutorial before this one. // Any time you use a call to `seq()`, the underlying data is converted into a // pattern. You ca...
import { PASS_FETCH_REQUEST, PASS_RECEIVE, PASS_SEARCH_INPUT_CHANGE } from '../constants'; import {authLoginUserFailure} from "./auth"; import {checkHttpStatus, parseJSON} from "../utils/index"; import {SERVER_URL} from "../utils/config"; import { ACCESS_COMMENT_UPDATE_RECEIVE, ACCESS_COMMENT_UPDATE_REQUEST, ...
/** * @fileoverview Funciones del screen people (alta/busqueda) * * @author Alfredo Chi * @version 0.1 */ var dataTablePeople = null; var dataTableReservationsPeople = null var maxHeight = 400; isSearch = true; var xhrPeople; var idPeople = 0; var msgPeople = null; /**************Index****************/ //muestra el ...
/** * Weekdays calculator * @author Andrei Kondratev [andrew@kondratev.pro] */ ;if ( typeof require !== 'undefined' ) { moment = require('moment'); } (function(moment) { function WeekDayCalc (rangeStart,rangeEnd,weekdays,exclusions,inclusions,useIsoWeekday) { this.rangeStart = moment(rangeStart); this.r...
/* * ------------------------------------------ * 项目模块基类实现文件 * @version 1.0 * @author genify(caijf@corp.netease.com) * ------------------------------------------ */ NEJ.define([ 'base/klass', 'base/element', 'base/event', 'util/template/tpl', 'util/template/jst', 'util/dispatcher/module...
import React from 'react' const Col12 = ({ children }) => <div className="col-12"> { children } </div> export default Col12
{ title: 'Preset setting', settings: { start : 'start hook names (array) or name(string).', end : 'end hook names (array) or name(string).', binding : 'binding name(string) or object {tpl: name, data: name}.', compiler : 'compiler name(string). one of [standard, php, jsp]' } }
//////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Philippe Leefsma 2014 - ADN/Developer Technical Services // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is he...
import { tree } from 'd3-state-visualizer'; const appState = { todoStore: { todos: [ { title: 'd3'}, { title: 'state' }, { title: 'visualizer' }, { title: 'tree' } ], completedCount: 1, alphabeticalOrder: true }, someStore: { someProperty: 0, someObject: { an...
var dataAll = [ [ [387.46,391.87], [387.8,392.25], [388.41,392.83], [389.31,393.85], [388.08,392.61], [387.11,391.56], [387.81,392.33], [389.08,393.59], [390.15,394.66], [388.92,393.41], [389.66,394.3], [383.54,387.64], ...
import React from 'react' class Modal extends React.Component { componentDidMount(){ //this.refs.autofocus.getDOMNode().focus(); //document.getElementsByClassName('searchText').focus(); } isOpen(){ if (this.props.isOpen){ document.getElementsByClassName('modal').addClass('active'); } }...
var accessor = require('../index')() , test = require('tape') test('types', function(t) { t.plan(4) accessor.create('5', function(val) { t.strictEqual(val, 5) })() accessor.create('5.5 + 5', function(val) { t.strictEqual(val, 10.5) })() accessor.create('"5" + 10', function(val) { t.strictE...
import users from './users' import players from './players' /* creates the service layer */ const userService = users() const playerService = players() export default { userService, playerService }
var app = app || {}; (function(){ var LoginWindow = app.LoginWindow; var RegisterWindow = app.RegisterWindow; var AccountPage = React.createClass({displayName: "AccountPage", getInitialState:function(){ return {isRegister:false,username:'', password:'', repassword:''}; }, ...
#!/usr/bin/env node /** * https://github.com/wikimedia/html-metadata */ 'use strict'; var BBPromise = require('bluebird'); var cheerio = require('cheerio'); var preq = require('preq'); // Promisified Request library var microdata = require('microdata-node'); // Schema.org microdata /** * Returns Object containing...
/* * Geddy JavaScript Web development framework * Copyright 2112 Matthew Eernisse (mde@fleegix.org) * * 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/l...
/*############################################################# Name: Niceforms Version: 2.0 Author: Lucian Slatineanu URL: http://www.emblematiq.com/projects/niceforms/ Feel free to use and modify but please keep this copyright intact. #################################################################*/ //Th...
/* UWEBSHOP CLASS */ if (typeof uWebshop === 'undefined') { var uWebshop = {}; } if (typeof Basket === 'undefined') { var Basket = {}; } if (typeof Catalog === 'undefined') { var Catalog = {}; } if (typeof Customers === 'undefined') { var Customers = {}; } if (typeof Discounts === 'undefined') { var Discount...
UICustomizerDefine('SettingsButton', ['Engine'], function (Engine) { 'use strict'; return { init: init }; function init() { Engine.appendCSS('SettingsButton'); var container = Engine.createComponent('SettingsButton', { icon: Engine.getSVG('settings') }); Engine.wait('div.engineUser-M...
'use strict'; angular.module('jobsificator.add-presentation-modal', [ 'jobsificator.add-presentation-modal.add-presentation-modal-directive' ]).constant("$", window.jQuery) .constant("_", window._);
const json_filternumberitems = require('../src/json_filternumberitems'); const json_rmns = require('../src/json_rmns'); describe('json_filternumberitems', () => { [ ['numbers.currencies', 'rmcurrencies'], ['numbers.decimalFormats-numberSystem-latn', 'rmdecimalFormatsNumberSystemLatn'], ['numbers.symbols-numb...
Meteor.publish('Orders', function () { return Orders.find(); });
'use strict'; var React = require('react'); var FluxMixin = require('flummox/mixin'); var FrameworkDetail = require('../FrameworkDetail'); var { State} = require('react-router'); //jshint newcap:false var Detail = React.createClass({ mixins: [State, FluxMixin({ framework:function(store){ return { ...
import { arrayOf, string, number, shape } from './index'; import ReactPropTypes from 'prop-types'; import { ReactPropTypesSecret } from './utils'; const dummyProps = { astring: 'hello', anarrayofnumbers: [1, 2, 3], anarrayofshape:[{ x: 2 }, { x: 4 }] }; describe('arrayOf', () => { test('returns correct displayNam...
var assert = require('assert'), ical = require(__dirname + '/../lib/'), path = require('path'), fs = require('fs'); describe('ical-generator 0.2.x / ICalCalendar', function() { 'use strict'; describe('ICalTools', function() { describe('duration()', function() { it('case #1', fu...
//= require guards ;(function($) { var originalDefaultTarget = $.guards.defaults.target; // Ensure input-appended and input-prepended inputs have errors // placed in the proper location. $.guards.defaults.target = function(errorElement) { if (!$(this).parent().is(".input-append") && !$(this).p...
/** * @interface */ export default class AdRepository { /** * Returns the promise for the value stored from ad server by position id * @param {string} id * @returns {Promise.<V> | undefined} */ find({id}) { throw new Error('AdRepository#find must be implemented') } /** * Returns true only ...
import Vue from 'vue' import Router from 'vue-router' import Routes from '@/pages/routes' import Index from '@/pages/index' import Details from '@/pages/details-page' import ChangeHistory from '@/pages/change-history' import KanPan from '@/pages/kan-pan' import Personal from '@/pages/personal-page' import BuyList from ...
'use strict'; var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; module.exports = function (grunt) { require('load-grunt-tasks')(grunt); require('time-grunt')(grunt); grunt.initConfig({ yeoman: { // configurable paths app: require('./bower.json').appPath || 'public', ...
'use strict'; var Router = require('koa-router'); var r = new Router(); var c = require('./controllers'); r.get('/', c.indexController); module.exports = r;
const query = gql` query UserProfileView { me { id # TODO: https://www.fast.com/sdf/sdf uuid # Some other comment role } } `
var sockRageServices = angular.module('sockRageServices', ['ngResource']); sockRageServices.factory('Projects', ['$resource', function($resource){ return $resource('/internal/api/projects/:project_id', {}, { 'query': { method: 'GET', isArray: true }, 'update': { method:'PUT' } }); }]); sockRageServi...
// // Copyright (c) 2019 Autodesk, Inc. // // 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, merge, publ...
import React from 'react'; import { XYPlot, XAxis, YAxis, HorizontalGridLines, VerticalGridLines, LineSeries, RadialChart } from 'react-vis'; const MSEC_DAILY = 86400000; class Visual extends React.Component { render() { const timestamp = Date.now(); return ( <div> <XYPlot ...
/* file: app4book.module.js */ /*! * Copyright 2017 ikarus512 * https://github.com/ikarus512/fcc1.git */ (function() { 'use strict'; /** * @namespace app4book * @desc app4book angular module * @requires clients.Modules.a_common * @requires clients.Modules.a_components * @requires c...
var request = require('request'), qs = require('querystring'), helpers = require('./helpers'); /** * hubspot API wrapper for the API version 3. This object should not be * instantiated directly but by using the version wrapper {@link hubspotAPI}. * * @param options Configuration options * @return Instance of ...
/** * * ConversationScore * */ import React from 'react'; import styled from 'styled-components'; import './styles.css'; const TomatoScore = styled.div` padding:10px; `; const MoneyScore = styled.div` padding:10px; `; const ScoreTitle = styled.p` margin-top:150px; margin-bottom:10px; padding:0 10px; `; ...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image2', 'et', { alt: 'Alternatiivne tekst', btnUpload: 'Saada serverisse', captioned: 'Captioned image', // MISSING infoTab: 'Pildi info...
var config = require('../../config/configReader').queryConfig; /*---------- populationSurroundings.js, geographicalSurroundings.js ----------*/ /* Example: WITH middlePoint AS (SELECT ST_Centroid(ST_GeomFromText('MULTIPOINT (8.7095882 47.3589998, 8.7135701 47.3530638)', 4326))) SELECT ST_AsText(st_centroid)...
// This file merely configures the store for hot reloading. // This boilerplate file is likely to be the same for each project that uses Redux. // With Redux, the actual stores are in /reducers. import { createStore, compose, applyMiddleware } from 'redux'; import rootReducer from '../reducers'; import reduxImmutableS...
require('./css/skydrive.less') import React from 'react'; import {Router, Route, Link, History} from 'react-router'; import {TimeAgo} from'../../widget'; var classnames = require('classnames'); class Skydrive extends React.Component { constructor(props) { super(props); this.state = { foo: "bar" ...
//# sourceMappingURL=client.js.map
angular.module('orderCloud') .config(FavoriteProductsConfig) .directive('ordercloudFavoriteProduct', FavoriteProductDirective) .controller('FavoriteProductsCtrl', FavoriteProductsController) .controller('FavoriteProductCtrl', FavoriteProductController) ; function FavoriteProductsConfig($stateProvider){...
import React from "react"; import cx from "../../utils/cx"; import { modifiers } from "../../utils/bulma"; export default ({ children, className, onClick, ...props }) => ( <div onClick={onClick} className={cx(["tile"].concat(className).concat(modifiers(props)))} > {children} </div> );
var mongoose = require('mongoose'); var crypto = require('crypto'); var jwt = require('jsonwebtoken'); var UserSchema = new mongoose.Schema({ username: {type: String, lowercase: true, unique: true}, hash: String, salt: String, resetPasswordToken: String, resetPasswordExpires: Date }); UserSchema.m...
function DropLink(linkCallback) { linkCallback = linkCallback || console.log; var $dropzone = $('<div>'); function makeDropZone() { if ($dropzone.is(':visible')) return; $dropzone = $('<textarea>').css({ position: 'fixed', width: '100%', left: '0', top: '0', right: '0', bottom: '0', opacity:...
'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 (...
'use strict'; import moment from 'moment'; export default class BancoPagamentoModalController { /*@ngInject*/ constructor($state, $scope, toastr, usSpinnerService, BancoService) { this.toastr = toastr; this.$state = $state; this.BancoService = BancoService; this.usSpinnerService = usSpinnerService;...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { playerProfileShape } from '../../datastore/dataShapes' export default class ProfileEditPane extends Component { static propTypes = { profile: playerProfileShape, save: PropTypes.func, cancel: PropTypes.func } constr...
import $ from 'jquery' import emitter from '../utils/emitter' import rules from './validation/defaults' const NAME = 'validation' const DEFAULTS = { events: 'blur', selector: '[data-required]' } class Validation { constructor (element, options) { this.$element = $(element) this.options = $.extend({}, ...
/* jshint indent: 2 */ module.exports = function (sequelize, DataTypes) { return sequelize.define('Special', { SpecialID: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, Title: { type: DataTypes.STRING, allowNull: false }, ...
ace.define("ace/mode/terraform_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function(e, t, n) { "use strict"; var r = e("../lib/oop"), i = e("./text_highlight_rules").TextHighlightRules, s = function() { this.$rules = { start: [{ ...
// Simple module to help you remember the size and position of windows. // Can be used for more than one window, just construct many // instances of it and give each different name. import { app } from "electron"; import jetpack from "fs-jetpack"; export default function( name, defaults ) { const userDataDir = jetpa...
/** * Mincer * * This is a main entry point of the module (an object that you get by calling * `require('mincer')`. You can get acces to some of the internal classes using * this object. * * var env = new (require('mincer').Environment)(__dirname); * * `Mincer` depends on some 3rd-party modu...
(function () { 'use strict'; angular .module('data.module') .factory('CountryData', CountryData); CountryData.$inject = ['$http', '$ionicLoading', '$rootScope', '$q', '$log']; function CountryData($http, $ionicLoading, $rootScope, $q, $log) { return { countryList: countryList, currien...
System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system" ] }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "babel": "npm:babel-core@5.8....