This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
README.html |
diff -u xwrits-2.26//main.c xwrits/main.c | |
--- xwrits-2.26//main.c 2009-04-04 01:17:02.000000000 +0400 | |
+++ xwrits/main.c 2010-09-01 14:06:52.531052264 +0400 | |
@@ -10,6 +10,7 @@ | |
#ifdef HAVE_XINERAMA | |
#include <X11/extensions/Xinerama.h> | |
#endif | |
+#include <signal.h> | |
static Options onormal; |
Interested in learning eLisp for Emacs, ever thought you should? | |
I wanted to learn eLisp but there are no decent beginners' book - so I decided to write one - and by decent I mean super-basic starting assuming you know nothing at all. | |
It is my 'official' side-project; something to work on when I am bored or blocked in my main work. | |
You can see how much progress I have made here: | |
http://learn-elisp-for-emacs.org/ | |
The book will get written quicker if other people muck in. |
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
(eval-when-compile | |
(require 'color-theme)) | |
(defun color-theme-solarized (mode) | |
"Color theme by Ethan Schoonover, created 2011-03-24. | |
Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized." | |
(interactive "Slight or dark? ") | |
(let ((base03 "#002b36") | |
(base02 "#073642") | |
(base01 "#586e75") |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Simplest intro to git by github and codeschool - Try Git
[Intro to github]
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail | |
# Make sure you have IMAP enabled in your gmail settings. | |
# Right now it won't download same file name twice even if their contents are different. | |
import email | |
import getpass, imaplib | |
import os | |
import sys | |
detach_dir = '.' |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |