start new:
tmux
start new with session name:
tmux new -s myname
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |
(def precedence {* 1, / 1, + 2, - 2}) | |
(defn formula [& exprs] | |
(let [[x aop y bop z] (take 5 exprs)] | |
(if aop | |
(if bop | |
(if (< (get precedence aop) (get precedence bop)) | |
(recur (into [(aop (formula x) (formula y))] (drop 3 exprs))) | |
(recur (into [x aop (bop (formula y) (formula z))] (drop 5 exprs)))) | |
(aop (formula x) (formula y))) |
(ns pom2proj | |
(:require [clojure.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.java.io :as io] | |
[clojure.data.zip.xml :as zx]) | |
(:use [clojure.pprint :only [pprint]])) | |
(defn- text-attrs | |
[loc ks] | |
(map (fn [k] |
(ns small-site.server | |
(:require [noir.server :as server] | |
[noir.content.pages :as pages] | |
[clj-http.client :as client]) | |
(:use noir.core | |
hiccup.core | |
hiccup.page-helpers)) | |
(def code (slurp "src/small_site/server.clj")) | |
(def hilite-url "http://hilite.me/api") |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
(ns n01se.externs-for-cljs | |
(:require [clojure.java.io :as io] | |
[cljs.compiler :as comp] | |
[cljs.analyzer :as ana])) | |
(defn read-file [file] | |
(let [eof (Object.)] | |
(with-open [stream (clojure.lang.LineNumberingPushbackReader. (io/reader file))] | |
(vec (take-while #(not= % eof) | |
(repeatedly #(read stream false eof))))))) |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
(ns boids | |
(:use [enchilada :only [canvas ctx value-of canvas-size]] | |
[jayq.core :only [show]] | |
[monet.core :only [animation-frame]] | |
[monet.canvas :only [save restore | |
begin-path move-to line-to close-path | |
stroke stroke-style fill fill-rect fill-style | |
rotate translate]] | |
[boids.rules :only [step make-boid]]) | |
(:require [boids.vector :refer [heading]])) |