Skip to content

Instantly share code, notes, and snippets.

View boostventilator's full-sized avatar

Iain K. MacLeod boostventilator

View GitHub Profile
merlinmann /
Last active April 17, 2024 21:52
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

merlinmann / Official Cursor-Resting Area.txt
Last active May 16, 2024 22:59
Paste this into your Google Doc for a place to store your cursor.
⌨️ Official Cursor-Resting Area:
│ >_< │
halihax /
Last active August 21, 2019 17:18
Community guidelines for participating in the Halihax Slack group.


#Halihax is a place to collaborate, ask questions, discuss new products, find work, get feedback and keep up on local events.

We’ve developed a loose set of guidelines to help you navigate the community:


We encourage members to create meaningful and respectful discussion around their experiences and projects/products.

herooutoftime /
Last active May 13, 2022 15:55
MODx (missing) preview of unsaved changes

Idea & Concept

MODx Revolution lacks a preview of unsaved changes. For editors this is a rather important feature to check if their changes are correctly displayed and it's easy to do. No need to unpublish, save and view the resource. Just click 'Preview' and a MODx Window will show you all the changes.

The way it works is pretty easy: When clicking the 'Preview' button and OnBeforeDocFormSave is triggered all current (saved) data will be stored in a cache file, the resource will be saved with the new data. If OnWebPageComplete is fired, the saved data will be replaced with the previously cached data.

So for a short period the actual preview will be live!


cmod / minimal_fb_messenger.css
Last active February 15, 2022 19:11
Minimal Facebook Messenger for Fluid
Minimal Facebook Messenger
1. Make a Fluid ( instance of
1. a. (You need to buy the paid version of Fluid to modify UserStyles)
2. Apply the below CSS as a Userstyles stylesheet
3. Like magic, you can now message without all the cruft of Full Facebook
pbausch / mediumtweets
Last active August 29, 2015 14:00
Bookmarklet: Search for Medium Article Mentions on Twitter
javascript:var h=location.href;if((h.indexOf('') !== -1) && (h.split('/').length-1 >= 4)){location.href=''+encodeURIComponent(h.substr(h.lastIndexOf('/') + 1))}else{alert('Not at a Medium article.');}
brentsimmons / gist:5810992
Last active January 3, 2021 02:22
Detect a tap on a URL inside a UITextView. Note: the rs_links method isn't included -- you'll need something that takes text and returns an array of detected links. This gist just demonstrates walking through the UITextView characters.
@implementation UITextView (RSExtras)
static BOOL stringCharacterIsAllowedAsPartOfLink(NSString *s) {
/*[s length] is assumed to be 0 or 1. s may be nil.
Totally not a strict check.*/
if (s == nil || [s length] < 1)
return NO;
stash /
Last active December 15, 2015 20:40
French Press Method

French Press Coffee

  • grind super coarse
  • add just enough boiling water to cover grounds. Steep for 30s.
  • fill press to top. Stir to get a good vortex, which will pull the grounds down into a "cone" on the bottom.
  • Leave for ~5mins
  • skim floating grounds off the top with a spoon
  • press
kentbrew / wholikesmitt.html
Created November 11, 2012 02:00
Who Likes Mitt?
<title>Who Likes Mitt?</title>
pre#output {
height: 12em;
width: 500px;
overflow: auto;
robinsloan / langoliers.rb
Last active April 7, 2024 13:22
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from
CONSUMER_KEY = "your_consumer_key"