code
stringlengths
2
1.05M
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * [description] * * @function Phaser.Geom.Rectangle.Perimeter * @since 3.0.0 * * @param {Phaser.Geom.R...
import React, { Component } from 'react'; export default class About extends Component { render() { return ( <div> <h1>About</h1> <button onClick={this.props.onClick.bind(this)}> {this.props.buttonTitle} </button> <h3>{this.props.counter}</h3> </div> ); ...
var Sequelize = require('sequelize'); module.exports = function(sequelize) { var Gratitude = sequelize.define('gratitudes', { entry: Sequelize.STRING(500), interface: Sequelize.STRING(10), datetime: Sequelize.DATE, userId: { type: Sequelize.INTEGER, references: { model: 'users', /...
export default { 'huangshang': ['朕公务繁忙,爱卿请自便。', '大胆!', '朕待你不薄 你为何要这样对朕?', '朕的后宫怎能容下你这样的女人'], 'huanghou': ['臣妾虽为皇后,也是皇上的妻子,身为人妻,侍奉夫君。', '臣妾做不到啊!'], 'erkang': ['我鼻孔真的很大吗?', '对不起,我错了,我不该和她看雪,看月亮,从诗词歌赋谈到人生哲学。我以后只和你看雪,看月亮,从诗词歌赋谈到人生哲学。'], 'xiaoyanzi': ['门前一只狗,在啃肉骨头,又来一只狗,双双打破头。', '人之初,性本善,性相近,习相远……狗不叫,猫不跳,鸡不飞...
import alt from '../alt'; import ProjectUsersActions from '../actions/ProjectUsersActions'; import MembershipStore from './MembershipStore'; import Moment from 'moment'; class ProjectUsersStore { constructor() { this.bindActions(ProjectUsersActions); this.users = []; } static getUser(userId) { cons...
const through2 = require('through2'); const fs = require('fs'); /* Using csvtojson package better handles dirty csv, i.e. newlines in quoted fields, which are present in the radlex csv and the csv2 package does not correctly handle. */ const Converter = require('csvtojson').Converter; const csvConverter = new Convert...
import React from 'react'; import { render } from 'react-dom'; import configureStore from './configureStore.js'; import Root from './containers/Root'; const store = configureStore(); render( <Root store={store} />, document.getElementById('root') );
import { Router } from 'express'; import { respondUnauthorized } from '../util/expressUtils'; import unless from 'express-unless'; import wasteRouter from './waste.routes'; import methodsRouter from './method.routes'; import subjectsRouter from './subject.routes'; import authRouter from './auth.routes'; export default...
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /*! * Next JS * Copyright (c)2011 Xenophy.CO.,LTD All rights Reserved. * http://www.xenophy.com */ // {{{ NX.data.MemoryStore.get module.exports = function(sid, fn) { var me = this; var expires, sess = me.sessions[sid]; if(sess) { ...
import projects from '../data/projects'; import resumeData from '../data/resumeData'; import references from '../data/referenceData'; import footerLinks from '../data/footerLinks'; import teamMembers from '../data/teamMembers'; import services from '../data/services'; import projectCategories from '../data/projectCateg...
import TransactionApi from "../api/transaction.js"; import CategoryApi from "../api/categoryGroup.js"; import ReportErrors from "../reportErrors.js"; import FilterAmountKeys from "../filterAmountKeys.js"; import TransactionFilters from "./transactionFilters.js"; import T from "../transactionShared.js"; export default ...
'use strict'; angular.module('biyblApp') .service('dbpGrabber', function ($http, $q) { return { devkey: "f241660c7e9b26ddf60d73b1d9fe5856", langmap: { 'ar': ['ARZVDVO2ET', 'ARZVDVN2ET', 'العربية'], 'bg': ['BULBBSO2ET', 'BULBBSN2ET', 'Български'], 'bn': ['BNGCLVO2ET', 'BNGCLV...
// @flow import { getMirror } from '@client/utils/generalUtils'; import schema from './'; module.exports = getMirror(schema);
/** @module ember-flexberry-gis */ import Ember from 'ember'; import layout from '../../../templates/components/map-commands-dialogs/search-settings/geocoder-osm-ru'; /** Search settings part of Geocoder OSM.ru layer modal dialog. @class GeocoderOsmRuSearchSettingsComponent @extends <a href="http://emberjs.c...
/* jslint node: true */ 'use strict'; var mongodb = require('mongodb'); var yaml = require('js-yaml'); var conf = require('../configuration.yml'); module.exports = function Routes(callback){ if(conf.database.active){ mongodb.connect(process.env.MONGODBCONNECTION || conf.database.connectionString,...
import CellularParser from './CellularParser'; import { OperatorExpression, NameExpression, NumberExpression, } from './expressions'; import TokenTypes from './TokenTypes'; export default class Interpreter { constructor(sheet) { this.sheet = sheet; } eval(expression) { const parser = new CellularP...
var socket = io(); var game = new Vue({ el: "html", data: { player: {}, planting: 0, name: "bob", pw: "blop", showInv: false, showMarket: false, marketListings: [], landprice: 30 }, methods: { sell: function(item){ socket.emit("sell", item); }, buy: function(item){ var _this = this; ...
define(["exports","./Check-24483042","./when-54335d57","./Math-d6182036"],function(e,t,h,r){"use strict";var l=r.CesiumMath.EPSILON10;e.arrayRemoveDuplicates=function(e,t,r){if(h.defined(e)){r=h.defaultValue(r,!1);var n,i,f,u=e.length;if(u<2)return e;for(n=1;n<u&&!t(i=e[n-1],f=e[n],l);++n);if(n===u)return r&&t(e[0],e[e...
var app = angular.module("app", []); app.controller("ctrl", function ($scope) { $scope.log = function (work) { alert(work + " is done!"); } }); app.directive("kid", function () { return { restrict: "E", scope: { done: "&" // access to method }, template: '<div style="border:solid silver; padding: 10...
import React from 'react'; import PropTypes from 'prop-types'; import StarWarsCharacter from '../../Oppgave2/components/StarWarsCharacter'; const StarWarsCharacters = ({ characters }) => <div className="star-wars-characters"> {characters.filter(character1 => parseInt(character1.height) > 180) .map(ch...
import React from 'react'; import ReactDOM from 'react-dom'; // import Draggable from 'Draggable'; import { Button } from 'react-bootstrap'; export class AbsoluteContainer extends React.Component { constructor(props) { super(props); this.dragRefs = []; this.copyStyles = this.copyStyles.bind(this); ...
var gnaviAPIservice = function($injectHttp, $injectQ) { $q = $injectQ; $http = $injectHttp; // var AreaList = function() {}; var gnaviAPI = {}; gnaviAPI.getPrefs = function() { return $http({ method: 'JSONP', url: 'http://api.gnavi.co.jp/ver1/PrefSearchAPI/?keyid=3752190c2...
'use strict'; import React from 'react'; import countdown from 'countdown'; class CountdownTicker extends React.Component { constructor (props) { super(props); } static propTypes = { to: React.PropTypes.instanceOf(Date).isRequired }; state = { timeLeft: countdown(this.pr...
/* Copyright 2010-2016 Will Scullin <scullin@scullinsteel.com> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and thi...
import { ENVIRONMENTS } from '../constants/environments'; export default function (env) { switch (env) { case ENVIRONMENTS.LIVE: reloadWithUrl('https://frontend.tobit.com/chaynsnet-runtime/v2/'); break; case ENVIRONMENTS.LIVE_V1: reloadWithUrl('https://frontend.t...
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var GeneratorFreakMeanGenerator = yeoman.generators.Base.extend({ initializing: function () { this.pkg = require('../package.json'); }, prompting: function () { v...
'use strict'; require('babel-polyfill'); const _ = require('lodash'); const fs = require('fs'); const path = require('path'); const generators = require('yeoman-generator'); const _conf = require('../conf.js'); const packageJson = require('../package-json-base.js'); const generatorTypes = require('../generator-types');...
import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { formValueSelector, getFormValues, change, arrayInsert, arrayRemove, arrayPush, } from 'redux-form'; import { clearSubformValidationErrors, removeIntegrityError, } from 'actions/errors'; import ListWithInputPanel from '.....
/* * Created by Aeo on 2017/02/16. * Chrome Color for Regularjs */ import './mcss/index.mcss'; import BaseComponent from './base/processor'; import template from './view.html'; // components import hue from './components/hue'; import alpha from './components/alpha'; import checkboard from './components/checkboard'...
(function(angular) { 'use strict'; angular.module('userSellerDetails',[ ]); })(window.angular);
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ConfirmEmail from '../components/ConfirmEmail.js'; const mapStateToProps = (state, ownProps) =>{ return { user: state.signup && state.signup.user }; } export default connect(mapStateToProps, null)(ConfirmEmail);
// app/index.js const calc = require('./calc') const numbersToAdd = [ 3, 4, 10, 2 ] const result = calc.sum(numbersToAdd) console.log(`The result is: ${result}`)
var crequest = require("../lib/cached_request"); var nconf = require('nconf'); var model = require('../models/todos'); exports.get = function(req, res) { var config = nconf.get('config'); var headerUrl = config.header.url; var notificationUrl = config.header.notificationUrl; var requestUrl = headerUrl+"?selection...
export function setCookie(cname, cvalue, exdays = 1) { const d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); const expires = `expires=${d.toUTCString()}`; document.cookie = `${cname}=${cvalue};${expires};path=/`; } export function getCookie(cname) { const name = `${cname}=`; const ...
/* */ (function(process) { 'use strict'; var win32 = process && process.platform === 'win32'; var path = require('path'); var fileRe = require('filename-regex'); var utils = module.exports; utils.diff = require('arr-diff'); utils.unique = require('array-unique'); utils.braces = require('braces'); uti...
version https://git-lfs.github.com/spec/v1 oid sha256:8b982efeb0214d60d3233658c488efa49d9f762843ede7e9c77c366ef99fd61b size 6889
var appUtils = require('./appUtils'), iqlInfo = require('../prepublic/javascripts/iqlInfo'), sqlfs = require('./sqlfs'), config = require('./config'), iql = require('./iql'), getExptemplate = require('./getExptemplate'), log = require('./log'); var p = iql.parseIql(iqlInfo.defaultIqlQuery); var...
class MapLinksInfo { constructor(fromPage: string, toPage: string, mapContentId: string, targetSelectors: string[]) { this.fromPage = fromPage; this.toPage = toPage; this.mapContentId = mapContentId; this.targetSelectors = targetSelectors || []; this.preprocessed = false; ...
'use strict'; var expect = require('expect.js'), spawn = require('./helpers').spawn; describe('xrun', function() { var test = function(text, args, dir, expected) { it(text, function() { var result = spawn(args, dir); expect(result.stdout).to.equal(expected.stdout); expect(result.stderr).to.equal(expected...
"use strict"; const isPlainObject = require("lodash.isplainobject"); module.exports = function moredots(src, dst = {}, prefix = "") { for (const key in src) { if (isPlainObject(src[key])) { moredots(src[key], dst, prefix + key + "."); } else { dst[prefix + key] = src[key]; } } return ds...
/*jslint node: true*/ /*globals Promise:true*/ "use strict"; var HttpUtils = require('../utils/HttpUtils'); function Routes(_API_URL) { this.API_URL = _API_URL; this.REST = new HttpUtils(); } /** * http://apidocs.cloudfoundry.org/214/routes/list_all_routes.html * * Pagination: /v2/routes?order-direction=a...
import { combineReducers } from 'redux'; import tasks from './tasks'; import categories from './categories'; import users from './users'; export default combineReducers({ tasks, categories, users });
/** * Created by yauriedogawa on 4/13/14. */ "use strict"; module.exports = function(server) { server.route([ { method: 'GET', path: '/', handler: function(req, res) { res.view("index"); } }, { method: 'GET', path: '/app.js', handler: { file: './app/app.js' } ...
import React from 'react'; import ReactDOM from 'react-dom'; import { DemoAlignScaleColorDebug } from './DemoAlignScaleColorDebug'; import DemoAlignScaleColorDebugCode from '!raw-loader!./DemoAlignScaleColorDebug'; import { DemoChartBar } from './DemoChartBar'; import DemoChartBarCode from '!raw-loader!./DemoChartBar';...
/** * Created by ehtd on 8/15/14. */ //http://beej.us/blog/data/html5s-canvas-2-pixel/ function setPixel(imageData, x, y, r, g, b, a) { index = (x + y * imageData.width) * 4; imageData.data[index+0] = r; imageData.data[index+1] = g; imageData.data[index+2] = b; imageData.data[index+3] = a; } fun...
var db = require('./db').db; var User = db.Model.extend({ tableName: 'tblUsers', idAttribute: 'userId' }); module.exports = { User: User };
'use strict'; var _ = require('lodash'); var assert = require('assert'); var fs = require('fs'); var path = require('path'); var util = require('util'); var roux = require('@retailmenot/roux'); var rouxSassImporter = require('@retailmenot/roux-sass-importer'); var CopyWebpackPlugin = require('copy-webpack-plugin'); ...
"use strict"; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; exports.contains = contains; exports.parseCaniuseData = parseCaniuseData; exports.cleanBrowsersList = cleanBrowsersList; Object.defineProperty(exports, "__esModule", { value: true }); var uniq = _interopReq...
/** * @fileOverview A collection of functions for records. * @name Record Keeper */ /** * Gets the current record. */ function getRecord(){ } /** Change the role of the employee. */ function recast(employeeId, newRole) { } /** * Change the role of the employee. * @param {integer} employeeId The id of the empl...
angular.module('cinnamon') .controller('configuration.group.create', function($scope, $http, $interval, $state, $stateParams, $log, $mdToast, $mdDialog, $mdMedia, $compile, message, pageMove) { console.log('configuration.group.create'); // 코드 생성 $scope.create = function() { if(!$scope.frm.$valid) { message.al...
/*! * VisualEditor ContentEditable ListNode class. * * @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * ContentEditable list node. * * @class * @extends ve.ce.BranchNode * @constructor * @param {ve.dm.ListNode} model Model to obser...
// ships.controller.js define([ 'angular', './ships.module' ], function (ng) { 'use strict'; ng .module('app.ships') .controller('ShipsController', ShipsController); ShipsController.$inject = ['$scope']; //////////// function ShipsController($scope) { //$...
import Packet from './Packet'; export default class PacketTS extends Packet { // Packet header errorIndicator = false; payloadUnitStartIndicator = false; priority = false; pid = 0; scramblingControl = 0; hasAdaption = false; hasPayload = false; continuityCounter = 0; // Adaptio...
import request from 'lib/request'; import { getWalletById } from 'lib/wallet'; export async function getAddressWithAlias(crypto, domain = '') { const address = await getAddress(crypto, domain); const data = address ? { address, alias: domain } : { address: domain, alias: '' }; postProcess(crypto, data); return...
'use strict'; describe('the main controller', function() { var majesticPoisson, main; beforeEach(function() { module('majestic-poisson'); inject(function($controller) { majesticPoisson = {}; main = $controller('mainController', { majesticPoisson: majesti...
Calendar._DN = new Array ("Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο", "Κυριακή"); Calendar._SDN = new Array ("Κυ", "Δε", "Tρ", "Τε", "Πε", "Πα", "Σα", "Κυ"); Calendar._MN = new Array ("Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάϊος", "Ιούνιος", "Ιούλιος"...
var restify = require('restify'); var builder = require('botbuilder'); var dice = require("dice.js") // Setup Restify Server var server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function () { console.log('%s listening to %s', server.name, server.url); }); // Create chat...
'use strict'; hasa.provide('hasa.layout'); hasa.require('hasa'); hasa.require('assert'); hasa.external('_'); /** * フィードバックメニュー */ hasa.layout.Feedback = Linkage.View.extend({ el: "#feedback", events: { 'click .toggle': 'toggle', 'click .save': 'save', }, init: function() { ...
var Polar2D = require('./Polar2D'); function Cartesian2D (x, y) { this.x = x; this.y = y; } Cartesian2D.prototype.toPolar = function () { var radius = Math.sqrt(this.x * this.x + this.y * this.y); var theta = Math.atan2(this.y, this.x); return new Polar2D(radius, theta); }; Cartesian2D.prototype.distanceTo...
'use strict'; var test = require('tape'); var punycode = require('punycode'); var ent = require('../'); test('hex', function (t) { for (var i = 0; i < 32; i++) { var a = String.fromCharCode(i); if (a.match(/\s/)) { t.equal(ent.decode(a), a); } else { var b = '&#x' +...
module.exports = { react: { "babel-plugin-react-transform": "^2.0.0", "babel-preset-react": "^6.11.1", "react-transform-hmr": "^1.0.1", "react": "^15.4.2", "react-dom": "^15.4.2" }, vue: { "vue-hot-reload-api": "^1.3.3", "vue-html-loader": "^1.2.3", ...
jest.mock(`../resolve`, () => module => `/resolved/path/${module}`) const { resolvableExtensions, onCreateWebpackConfig, } = require(`../gatsby-node`) const { tsPresetsFromJsPresets } = require(`../`) const tsPresetPath = `/resolved/path/@babel/preset-typescript` const jsOptions = { options: { presets: [ ...
/* eslint-disable no-else-return */ import $ from 'jquery'; import '~/gl_dropdown'; import Api from './api'; import { mergeUrlParams } from './lib/utils/url_utility'; import { parseBoolean } from '~/lib/utils/common_utils'; import { __ } from './locale'; export default class NamespaceSelect { constructor(opts) { ...
System.register(["@angular/core", "../../model/type-process", "../../model/extractor-instructions/dto-extractor-instruction-files", "../../model/payload/payload-envelope"], function (exports_1, context_1) { "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { ...
module.exports = { entry: './app/components/Main.js', output: { filename: 'public/js/bundle.js' }, module: { loaders: [ { test: /\.jsx?$/, exclude: /(node_modules|bower_components)/, loader: 'babel', query: { presets: ['react', 'es2015'] } ...
const Parser = require('rss-parser'); const parser = new Parser(); const parse = require('date-fns/parse'); async function getPosts(username) { const url = `https://medium.com/feed/@${username}`; const { items = [] } = await parser.parseURL(url); return items.map(({ title, link, pubDate }) => ({ title, u...
/*jshint node:true*/ /* global require, module */ var EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); module.exports = function(defaults) { var app = new EmberAddon(defaults, { // Add options here }); /* This build file specifies the options for the dummy test app of this addon, located ...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('operation-definition', 'Unit | Serializer | OperationDefinition', { needs: [ 'serializer:operation-definition', 'model:contact-detail', 'model:usage-context', 'model:codeable-concept', 'model:reference', 'model:operation-defi...
require('shelljs/global'); echo('Shell script : Packager App'); echo(" "); // require electron-packer echo(" "); echo('Checks if required module(s) is/are present '); if (!which('electron-packager')) { echo('Sorry, this script requires electron-packager'); exit(1); } // tests if previously folder exists if ...
import * as ActionTypes from '../constants/ActionTypes' import * as push from '../push/push' export default function(state, action) { return { topics: push.getTopicsSubscribed() } }
import React from 'react'; // eslint-disable-next-line import Badge from 'ringcentral-widgets/components/Badge'; /** * A simple example of `Badge` * By default, the default floats on right. */ const BadgeDemo = () => ( <Badge name="Badge" > BadgeName </Badge> ); export default BadgeDemo;
//~ name c610 alert(c610); //~ component c611.js
function PreviewWindow(iframe){ var win = iframe.contentWindow this.send = function(m){ win.postMessage(m, '*') } } component.exports = { magic: true, init: function(){ var self = this, d = this.data, iframe = this.find('iframe') // _layout, _co...
describe('integration test', function () { require('./init'); require('./install'); require('./uninstall'); });
var mongojs = require('mongojs') , _und = require('underscore') , db = mongojs('localhost/demo'); module.exports = { filterId : function(collections) { return _und.map(collections, function(item,key){ item['id'] = item['_id']; delete item['_id']; return item; }); }, /** * quest = {query:{},proj...
'use strict'; var amazon = require('amazon-product-api'); /** * Render the main application page */ amazon = amazon.createClient({ awsId: "AKIAJ7AGDJDFA3BM7XPA", awsSecret: "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", awsTag: "thesmartking-21" }); exports.renderIndex = function (req, res) { ...
/// <reference path="../../../Scripts/endgate.d.ts" /> /// <reference path="../../../Scripts/jquery.d.ts" /> /// <reference path="GridEntry.ts" /> // Wrap in module to keep code out of global scope var MapCreator; (function (MapCreator) { var TileHighlighter = (function () { function TileHighlighter(_grid) ...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
/** * JCookieBanner JS Script * @author Juan Fran */ (function(context){ 'use strict'; // Usado en este ámbito. // Segundos que hay en un 1ms. var SECONDS = 0.001; var BANNER_ID = 'jcookie-banner'; var BANNER_HEADER_ID = 'jcookie-banner-header'; var BANNER_BODY_ID = 'jcookie-ban...
(function () { 'use strict'; angular.module('ang-validator') .service('internalValidation', [ InternalValidation ]); function InternalValidation () {} InternalValidation.prototype = { /** * * @param {object} obj * @param {string} errMsg * @param {boolean=} isOptional Defaults to false * ...
const mongoose = require('mongoose') , Schema = mongoose.Schema; mongoose.connect('mongodb://localhost:27017/test'); var db=mongoose.connection; db.on('error',console.error.bind(console,'connection error:')); db.once('open',function() { console.log("db connected"); }); var assert=requi...
var fs = require('fs'); var assert = require('assert'); var OcrApi = require('asposeocrcloud'); var StorageApi = require('asposestoragecloud'); var configProps = require('../../data/config.json'); var data_path = '../../data/'; var AppSID = configProps.app_sid; var AppKey = configProps.api_key; var outFolder = config...
class Todo { constructor(title) { this.title = title; this.done = false; } getDone() { return this.done; } getTitle() { return this.title; } setDone(done) { this.done = done; } setTitle(title) { this.title = title; } } export default Todo;
/** * 弹出扫描表单 * */ ScanFormWindow = function () { ScanFormWindow.superclass.constructor.apply(this, arguments); this.initControls(); this.initEvents(); } mini.extend(ScanFormWindow, mini.Window, { url: "", title: "扫描功能", width: 500, // height: 320, allowResize: true, showModal: tr...
/** * @author Mugen87 / https://github.com/Mugen87 */ ( function() { // ConvexGeometry function ConvexGeometry( points ) { THREE.Geometry.call( this ); this.type = 'ConvexGeometry'; this.fromBufferGeometry( new ConvexBufferGeometry( points ) ); this.mergeVertices(); } ConvexGeometry.prototype = Ob...
import EasyGoverness from './EasyGoverness'; import GermanGoverness from './GermanGoverness'; import HeadGoverness from './HeadGoverness'; import MiddlewareGoverness from './MiddlewareGoverness'; import StrictGoverness from './StrictGoverness'; export { EasyGoverness, GermanGoverness, HeadGoverness, Middleware...
/** * This type represents a single line. Its a box level element that is used for inline and text rendering. */ bshot.model.rendertree.nodes.RenderLineBox = function(node) { this.tagName = "RenderLineBox"; if (node) { this.setNode(node); } }; bshot.model.rendertree.nodes.RenderLineBox.prototype = new bshot.mo...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['810',"tlece_BadgesCategoryMatrix Class","topic_00000000000002F5.html"],['811',"Properties","topic_00000000000002F5_props--.html"],['814',"...
// https://leetcode.com/problems/repeated-substring-pattern/#/description /** * @param {string} s * @return {boolean} */ var repeatedSubstringPattern = function (s) { var length = s.length; if (length < 2) return false; var mid = Math.floor(length / 2); var subStr = ''; for (var i = 0; i < mid; i++) { ...
//NOTATION:bad practice var ipc = require('ipc'); var child_process = require('child_process'); // var iconv = require('iconv-lite'); // window controls function minimizeWindow() { ipc.send('window', 'minimize'); } function maximizeWindow() { ipc.send('window', 'maximize'); } function closeWindow() { ipc.send('...
module.exports = { normalizeEntityName: function() { }, afterInstall: function() { return this.addBowerPackageToProject('slick-carousel'); } };
var mongoose = require('mongoose'), User = mongoose.model('User'), bcrypt = require("bcryptjs"), _ = require('lodash'), jwt = require('jsonwebtoken'); function createToken (user) { return jwt.sign(_.pick(user, '_id', 'username'), "unicorngiraffepineapplepepper", { expiresIn: 60...
import React from 'react'; const Current = ({ weather }) => <div className="current"> <div className="condition-img"> <p className="condition">{weather.condition}</p> <div className='img-background'> <img src={weather.img} alt={weather.condition} /> </div> <div class...
module.exports = function(app) { require('./account')(app) require('./pocket')(app) app.get('/status',function(req,res){ res.render('statusPage',{ title : 'Error! failed connecting your pocket account. Try again, later' }); }); //Route not found -- Set 404 app.get('*', function(req, res) { res.ren...
export default class DiceRoller { roll(sides, num, all = false) { if(isNaN(sides) || isNaN(num)){ throw new Error('invalid argument, expects numbers'); } let tempSum = 0; for ( var i = 0; i < num; i++){ tempSum += Math.ceil(Math.random() * sides); ...
/*! * Vuetify v3.0.0-alpha.2 * Forged by John Leider * Released under the MIT License. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); else if(typeof define === 'function' && define.amd) def...
/** * @license Highcharts JS v8.0.3 (2020-03-06) * * Streamgraph module * * (c) 2010-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; ...
'use strict'; const fs = require('fs'); const path = require('path'); // Load .env configuration. require('dotenv').load({path: path.resolve(__dirname, './.env')}); module.exports = { client: 'mysql', connection: { host: process.env.MYSQL_HOST || 'localhost', port: process.env.MYSQL_PORT || 3306, use...
// Rollup plugins const babel = require('rollup-plugin-babel') const eslint = require('rollup-plugin-eslint') const resolve = require('rollup-plugin-node-resolve') const commonjs = require('rollup-plugin-commonjs') const replace = require('rollup-plugin-replace') const uglify = require('rollup-plugin-uglify') const pro...