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
#define v putchar | |
# define print(x) main(){v(4+v(v(52)-4));return 0;}/* | |
#>+++++++4+[>++++++<-]>++++.----.++++.*/ | |
print(202*2);exit(); | |
#define/*>.@*/exit() |
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
install-info.exe /usr/share/info/guile.info.gz /cygdrive/c/Program\ Files/emacs-24.1/info/dir |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; golang mode | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(add-to-list 'load-path "C:/go/misc/emacs/") | |
(require 'go-mode-load) |
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
(defun distl (m N) | |
(cond | |
((null N) nil) | |
(t (cons (list m (car N)) | |
(distl m (cdr N)))))) | |
(print (distl 'b '(x y z))) | |
(defun cartesian (M N) | |
(cond | |
((null M) nil) |
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
#!/usr/bin/python | |
import os | |
import sys | |
import getopt | |
import re | |
import os.path | |
def main(): |
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
find . -type f -regex '.*\ .*' | awk '{gsub(/\(/,"\\(",$0);gsub(/\)/,"\\)",$0);gsub(/\ /,"\\ ",$0);orig_fname=$0;gsub(/ /,".",$0);system("mv -v " orig_fname " " $0)}' |
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
(use 'clojure.string) | |
(defn gen-rnd-idx-seq [s] | |
(let [ordered-idx (range (count s)) | |
randomed-idx (map #(rand-int %) ordered-idx) | |
arrayed-s (into-array s)] | |
(join (reduce #(let [foo-idx (first %2) | |
bar-idx (last %2) | |
foo (nth arrayed-s foo-idx) | |
bar (nth arrayed-s bar-idx)] |
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
(defun insert-textual-timestamp-in-diary () | |
;; Set timestamp insert function. This function comes from | |
;; http://www.patd.net/~ciggieposeur/other/startup.el | |
;; RFC 3339 and ISO 8601 | |
(interactive "*") | |
(insert | |
(concat "[" | |
(format-time-string "%Y-%m-%dT%T%z" (current-time)) | |
"] "))) | |
(global-set-key (kbd "C-c 1 `") 'insert-textual-timestamp-in-diary) |
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
package org.coursera.algs4partII002.perf; | |
import org.junit.Test; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Scanner; | |
import java.util.StringTokenizer; |
OlderNewer