Skip to content

Instantly share code, notes, and snippets.

View gavinblair's full-sized avatar

Gavin Blair gavinblair

View GitHub Profile
@gavinblair
gavinblair / mergereq.sh
Created May 1, 2014 15:10
opens gitlab in a new tab with the New Merge Request url for your fork
#!/bin/bash
URL=$(git remote -v | grep origin | grep fetch | sed s/origin// | sed s/\:/\\//g | sed s/git\@/http\:\\/\\// | sed s/\(// | sed s/\)// | sed s/fetch// | sed s/\\.git/\\/merge_requests\\/new/ | sed 's/[ \t]*$//')
open /Applications/Google\ Chrome.app $URL
jQuery(document).ready(function($){
$('body').addClass('ads-small');
});
<style>
#one, #two {
width: 50%;
float: left;
height: 100vh;
color: white;
font-size: 100px;
}
</style>
<div id="one" style="
sudo touch /etc/motd; sudo chmod 777 /etc/motd; sudo wget -O - https://gist.githubusercontent.com/gavinblair/9608631/raw/689424a7b666ac6f7543a4c085e54a194f0a4aec/creepyeyes.txt > /etc/motd
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄[48;5;255;38;5;252
@gavinblair
gavinblair / post.md
Created February 24, 2014 20:41
Start Spring
@gavinblair
gavinblair / post.md
Last active August 29, 2015 13:56
iOS 7 Design Quirk

It took me a while to figure out why I'm still uncomfortable with the design of iOS 7. It's not the flat design, I think that is so cool. Yesterday I realized it:

1

What if her name was longer? Would the name butt up against "< Messages"? I decided to find someone with a longer name:

2

Dang, still a pretty short name. What about a phone number?

@gavinblair
gavinblair / post.md
Last active August 29, 2015 13:55
The XBOX Live API

SHHHM3LLIT

i will dedicate a teeny web app to my 800th follower

— ϟ Gavin Blair (@gavinblair) December 1, 2013
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

What was I thinking? Such a contest can't possibly get you more followers - the only people that hear about it are the people that are automatically disqualified for already following you! In fact, I lost followers almost instantly.

ok who unfollowed me??

— ϟ Gavin Blair (@gavinblair) December 1, 2013
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
@gavinblair
gavinblair / wanted.md
Last active January 4, 2016 03:59
Wanted: #ldnont Council Meeting Vote Parser

Open Council

Open Council is happening! Currently a London implementation of Kevin O'Donnell's OttWatch system is working hard on pulling meetings from London's SIRE system, making it so you can discuss individual council meetings publicly.

A very important part of the original vision for Open Council was the ability to view council votes by councillor. We are almost there! London records their votes in a very different way than Ottawa, however, and we've run into a bit of a snag.

So, I have a programming challenge for you!

Given a council meeting's minutes from London's implementation of SIRE, output the motions made and the voting results in a machine-readable format.

@gavinblair
gavinblair / post.md
Last active December 29, 2015 15:59
Gluten Free Lunch

Gluten Free Lunch

I found out that I had a problem with gluten in February 2012. It wasn't as difficult as I thought it would be to go gluten free. There are only really three recurring issues that I constantly face:

  • If something is gluten free, it doesn't mean that I will like it - There are a LOT of gluten free products out there. A lot of it tastes like sand.
  • I miss beer. - I have taken to drinking White Russians. That's a hell of a caucasian, Jackie
  • If I don't pack a lunch, I'm screwed. - I have about four go-to lunches in downtown London. This list starts to feel pretty short after a while, and it severely limits options when going out with others.

While I can't do much about the first two (besides becoming The Dude), I can at least crowdsource some options for lunch downtown! Check it out, and if you know any gluten free meals downtown, please add to the list.