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
cat textfile | juman | awk -f wakati.awk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
html { | |
background: url(http://line-stamps.me/wp-content/uploads/2015/08/main39.png) | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
(require '[clojure.core.match :refer [match]]) | |
;; (add [[7 3] [-1 2]] [[4 2] [3 -1]]) ;; => [[11 5] [[2 1]]] | |
(defn add [lhs rhs] | |
(match [lhs rhs] | |
[(l :guard number?) (r :guard number?)] (+ lhs rhs) | |
[(l :guard vector?) (r :guard vector?)] (vec (map add lhs rhs)))) | |
;; (transpose [[5 2] [6 3] [-2 0]]) ;; => [[5 6 -2] [2 3 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
(defn eratosthenes | |
"finding all prime numbers up to `x`" | |
[x] | |
(letfn [(continue? [x list] | |
(< (first list) (Math/sqrt x))) | |
(go [x list primes] | |
(if (continue? x list) | |
(let [head (first list) | |
new-list (filter #(not (= (mod %1 head) 0)) (rest list))] | |
(recur x new-list (cons head primes))) |