- 3 whole star anise
- 15 whole cardamon pods
- 2 tblsp ground cinnamon (or ~0.75 stick)
- 1.5 tblsp ground cloves
- 0.5 tsp ground coriander
- 0.75 tsp ground ginger
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
;; usage: | |
;; | |
;; (-> (rsa-keypair 2048) | |
;; (generate-secret-key "alice@example.org" "hello") | |
;; (export-keypair "alice.pub" "alice.sec" true)) | |
(import | |
'[java.util Date] | |
'[java.security SecureRandom KeyPair KeyPairGenerator] | |
'[org.bouncycastle.jce.provider BouncyCastleProvider] |
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
# 12fps resize to 640x360 | |
ffmpeg -f image2 -r 12 -i frame-%04d.png -pix_fmt rgb24 -r 12 -s 640x360 anim.gif | |
# with watermark | |
ffmpeg -f image2 -r 12 -i frame-%04d.png -pix_fmt rgb24 -r 12 -s 640x360 -vf "movie=credits.png [watermark]; [in][watermark] overlay=10:10 [out]" anim.gif |
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
int redPin = 6; | |
int greenPin = 5; | |
int bluePin = 9; | |
float col[3]; | |
float hue = 0.0; | |
void setup() { | |
pinMode(redPin, OUTPUT); | |
pinMode(greenPin, OUTPUT); |
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
convert -strip -interlace Plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -quality 90% src.jpg dest.jpg |
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 coloredmesh | |
(:require | |
[thi.ng.geom.core :as g] | |
[thi.ng.geom.core.vector :as v] | |
[thi.ng.geom.core.matrix :as mat :refer [M44]] | |
[thi.ng.geom.aabb :as a] | |
[thi.ng.geom.core.utils :as gu] | |
[thi.ng.geom.webgl.core :as gl] | |
[thi.ng.geom.webgl.arrays :as arrays] | |
[thi.ng.geom.webgl.animator :as anim] |
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
;; dependencies: | |
;; [cljsjs/react "0.12.2-5"] | |
;; [reagent "0.5.0"] | |
;; [re-frame "0.2.0"] | |
;; [cljs-log "0.2.1"] | |
(ns example.fps | |
(:require-macros | |
[reagent.ratom :refer [reaction]] | |
[cljs-log.core :refer [info]]) |
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
;; CLJS 0.0-3196 | |
(reduce conj [] (eduction (filter identity) [1 2 3 4])) | |
;; [1 2 3 4] | |
(defrecord Foo [state]) | |
(defn add-foo [foo x] (Foo. (conj (:state foo) x))) | |
(reduce add-foo (Foo. []) (sequence (filter identity) [1 2 3 4])) | |
;; => #cljs.user.Foo{:state [1 2 3 4]} |
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
Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes. | |
It's an ever-growing list. | |
------------------------------ | |
Relevant links: | |
http://en.wikipedia.org/wiki/Types_of_mesh | |
http://en.wikipedia.org/wiki/Tetrahedron | |
http://en.wikipedia.org/wiki/Simplicial_complex |
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 | |
'[thi.ng.geom.core :as g] | |
'[thi.ng.geom.core.vector :as v :refer [vec2 vec3]] | |
'[thi.ng.geom.core.matrix :refer [M44]] | |
'[thi.ng.geom.core.utils :as gu] | |
'[thi.ng.geom.aabb :as a] | |
'[thi.ng.geom.plane :as pl] | |
'[thi.ng.geom.quad :as q] | |
'[thi.ng.geom.webgl.core :as gl] | |
'[thi.ng.geom.webgl.buffers :as buf] |