Skip to content

Instantly share code, notes, and snippets.

View boostventilator's full-sized avatar

Iain K. MacLeod boostventilator

View GitHub Profile
pbausch / mediumtweets
Last active August 29, 2015 14:00
Bookmarklet: Search for Medium Article Mentions on Twitter
View mediumtweets
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.');}
tdreyno / border.html
Created June 1, 2012 04:05
Border Coda Pop
View border.html
<!doctype html>
<link href="stylesheets/border.css" rel="stylesheet">
<script src="javascripts/jquery-1.7.2.js"></script>
<script src="javascripts/ember-"></script>
<script src="javascripts/ember-jui.js"></script>
<script src="javascripts/popkit.js"></script>
<script src="javascripts/border.js"></script>
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
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.

ttscoff / brettquix.txt
Created May 23, 2012 02:32
Brett's Quix File
View brettquix.txt
@Brett's searches
@Brett's custom searches
go Open first result (DuckDuckGo)
b Bang search (DuckDuckGo)
grep Greplin
ss Current site (DuckDuckGo)
bt (DuckDuckGo)
gh Search GitHub (everything)
hints Search Mac OS X Hints
mu Search MacUpdate (Software)
gruber / gist:1063605
Created July 4, 2011 16:48
Simple Inbox Archiving Script for Apple Mail
View gist:1063605
-- See article here:
-- The following should be one long line:
set _description to "All unflagged, read messages in each IMAP account
inbox will be moved to the “Archive” mailbox corresponding to that
account. This action is not undoable."
tell application "Mail"
display alert "Archive read messages from IMAP inboxes?" buttons ¬
{"Cancel", "Archive"} cancel button 1 message _description
gruber / gist:647224
Created October 26, 2010 16:26 — forked from dpk/gist:646570
Slight tweaks to dpkendal's script. Gives the BBEdit document a name (rather than "untitled <integer>", and skips the \n to \r stuff, which I don't think is necessary in recent versions of BBEdit.
View gist:647224
tell application "Safari"
set _source to do JavaScript "window.document.documentElement.outerHTML" in document 1
set _name to name of document 1
end tell
tell application "BBEdit"
make new text window with properties ¬
{contents:_source, source language:"HTML", name:"Generated source: " & _name}
select insertion point before character 1 of text window 1
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.
View gist:5810992
@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;
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
View gist:1525217
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
kentbrew / wholikesmitt.html
Created November 11, 2012 02:00
Who Likes Mitt?
View wholikesmitt.html
<title>Who Likes Mitt?</title>
pre#output {
height: 12em;
width: 500px;
overflow: auto;