code
stringlengths
2
1.05M
const Joi = require('joi'); const _validateRequest = (schema, isValidateBody) => { return (req, res, next) => { let obj = isValidateBody ? req.body : req.query; let { error, value } = Joi.validate(obj, schema); if(error) { let message = _formatErrorMessage(error); ...
module.exports = { /* * Global configuration. * These values are used in 'gruntfile.js', usually for globbing * patterns. I.e. <%= build_dir %> * */ source_dir: './src/', build_dir: './build/', compile_dir: './application/', /* * Build configuration. * The build object below loads the scr...
var Model = useModel('Model'); /** * Privilege Model */ function Privilege(){ this.collection = 'privileges'; } Privilege.prototype = new Model(); module.exports = new Privilege;
import React, { Component } from "react"; import { observer } from "mobx-react"; import styled from "styled-components"; import IfYesThenFirst from "../IfYesThenFirst"; import Textbox from '../../atoms/Textbox'; const RecordingContainer = styled.div` display: flex; justify-content: space-between; background-colo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _objectAssign = require('object-assign'); var _objectAssign2 = _interopRequireDefault(_objectAssign); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key,...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format * @emails oncall+relay */ 'use strict'; const DataChecker = require('./DataChecker'); const RelayCore = requ...
//////////// inspired by ionicframework modal var ngModal = angular.module('ngModal',[]); ngModal.factory('ModalProvider',['$rootScope', '$compile','$timeout', '$http', '$q', function($rootScope, $compile,$timeout,$http,$q){ var service = {}; var status = {}; // var modals = {}; var currentModal = ...
import React, {Component} from 'react'; import {action, toJS} from 'mobx'; import {inject} from 'mobx-react'; import {Button} from 'react-bootstrap'; @inject('designStore') export default class ClearAllButton extends Component { constructor(props) { super(props); } render() { return <Bu...
/** * John Resig 的 assert 函数,做了小封装 */ window.assert = window.assert || function () { var output = document.getElementById('output') return function (outcome, description) { var li = document.createElement('li') li.className = outcome ? 'pass' : 'fail' li.appendChild(document.createTextNode(descripti...
let Victor = require('victor'); let PBody = require('../PBody.js').PBody; let Ability = new (require('./Abilities/Abilities.js').Abilities)(); const PLAYER_STATE = { 'DEFAULT': 0, 'INVULNERABLE': 1 }; class Player{ constructor(id){ this.id = id; this.state = PLAYER_STATE.DEFAULT; t...
/** MarkDocTheme Object * * The Theme object which handles retrieval of theme pieces * **/ var $ = require('./Utils.js'), rsvp = require('rsvp'), _ = require('underscore'), path = require('path'), marked = require('marked'), MarkedProcessor = require('./MarkedProcessor.js'); marked.setOptions({ gfm: t...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * SoftLayer Documentation Node.js Parser * * Copyright (c) 2013 Yani Iliev <yani@iliev.me> * Licensed under the MIT license. * * @author Yani Iliev <yani@iliev.me> * @copyright 2013 Yani Iliev * @license * https://github.com/yani-/blog/master/softlayer-documentation-nodejs-parser * @version GIT: 1.0....
var uglify = require('../src/uglify'); var assert = require('chai').assert; var compactState = "var square=x=>x*x;"; var normalState = "var square = x => x * x;"; describe('uglify module', function() { describe('exitsed', function() { it('should have necessary functions', function() { assert.isOk(uglify...
"use strict"; /* tslint:disable */ var load_themed_styles_1 = require("@microsoft/load-themed-styles"); var styles = {}; load_themed_styles_1.loadStyles([{ "rawString": ".ms-FocusZoneListExample .ms-DetailsRow{display:block}" }]); module.exports = styles; /* tslint:enable */ //# sourceMappingURL=FocusZone.List.Exampl...
var path = require('path'); var express = require('express'); var config = require('./config').config; var app = express(); var routes = require('./routes'); var userproxy = require('./proxy/userproxy'); /** * configuration in all env **/ app.configure(function(){ var viewsRoot = path.join(__dirname, 'views'); ...
/* Problem: Given a array of numbers representing the stock prices of a company in chronological order, write a function that calculates the maximum profit you could have made from buying and selling that stock once. You must buy before you can sell it. Example: Input: [9, 11, 8, 5, 7, 10] Output: 5 Expla...
import * as t from './actionTypes'; import api from 'lib/api'; import messages from 'lib/text'; import moment from 'moment'; function requestProduct() { return { type: t.PRODUCT_DETAIL_REQUEST }; } function receiveProduct(item) { return { type: t.PRODUCT_DETAIL_RECEIVE, item }; } function receiveProductErr...
import _makeArrayFlattener from "../privates/_makeArrayFlattener"; /** * Flattens the "first level" of an array. * @example <caption>Showing the difference with <code>flatten</code>:</caption> * const arr = [1, 2, [3, 4, [5, 6]], 7, 8]; * * _.flatten(arr) // => [1, 2, 3, 4, 5, 6, 7, 8] * _.shallowFlatten(arr) //...
import { pluralizeWord } from 'xitomatl/helpers/pluralize-word'; import { module, test } from 'qunit'; module('Unit | Helper | pluralize word'); // Replace this with your real tests. test('it works', function(assert) { let result = pluralizeWord([42]); assert.ok(result); });
import React from 'react'; import Header from 'components/Header.js'; import './SetNickname.less'; export default class SetGender extends React.Component { constructor(props) { super(props); } render() { return ( <div> <Header headerName="设置性别" /> ...
/* @flow */ import Type from './Type'; import type Validation, {IdentifierPath} from '../Validation'; export default class MixedType extends Type { typeName: string = 'MixedType'; collectErrors (validation: Validation<any>, path: IdentifierPath, input: any): boolean { return false; } accepts (input: an...
var _ = require('underscore'); var Promise = require('../promise'); // interface Storage { // readonly attribute boolean async; // string getItem(string key); // void setItem(string key, string value); // void removeItem(string key); // void clear(); // Promise getItemAsync(string key); // Promise setIte...
var Slideout = require('slideout'); if(window.location.host == "tipbox.in" && !window.location.hash) { window.location.href = "https://tipbox.is"; } window.setCurrentView = function(hash) { var unsupportedBrowser = function() { return !(window && window.crypto && window.crypto.getRandomValues && window.Uint8...
var FileSystem = require('fs'); var WalkSync = require('walk-sync'); var path = require('path'); var glob = require('glob-fs')({ gitignore: true }); /**. * A very simple template assembler for angular 1. * * @author Mwayi Dzanjalimodzi * * var ngTemplate = new NgTemplate(['.src/*.html']); * ngTemplate.writeToFil...
import React, { Component } from 'react' import { bindActionCreators } from 'redux' import TagSearchScreen from '../../components/TagSearch/TagSearch.screen' import * as articlesActions from '../../redux/modules/Articles.redux' import { connect } from 'react-redux' type Props = { articles: Array<any>, navigation: ...
/**f * touch thumbs control class * addon to strip gallery */ function UGTouchSliderControl(){ var g_objSlider, g_objInner, g_parent = new UGSlider(); var g_objParent, g_options, t=this; var g_functions = new UGFunctions(); this.events = { CLICK:"click" }; var g_options = { slider_transition_cont...
const baseConfig = require('./webpack.config') module.exports = Object.assign({}, baseConfig, { entry: { demo: ['./entries/demo/index.js'] }, output: { path: `${__dirname}/docs/demo`, filename: '[name].[chunkhash].js' } })
exports.make = function (Schema, mongoose) { Story = new Schema({ summary: String, estimate: String, active: Boolean, revealed: Boolean, deskId: String }); return mongoose.model('Story', Story); };
/* * cw_gallery * http://clivewalkden.co.uk/code/cw_gallery/ * * Copyright (c) 2014 Clive Walkden * Licensed under the MIT license. */ (function($){ $.fn.cwGallery = function(custom) { // Default plugin settings var defaults = { thumb_container : 'cw_thumbs', img_container : 'cw_imag...
var sunTexture; var sunColorLookupTexture; var solarflareTexture; var sunHaloTexture; var sunHaloColorTexture; var sunCoronaTexture; function loadStarSurfaceTextures(){ if( sunTexture === undefined ){ sunTexture = THREE.ImageUtils.loadTexture( "/images/sun_surface.png"); sunTexture.anisotropy = maxAniso; sunTex...
import path from 'path'; import fs from 'fs-extra'; import { walkJsonDir, walkJsonDirSync } from './walkDir'; jest.mock('fs-extra'); describe('walkJsonDir', () => { it('walks the api directory for relevant files', async () => { const mockFileSystem = { app: { api: { '2016-2017': { ...
import React from 'react'; import { Button } from '../../../../src'; import generateCodeTemplate from './generateCodeTemplate'; import generateTableTemplate from './generateTableTemplate'; import styles from './style'; const sampleCode = `import {Button} from 'scuba'; <div> <Button>BUTTON</Button> <Button bac...
const VoiceResponse = require('twilio').twiml.VoiceResponse; const response = new VoiceResponse(); const dial = response.dial(); dial.number('415-123-4567'); console.log(response.toString());
"use strict"; const prettier = require("prettier-local"); const generateSchema = require("../../../scripts/generate-schema"); test("schema", () => { expect(generateSchema(prettier.getSupportInfo().options)).toMatchSnapshot(); });
import sumArray from './' test('should sum an array of integers', () => { const one = sumArray([1]) expect(one).toBe(1) const two = sumArray([1, 2, -1]) expect(two).toBe(2) const six = sumArray([1, 2, 3]) expect(six).toBe(6) }) test('should handle empty lists', () => { const empty = sumArray([]) exp...
var fs = require('fs'); fs.readFile(process.argv[2], function (err, data) { if (err) { console.log(err); } else { var lines = data.toString('utf8').split('\n').length - 1; console.log(lines); } });
/** * @license * Copyright 2018 Google 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...
!function(e){function r(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var o={};return r.m=e,r.c=o,r.p="/",r(0)}([function(e,r,o){e.exports=o(1)},function(e,r){"use strict";function o(){var e=new ScrollMagic.Controller;new ScrollMagi...
// Download the Node helper library from twilio.com/docs/libraries/node // These consts are your accountSid and authToken from https://www.twilio.com/console const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const authToken = 'your_auth_token'; const client = require('twilio')(accountSid, authToken); const opt...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示****...
module.exports = function (App) { var Contatos = App.Controllers.Contato; App.route('/contatos/atualizar').post(Contatos.atualizar); App.route('/contatos/cadastrados').post(Contatos.cadastrados); App.route('/contatos/remover').post(Contatos.remover); App.route('/contatos/cadastrar').post(Contatos.c...
var searchData= [ ['getapi',['GetApi',['../class_oxy_engine_1_1_game_instance.html#a1f748c1d60ef1ef37362c3608819e016',1,'OxyEngine::GameInstance']]], ['getbackgroundcolor',['GetBackgroundColor',['../class_oxy_engine_1_1_graphics_1_1_graphics_manager.html#adce48eecdd0ff39dbf6e0173481f2bac',1,'OxyEngine::Graphics::Gr...
define(['app', 'editFormUtility',], function(app) { app.directive('campaign', function() { return { restrict: 'EAC', templateUrl: '/app/js/directives/campaign.html', scope: { id: '=', }, controller: function(editFormUtility, $scope)...
/** * @file TagField */ export default from './TagField';
/** * @author: az@alloyTeam Bin Wang * @description: 高斯模糊 * */ ;(function(Ps){ window[Ps].module("Filter.gaussBlur",function(P){ var M = { /** * 高斯模糊 * @param {Array} pixes pix array * @param {Number} width 图片的宽度 * @param {Number} he...
var mongoose = require('mongoose'), bcrypt = require('bcrypt-nodejs'); // define the schema for our admin model var schema = new mongoose.Schema({ username: String, password: String }); // methods ====================== // generating a hash schema.methods.generateHash = function(password) { return bcrypt....
import { takeLatest, delay } from 'redux-saga'; import { call, put, fork } from 'redux-saga/effects'; import { fixedConstants, $setPrices } from './createCryptoCurrenciesPricesReduxStoreSection'; import invokeRequest from 'daniloster-utils/lib/invokeRequest'; import axios from 'axios'; import logger from '../logger'; ...
import { connect } from 'react-redux'; import Pager from '../../components/Transaction/List/Pager'; import { changeFilterPage } from '../../actions/ui/transaction/filter'; import { getPage, getVisiblePages } from '../../selectors/ui/transaction/filter'; const mapStateToProps = state => ({ page: getPage(state), ...
const express = require('express'); const router = express.Router(); router.get('/ping', (req, res, next) => res.send('pong!')); router.get('/', (req, res, next) => { const renderObject = { title: 'home', user: req.user, messages: req.flash('messages') }; res.render('index', renderObject); }); modu...
// var Ownable = artifacts.require("ownership/Ownable.sol"); // NOTE: Use this file to easily deploy the contracts you're writing. // (but make sure to reset this file before committing // with `git checkout HEAD -- migrations/2_deploy_contracts.js`) module.exports = function (deployer) { // deployer.deploy(Ow...
// START HEROKU SETUP var express = require("express"); var app = express(); app.get('/', function(req, res){ res.send('The Guild Ball Plots bot is running.'); }); app.listen(process.env.PORT || 5000); // END HEROKU SETUP // config // // Config.keys uses environment variables so sensitive info is not in the repo. var ...
point = function(game,layer){ this.game = game; //objet du jeu this.layer = layer; //layer vu par le joueur this.score = 0; //initialisation du score this.scoreText = null; //initialiser de l'objet texte points.game.add.group(); //creation du groupe de point //fonction permettant de placer les points lor...
var app = app || {}; app.TrackView = Backbone.View.extend({ tagName: 'li', template: _.template( $('#track-template').html() ), events: { }, initialize: function() { this.listenTo(this.model, 'change', this.render); }, render: function() { this.$el.html( this.template( this.model.toJSON() ) ...
/** * configure RequireJS * prefer named modules to long paths, especially for version mgt * or 3rd party libraries */ require.config({ paths: { 'angular': '../bower_components/angular/angular', 'angular-route': '../bower_components/angular-route/angular-route', 'angular-mocks...
"use strict" Object.defineProperty(exports, "__esModule", { value: true, }) exports.StandaloneSearchBox = undefined var _defineProperty2 = require("babel-runtime/helpers/defineProperty") var _defineProperty3 = _interopRequireDefault(_defineProperty2) var _getPrototypeOf = require("babel-runtime/core-js/object/get...
import UserControler from 'controllers/user.controller' let router = express.Router() router.get('/login', UserControler.login) module.exports = router;
/** * Example of a Vantage server that hooks into * an Express server. * * To run, ensure you have devDependencies * with `npm install`. */ /** * Module dependencies. */ var Vantage = require('./../../lib/index') , express = require('express') , app = express() ; /** * Variable de...
// We only need to import the modules necessary for initial render import App from 'containers/App'; import { getAsyncInjectors } from 'utils/asyncInjectors'; const errorLoading = err => { console.error('Dynamic page loading failed', err); }; const loadModule = cb => componentModule => { cb(null, componentModule....
// Opt in to strict mode of JavaScript, [ref](http://is.gd/3Bg9QR) // Use this statement, you can stay away from several frequent mistakes 'use strict'; var $ = require("jquery"); var MultiEvent = function (fn, time, opt) { var self = this; this.fn = fn; this.time = time; opt = opt || {}; this....
(function() { 'use strict'; angular.module('calendar.events', []); })();
/** * window.c.userFollows component * Shows all user follows cards * * Example of use: * view: () => { * ... * m.component(c.userFollows, {user: user}) * ... * } */ import m from 'mithril'; import postgrest from 'mithril-postgrest'; import _ from 'underscore'; import h from '../h'; import models from '...
var webapp = angular.module('webapp'); webapp.controller('AuthController', ['$scope', '$http', '$window', '$cookies', 'AuthService', function ($scope, $http, $window, $cookies, AuthService) { (function init() { })(); $scope.user = {}; $scope.login = function() { var username = this....
import { default as FivetwelveRgbParam } from 'fivetwelve/lib/param/RgbParam.js' /** * */ export default class RgbParam extends FivetwelveRgbParam { /** * Create a new RGB-Param. * * @param {Array<number>} channels - The assigned DMX-channels within the * device (1-based channel number passed as [r...
import React from 'react'; import DatePicker from 'react-bootstrap-date-picker'; export default class EnhanceDatePicker extends React.Component { render() { const dayLabels = ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7']; const monthLabels = [ 'Tháng 1 /', 'Tháng 2 /', 'Tháng 3 /', 'Tháng 4 /', 'Tháng 5 /...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'showblocks', 'no', { toolbar: 'Vis blokker' } );
var dns = require('dns'); /** old dns.lookup function - used to restore original function **/ var lookup; /** * A module that monkeypatch dns.lookup for graceful * falling to another IP stack version. * @module dns-graceful-stack-switch */ /** * Monkeypatch function * @param {Number} defaultVersion - version o...
/** * @fileoverview Rule to flag unnecessary double negation in Boolean contexts * @author Brandon Mills */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils...
/** * @since 2019-09-24 02:14 * @author vivaxy */ import * as ET from '../enums/event-types.js'; import * as GS from '../enums/game-state.js'; import * as TS from '../enums/tetromino-state.js'; import * as DIRECTIONS from '../enums/directions.js'; import StateMachine from '../class/state-machine.js'; import Grid fro...
// onionoo api baseurl exports.BASE_URL = 'https://onionoo.torproject.org/'; // request timeout in milliseconds exports.REQUEST_TIMEOUT = 10000; // 1000 * 60 * 60 * 24 exports.DAY = 86400000;
export default { html: ` <div> Hello World <input /> <input /> </div> <div> Sapper App <input /> <input /> </div> `, ssrHtml: ` <div> Hello World <input value="Hello"/> <input value="World"/> </div> <div> Sapper App <input value="Sapper"/> <input value="App"/> </d...
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('treeMenus');
export { default } from 'ember-models-table/components/models-table/themes/ember-paper/data-group-by-select';
import React, { PropTypes } from 'react'; import { Split, Wrapper, Icon } from 'bits'; import { connect } from 'utils'; import { Follow } from 'react-twitter-widgets'; import FacebookProvider, { Like } from 'react-facebook'; import styles from './styles.css'; import GoogleMap from 'google-map-react'; import hackbatMark...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * MenuItem Schema */ var MenuItemSchema = new Schema({ name: { type: String, default: '', required: 'Please fill MenuItem name', trim: true }, description: { type: String, ...
var map = L.map('map').setView([0, 0], 3); var geoJsonLayer; L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); function onEachFeature(feature, layer) { // does this feature have a property named pop...
define(function () { return { // all clickable scroll elements $elements: null, // bool page is stroll active: false, SETTINGS: { // divide distance by this value to calculate time scroll time: 2, // min time scroll mi...
const app = require('koa')() const handlebars = require('koa-handlebars') const Router = require('koa-router') const config = require('./config') const debug = require('debug')('jsdoc') const providers = require('./lib/providers') const controllers = require('./controllers') app.env = config.env app.name = config.name...
var gulp = require('gulp'), connect = require('gulp-connect'), markdown = require('gulp-markdown'), jade = require('gulp-jade'), rimraf = require('gulp-rimraf'); gulp.task('clean', function() { return gulp.src('index.html') .pipe(rimraf()); }) gulp.task('markdown', function() { return gulp.src('site/content.m...
import { connect } from 'react-redux' import { Layout as LayoutView } from './layout.view' const mapStateToProps = (state) => ({}) const mapDispatchToProps = (dispatch) => ({}) const makeContainer = (component) => { return connect( mapStateToProps, mapDispatchToProps )(component) } export const Layout ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function () { var html_table = $('#example').html(); var linkExcel = $('#ToExcel').attr('href'); ...
var fieldTests = require('./commonFieldTestUtils.js'); var RelationshipModelTestConfig = require('../../../modelTestConfig/RelationshipModelTestConfig'); module.exports = { before: fieldTests.before, after: fieldTests.after, 'Relationship field should show correctly in the initial modal': function (browser) { bro...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({root:{widgetLabel:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out"},ar:1,bs:1,ca:1,cs:1,da:1,de:1,el:1,es:1,et:1,fi:1,fr:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,ko:1,lv:...
pageflow.EditChapterView = Backbone.Marionette.Layout.extend({ template: 'templates/edit_chapter', className: 'edit_chapter', mixins: [pageflow.failureIndicatingView], regions: { formContainer: '.form_container' }, events: { 'click a.back': 'goBack', 'click a.destroy': 'destroy', }, onRe...
var pacbot = require('../../lib/pacbot'); var fss = require('../../lib/fss'); var contains = function (test, supstr, substr) { test.ok(supstr.indexOf(substr) > -1); }; exports.canCreateAppCacheFile = function (test) { pacbot.config({ appdir: 'spec/cases/cache/content', pubdir: 'spec/out/cache'...
var express = require('express'), nunjucks = require('nunjucks'), fs = require('fs'), util = require('util'), _ = require('underscore'), app = express(), port = process.env.PORT || 1168, config = JSON.parse(fs.readFileSync('config.json')), a2 = require('./a2/lib/core'); var env = new nu...
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0; // Necessary for this setup, because we don't have a CA signed certificate var https = require('https'), colors = require('colors'), q = require('q'), settings = require('../settings').resourceServer, errorCodes = require('../shared/error-codes'), oper...
/* @flow */ /* eslint-disable import/no-commonjs */ if (process.env.NODE_ENV === 'production') { module.exports = require('./configureStore.prod').default; } else { module.exports = require('./configureStore.dev').default; }
'use strict'; let AbstractGroupModel = require('./AbstractGroupModel'); const DETAILS = { id: 'HEL002', manufacturer: 'Philips', name: 'Hue Entity Pendant', type: 'Luminaire', }; /** * Group model: HEL002 */ class HEL002 extends AbstractGroupModel { /** * Constructor */ ...
// Copyright (c) 2011-2015, HL7, Inc & The MITRE Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, ...
(function () { 'use strict'; var utils = require('./utils'), postscribe = require('postscribe'), mapUrl = 'https://api.map.baidu.com/api?v=2.0&ak=KUuesdf9xuLFZGGPj7j0F3jBT9QYz2vx&s=1'; function init() { var map = new BMap.Map("map"), circleOverlay = utils.overlayInit(), point = { lng: 116.301456, ...
$(function(){ $(document).ready(function(){ $.ajax({ url :'/chairsDetails', type :'get' }).done(function(data){ console.log("data found:",data); $('#product-list-').html(""); $('#product-type').html(""); data[0].forEach(function(entry,index){ //console.log("data in entry 0 point ",entry); ...
/** * @enum EFriendFlags */ module.exports = { "None": 0, "Blocked": 1, "FriendshipRequested": 2, "Immediate": 4, "ClanMember": 8, "OnGameServer": 16, "RequestingFriendship": 128, "RequestingInfo": 256, "Ignored": 512, "IgnoredFriend": 1024, "Suggested": 2048, "ChatMember": 4096, "FlagAll": 65535, // V...
import GitUtilities from "./GitUtilities"; import FileSystemUtilities from "./FileSystemUtilities"; import path from "path"; import logger from "./logger"; export default class Repository { constructor() { if (!GitUtilities.isInitialized()) { logger.info("Initializing Git repository."); GitUtilities....
const lumpit = require('@lump/it') const task = require('@lump/task') const remove = require('@lump/remove') const copy = require('@lump/copy') lumpit(async () => { await task({ text: 'Build', exec: async () => { await copy({ src: 'files/*', dest: 'new/ubication' }) await re...
var TimeLine = (function(timeline) { timeline.Router.RoutesManager = Backbone.Router.extend({ initialize: function(args) { Backbone.history.start( { pushState: true, root: '/' } ); //this.collection = args.collection; //console.log("this.collection", this.collection); }, routes: { ...
import {dbSetup, sequelizer} from './index'; import Sequelize from 'sequelize'; import {Article} from './article'; export const User = dbSetup.define( 'user', { firstName: { type: sequelizer.STRING }, lastName: { type: sequelizer.STRING }, username: { type: sequelizer.STRING, allowNull:...
let Promise = require('bluebird'); let plugged = require('../client'); const langfile = require('../../langfile'); const config = require('../load_config'); let utils = require('../utils'); let soundCloudApi = require('../apiConnectors/soundCloud'); module.exports = { name: 'SoundCloudGuard', enabled: true, ...