-
You admire a character for trying more than for their successes.
-
You gotta keep in mind what's interesting to you as an audience, not what's fun to do as a writer. They can be v. different.
-
Trying for theme is important, but you won't see what the story is actually about til you're at the end of it. Now rewrite.
-
Once upon a time there was ___. Every day, ___. One day ___. Because of that, ___. Because of that, ___. Until finally ___.
I hereby claim:
- I am lucky on github.
- I am lucky (https://keybase.io/lucky) on keybase.
- I have a public key ASCxvq7c46zLBP1ZwgO16dWp9cCONflB_vfraMNbzILH3Qo
To claim this, I am signing this object:
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
Broadcast message from root (Wed Feb 1 01:26:28 2012): | |
8=======D |
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
scala> var foo:Object = null | |
foo: java.lang.Object = null | |
scala> foo | |
res0: java.lang.Object = null | |
scala> foo = new Object | |
foo: java.lang.Object = java.lang.Object@3b7c680 | |
scala> foo |
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
import time | |
def doit(sec): | |
time.sleep(sec) | |
for i in range(100): | |
print '\a' | |
time.sleep(0.5) | |
doit(240) # 4 minutes |
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
import eventlet | |
import traceback | |
from eventlet.greenio import socket | |
CRLF = "\r\n" | |
CRLF_2 = CRLF * 2 | |
def _handler(sock, addr): | |
print "Got client on %s" % (addr,) | |
sock.settimeout(10) |
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
" Make vim indent 2 spaces for ruby and scala files only | |
filetype plugin indent on | |
set sw=4 | |
set ts=4 | |
:autocmd Filetype ruby set softtabstop=2 | |
:autocmd Filetype ruby set sw=2 | |
:autocmd Filetype ruby set ts=2 | |
:autocmd Filetype scala set softtabstop=2 | |
:autocmd Filetype scala set sw=2 |
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 get_logger(name, level=logging.DEBUG): | |
logging.basicConfig(level=level) | |
return logging.getLogger(name) |
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
# Why did I ever write this? | |
require 'rubygems' | |
require 'eventmachine' | |
module MyClient | |
def receive_data data | |
puts "Got back: #{data}" | |
end |
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
$ ruby foo.rb | |
HURR | |
Hi there! | |
wat |
NewerOlder