Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized 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
if ((/^localhost/).test(document.location.host)) {
var linkChecker = (function() {
"use strict";
let links, errors = [], completed = [], errorCounter = 0;
function addStyle(styleString) {
const style = document.createElement("style");
style.textContent = styleString;
document.head.append(style);
}
@extratone
extratone / LegacyDocsets.md
Created May 2, 2021 08:15 — forked from fzwo/LegacyDocsets.md
Download and view old Apple developer documentation

How to download and view legacy documentation from Apple (no need to sign in to your dev account)

  1. Download the docset index XML.
  2. Find the docset you want (there are some with URL https://apple.com/none.dmg; ignore them - you will find them again further down the file with a working URL).
  3. Download the dmg. It's probably around a gigabyte or so.
  4. "Install" the .pkg file somewhere on your disk. If you don't trust the installer, do it manually:
    1. Find the largest file, named Payload, and extract it using The Unarchiver.
    2. This creates a new, even larger file, probably named Payload-1.
    3. Extract Payload-1 using The Unarchiver.
  5. After many minutes of extracting, we have our .docset file.
@extratone
extratone / grablinks.js
Last active May 2, 2021 08:19 — forked from ttscoff/grab links.bookmarklet
Create a bookmark and paste the code from `grab links.bookmarklet` into the url. Trigger it on a page containing links you want to save and then click the section of the page containing the links. A Markdown list of all links will be generated, and clicking the resulting list will select all for copying.
@extratone
extratone / discoursemd.md
Created May 7, 2021 17:01
Discourse Post to Raw Markdown

Discourse Post to Raw Markdown

Source: Export topic as markdown (enabled for all participants) - feature - Discourse Meta

The native URL to the thread: https://meta.discourse.org/t/export-topic-as-markdown-enabled-for-all-participants/152185

By eliminating the topic title from a given post’s URL (t/export-topic-as-markdown-enabled-for-all-participants) and prepending raw/, we’re left only with the post ID (152185).

The whole URL will take one to the plain text of the post with Markdown formatting.

@extratone
extratone / wordgit.md
Last active May 7, 2021 22:21
How to enable Git to read changes in .docx files so you can track revisions in Word... via Git!

See diffs of .docx files with git wdiff file.docx. (Source)

====================================================

This section was inspired by Martin Fenner's "Using Microsoft Word with git".

To configure git diff:

  1. Install pandoc.

  2. Tell git how to handle diffs of .docx files.

@extratone
extratone / compaqput.html
Last active May 7, 2021 22:26
Len Mattiace of the PGA TOUR Wins $250,000 at Compaq World Putting Championship Final by Dave Pelz
<html class=" rdwmpku idc0_322"><head>
<base href="https://web.archive.org/web/19961225052240/http://www.compaq.com/newsroom/pr/pr031296b.html"><script data-savepage-src="//archive.org/includes/analytics.js?v=cf34f82" type="text/javascript"></script>
<script type="text/javascript"></script><script type="text/javascript" data-savepage-src="/_static/js/playback.bundle.js?v=SOX25l-I" charset="utf-8"></script>
<script type="text/javascript" data-savepage-src="/_static/js/wombat.js?v=cRqOKCOw" charset="utf-8"></script>
<script type="text/javascript"></script>
<style data-savepage-href="/_static/css/banner-styles.css?v=bsmaklHF" type="text/css">/*savepage-import-url=record.css*//* style settings for java wayback Save Page Now UI */
.__wb_overlay {
filter:alpha(opacity=60); /* IE */
opacity: 0.6; /* Safari, Opera */
-moz-opacity:0.6; /* FireFox */
@extratone
extratone / pandoc_multi_input.md
Created May 8, 2021 21:41 — forked from xuanlongma/pandoc_multi_input.md
Combine multiple input files when using Pandoc

If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website

Pandoc command: pandoc -s input1.md input2.md input3.md -o output.html

@extratone
extratone / TwitterArchiveParser.swift
Created May 15, 2021 02:45 — forked from rolandleth/TwitterArchiveParser.swift
Extracting and converting your Twitter archive into simpler objects
// Blog post: https://rolandleth.com/extracting-and-parsing-tweets-from-your-twitter-archive
import Foundation
struct Tweet: Codable {
let text: String
let timestamp: String
}
@extratone
extratone / flashjobs.md
Created May 25, 2021 22:18
“Thoughts on Flash” by Steve Jobs - April, 2010.

Thoughts on Flash | Apple Inc.

Apple has a long relationship with Adobe. In fact, we met Adobe’s founders when they were in their proverbial garage. Apple was their first big customer, adopting their Postscript language for our new Laserwriter printer. Apple invested in Adobe and owned around 20% of the company for many years. The two companies worked closely together to pioneer desktop publishing and there were many good times. Since that golden era, the companies have grown apart. Apple went through its near death experience, and Adobe was drawn to the corporate market with their Acrobat products. Today the two companies still work together to serve their joint creative customers – Mac users buy around half of Adobe’s Creative Suite products – but beyond that there are few joint interests.

I wanted to jot down some of our thoughts on Adobe’s Flash products so that customers and critics may better understand why we do not allow Flash on iPhones, iPods and iPads. Adobe has characterized our decision as

@extratone
extratone / uniart.md
Created May 28, 2021 04:57
My old Unicode Art collection.

Unicode Art

   ( o . o)

    (•3•)
   Z(  )z
     /  \

    _██_

‹(•¿•)›