Skip to content

Instantly share code, notes, and snippets.

View rknightuk's full-sized avatar

Robb Knight rknightuk

View GitHub Profile
@JeffreyWay
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
@jbroadway
jbroadway / Slimdown.md
Last active July 7, 2024 08:56
Slimdown - A simple regex-based Markdown parser.
@beh
beh / gist:3549933
Created August 31, 2012 07:40
Add bookmark to pinbord.in with predefined tag, without user intervention
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?later=yes&noui=yes&jump=close&tags=TAGS GO HERE&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=100,height=100'));
// Copy and paste the above into a new bookmark. Replace "TAGS GO HERE" with your tags. Presto!
@ear1grey
ear1grey / 2012_soc_units.json
Created September 27, 2012 19:34
soc.port.ac.uk unit codes in json
{
"U21277-12YR": {
"ucode" : "U22344",
"name" : "Web Research",
"scode" : "WebRes"
},
"U22344-12YR": {
"ucode" : "U22344",
"name" : "Business Systems Analysis & Design",
"scode" : "BUSAD"
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@krasimir
krasimir / GetYourGitHubActiviti.js
Last active December 10, 2015 06:08
Get your latest GitHub activity with JavaScript (requires jQuery)
var GitHub = (function() {
var feed = function(user, callback) {
var url = "https://api.github.com/users/" + user + "/events";
$.ajax({
url: url,
dataType: 'jsonp',
success: function(results) {
callback(null, results);
},
@cliss
cliss / gist:5374387
Last active November 27, 2019 19:06
Best of Top Gear
+----------------------------------------------+
| Series | Episode | Description |
+--------+---------+---------------------------+
| 5 | 5 | Jaguar at the Nurburgring |
| 5 | 8 | Race to Verbier |
| 8 | 0 | Winter Olympics Special |
| 8 | 3 | Amphibious Cars |
| 8 | 6 | Caravan Vacation |
| 9 | 3 | America Special |
| 10 | 0 | Polar Special |
@distantcam
distantcam / drawarc.c
Created April 28, 2013 15:30
Pebble helper functions
/*
Copyright 2013 Cameron MacFarland
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@mixin animation-delay($time) {
-webkit-animation-delay: $time;
-moz-animation-delay: $time;
-o-animation-delay: $time;
animation-delay: $time;
}
@-webkit-keyframes pulsating {
0% { -webkit-transform: scale(1) }
100% { -webkit-transform: scale(0) }
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.