Skip to content

Instantly share code, notes, and snippets.

View colours.scss
@function black($opacity) {
@return rgba(0,0,0,$opacity);
@function white($opacity) {
@return rgba(255,255,255,$opacity);
View gist:9114032
<?xml version="1.0"?>
View gist:9780376
<?xml version="1.0"?>
# Declare hardware devices
View gist:1c48427caa121ca8a947
<?xml version="1.0"?>
# Declare hardware devices
View gist:b0ac3dd518580b131d50
- request:
url: /hello
body: ':)'
- request:
url: /give/me/a/smile
status: 200
body: >
{"status": "hello world with single quote"}
View gist:196c015d2f228f423b4d
gulp.task('scripts:dev', ['templates'], function() {
return gulp.src(paths.scripts)
.on('error', notify.onError())
View gist:0c6735d3b66cc74c2f06
# Git
alias g="git"
alias commits="git shortlog -sn"
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gpl="git pull"
alias gd="git diff"
kyranjamie / js - calc input
Created May 10, 2012
jQuery - Calculate inputs
View js - calc input
var week = $('.week');
var month= $('.month');
var year = $('.year');
function weekCalc(sender, args) {
var value = sender.val();
var milesPerMonth = value * 4.35;
var milesPerYear = value * 52;
kyranjamie / gist:4988916
Last active Dec 13, 2015
ASP.NET - Remove www prefix with 301 redirect to root domain.
View gist:4988916
<rule name="Remove WWW prefix" >
<match url="(.*)" ignoreCase="true" />
<add input="{HTTP_HOST}" pattern="^www\.domainname\" />
<action type="Redirect" url="{R:1}" redirectType="Permanent" />
kyranjamie / gist:5104476
Last active Dec 14, 2015
ASP.NET enable SVG images Azure, to be put in system.webServer.
View gist:5104476
<remove fileExtension=".mp4"/>
<remove fileExtension=".ogv"/>
<remove fileExtension=".webm"/>
<remove fileExtension=".svg"/>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml"/>