Skip to content

Instantly share code, notes, and snippets.

tealtan /
Created April 8, 2021 16:06

Keybase proof

I hereby claim:

  • I am tealtan on github.
  • I am tealtan ( on keybase.
  • I have a public key ASCNW7s4YhCzq3u2KXo11b6Q9kvZG8z8bvfyK7jKU98pOQo

To claim this, I am signing this object:

tealtan /
Last active June 30, 2017 16:09
Rules for Text Style Mapping


  "text-styles": [
      "name": "smallscreen-small-headline-hardtone",
      "typeface": "@cheltenham",
      "weight": "700",
 "font-size": "22",
tealtan / fontface
Last active June 21, 2017 16:00
fontface syntax
@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?#iefix') format('embedded-opentype'),
url('myfont-webfont.woff2') format('woff2'),
url('myfont-webfont.woff') format('woff'),
url('myfont-webfont.ttf') format('truetype');
tealtan / asdfasdfds.html
Created January 22, 2015 20:43
Fuego Packery Fix??
<script type="text/javascript">
try {
active: function() {
} catch(e) {}
tealtan /
Last active August 29, 2015 14:06
A pirate radio social network

The thing about half-joking about things is that they sometimes become real. I said something about how the only alternative social network I’d trust now is a system where everyone runs their own secret RSS feeds (with no corresponding web component) and passes them around by word-of-mouth. No discovery, no stars, no pageviews, just semi-public paragraphs.

Ways to get a standalone RSS feed

A range of options, depending on how much you want to do yourself:

  • Use an existing publishing service – preferably something old and boring – that generates its own RSS feeds. Make the web component private. Pass your RSS feed around. Something like Tumblr or Livejournal would work well.
  • Generate your RSS feed with a program on your own computer and put it up somewhere. A static site generator like Jekyll can turn a series of Markdown files into a RSS feed pretty easily, once you set up the template. You can put the generated RSS file into your [Dropbox P
tealtan /
Last active August 29, 2015 14:05
Guidelines Behind Prose Diffs
  • The units of meaning is not the "line", but the word, sentence, paragraph, section.
  • Editing a word/sentence/paragraph/section is different than moving it elsewhere.
  • If a sentence or paragraph or section changed, you would want to show which specific parts of it changed, instead of highlighting the entire larger unit.
  • It would likely be helpful to show the change in context, possibly as a before/after toggle.
  • Markup would be very difficult to parse. (Open/close tags across sentences, etc.) But markdown would be all right.
  • There are trivial changes, meaningful changes, and then meaningful changes that you want to call out.
  • Adding line breaks don’t matter, unless it forms a new paragraph.
allen-tan:usr 204854$ brew update
error: Your local changes to the following files would be overwritten by merge:
tealtan /
Created May 14, 2014 16:27

This is by no means comprehensive, but are where I’d go:

Noma. It’s no El Bulli, but this is open, so! I love how it looks like a nondescript warehouse from the outside.

The Opera House. Ridiculous inside. (It looks like a pumpkin.) The Royal Danish Ballet and Royal Danish Orchestra both perform here all the time and apparently THE QUEEN comes all the time.

Koncerthuset. It’s a theater with 4 semi-transparent screens for walls. So you can see inside during the day and watch projections on it at night.

tealtan /
Last active December 30, 2016 15:07
Custom Twitter stylesheet

Custom Twitter Stylesheet

Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:

  • Hides promoted tweets and trends
  • Hides the useless “Expand” link that appears under every tweet
  • Tones down the blue conversation line to a barely-visible gray
  • Hides all numbers

You can add this CSS in Safari with this extension. The URL to target is*.

module ApplicationHelper
def combine_highlight(selected_text, surrounding_text)
if surrounding_text.include? selected_text
split_text = surrounding_text.split(selected_text)
content_tag(:p, split_text[0].to_s.html_safe + content_tag(:span, selected_text, class:"selected") + split_text[1].to_s.html_safe)
content_tag(:p, surrounding_text, class:"selected")