Skip to content

Instantly share code, notes, and snippets.

View Jabbslad's full-sized avatar

Jamie Atkinson Jabbslad

  • London, UK
  • 16:23 (UTC +01:00)
View GitHub Profile
@Jabbslad
Jabbslad / golang-setup.sh
Created September 3, 2014 12:48
Setup Golang
brew install go
mkdir $HOME/go
echo -e "
export GOPATH=$HOME/go
export GOROOT=$(go env GOROOT)
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin" >> $HOME/.bash_profile
brew install hg
source $HOME/.bash_profile
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
require 'rubygems'
require 'mechanize'
class Session
FRIENDS_URL = "http://live.xbox.com/en-US/profile/Friends.aspx"
attr_reader :agent
def initialize
@Jabbslad
Jabbslad / essential_osx_apps.md
Created February 8, 2012 18:58
Essential OS X Apps
@Jabbslad
Jabbslad / dabblet.css
Created February 10, 2012 12:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a {
background-image: url(https://my.sazneo.com/static/images/blueButton52.png);background-origin: padding-box;background-repeat: repeat-x;border-bottom-color: #D0E4F5;border-bottom-style: solid;border-bottom-width: 1px;border-left-color: #D0E4F5;border-left-width: 0px;border-right-color: #D0E4F5;border-right-width: 0px;border-top-color: #00487A;border-top-right-radius: 5px;border-top-style: solid;border-top-width: 1px;color: white;cursor: pointer;display: list-item;font-family: 'myriad pro', helvetica, arial, sans-serif;font-size: 12px;font-style: normal;font-variant: normal;font-weight: normal;height: 52px;line-height: 52px;list-style-image: none;list-style-position: outside;list-style-type: none;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;margin-top: 0px;max-height: 52px;max-width: 78px;min-height: 52px;min-width: 78px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px;position: absolute;text-align: center;text-
@Jabbslad
Jabbslad / dabblet.css
Created February 10, 2012 12:31
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a {
position: absolute;
top: -1px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topright: 5px;
border-bottom-top-radius: 5px;
@Jabbslad
Jabbslad / dabblet.css
Created February 10, 2012 16:02
Untitled
a {
display: inline-block;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 90px/100% Arial, Helvetica, sans-serif;
padding: .5em 2em .55em;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
-webkit-border-radius: .5em;
@Jabbslad
Jabbslad / hack.sh
Created March 31, 2012 10:24 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@Jabbslad
Jabbslad / default-irc-channels
Last active December 15, 2015 19:49
My default freenode channels
/join #clojure
/join ##javascript
/join #documentcloud
/join #ruby
/join #meteor
; 43: Write a function which reverses the interleave process into x number of subsequences.
(fn [coll n]
(apply map list (partition n coll)))
; 66: Given two integers, write a function which returns the greatest common divisor.
(fn [x y]
(if (= y 0) x
(recur y (rem x y))))
@Jabbslad
Jabbslad / gist:6954243
Created October 12, 2013 20:01
Create Mavericks Bootable USB
# Attribution: http://povolotski.me/2013/10/12/osx-mavericks-gm-out-bootable-installation-usb
# Pre-requisites:-
# * 8GB USB Stick formatted as Mac OS Extended (Journaled)
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction