Skip to content

Instantly share code, notes, and snippets.

View gavinblair's full-sized avatar

Gavin Blair gavinblair

View GitHub Profile
@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 / 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
Created February 24, 2014 20:41
Start Spring
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄[48;5;255;38;5;252
sudo touch /etc/motd; sudo chmod 777 /etc/motd; sudo wget -O - https://gist.githubusercontent.com/gavinblair/9608631/raw/689424a7b666ac6f7543a4c085e54a194f0a4aec/creepyeyes.txt > /etc/motd
<style>
#one, #two {
width: 50%;
float: left;
height: 100vh;
color: white;
font-size: 100px;
}
</style>
<div id="one" style="
jQuery(document).ready(function($){
$('body').addClass('ads-small');
});
@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
@gavinblair
gavinblair / post.md
Last active August 29, 2015 14:03
Grooveshark Machine

Getting children to sleep can be... challenging. Our oldest is almost at the point where she can put herself to sleep, and music really helps relax her. We typically leave a phone in her room, playing her favourite playlist (currently the Wizard of Oz soundtrack).

This is working really well, but sometimes it feels like my (or my wife's) phone is being held hostage. That's why I developed the Grooveshark Machine, a headless device (that is really an old computer or a Raspberry Pi) that can be controlled with the phone.

Grooveshark Machine Controller Interface

Just enter your Grooveshark Playlist ID and press Play, and the machine will start playing.

Check out Grooveshark Machine

<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">