start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| set -o errexit | |
| set -o nounset | |
| if [[ ${#} -ne 1 ]] | |
| then | |
| echo "Usage: ${0} upstart-conf-file" >&2 | |
| exit 1 | |
| fi |
| /* | |
| PutCallFlag: Either "put" or "call" | |
| S: Stock Price | |
| X: Strike Price | |
| T: Time to expiration (in years) | |
| r: Risk-free rate | |
| v: Volatility | |
| This is the same one found in http://www.espenhaug.com/black_scholes.html | |
| but written with proper indentation and a === instead of == because it's |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" type="text/css" media="screen" /> | |
| <!-- when.js Promises implementation --> | |
| <script src="https://raw.github.com/cujojs/when/master/when.js"></script> | |
| <!-- Unit testing and mocking framework --> | |
| <script type="text/javascript" src="http://code.jquery.com/qunit/git/qunit.js"></script> |
| #!/usr/bin/env python | |
| """Epic script to rename scary uppercase extensions (like .JPG) to | |
| more friendly lowercase (like .jpg). | |
| How to use | |
| ========== | |
| Recursively rename all files in the current directory:: | |
| fixext |
| /* Returns probability of occuring below and above target price. */ | |
| function probability(price, target, days, volatility) { | |
| var p = price; | |
| var q = target; | |
| var t = days / 365; | |
| var v = volatility; | |
| var vt = v*Math.sqrt(t); | |
| var lnpq = Math.log(q/p); |