Skip to content

Instantly share code, notes, and snippets.

View caseywatts's full-sized avatar
Hi, I’m Casey!

Casey Watts caseywatts

Hi, I’m Casey!
View GitHub Profile
@caseywatts
caseywatts / 0 README.md
Last active May 2, 2024 05:47
Generate Graphviz Files for Project

short url: caseywatts.com/graphviz

Graphviz is like markdown, for diagrams.

It's a tool that can transform text input into a "directed graph" output, which is nodes pointing to other nodes. You can use it for architecture diagrams, DB diagrams, documentation for users, etc.

graphviz-it

You'll want to use a tool with a two-pane layout - the left side is the source text, the right side is the image output.

  • For just you working on it, use (shown above; it has more features)
@sukima
sukima / maybe.js
Last active May 2, 2024 05:47
Simple Maybe monad utility for dealing with lookup on objects, etc. (1.8kb minified)
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
@jonkwheeler
jonkwheeler / Download-Slack-Profile-Pictures.js
Last active May 2, 2024 05:46
Download Slack Profile Pictures / Images
// Enter slack in the browser. https://{insert your team name here}.slack.com/messages/
// Click on the channel you want.
// Click the information icon.
// Expand the members dropdown.
// Click "See All Members"
// Paste the next line into the console, hit enter.
var imageList = new Array()
// If your channel has more than 19 members, the list won't display past that. It also unloads them from the state as you scroll.
@jbelke
jbelke / Mac OSX Setup - Brew
Last active May 2, 2024 05:45
Mac OSX Setup - Brew and Cask
# Get Sudo.
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
# Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
# Install Xcode command line tools.
xcode-select --install
@rain1024
rain1024 / tut.md
Last active May 2, 2024 05:27
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@caseywatts
caseywatts / randomgroupsofx.rb
Last active May 2, 2024 05:27
Random Groups of X
LISTOFNAMES = %{...}
GROUPSIZE = 5
names = LISTOFNAMES.split("\n")
shufflednames = names.shuffle
shufflednames.each_slice(GROUPSIZE).with_index do |group, i|
puts "\nGroup " + i.to_s
group.each {|name| puts name}
end
$('.submittable').live('change', function() {
$(this).parents('form:first').submit();
});
@Keboo
Keboo / Notes.md
Last active May 2, 2024 05:24
Presenting / Streaming notes

Personal notes on presenting and streaming.

Before starting

  • Turn off un-needed software. Especially things with notifications: Slack, Skype, Teams, etc.
  • Turn on Focus Assist
  • When sharing your desktop, consider sharing a secondary screen rather than the primary screen. Many apps will post notifications to the primary screen so this will help cut down on accidently sharing out notifications.
  • Hide desktop icons
  • Consider resolution/DPI. Remember that for streaming, people watching may be on lower resolutions; don't stream above 1080p.
  • Hide task bar. Either set auto hide, or simply crop the shared section of your screen to omit it.
  • Consider if desktop background is appropriate.
@purp
purp / README.md
Created December 15, 2018 21:46
Convert exported Apple contacts .vcf to CSV

I have a bunch of folks I want to export from Apple Contacts on MacOS and turn into a spreadsheet for a holiday card mail merge.

This is my clumsy way of doing it.

@protrolium
protrolium / QLAB-scripting.md
Last active May 2, 2024 05:24
QLab + Applescript to control Applications & Panasonic Projectors over LAN

QLab + Applescript commands for Projector & Application Boot-Up/Shut-Down Routine

Boot Up Sequence

Open Projector Manager app

tell application "Terminal"
   delay 0.5
   do script "open -a Projector Manager"
   delay 0.5
   tell application "Terminal to quit"
end tell