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
/Applications/Sublime Text 2.app/Contents/MacOS | |
♆ > otool -L Sublime\ Text\ 2 | |
Sublime Text 2: | |
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0) | |
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0) | |
/System/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.1) | |
@loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle (compatibility version 1.5.0, current version 1.5.0) | |
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 55002.0.0) | |
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) | |
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) |
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
AA = Rickard Stark (M) AB = Eddard Stark (M) AC = Catelyn Tully (F) | |
AD = Brandon Stark (M) AE = Benjen Stark (M) AF = Jon Snow (M) | |
AG = Robb Stark (M) AH = Sansa Stark (F) AI = Arya Stark (F) | |
AJ = Bran Stark (M) AK = Rickon Stark (M) AL = Hoster Tully (M) | |
AM = Minisa Whent (F) AN = Edmure Tully (M) AO = Lysa Tully (F) | |
AP = Jon Arryn (M) AQ = Robert Arryn (M) AR = Tytos Lannister (M) | |
AS = Tywin Lannister (M) AT = Joanna Lannister (F) AU = Kevan Lannister (M) | |
AV = Cersei Lannister (F) AW = Jamie Lannister (M) AX = Tyrion Lannister (M) | |
AY = Robert Baratheon (M) AZ = Joffrey Baratheon (M) BA = Myrcella Baratheon (F) | |
BB = Tommen Baratheon (M) BC = Lancel Lannister (M) BD = Steffon Baratheon (M) |
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
(ns sudoku | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defn get-square [rows x y] | |
(for [x (range x (+ x 3)) | |
y (range y (+ y 3))] | |
(get-in rows [x y]))) | |
(defn init [vars hints] |
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
<div id="entry"> | |
<div class="post"> | |
<div class="date"></div> | |
<div class="body"></div> | |
</div> | |
<div class="post"> | |
<div class="date"></div> | |
<div class="body"></div> | |
</div> | |
</div> |
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
(define repeated-mulo | |
(lambda (n q nq) | |
(conde | |
((poso n) (== '() q) (== '(1) nq)) | |
((== '(1) q) (== n nq)) | |
((>1o q) | |
(fresh (q_1 nq1) | |
(+o q_1 '(1) q) | |
(repeated-mulo n q_1 nq1) | |
(*o nq1 n nq))) |
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
(ns lisp-ch1) | |
(def self-evaluating? | |
(some-fn number? string? char? | |
true? false? vector?)) | |
(defn -atom? [s] | |
(or (self-evaluating? s) | |
(symbol? s))) |
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
;; matrix M | |
;; 0 1 2 3 | |
;; ========== | |
;; 0: 1 0 0 1 | |
;; 1: 0 0 1 0 | |
;; 2: 0 1 0 1 | |
;; 3: 1 0 1 1 | |
;; 4: 0 0 1 0 | |
;; index correspond to checking rows of M |
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 books | |
{{:title "Eloquent Ruby" :tags [:ruby]} | |
{:title "Design Patterns in Ruby" :tags [:ruby :oop]} | |
{:title "Practical Object-Oriented Design in Ruby" :tags [:ruby :oop]} | |
{:title "Let Over Lambda" :tags [:common-lisp :lisp :fp]} | |
{:title "Pearls of Functional Algorithms" :tags [:haskell :fp]} | |
{:title "Functional Data Structures" :tags [:ml :haskell :fp]} | |
{:title "Learn You a Haskell for Great Good" :tags [:haskell :fp]} | |
{:title "The Little MLer" :tags [:ml :fp]} | |
{:title "Hadoop: The Definitive Guide" :tags [:java :hadoop :data]} |
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
(defmapcatop [extract-shingles [k]] [line] (shingles k line)) | |
(defmapop [multihash [n]] [shingle] | |
[(map (fn [seed] | |
(.asInt (.hashString (Hashing/murmur3_32 seed) shingle))) | |
(range n))]) | |
(defn merge-vectors | |
[v1 v2] | |
(map #(map min %1 %2) v1 v2)) |