This file contains hidden or 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; | |
| } |
This file contains hidden or 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": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 src="http://d3js.org/d3.v2.js"></script> | |
| </head><link rel="stylesheet" href="/stylesheets/bootstrap/docs/assets/css/bootstrap.css"> | |
| <body> | |
| <div class="hero-unit"> | |
| <h1>Warriors</h1> | |
| </div> |
This file contains hidden or 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
| extends layout | |
| block content | |
| div.hero-unit | |
| h1 #{shots[0].for} | |
| div.row | |
| div.span2.offset1 | |
| svg(width=600,height=600) | |
| each shot in shots |
NewerOlder