Skip to content

Instantly share code, notes, and snippets.

.iota{
border-radius: 0;
display: inline-block;
width: 1px;
height: 1px;
box-shadow: 0px 0px rgba(0,0,0,0),0px 1px rgba(0,0,0,0),0px 2px rgba(0,0,0,0),0px 3px rgba(0,0,0,0),0px 4px rgba(0,0,0,0),0px 5px rgba(0,0,0,0),0px 6px rgba(0,0,0,0),0px 7px rgba(0,0,0,0),0px 8px rgba(0,0,0,0),0px 9px rgba(0,0,0,0),0px 10px rgba(0,0,0,0),0px 11px rgba(0,0,0,0),0px 12px rgba(0,0,0,0),0px 13px rgba(0,0,0,0),0px 14px rgba(0,0,0,0),0px 15px rgba(0,0,0,0),0px 16px rgba(0,0,0,0),0px 17px rgba(0,0,0,0),0px 18px rgba(0,0,0,0),0px 19px rgba(0,0,0,0),0px 20px rgba(0,0,0,0),0px 21px rgba(0,0,0,0),0px 22px rgba(0,0,0,0),0px 23px rgba(0,0,0,0),0px 24px rgba(0,0,0,0),0px 25px rgba(0,0,0,0),0px 26px rgba(0,0,0,0),0px 27px rgba(0,0,0,0),0px 28px rgba(0,0,0,0),0px 29px rgba(0,0,0,0),0px 30px rgba(0,0,0,0),0px 31px rgba(0,0,0,0),0px 32px rgba(0,0,0,0),0px 33px rgba(0,0,0,0),0px 34px rgba(0,0,0,0),0px 35px rgba(0,0,0,0),0px 36px rgba(0,0,0,0),0px 37px rgba(0,0,0,0),0px 38px rgba(0,0,0,0),0px 39px rgba(0,0,0,0),0px 40px rgba(0,0,0,0),0
@tuddman
tuddman / secureRandomTryte.clj
Last active August 22, 2017 16:41
Generate Secure Random Tryte
(ns foo
(:import java.security.SecureRandom)
(defn trytes
[size]
(let [tryte-alphabet "9ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
(apply str (take size (repeatedly #(.charAt tryte-alphabet (.nextInt (SecureRandom.) 27)))))))
;; > (trytes 81)
@tuddman
tuddman / classpath.js
Last active August 22, 2016 17:10
Beaker Notebook - Properly formats your project.clj dependencies so you can use them in Beaker Notebook
#!/usr/bin/node
/* this little script takes as its first -and only- argument a string, which is the output of (System/getProperty "java.class.path")
* It takes the string and formats it correctly (by breaking it into one entry per line) so it can be used by Beaker Notebook.
* Beaker -> Notebook -> Language Selector -> Clojure -> class path (jar files, one per line)
*
* USAGE:
* step 1: cd <clojure project dir> && lein classpath
* step 2: copy the output to the clipboard
* step 3: open a new terminal window
@tuddman
tuddman / gist:1629b1bd8f42d8f9edb2
Created February 20, 2015 17:09
bipio Transforms config options
"transforms" : {
"fetch" : true,
"syncFrom" : "https://api.bip.io"
}