Skip to content

Instantly share code, notes, and snippets.

View billwestfall's full-sized avatar
🤔
thinkin'

Bill Westfall billwestfall

🤔
thinkin'
View GitHub Profile
@billwestfall
billwestfall / random.sh
Created June 27, 2022 22:49
Random line from csv
cat /Users/*/Documents/cities.csv | shuf -n 1
@billwestfall
billwestfall / boxscore.wl
Created February 28, 2020 23:29
Baseball box score in terminal
Grid[{{Inning, 1, 2, 3, 4, 5, 6, 7, 8, 9}, {Mets, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {Reds, 0, 0, 0, 0, 0, 0, 0, 0, 0}}]
@billwestfall
billwestfall / wolfram_graphics_export.wl
Created December 19, 2019 05:26
example: output Wolfram graphics to file
test4 = RulePlot[CellularAutomaton[30]];Export["/Users/xxxxxx/Documents/test4.jpg", test4]
@billwestfall
billwestfall / inputstring.wl
Created July 10, 2019 19:37
Wolfram print input as string
x=Input["Please enter the card you drew (in quotes): ",{}];ToString[x]
@billwestfall
billwestfall / anomaly_loop.wl
Created June 20, 2019 23:20
loop to find anomalies in range and print them out
Do[a=RandomReal[{1, 100}, {6}]; Print[a]; b=FindAnomalies[a]; Print[b]; Pause[3], 4]
["Shravan","Arpit","Motikant","Vinay","Shwetha","Bobby","Shobhit","Lohith","Kush"].sample(5)
FromCharacterCode @ RandomInteger[{33, 126}, 20]
@billwestfall
billwestfall / random_word_multiple.wl
Created July 21, 2018 05:16
Random word 30 times no pause
Do[Print[RandomWord[]],{30}]
@billwestfall
billwestfall / mathematica_random_word_do_loop.wl
Created July 13, 2018 21:35
using the Do loop in mathematica to print a word and then pause n seconds until next word, gradually slowing down the loop
Do[Print[RandomWord[]];Pause[n],{n,10}]
@billwestfall
billwestfall / mathematica_random_word_arabic_loop.wl
Created July 9, 2018 05:51
update count, language and pause as needed
For[i=1,i<3,i++,Print[ToString[RandomWord[Language -> "Arabic"],CharacterEncoding -> "UTF8"]];Pause[2]]