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
def inside_circle(p1, p2): | |
# Return true if p1,p2 is contained within the unit cirle | |
return 0.5 > (((0.5 - p1) ** 2 + (0.5 - p2) ** 2) ** 0.5) | |
def appx_pi(): | |
inside = 0 | |
total = 0 | |
while True: | |
p1 = random.random() |
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 GitHub in some way | |
# Use MongoDB in same way | |
# Use Git in some way | |
# Use EC2 in some way | |
# Use Rackspace in some way. | |
# Idea - hosting platform for apps. | |
# Idea - create and push an app in ten minutes. Like, make an app really quickly. | |
Like, what if you included a PHP file (lib.php) and could start making calls immediately. So we don't just provide library code => we actually provide the compute. |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" | |
<html> | |
<body> | |
<h1>hello, david</h1> | |
</body> | |
</html> |
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
{"foo":"bar"} |
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
#!./svn-branch-export.pl make | |
# this line tells emacs to highlight the file as a -*-shell-script-*- | |
# | |
# This file defines variables used to make the history. | |
# Please confirm the values below before running the script. | |
# | |
#dump_file "" # dump read from standard input | |
# Used to display better progress information: |
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/bin/env python | |
import getpass | |
import os | |
import subprocess | |
import sys | |
############################################################################### | |
# |
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
The refs for tags are the same. | |
01:tagtest(master) jhuttner$ git remote -v | |
origin git@github.com:jhuttner/tagtest.git (fetch) | |
origin git@github.com:jhuttner/tagtest.git (push) | |
01:tagtest(master) jhuttner$ git ls-files | |
foo.txt | |
01:tagtest(master) jhuttner$ echo "barbar" >> foo.txt | |
01:tagtest(master) jhuttner$ git add foo.txt | |
01:tagtest(master) jhuttner$ git commit -m "Add barbar line." |
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
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock | |
# Make it use C-a, similar to screen.. | |
#unbind C-b | |
#unbind l | |
#set -g prefix C-a | |
#bind-key C-a last-window | |
#unbind C-b | |
#set -g prefix C-g |
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
[jhuttner@02.jhuttner.dev.lax1 tmux-1.8]$ cat /home/jhuttner/.tmux.conf | |
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock | |
# Make it use C-a, similar to screen.. | |
#unbind C-b | |
#unbind l | |
#set -g prefix C-a | |
#bind-key C-a last-window | |
#unbind C-b |
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
#!/bin/bash | |
# git-recent | |
# | |
# Call 'git fetch' and log all remote branches that have any activity | |
# in the past n days (default=3). | |
# | |
# Place this script in your PATH, chmod +x it, and git will allow you to magically do: | |
# $ git recent (days) | |
# |