Skip to content

Instantly share code, notes, and snippets.

@jonleung
jonleung / gist:8345e59add5180cd5b4533aa977fc629
Last active September 19, 2022 20:17 — forked from vnorby/gist:4116565
Bookmarklet to embed Paul Graham's essay footnotes inline
javascript:(function(e, t, n, r, i, s, o, u) {
if (!(i = e.jQuery) || n > i.fn.jquery || r(i)) {
s = t.createElement("script");
s.type = "text/javascript";
s.src = "http://ajax.googleapis.com/ajax/libs/jquery/" + n + "/jquery.min.js";
s.onload = s.onreadystatechange = function() {
if (!o && (!(u = this.readyState) || u == "loaded" || u == "complete")) {
r((i = e.jQuery).noConflict(1), o = 1);
i(s).remove()
}
@jonleung
jonleung / Airtable.js
Created December 16, 2019 21:33
Janky Tampermonkey script to untruncates Airtable's Kanban View's Titles
// ==UserScript==
// @name Kanban View Mod
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Janky Tampermonkey script to untruncates Airtable's Kanban View's Titles
// @author Jonathan Leung
// @match https://airtable.com/*
// @grant none
// ==/UserScript==
The Old Testament of the King James Version of the Bible
The First Book of Moses: Called Genesis
1:1 In the beginning God created the heaven and the earth.
1:2 And the earth was without form, and void; and darkness was upon
the face of the deep. And the Spirit of God moved upon the face of the
gistup

I want to create experiences that feel magical. Note that I don't mean "magical" in the same way that Apple might use "magical" to describe their products—it's more Harry Potter than that.

There are two different kinds of magic that I'm fascinated by:

Magic that yields an unexpected narrative: Imagine walking into your office only to unexpectedly find all of your co-workers have somehow been transformed into centaurs.

Magic that yields unexpected power: Imagine that you were given the ability to transform anyone into a centaur at will.

Because of the word constraint, I will just propose just one project here which embodies the the magic that yields an unexpected narrative. See the video for another project idea around magic that yields unexpected power.

/*
Directions:
1. Go to Facebook.com
2. Click the down arrow (looks like a triangle) on the top right hand corner
3. Click "News Feed Settings"
4. Click "Unfollow people to hide their posts"
5. Scroll all the way to the bottom of the list
6. Paste in the below code into the JavaScript console
## Week's Issue
- Positive 10% Slack growth(@hellyeah)
- Upload last week's metrics to spreadsheet(@hellyeah)
- Create metrics repo(@hellyeah)
- Discuss with club leaders what curriculum they will run in their meeting and create any materials that are needed (@jonleung, hackedu/meta#313)
- Plan (or cancel) 6 pairing calls(@hellyeah)
- Plan (or cancel) weekly calls(@jonleung, #304)
- Chatting with club leaders who haven't filled in data in the spreadsheet(@MaxWofford)
- Collect curriculum and attendance data from meetings this week(@MaxWofford)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Try to move your mouse through the maze without touching the walls.</p>
<p>Refresh the page to try again.</p>