Public Gists by retiman

gist: 216402 Firefox cheat sheet
Gravatar
Thu Oct 22 15:27:06 -0700 2009
1
2
3
// Usage:
// var file = fopen("/tmp/firefuck.txt");
// file.writeString("Hello, sir. How are you?\n");
gist: 211140 Vim cheat sheet
Gravatar
Thu Oct 15 11:00:21 -0700 2009
1
2
3
" Change tabs to 2 spaces
:retab 2
 
gist: 202556 JavaScript cheat sheet
Gravatar
Mon Oct 05 15:29:09 -0700 2009
1
2
3
// Javascript Arrays already have:
// Array.indexOf
// Array.lastIndexOf
gist: 165755 Vimperator cheat sheet
Gravatar
Tue Aug 11 04:34:50 -0700 2009
1
2
3
t {url} Open a new tab
w {url} Open a new window
o {url} Open a new url
gist: 160966 Ruby cheat sheet
Gravatar
Mon Aug 03 18:30:12 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
def a_proc
gist: 160337 Dota bindings for AutoHotkey
Gravatar
Sun Aug 02 19:42:41 -0700 2009
1
2
3
#ifWinActive, Warcraft III
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
gist: 147349 Haskell cheat sheet
Gravatar
Tue Jul 14 17:44:42 -0700 2009
1
2
3
module RecursiveContents (getRecursiveContents) where
 
import Control.Monad (forM)
gist: 147347 Haskell cheat sheet
Gravatar
Tue Jul 14 17:38:26 -0700 2009
1
2
3
-- A typeclass is more like a Java interface
-- An implementor only has to implement one of the two, not both ..Equal funcs!
-- This is not compiler enforced though (obviously).
gist: 130388 Java cheat sheet
Gravatar
Mon Jun 15 15:24:53 -0700 2009
1
2
3
public class JavaWTF {
    public static void main(String[] args) {
        System.out.println(isSame(127, 127));
gist: 110323 Scala cheat sheet
Gravatar
Mon May 11 22:17:27 -0700 2009
1
2
3
/**
* A coalescing operator in Scala.
*
gist: 86440 Scheme cheat sheet
Gravatar
Thu Mar 26 16:21:19 -0700 2009
1
2
3
(define make-range
  (lambda (begin end)
    (if (> begin end)
gist: 74269 JSP custom URL tag
Gravatar
Thu Mar 05 01:33:16 -0800 2009
1
2
3
package my.custom.tags;
 
import java.io.UnsupportedEncodingException;
gist: 74266 Email validation
Gravatar
Thu Mar 05 01:30:03 -0800 2009
1
2
3
public static boolean validateEmail(String email) {
  if (email == null)
    return false;