Skip to content

Instantly share code, notes, and snippets.

View joemccann's full-sized avatar
💭
Thinking

Joe McCann joemccann

💭
Thinking
View GitHub Profile
@joemccann
joemccann / short-yen-long-nikkei.md
Last active January 1, 2016 19:49
Explaining Short Yen/Long Nikkei Pair Trade.

Recently, I tweeted the following:

Short Yen/Long Nikkei pair trade worked all year; up 57% for 2013. Will continue into 2014 me thinks. http://t.co/llhIzUwHza

— Joe McCann (@joemccann) December 31, 2013
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

And my friend Laurie Voss, @seldo, asked a completely legitmate question:

@joemccann How do you go long the Nikkei without getting clobbered by the fall of the Yen? (I am a noob)

— Laurie Voss (@seldo) December 31, 2013
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
@joemccann
joemccann / jct-at-mother.md
Created December 17, 2013 15:33
Junior Creative Technologist Job At Mother New York

Job Opportunity at Mother NY

##Junior Creative Technologist

Mother New York is a creatively-driven agency in New York City. We exist to attract the most creative minds in the world, including our clients. Our client list includes Burger King, Tanqueray, Stella Artois, Virgin Mobile, Sour Patch Kids, Target, Microsoft and other world-class brands.

We are looking for an individual that can help us ….

Position: Permanent

upstream lb-subprint {
ip_hash;
server 192.241.180.249:3222 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to machine-1
server 192.241.241.152:3222 weight=10 max_fails=3 fail_timeout=30s; # Reverse proxy to machine-2
}
server {
listen 80;
server_name www.subprint.com subprint.com;
rompt: Is this ok?: (yes)
info: Creating snapshot 0.0.1-4
info Uploading: [=============================] 100%
info: Updating app geogram
info: Activating snapshot 0.0.1-4 for geogram
info: Starting app geogram
error: No free servers available. Please visit #nodejitsu on irc.freenode.net or email support@nodejitsu.com for further information.
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
info: Creating snapshot 0.5.1-8
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: No matching versions found
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <support@nodejitsu.com>
help:
@joemccann
joemccann / jitsu.log
Created June 5, 2013 21:23
phantom js fail
info: Creating snapshot 0.4.1-8
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/ejs
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/node-markdown
@joemccann
joemccann / for-zahn.php
Created March 18, 2013 14:04
For Dustin Zahn
<?php
$dirname = "./"; // Change this to your directory; this is the current directory
$dir = opendir($dirname);
while(false != ($file = readdir($dir))){
if(($file != ".") and ($file != "..")){
echo($file);
echo("\n");
@joemccann
joemccann / express-strap.md
Last active June 21, 2020 06:39
Boilerplate for creating an Express app using Boostrap
app="YOUR_APP_NAME"
mkdir $app
cd $app
git init
touch README.MD
echo "$app \n=\nWill add more info soon." >> README.MD 
sudo npm install -g express less uglify-js 
express --css less -e
mkdir vendor
@joemccann
joemccann / index.js
Created February 18, 2013 04:12
voxel.js game
var createGame = require('voxel-engine')
function sphereWorld(x, y, z) {
// return the index of the material you want to show up
// 0 is air
if (x*x + y*y + z*z > 15*15) return 0
return 3
}
var game = createGame({
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: package.json error: can't find starting script: node app
error: Package.json start script declared but not found
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error: