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
exports.shots = function(req, res){ | |
console.log(req.route.params.team); | |
var team = req.route.params.team; | |
Db.connect(mongoUri, function(err, db) { | |
console.log('show all shots!'); | |
db.collection('shots', function(err, coll) { | |
coll.find({'for':team}).sort({'date':-1,'dist':-1}).toArray(function(err, docs) { | |
db.close(); | |
res.render('shots',{shots: docs, team: team}); | |
}); |
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
$ /usr/local/share/npm/bin/jitsu deploy | |
info: Welcome to Nodejitsu ezamir | |
info: jitsu v0.13.2, node v0.10.5 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
warn: **WARNING** Do not use multiple level subdomains, they will be going away soon! | |
info: Analyzing application dependencies in app.js | |
WARN package.json shotdb@0.7.0-191 No repository field. | |
WARN package.json cookie-signature@1.0.1 No repository field. | |
WARN package.json fresh@0.1.0 No repository field. |
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
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<script src='http://polychart.com/s/third_party/polychart2.standalone.js' type='text/javascript'></script> | |
<style> | |
.rChart { | |
display: block; |
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
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb | |
sudo apt-get update | |
# Note that we do upgrade and not dist-upgrade so that we don't install | |
# new kernels; this script will install the nvidia driver in the *currently | |
# running* kernel. | |
# sudo apt-get upgrade -y | |
sudo apt-get install -y git python-pip vim htop | |
sudo apt-get clean |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:92ccaf2e31ad75afe47fb6a382eb103dcec24aac1e52eedb12c28b43112443dc" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style type="text/css"> | |
.link { | |
fill: steelblue; | |
stroke: lightgray; | |
stroke-width: 2px; | |
} |
OlderNewer