Skip to content

Instantly share code, notes, and snippets.

Avatar
😄
Hi, I’m Casey!

Casey Watts caseywatts

😄
Hi, I’m Casey!
View GitHub Profile
View youtube-markdown-link-bookmarklet.js
@caseywatts
caseywatts / tweet-the-toot.js
Last active March 7, 2023 15:20
Toot to Twitter Bookmarklet
View tweet-the-toot.js
javascript: (function () {
const tootContents = encodeURIComponent(
document
.getElementsByClassName("detailed-status")[0]
.getElementsByClassName("status__content__text")[0].innerText
);
const twitterLink = `https://twitter.com/intent/tweet?text=${tootContents}`;
window.location.href = twitterLink;
})();
@caseywatts
caseywatts / README.md
Last active January 18, 2023 22:43
Quick Links to DMs
View README.md

So many messaging apps!! It's hard to keep track of who I talk to where!

I message Brian on Signal, Sean on Discord, and Steve by sms.

I just want to type their name and BAM immediately be in the correct app.

This takes two steps:

  1. Coming up with the "weird links" to open the right app to the right person (I use a spreadsheet)
  2. Making those "weird links" easy to open (like with Apple Shortcuts)
View javascript sort numbers
a = `10
13
10
9
14
10`
b = a.split("\n")
c = b.map(a => Number(a))
d = c.sort((a, b) => b-a)
@caseywatts
caseywatts / 0 README.md
Last active December 21, 2022 18:45
Accordion Keyboard Layout for FL Studio
View 0 README.md

About

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: http://accordionscanada.com/bassrangev3.jpg

Accordion 1:

  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

Accordion 2:

@caseywatts
caseywatts / 0 README.md
Last active December 16, 2020 19:51
Remove "New! Messenger App for Windows" Banner
View 0 README.md

Other gists & tricks: http://caseywatts.com/gists-and-tricks

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

Bookmarklet

  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 messenger.com, click the bookmarklet and that pesky banner will be gone.
View Electron on WSL2.md

Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!

Four things needed overall:

  1. you need WSL2, not WSL1
  2. you need node, of course, and that part isn't so bad
  3. you need to apt install several dependencies
  4. you need an X Server so it can display the electron GUI over in Windows-land

Setup instructions, in order:

@caseywatts
caseywatts / 0-self-publishing.md
Last active March 25, 2023 13:25
Self-Publishing via Markdown
View 0-self-publishing.md
@caseywatts
caseywatts / README.md
Created February 19, 2019 20:54
Where in the World?
View README.md
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});