Skip to content

Instantly share code, notes, and snippets.

Avatar
🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!

David Blue extratone

🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!
View GitHub Profile
@extratone
extratone / scar_tissue.md
Created May 28, 2023 00:10 — forked from gtallen1187/scar_tissue.md
talk given by John Ousterhout about sustaining relationships
View scar_tissue.md

"Scar Tissues Make Relationships Wear Out"

04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.

This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.

[Laughter]

> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation

@extratone
extratone / Search my gists.md
Created May 24, 2023 02:03 — forked from santisbon/Search my gists.md
How to #search gists
View Search my gists.md

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

View importjson.js
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@extratone
extratone / docc.sh
Created May 2, 2023 08:04 — forked from simonbs/docc.sh
Generates documentation with Apple's DocC for a target that supports both iOS and macOS.
View docc.sh
#!/bin/bash
#######################################################################
# Generates documentation for a target, for example a Swift package,
# that supports both iOS and macOS.
#
# The script is designed to be placed in the root of a Swift package.
# Change the paths as needed if your project structure is different.
#
# In order for DocC to annotate all symbols with the platforms
@extratone
extratone / download-youtube-subtitles.js
Created April 30, 2023 20:51 — forked from kugland/download-youtube-subtitles.js
Download YouTube subtitles (GreaseMonkey/TamperMonkey script)
View download-youtube-subtitles.js
// ==UserScript==
// @name Download YouTube subtitles
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Now you can download YouTube subtitles
// @author André Kugland
// @match http*://*.youtube.com/*
// @grant none
// @require https://cdn.jsdelivr.net/npm/file-saver@2.0.2/dist/FileSaver.min.js#sha256=bbf27552b76b9379c260579fa68793320239be2535ba3083bb67d75e84898e18
// ==/UserScript==
@extratone
extratone / Proposal.md
Created April 28, 2023 08:40 — forked from apparentlymart/Proposal.md
HTML Social Network
View Proposal.md

HTML Social Network

Back in July of 2008 I started thinking about HTML microformats for linking together and discovering social objects on the web.

I later discussed this with folks at the Internet Identity Workshop and after a few rounds of discussion we ended up working on Activity Streams instead, which shifted the focus to machine-readable descriptions of actions on social objects. However, the social object research here was the initial basis of what went on to become the "Object Types" in Activity Base Schema, after many iterations.

@extratone
extratone / toot.rb
Created April 28, 2023 04:58 — forked from ttscoff/toot.rb
Scans RSS feed for latest post and creates Mastodon toot
View toot.rb
#!/usr/bin/env ruby -W1
# frozen_string_literal: true
# This script scans an RSS feed for the latest post, and if
# it hasn't already been posted to Mastodon, creates a new
# toot with a link to it.
require 'json'
require 'optparse'
require 'rss'
@extratone
extratone / arena-random-image-widget.js
Created April 27, 2023 18:05 — forked from jacopocolo/arena-random-image-widget.js
Scriptable widget that load a random image from an are.na channel
View arena-random-image-widget.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: black; icon-glyph: user-md;
// just replace the url below with the url if the channel you want to use
// image channels only, doesnt supoort text or anything else
const channel = 'https://www.are.na/una/color-tx32pz_qsu0'
const url = 'https://api.are.na/v2/channels/'+channel.substring(channel.lastIndexOf('/') + 1)+'/contents';
const req = new Request(url)
@extratone
extratone / Add from Gist.wkflw
Created April 19, 2023 10:08 — forked from omz/Add from Gist.wkflw
Imports a workflow or script from a Gist URL in the clipboard into the commands menu.
View Add from Gist.wkflw
This gist contains a workflow for Editorial, an app for
writing plain text and markdown on iOS.
To import the workflow, copy the *entire* text of the gist,
then open Editorial and create a new workflow.
------------ BEGIN WORKFLOW ------------
{
"actions" : [
{
@extratone
extratone / UpsideDownText.py
Created April 19, 2023 10:01 — forked from omz/UpsideDownText.py
UpsideDownText.py
View UpsideDownText.py
import ui
# Mapping based on http://www.upsidedowntext.com/unicode
CHARMAP = {'!': '\xc2\xa1', '"': ',,',
"'": ',', '&': '\xe2\x85\x8b',
')': '(', '(': ')', ',': "'",
'.': '\xcb\x99',
'1': '\xc6\x96',
'0': '0', '3': '\xc6\x90',
'2': '\xe1\x84\x85',