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
(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
<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
(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
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
/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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) |
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
(function() { | |
var Foo; | |
Foo = (function() { | |
function Foo() { | |
// initialize properties | |
} | |
// instance methods | |
Foo.prototype.bar = function() {}; |
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
;;; Bootstrapping bundled version of SLIME; please wait... | |
(sleep-for 0.1) | |
(run-hooks 'slime-load-hook) ; on port 64738 | |
;;; Done bootstrapping. | |
The eval-in-project function has moved to the leiningen.core.eval | |
namespace; please update your plugin to use that instead. | |
Note that `init' is now the third argument instead of the fifth. |
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
902334d Merge branch 'master' of http://github.com/mxcl/homebrew | |
37fd330 Merge branch 'master' of http://github.com/mxcl/homebrew | |
975d89d Merge branch 'master' of http://github.com/mxcl/homebrew | |
7beb002 Merge branch 'master' of http://github.com/mxcl/homebrew | |
232288d Merge branch 'master' of http://github.com/mxcl/homebrew | |
a9504f5 Merge branch 'master' of http://github.com/mxcl/homebrew | |
310754e Merge branch 'master' of http://github.com/mxcl/homebrew | |
d0286ef Merge branch 'master' of http://github.com/mxcl/homebrew | |
8358887 Merge branch 'master' of http://github.com/mxcl/homebrew | |
ec977fd Merge branch 'master' of http://github.com/mxcl/homebrew |