- Ada
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
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
'''tail recursion decorator''' | |
from functools import wraps | |
class Continue(): pass | |
def tail_recursive(func): | |
first_call = True | |
CONTINUE = Continue() | |
args_kwd = None |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="src" path="src"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> | |
<classpathentry kind="output" path="bin"/> | |
</classpath> |
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
my settings |
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
Top (good answer): CodeIQ Haskell (ghc-7.8) | |
Bottom (wrong answer): paiza Haskell (ghc-7.6.2) | |
708010: count -> 2869584, index -> 2299 | |
616490: count -> 120805, index -> 2082 | |
count diff: 2748779, index diff: 217 | |
143850: count -> 3160493, index -> 2583 | |
945130: count -> 411714, index -> 2366 | |
count diff: 2748779, index diff: 217 |
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
#NoEnv | |
; #InstallKeybdHook ; DEBUG: to get KeyHistory | |
; #SingleInstance ; auto-op with hot-keys | |
#+r::Reload | |
; Switch Suspension | |
^+f::Suspend,On | |
^+j::Suspend,Off |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Configs = $(wildcard conf.d/*.conf) | |
config: $(Configs) | |
echo '# ssh' | \ | |
cat - $^ > $@ | |
[ -e px ] && $(call SHPX, $@) | |
define SHPX | |
perl -p -i -e 's/^# sh\(.*\)/join "\n", px{$1}/e' $1 | |
endef |
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
module Extended | |
refine Object do | |
alias_method :eigenclass, :singleton_class | |
# http://melborne.github.io/2012/07/12/object-repeat-take-care-of-sequence/ | |
def repeat(init = true) # assume &block is given | |
x = self | |
Enumerator.new do |y| | |
y << x if init | |
loop { y << (x = yield x) } |
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
SELECT relname, reltuples, (relpages / 128) as mbytes, (relpages * 8192.0 / (reltuples + 1e-10)) as average_row_size FROM pg_class ORDER BY mbytes DESC; |
OlderNewer