Skip to content

Instantly share code, notes, and snippets.

@dander
dander / dicewords.red
Created October 2, 2018 05:27
simple GUI app which generates random passphrases from the EFF dice word list
Red [
Title: "Diceword passphrase generator"
Needs: 'View
]
word-list: https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt
words: parse load-thru word-list [collect some [keep word! | skip]]
random/seed now/precise
view [
@dander
dander / solarized.red
Created January 17, 2019 09:27
solarized color palette
Red [
Title: "solarized colors"
Source: https://ethanschoonover.com/solarized
Values: {
SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B sRGB HSB
--------- ------- ---- ------- ----------- ---------- ----------- -----------
base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
base01 #586e75 10/7 brgreen 240 #4e4e4e 45 -07 -07 88 110 117 194 25 46
base00 #657b83 11/7 bryellow 241 #585858 50 -07 -07 101 123 131 195 23 51
@dander
dander / find-pattern.red
Last active December 14, 2019 08:46
Searches Red source files for a parse pattern
Red [
Title: "Find pattern"
Description: "Searches Red source files for a parse pattern"
]
allow: func [any][yes]
get-files: function [
"recursively collects the full file paths for all the files in the given directory"
dir [file!] /filter "only collect files where the predicate evaluates to true" pred [function!]

Keybase proof

I hereby claim:

  • I am dander on github.
  • I am zentrog (https://keybase.io/zentrog) on keybase.
  • I have a public key ASCuqh1j3qQKj19_LB0DsfA2IVRSuZt1j3MjMElSu5dYUQo

To claim this, I am signing this object: