This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const routes = [ | |
{ | |
method: 'GET', | |
path: '/locations', | |
handler: async (request, h) => { | |
const db = server.app.db; | |
const locationCollection = db.collection('locations'); | |
// query all locations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ubuntu | |
maintainer [email protected] | |
#run apt-get install -y python python-setuptools #python-numpy python-scipy python-pandas | |
#run python easy_install pip logbook gevent zerorpc | |
RUN apt-get -y update | |
RUN apt-get install -y -q software-properties-common | |
RUN apt-get install -y -q python-software-properties | |
RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=C:/Windows/System32/cmd.exe | |
NODE?=node | |
NPM?=npm | |
PEGJS?=node node_modules/pegjs/bin/pegjs | |
MOCHA?=node node_modules/mocha/bin/mocha | |
MOCHA_OPTS?=--recursive | |
JS_COMPILER=node node_modules/uglify-js/bin/uglifyjs | |
JS_COMPILER_OPTS?=--no-seqs | |
all: package.json dagre.js dagre.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
import numpy as np | |
def notN(num): | |
result = num | |
while num > 1: | |
result = result * (num - 1) | |
num -= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Add ECMA262-5 method binding if not supported natively | |
// | |
if (!('bind' in Function.prototype)) { | |
Function.prototype.bind= function(owner) { | |
var that= this; | |
if (arguments.length<=1) { | |
return function() { | |
return that.apply(owner, arguments); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ ArrayBuffer: [Function: ArrayBuffer], | |
Int8Array: { [Function] BYTES_PER_ELEMENT: 1 }, | |
Uint8Array: { [Function] BYTES_PER_ELEMENT: 1 }, | |
Int16Array: { [Function] BYTES_PER_ELEMENT: 2 }, | |
Uint16Array: { [Function] BYTES_PER_ELEMENT: 2 }, | |
Int32Array: { [Function] BYTES_PER_ELEMENT: 4 }, | |
Uint32Array: { [Function] BYTES_PER_ELEMENT: 4 }, | |
Float32Array: { [Function] BYTES_PER_ELEMENT: 4 }, | |
Float64Array: { [Function] BYTES_PER_ELEMENT: 8 }, | |
DataView: [Function: DataView], |