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
| import pdb; pdb.set_trace() # NOCOMMIT |
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
| # Thing to set in interactive sessions of zsh | |
| autoload -Uz vcs_info | |
| # Execute before prompt | |
| precmd() | |
| { | |
| vcs_info || return | |
| } |
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
| #!/bin/sh | |
| if [ "$1" = "" ]; then | |
| echo "Usage: javar class [args...]" | |
| exit 1 | |
| fi | |
| javac $1.java && java $1 |
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
| #!/bin/sh | |
| LOCKFILE=/tmp/meeting_dashboard.lock | |
| COMMAND="$*" | |
| [ "$1" = "" ] && (echo usage $0 command; exit 1) | |
| # Previous run should execute successfully: | |
| [ -f $LOCKFILE ] && exit 0 |
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
| # Conflict resolution with global command ordering and rebasing | |
| class Obj: | |
| def __init__(self, id): | |
| self.matrix = (0, 0, 0, 0) | |
| self.id = id | |
| def __repr__(self): | |
| return "%s" % repr(self.id) |
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
| #!/bin/sh | |
| COLOR="\033[0;32m" | |
| RESET_COLOR="\033[0m" | |
| output() { | |
| echo "$COLOR$1$RESET_COLOR" | |
| } | |
| PUSH=1 |
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
| #!/bin/sh | |
| set -e | |
| status=$(git status -s -uno) | |
| [ "$status" != "" ] && git stash | |
| git pull --rebase |
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
| <html> | |
| <head> | |
| <script> | |
| var canvas; | |
| var points = []; | |
| var timer; | |
| var mousePos; | |
| var prevPos; | |
| function start() { |
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
| var LaserPointer = (function () { | |
| var module = {}; | |
| var canvas; | |
| var points = []; | |
| var timer; | |
| var mousePos; | |
| var prevPos; | |
| var maxLength = 15; | |
| var maxWidth = 5; |
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
| replaceString : String -> String -> String -> String | |
| replaceString input from to = String.join to (String.split from input) | |
| replaceString2 input from to = String.join to <| String.split from input | |
| replaceString3 input from to = String.split from input |> String.join to | |
| replaceString4 input from to = (String.join to . String.split from) input |