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
module MakeContacts | |
extend self | |
@@onset_list = ["m", "n", "p", "t", "ch", "k", "c", "b", "d", "j", "g", "f", "th", "s", "sh", "h", "v", "l", "r", "w", "pl", "bl", "cl", "gl", "pr", "br", "tr", "dr", "cr", "fl", "sl", "fr", "sm", "sn"] | |
@@nucleus_list = ["a", "e", "i", "o", "u", "y", "ae", "ai", "au", "ea", "ee", "ei", "ia", "ie", "io", "oa", "oe", "oi", "oo", "ou", "oy", "ue", "ui", "uo"] | |
@@coda_list = ["m", "n", "p", "t", "ch", "k", "b", "d", "y", "g", "f", "s", "sh", "v", "l", "r", "mb", "mp", "nd", "nt", "nch", "nge", "pt", "tch", "ts", "tsh", "lm", "ln", "lp", "lt", "ld", "lge", "lf", "ls", "rm", "rn", "rp", "rt", "rk", "rb", "rd", "rge", "rf", "rs"] | |
def get_random_from_list(l) | |
l[Random.rand(l.size)] |
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
average damage given stat scores 1-20 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
scorching ray: 20.00 21.00 21.00 20.00 20.00 19.00 18.00 17.00 17.00 15.00 14.00 13.00 12.00 11.00 10.00 9.00 8.00 7.00 6.00 5.00 | |
shatter: 12.58 12.52 12.57 12.07 12.28 11.69 11.73 11.40 11.23 11.20 11.13 10.86 10.87 10.32 10.72 10.28 10.23 9.92 9.95 9.52 | |
dragon breath: 10.07 9.74 9.72 9.55 9.23 9.15 9.17 8.97 8.87 8.66 8.80 8.27 8.47 7.99 8.00 7.84 7.96 7.51 7.62 7.32 | |
guard: Level 3, AC: 16 | |
STR: ?, DEX: 12, CON: 12, INT: ?, WIS: ?, CHA: ? | |
scorching ray: 9 | |
shatter: 11.0055 |
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
#!/usr/bin/env ruby | |
# foo_bar-qwe_asd/01.name.flac | |
require 'fileutils' | |
start_dir = Dir.pwd | |
ARGV.select do |arg| | |
# is a directory |
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
#!/usr/bin/env ruby | |
require 'date' | |
index = 1 | |
date = Date.today.to_s | |
ARGV.each do |dirname| | |
dirname += '/' unless dirname.end_with? '/' | |
# puts "7z a #{date}.#{index}.7z #{dirname}*.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
;;; package --- init.el | |
;;; Commentary: | |
;;; Code: | |
;; do this, since I usually run fish | |
(setq shell-file-name "/bin/bash") | |
;;;;;;;;;;;;;; | |
;; Packages ;; |
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
#!/usr/bin/env ruby | |
require "optparse" | |
# default values for command line args | |
focal_length = 50 | |
apertures = [16, 11, 8, 5.6] | |
circle_of_confusion = 0.03 | |
use_feet = false |
OlderNewer