Skip to content

Instantly share code, notes, and snippets.


Tyler Hicks-Wright tghw

View GitHub Profile
View Fastmail-Favicon-Unread.user.js
// ==UserScript==
// @name Fastmail Favicon Unread Count
// @author Tyler Hicks-Wright
// @author Rob Middleton
// @license MIT
// @description Adds a dynamic favicon to showing unread emails.
// @namespace
// @grant none
// @version 2.2.1
// @include*

Keybase proof

I hereby claim:

  • I am tghw on github.
  • I am tghw ( on keybase.
  • I have a public key whose fingerprint is F00B A073 0D08 6DF1 87F9 B606 F1F4 4209 9C89 5978

To claim this, I am signing this object:

View fiddle.response.html
<h3 class="form-title">Form Title</h3>
<form class="form-horizontal">
<div class="control-group">
<label for="field" class="control-label">Field</label>
<div class="controls">
<input type="text" name="field">
<div class="control-group">
<label for="field" class="control-label">Field</label>
tghw /
Last active Oct 10, 2015
Ugly Python FizzBuzz
f=lambda x,y=1,a='Fizz',b='Buzz':y and ' '.join(f(i+1,0) for i in range(x)) or x%3==x%5==0 and a+b or x%3==0 and a or x%5==0 and b or str(x)
View remove_answered_questions.user.js
// ==UserScript==
// @name Remove Answered Questions
// @namespace tghw
// @include
// @include*
// ==/UserScript==
var GM_JQ = document.createElement('script');
GM_JQ.src = '';
GM_JQ.type = 'text/javascript';
View reddit.user.js
// ==UserScript==
// @name Remove viewed stories & block domains
// @namespace nothing
// @include*
// @include http://**
// ==/UserScript==
var site_blacklist = /|;
function main()
View set_working_on.user.js
// ==UserScript==
// @name Set Working On
// @namespace tghw
// @description Adds a Working On button to FogBugz's list page
// @include **
// ==/UserScript==
// Change this to true for FogBugz6
var IS_FOGBUGZ_6 = false;
View hglog
def log(repo, file):
def h(repo, file):
l = [repo['tip'][file]]
ix = 0
while ix < len(l):
   l.append([f for f in l[ix].parents() if not f in l])
   ix = ix + 1
return l
return map(lambda r: r.rev(), h(repo, file))
cd ~/src/clones/
for DIR in *; do
if [ -d $DIR ]; then
cd $DIR
tghw / gist:67153
Created Feb 19, 2009
Ubiquity command for FogBugz
View gist:67153
name: "fogbugz",
takes: {"text": noun_arb_text},
modifiers: {"new": noun_arb_text},
homepage: "",
icon: "",
author: { name: "Tyler Hicks-Wright", email: ""},
description: "FogBugz",
help: "Select some text to search FogBugz.",
execute: function(directObject, mods){