Skip to content

Instantly share code, notes, and snippets.

caseywatts /
Last active Apr 27, 2021
Easily fill out web forms using data from a spreadsheet using this bookmarklet.

Other gists & tricks:

To set this up, paste the code below into the "location" of a bookmark. Make sure it starts with "javascript:", some browsers strip this out when you paste.

  1. Find the "name" of each form element you want to put data into. You can find the "name" by right clicking on the form box and "inspecting" it.
  2. By using a spreadsheet, create a set of urls with the data you want to input. Example: variablename1 is the "name" of the form field. "value1" is the value you want to put into the Navigate to that custom URL4. Click the bookmarklet. Voila!
caseywatts /
Last active Mar 31, 2021
Darkening PDFs

short url to these instructions:

Other gists & tricks:

Using Monochrome (recommended)

  • obtain your ugly, gray pdf
  • brew install imagemagick
  • brew install ghostscript
  • magic command!
caseywatts /
Last active Mar 22, 2021
Chrome Extensioning

Chrome is, by far, the easiest browser to make extensions for. Google's documentation for this is pretty good and thorough!

Getting Started


  1. Make a folder cloudtobutt somewhere on your computer (in a code folder? or on your desktop? up to you!)
  2. Save your js script in that folder as cloudtobutt.js
  3. Make a file named manifest.json and copy-paste in an example:
caseywatts / randomgroupsofx.rb
Last active Mar 10, 2021
Random Groups of X
View randomgroupsofx.rb
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}
caseywatts / 0
Last active Jan 4, 2021
Accordion Keyboard Layout for FL Studio
View 0


FL Studio support custom layouts for the "typing keyboard to piano keyboard" feature, and I made one to represent the top four rows of an accordion! The left-hand bass side of the accordion (the stradella bass system) is laid out to make playing roots of chords and common chords very easy, and it's laid out using the circle of fifths to make the common chords (V and IV) very accessible. Here is my favorite accordion fingering chart:

The top four rows of this FL Studio layout:

  1. The 12345 row is the third of the chord row
  2. The QWERTY row is the main root chord row - the Y key is C
  3. The ASDFG row is the major chord row
  4. The ZXCVB row is the minor chord row

Need the the seventh chord or diminished chord rows? You could make another layout yourself if you need them (and please comment it below!)

caseywatts / 0
Last active Dec 16, 2020
Remove "New! Messenger App for Windows" Banner
View 0

Other gists & tricks:

Remove Facebook Messenger's "New! Messenger App for Windows" Banner


  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
    • Name: Remove Messenger Banner (or whatever you like)
    • URL: (paste in the bookmarklet.js contents below)
  2. Each time you open, click the bookmarklet and that pesky banner will be gone.
caseywatts / Gemfile
Last active Feb 19, 2020
Sinatra on Cloud9
View Gemfile
source ''
gem 'sinatra'
gem 'sinatra-contrib'
caseywatts /
Last active Jan 31, 2020
Sharing jscodeshift codemods

codemod-cli is straightforward - but it's especially made for codemod projects that have multiple transforms. For a single transform, we could/should have a simpler interface for consumers.

Here are three ways to share your codemod with others. The npx methods require you npm publish the repo.

Method 1 - global install, using githubusercontent

Easiest method for the developer, especially if you only have one transform and/or if you're not using codemod-cli. This uses the github-hosted raw.githubusercontent link to run it, kinda like running it from a gist. Here's an example using ember-mocha-codemods.

npm install -g jscodeshift
caseywatts /
Last active Nov 5, 2019
WHAT IF you could magically have browser-sync (livereload+mobileview) on every static html project, without any setup in the project? You can 🎉🎉🎉
caseywatts /
Last active May 1, 2019
heroku flip bookmarklet