Skip to content

Instantly share code, notes, and snippets.

View chrmcg's full-sized avatar

Charlie McGeorge chrmcg

  • Los Angeles, CA
View GitHub Profile
@chrmcg
chrmcg / boost.js
Created August 9, 2023 02:31
Linear status in favicon (Arc Boost)
/**
* This Boost updates the favicon in Linear tabs within Arc based on issue statuses.
* Install instructions:
* 1. Right-click on any Linear tab in Arc and click "Boost this site"
* 2. Click "Code", then in the "JS" tab, paste the following code
* 3. Edit the "statuses" array to match your own
*/
const updateIcon = () => {
// Remove existing favicons
@chrmcg
chrmcg / qr+ngrok.md
Last active January 15, 2018 08:14
QR + ngrok

QR + ngrok

Test localhost on your phone without typing a URL!

  1. Install:
    • libqrncode (brew install libqrencode)
    • jq (brew install jq)
    • ngrok (download the binary)
  2. Put the following code in ~/.bash_profile or wherever you prefer to configure your shell
    • Don't forget to source afterwards!
  3. Start an ngrok tunnel (for example: ngrok http 3000 for an app running at localhost:3000)
@chrmcg
chrmcg / index.html
Created October 20, 2016 18:52
[RxJS] Music monitor
<input type="text" id="name" placeholder="Click here, then play notes using QWERTY keyboard!" size="50" />
<br/><br/>
<canvas id="canv" width="500" height="300"></canvas>
<pre id="target"></pre>