Attempt at replicating the Jelly effect from The Floor is Jelly (http://thefloorisjelly.com/).
A Pen by Thom Chiovoloni on CodePen.
(ns foo.core | |
(:refer-clojure :exclude [slurp])) | |
(defmacro slurp [file] | |
(clojure.core/slurp file)) | |
;; In CLJS | |
(ns bar.core | |
(:require [foo.core :include-macros true :refer [slurp]])) |
Attempt at replicating the Jelly effect from The Floor is Jelly (http://thefloorisjelly.com/).
A Pen by Thom Chiovoloni on CodePen.
macro := { | |
rule infix { $obj $([ $key ] ...) | $rval:expr } => { | |
$obj = mori.assoc_in($obj, [$key (,) ...].reverse(), $rval) | |
} | |
} | |
macro hash_map { | |
rule {{ $($key : $value) (,) ... }} => { | |
mori.hash_map($($key, $value) (,) ...) | |
} |
Locate the section for your stash remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:private/repository.git
Now add the line fetch = +refs/pull-requests/*:refs/remotes/origin/pull-requests/*
to this section. Obviously, change the stash url to match your project's URL. It ends up looking like this:
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
(ns cljs-uuidv4 | |
"Generator for a v4/random UUID that works with cljs.core/UUID" | |
(:require [goog.string.StringBuffer])) | |
(defn UUIDv4 | |
"Returns a new randomly generated (version 4) cljs.core/UUID, | |
like: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx | |
as per http://www.ietf.org/rfc/rfc4122.txt. | |
Usage: |
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger ([email protected]) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |