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
| ganymede:~/Development/error-quine-generator [master]$ ruby error-quine-generator.rb python | |
| File "/tmp/quine.py", line 1 | |
| File "/tmp/quine.py", line 1 | |
| ^ | |
| IndentationError: unexpected indent | |
| ganymede:~/Development/error-quine-generator [master]$ cat /tmp/quine.py | |
| File "/tmp/quine.py", line 1 | |
| File "/tmp/quine.py", line 1 | |
| ^ | |
| IndentationError: unexpected indent |
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
| quine.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END | |
| quine.rb:1: syntax error, unexpected tI... | |
| ^ |
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
| --- normal.env 2012-03-31 15:13:44.000000000 -0400 | |
| +++ brew.env 2012-03-31 15:14:23.000000000 -0400 | |
| @@ -1,21 +1,35 @@ | |
| Apple_PubSub_Socket_Render=/tmp/launch-0TPw0t/Render | |
| Apple_Ubiquity_Message=/tmp/launch-beOjEY/Apple_Ubiquity_Message | |
| +CC=/usr/bin/clang | |
| +CFLAGS=-Os -w -pipe -march=native -Qunused-arguments | |
| COMMAND_MODE=unix2003 | |
| +CPPFLAGS=-I/usr/local/Cellar/readline/6.2.2/include | |
| +CXX=/usr/bin/clang++ |
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
| #include <stdio.h> | |
| int main(int argc, const char *argv[]) | |
| { | |
| printf("sizeof(char) = %lu\n", sizeof(char)); | |
| printf("sizeof(short) = %lu\n", sizeof(short)); | |
| printf("sizeof(int) = %lu\n", sizeof(int)); | |
| printf("sizeof(long) = %lu\n", sizeof(long)); | |
| printf("sizeof(long long) = %lu\n", sizeof(long long)); | |
| printf("sizeof(float) = %lu\n", sizeof(float)); |
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
| require 'socket' | |
| require 'thread' | |
| s = Socket.new :INET, :STREAM | |
| addr = Socket.pack_sockaddr_in(12345, '127.0.0.1') | |
| s.bind(addr) | |
| s.listen(10) |
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 [ ! -t 0 ]; then | |
| file=/dev/stdin | |
| elif [ -f $1 ]; then | |
| file=$1 | |
| else | |
| echo "Usage: $0 code.c" | |
| exit 1 | |
| fi |
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
| def wrap_and_run(message, *args) | |
| EM.run_bock do | |
| @one_api.send(message, *args) do |response| | |
| return response | |
| end | |
| end | |
| end | |
| wrap_and_run(:send_sms, the_hash) |
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 gevent | |
| from gevent.event import Event | |
| e = Event() | |
| g = gevent.spawn(e.wait) | |
| g.join() |
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
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
| } | |
| # path prompt | |
| export PS1="\h:\w\$(parse_git_branch)\$ " | |
| # make bash use vi mode. You are by default in "insert" mode, so you have to hit escape to get to the commands | |
| set -o vi |
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
| set list listchars=tab:\ \ ,trail:· |