code
stringlengths
2
1.05M
'use strict'; // MODULES // var isPositive = require( 'validate.io-positive-primitive' ); // MEDIAN // /** * FUNCTION median( v ) * Computes the distribution median for a Student t distribution with parameter v. * * @param {Number} v - degrees of freedom * @returns {Number} distribution median */ function median( ...
// Define default globals to be changed later var enterCode = "0000"; // Default PIN code var tries = 0; // PIN code tries var dragging = false; // User is dragging on screen var swish = ""; var state = {}; // State variable state.current = null; // Active user element state.processing = 0; // Processing a payment stat...
class friendsList{ constructor(unformattedList){ this.username = unformattedList.name this.id = unformattedList.id this.dateAdded = unformattedList.date } } module.exports = friendsList
var expect = require('../test_helper').expect; var assert = require('../test_helper').assert; /* istanbul ignore next */ describe('root route', function () { var server, route; before(function (done) { var db = require(__main_root + 'db/DB.js'); db.instance.sync().then(function () { ...
import { NavigationActions } from 'react-navigation' const getNavigationParam = ( navigation, param ) => { if ( navigation.state && navigation.state.params ) { if ( navigation.state.params.hasOwnProperty( param ) ) { return navigation.state.params[ param ] } } return '' } const getCurrentRouteName...
const join = (sep, arr) => Array.prototype.join.call(arr, sep); export { join };
({ baseUrl: '.', name: 'lib/almond', include: ['main'], wrap: true })
var jwt = require('jsonwebtoken'); var config = require('../config.js'); var _authorizeID = function(req, res, next) { var token = req.headers['x-access-token']; if (token) { jwt.verify(token, config.sekretoJWT, function(err, decoded) { if (err) { return res.status(403).send({ success: false, ...
////////////////////////////////////////////////////////////////////////// // // // This is a generated file. You can view the original // // source in your browser if your browser supports source maps. // // Source maps are s...
angular .module('app') .controller('homeController', [ '$rootScope', '$scope', function($rootScope, $scope) { // this allows us to auto set login credentials based on demo path $scope.loginAs = function(userType) { $rootScope.goTo('/login?demo=' ...
'use strict'; const path = require('path'); const { promisify } = require('util'); const helpers = require('yeoman-test'); const GENERATOR_DIRECTORY = path.join(__dirname, 'temp'); async function createGeneratorDirectory () { await promisify(helpers.testDirectory)(GENERATOR_DIRECTORY); } async f...
var WebSocketServer = require('websocket').server , config = require('./../etc/config.json') var plugins = {}; var validPlugins = []; var subscribers = {}; var wsServer; function notifySubscribers(pl, mess) { var sp = pl.split('.'); var plugin = sp[0]; var graph = sp.slice(1).join('.'); mess.name ...
(function () { 'use strict'; angular .module('app', ['ui.router', 'ngMessages', 'ngStorage', 'xeditable', 'cgNotify']) .config(config) .run(run); function config($stateProvider, $urlRouterProvider) { // default route $urlRouterProvider.otherwise("/"); // a...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; /** * FsFile Schema */ const FsFileSchema = new Schema({ filename: { type: String, required: 'File name is required' }, length: { type: Number }, contentType: { type: String }, uploadDate: { type: Date }, met...
$(function(){ $(".drawer").drawer(); // Initiate Fast Click for faster touch support FastClick.attach(document.body); // HEADROOM.js // grab an element var myElement = document.getElementById("navbar"); // construct an instance of Headroom, passing the element var headroom = new Headroom(myElement); // ini...
(function () { function getTags() { var self = this; } angular.module('clipto') .factory('GetTags', [getTags]) }());
import KLTable from './src/table.vue'; KLTable.install = function(Vue) { Vue.component(KLTable.name, KLTable); }; export default KLTable;
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M4 17.17L5.17 16H20V4H4v13.17zm6.43-8.74L12 5l1.57 3.43L17 10l-3.43 1.57L12 15l-1.57-3.43L7 10l3.43-1.57z" opacity=".3" /><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2...
'use strict'; const path = require('path'), migrator = require(path.resolve('./custom_functions/advanced_settings_migrator.js')), winston = require("winston"); module.exports = { up: (queryInterface, Sequelize) => { return migrator.migrate(queryInterface, { operation: 'add', path: '.', nam...
var gulp = require('gulp'), file = require('gulp-file'), filenames = require('gulp-filenames'), gulpif = require('gulp-if'), imagemin = require('gulp-imagemin'), beautify = require('gulp-jsbeautify'), rename = require('gulp-rename'), uglify = require('gulp-uglify'), Elixir = require('lar...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { PropTypes } from 'react'; import withStyle...
module.exports = require('./dist/medium');
import React, { Component, PropTypes } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Button } from 'react-bootstrap'; import FieldGroupComp from '../FieldGroup'; import AlertMessageComp from '../AlertMessage'; class Signup extends Component { static propTypes = { onSubm...
if (typeof Sizzle.selectors.pseudos.hidden == 'undefined') { Sizzle.selectors.pseudos.hidden = Sizzle.selectors.createPseudo(function() { return function(el) { return (el.offsetWidth <= 0 || el.offsetHeight <= 0) } }); }
export { default as AsyncBundle } from './AsyncBundle'; export { default as AsyncRoute } from './AsyncRoute'; export { default as asyncInjectors } from './asyncInjectors';
import React from 'react' import Accounts from './Accounts/Accounts' import OrderForm from './OrderForm/OrderForm' import './Sidebar.css' export default props => ( <div className='sidebar'> <Accounts /> <OrderForm /> </div> )
var shared = require('./shared.js'); var _ = require('lodash'); var data = null; var start = function(_data) { console.log("open tables started"); data = _data; poll(); } var poll = function() { var mysql = data.connections.mysql; var statsd = data.connections.statsd; var startMs = Dat...
#!/usr/bin/env node const Mustache = require("mustache"); const path = require("path"); const fs = require("fs"); const fsp = fs.promises; const { renderDocForName, renderIndexJson } = require("./render-api"); const root = path.resolve(path.join(__dirname, "..")); const repository = "https://github.com/crucialfelix/s...
require( "../setup" ); var os = require( "os" ); var controlFn = require( "../../src/control" ); var fsm = { reset: _.noop, start: _.noop, stop: _.noop }; function getConfig() { return require( "../../src/config.js" )( { index: { frequency: 100 }, package: { // jshint ignore : line branch: "master", ...
/* ----------------------------------------------- /* How to use? : Check the GitHub README /* ----------------------------------------------- */ /* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ /* particlesJS.load('particles-js', 'particles.json', function() { console.log...
var searchData= [ ['terminateapp',['terminateApp',['../interface_app_controller.html#ae0129a03b62ed931ba468b50575661db',1,'AppController']]], ['termio',['termio',['../class_p_v_r_shell_init_o_s.html#a3b3c814c7c4cab3433bd4ac8e66606c5',1,'PVRShellInitOS']]], ['termio_5forig',['termio_orig',['../class_p_v_r_shell_in...
import React from "react"; import { mount } from "enzyme"; test("react/multiple: test trim spaces functionality", () => { require("../../../src/inputs/multiple"); require("../../../src/plugins/tokenizer"); require("../../../src/templates"); const SelectivityReact = require("../../../src/apis/react").de...
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update }); function preload() { game.load.tilemap('level3', 'assets/tilemaps/maps/cybernoid.json', null, Phaser.Tilemap.TILED_JSON); game.load.image('tiles', 'assets/tilemaps/tiles/cybernoid.png', ...
import m from 'mithril'; import prop from 'mithril/stream'; import mq from 'mithril-query'; import userBalanceRequestModelContent from '../../src/c/user-balance-request-modal-content'; import { catarse } from '../../src/api'; import models from '../../src/models'; xdescribe('UserBalanceRequestModalContent', () => { ...
module.exports = { transform: { '^.+\\.js$': '<rootDir>/jest.transform.js' } }
/* * Copyright (C) 2015 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ /** * @exports SurfaceRenderable * @version $Id: SurfaceRenderable.js 3351 2015-07-28 22:03:20Z dcollins $ */ define(['../util/Logger', ...
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import injectIntl from '../utils/injectIntl'; import GlobalLeaderBoards from './GlobalLeaderBoards'; import LeaderBoard from './LeaderBoard'; imp...
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/svg-icons/maps/local-movies": require('material-ui/svg-icons/maps/local-movies') } }, name: "MapsLocalMovies", ports: { input: {}, output: { component: { ...
'use strict'; function wait (time) { return new Promise((fulfill) => { setTimeout(fulfill, time); }); } module.exports = wait;
import React from 'react' import { render } from 'react-dom' import HandsUpApp from './components/HandsUpApp' import { ApolloProvider } from 'react-apollo' import { client } from './client' import { createStore, combineReducers, applyMiddleware, compose } from 'redux' import { HashRouter, Route } from 'react-router-do...
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import userStore from '../stores/users'; import UserTeaser from './UserTeaser'; class UserList extends React.Component { constructor() { super(); this.state = {}; userStore.findAll() .then(users => this.setState({ users...
'use strict'; var _ = require('underscore'); var utils = require('./utils'); module.exports = EntityLookup; function EntityLookup() { var entities = {}, noWhiteSpaceEntities = {}, entityProcessors = {}, versionCheckers = {}, self = this; this.configureEntity = function(entityName, processors, v...
/******************************************************************************* * Copyright 2013-2014 Aerospike, Inc. * * 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://ww...
'use strict'; function SettingCopyCtrl($scope, Utils, $modal, SettingsRepository) { var vm = this; var viewPath = 'gzero/admin/views/settings/directives/'; // Copy modal vm.copyModal = { /** * Function initiates the AngularStrap modal * * @param title translatable tit...
export default { props: { foo: true, bar: true }, html: '<div class="foo bar"></div>', test({ assert, component, target }) { component.foo = false; assert.htmlEqual(target.innerHTML, ` <div class="bar"></div> `); } };
var componentsUtil = require("./util"); var runtimeId = componentsUtil.___runtimeId; var componentLookup = componentsUtil.___componentLookup; var getMarkoPropsFromEl = componentsUtil.___getMarkoPropsFromEl; var TEXT_NODE = 3; // We make our best effort to allow multiple marko runtimes to be loaded in the // same wind...
'use strict'; /** * Logger module */ const winston = require('winston'); const mkdirp = require('mkdirp'); const time = require('./time'); const config = require('../config/config'); const LOG_DIR = config.logging.pathDir; const FORMAT_TIME = 'DD/MM/YYYY HH:mm:ss:SSS'; const transports = []; const console = new wi...
/** * The `Matter.Engine` module contains methods for creating and manipulating engines. * An engine is a controller that manages updating the simulation of the world. * See `Matter.Runner` for an optional game loop utility. * * See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples)...
'use strict'; // MODULES // var isArray = require( 'validate.io-array' ), isObject = require( 'validate.io-object' ), isBoolean = require( 'validate.io-boolean-primitive' ), isFunction = require( 'validate.io-function' ); // CUMULATIVE PRODUCT // /** * FUNCTION: cprod( arr[, options] ) * Computes the cumulative...
/** * Definition for a binary tree node. * function TreeNode(val, left, right) { * this.val = (val===undefined ? 0 : val) * this.left = (left===undefined ? null : left) * this.right = (right===undefined ? null : right) * } */ /** * @param {TreeNode} root * @return {TreeNode} */ var subtreeWithAllD...
define( [ 'js/app', 'marionette', 'handlebars','jqueryuitouch', 'text!js/views/Erosketak/erosketak.html'], function( App, Marionette, Handlebars,jqueryuitouch, template) { //ItemView provides some default rendering logic return Marionette.ItemView.extend( { //Template HTML string ...
import * as authSaga from '../../src/sagas/auth.saga'; import * as types from '../../src/constants/actionTypes'; import {call, put} from 'redux-saga/effects'; import * as api from '../../src/connectivity/api.auth'; describe('Auth Saga', () => { describe('doLogin', () => { it('has a happy path', () => { ...
var userModel = __MODEL.User, roleModel = __MODEL.Role, then = require("thenjs"); exports.add = function (req, res) { var role = new roleModel({ name: req.body.name, description: req.body.description, menu: req.body.menu }); role.save(function (err, doc) { __REST.htt...
define([ 'backbone', 'hbs!tmpl/item/jui-dialog-view', 'TweenMax', 'jui-commons' ], function( Backbone, tmpl ) { 'use strict'; /* Return a ItemView class definition */ return Backbone.Marionette.ItemView.extend({ template: tmpl, ui: { content1: '.dialog-content-1', ...
/* eslint-disable max-len */ import { FETCH_GROUP_TIMETABLE } from '../constants'; import { request } from './helpers'; export function fetchGroupTimetable({ groupId, date }) { // eslint-disable-line import/prefer-default-export const url = `/api/team/${groupId}?date=${date}`; return { type: FETCH_GROUP_TIMET...
(function() { describe('simditor-mark', function() { var destroySimditor, editor, generateSimditor, simditor; editor = null; simditor = null; generateSimditor = function() { var $textarea, content; content = '<p>Simditor 是团队协作工具 <a href="http://tower.im">Tower</a> 使用的富文本编辑器。</p>\n<p>相比传统的编...
version https://git-lfs.github.com/spec/v1 oid sha256:a7b301f9a70de9b9d79b9e3e50478ecf24175ec6848a63cbaa195b72931db38b size 18139
/** * @ignore * io xhr transport class, route subdomain, xdr * @author yiminghe@gmail.com */ KISSY.add(function (S, require) { var IO = require('./base'), XhrTransportBase = require('./xhr-transport-base'), XdrFlashTransport = require('./xdr-flash-transport'), SubDomainTransport = requir...
/* * Home Actions * * Actions change things in your application * Since this boilerplate uses a uni-directional data flow, specifically redux, * we have these actions which are the only way your application interacts with * your appliction state. This guarantees that your state is up to date and nobody * messes ...
module.exports = MongoStorage; var RecursorRepository = require("../ports/RecursorRepository"); var util = require("util"); var _ = require("underscore"); function MongoStorage(recursorName, recursorCollection) { if (!(this instanceof MongoStorage)) return new MongoStorage(recursorName, recursorCollection); this....
// author: InMon Corp. // version: 2.0 // date: 8/2/2017 // description: Fabric View - Custom TopN module // copyright: Copyright (c) 2017 InMon Corp. ALL RIGHTS RESERVED include(scriptdir()+'/inc/common.js'); include(scriptdir()+'/inc/trend.js'); var userFlows = {}; var maxFlows = 10; var specID = 0; function flowS...
var Layout = { view: function(vnode) { var isAdmin = false; if (Session.getProfile()) { isAdmin = Session.getProfile().groupMemberships.indexOf("Administrators") != -1; } var area = null; var route = m.route.get(); if (route == "/secrets" || rout...
/** * app.js * * This is the entry file for the application, only setup and epiaggregator * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; imp...
var TodosApp = angular.module('TodosApp', []); TodosApp.controller('TodosCtrl', ['$scope', 'database', function($scope, database){ $scope.todosArray = database.todosArray() $scope.newTodo = '' $scope.addTodo = function(){ let newTodo = {task: $scope.newTodo, completed: false} if (newTodo.task ==...
'use strict'; /** * @ngdoc function * @name upit.controller:MainCtrl * @description # Paste Module */ angular.module('upit-web.upitRestApi') .factory('UploadedFileResource', ['$q', 'SimpleResourceClient', function ($q, SimpleResourceClient) { var self = this; var resourceContext = { resourceName: ...
import { Meteor } from 'meteor/meteor' import { check } from 'meteor/check' import { Mongo } from 'meteor/mongo' import { _ } from 'meteor/underscore' import { EJSON } from 'meteor/ejson' import { MongoID } from 'meteor/minimongo' import { CollectionExtensions } from 'meteor/lai:collection-extensions' const Decimal = ...
/** * MVCApp * © 2011 Studio Melonpie */ var App = { controllers: {}, _controller: null, android: null, iphone: null, toArray: function(o) {return Array().slice.call(o)}, controller: function(c) {App._controller = c}, create: function(what, params) { var method = 'create' + what; params = params || {}; ...
 function Logo() {} Logo.prototype.init = function( w, h ) { var zindex = 10; var el, els, body = document.body; var me = this; el = this.traceTF = document.createElement("div"); els = el.style; el.innerHTML = "trace"; body.appendChild( el ); els.position = "absolute"; els.fontSize = "9px"; els.left = "16...
$(function() { function clickTarget() { var stopAllEnabled = false; var deleteAllEnabled = false; $(".checkTarget:checked").each(function(){ if($(this).data('status') != '2') { stopAllEnabled = true; deleteAllEnabled = false; return false; } else { ...
import app from 'flarum/app'; import AkismetSettingsModal from 'akismet/components/AkismetSettingsModal'; app.initializers.add('akismet', () => { app.extensionSettings.akismet = () => app.modal.show(new AkismetSettingsModal()); });
import $ from 'jquery'; import Backbone from 'backbone'; import Marionette from 'backbone.marionette'; import Responder from '../../responder/contacts/index'; import Contacts from '../../domain/contacts/repository'; export default Marionette.Object.extend({ initialize: function(App) { this.app = App; ...
module.exports = (req, res, next) => { const err = new Error('Not Found'); err.status = 404; next(err); };
/* @flow */ /* eslint-disable no-param-reassign */ import { ObjectTypeComposer, graphql } from 'graphql-compose'; import type { GraphQLFieldConfig } from 'graphql'; import elasticsearch from 'elasticsearch'; import ElasticApiParser from './ElasticApiParser'; const DEFAULT_ELASTIC_API_VERSION = '_default'; const { Gra...
var structtesting_1_1gmock__more__actions__test_1_1_sum_of6_functor = [ [ "operator()", "structtesting_1_1gmock__more__actions__test_1_1_sum_of6_functor.html#adc0cc4dbd423db7298497b8a9630067e", null ] ];
function getChartData(){ var options=myChart1.getOption(); var date=new Date(); var d=date.getDate(); var param=$.trim(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()); //alert(param); $.ajax({ url:"${pageContext.request.contextPath}/showCommonAction/show_data1_gangying", //data:{param:param...
// Chris Kayode Samuel // Github: Alayode // Email : ksamuel.chris@icloud.com //Description: understanding the caution when using closures with loops //Now that the danger zones and obstacles are in order and ready to be dealt // with , the Dev Girls need your assistance with directing the Cold Closures //Cove...
/** * @fileOverview server.page test suite * @author Max **/ const assert = require('assert'); const PageUtils = require('../../dist/server/page/utils'); const exportConfigToGlobalConst = PageUtils.exportConfigToGlobalConst; const testObj = { 'A': 1, 'B': { "C": '222', "@D": 5, "E":...
module.exports = require('./lib/index')
!function(window){ var algo = algo || {}; var operation = { REMOVE_ORIGIN: 0, //从源数组删除 INSERT_ORIGIN: 1, //在源数组插入 UPDATE_ORIGIN: 2, //更新数组元素 SWAP_ORIGIN: 3, //在源数组交换位置 REMOVE: 4, //删除 INSERT: 5, //插入 SWAP: 6, //交换位置 COMPARE...
(function(module) { function Project(projObj) { for (var key in projObj) { this[key] = projObj[key]; } for (var key in this.code) { this.codehtml = this.codehtml + '<p>'+ key + ': ' + this.code[key] + ' lines</p>'; } }; Project.projects = []; Project.toHTML = function(whichStuff, ...
/** * Smokescreen Player - A Flash player written in JavaScript * http://smokescreen.us/ * * Copyright 2011, Chris Smoak * Released under the MIT License. * http://www.opensource.org/licenses/mit-license.php */ define(function(require, exports, module) { var ext = require('lib/ext') var env = require('lib/env'...
import React from 'react'; import TrialItem from '../../../containers/TimelineNodeOrganizer/SortableTreeMenu/TrialItemContainer'; import TimelineItem from '../../../containers/TimelineNodeOrganizer/SortableTreeMenu/TimelineItemContainer'; class TreeNode extends React.Component { render() { const { id, chil...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var mongo = require('mongodb'); var monk = require('monk'); var db = monk('localhost:27017/filmList...
'use strict'; // Declare app level module which depends on filters, and services angular.module('kidClock', [ //'ngRoute', '$strap.directives', 'kidClock.filters', 'kidClock.services', 'kidClock.directives', 'kidClock.controllers' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.w...
// - $.ui.msg $.ui.msg(Function func) // - $.ui.msg $.ui.msg(Function func, $.dom dom) RAON.ui.msg = RAON.toFnStClass(function(func, dom) { var attr = RAON.ui.msg._DAT; var body = RAON.ui.msg._DAT_BODY; if (arguments.length == 0) { var el = RAON.findsAttr(attr); for (var i = 0 ; i < el.length ; ...
// Define a koa server to host the universal web app import path from 'path'; import koa from 'koa'; import serveStatic from 'koa-static'; import favicon from 'koa-favi'; import jade from 'koa-jade'; import React from 'react'; import resolveAssetPath from './resolveAssetPath'; import HelloWorld from '../app/component...
import clientEnv from '../../client-env'; function renderer(view, locals) { return function* () { let webpackAssets = {}; try { webpackAssets = require('../../webpack-assets.json'); } catch (err) { console.log('webpack-assets.json is not ready.'); } const newLocals = { ...webp...
// All spec files must be required by `./spec/unit/spec.js`. // You are free to add a directory-importing Browserify transform, but // Watchify may be unable to detect spec file changes. Also, gulp.watch does // not watch for new or deleted files. import './example_spec';
export default function (params = {}) { //let count, // currentRowIndex, // currentCellIndex, // table = table, // page = parseResult.pages[currentPageIndex], // body = table ? this._getTableBody(table) : null, // row = body ? body[body.children.length - 1] : null; // ...
angular.module('app') .factory('MessageService', ['$rootScope', '$pubnubChannel','currentUser', function MessageServiceFactory($rootScope, $pubnubChannel, currentUser) { // We create an extended $pubnubChannel channel object that add a additionnal sendScore method // that publish a score with the name of th...
var scene = document.getElementById('animation-mer'); var parallax = new Parallax(scene);
import * as assert2 from "./assert2.js"; export function find(a, fn) { for (let i = 0; i < a.length; i++) { const item = a[i]; if (fn(item)) return item; } return null; } export function merge() { const tar = arguments[0]; const fn = arguments[arguments.length - 1]; for (let a = 1; a < arguments.l...
const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const cors = require('cors'); const passport = require('passport'); const mongoose = require('mongoose'); const config = require('./config/database'); //Connect to database mongoose.connect(config.database, { ...
(function() { var tests = { testIterArray: function(test) { test.expect(5); var iter = sloth.iterArray([1, 2, 3, 4]); test.strictEqual(1, iter()); test.strictEqual(2, iter()); test.strictEqual(3, iter()); test.strictEqual(4, iter()); ...
/** * AuthenticateModule - Module for authenticating users through their accesstoken * * */ var User = require('../models/user.model.js'); var exports = module.exports; exports.isValid = function(accessToken) { var query = User.findOne({accesstoken: accessToken}); return query.exec(); };
import ApplicationSerializer from 'ember-fhir-adapter/serializers/application'; var ClinicalImpressionInvestigationsComponent = ApplicationSerializer.extend({ attrs:{ code : {embedded: 'always'}, item : {embedded: 'always'} } }); export default ClinicalImpressionInvestigationsComponent;
module.exports = function() { //set paths this .path('{{name}}' , this.path('package') + '/{{name}}') .path('{{name}}/action' , this.path('package') + '/{{name}}/action') .path('{{name}}/event' , this.path('package') + '/{{name}}/event') .path('{{name}}/template' , this.path('package') + '/{{name}}/templat...
"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...
const assert = require('chai').assert, expect = require('chai').expect, five = require('johnny-five'), placeholder = require('../lib/placeholder-io');; describe('ping', function () { var board; before(done => { board = new five.Board({ io: new placeholder() }).on('ready', done); ...
#!/usr/bin/env node // jshint asi:true /** * Should be called via npm run * * Ensures that all slides exists */ 'use strict'; var _ = require('underscore/underscore') var exec = require('child_process').exec var slides = _.flatten(require(process.cwd() + '/slides/list.json')) slides.forEach(function(f) { exec(...