Skip to content

Instantly share code, notes, and snippets.

View rknightuk's full-sized avatar

Robb Knight rknightuk

View GitHub Profile
#!/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.
@rknightuk
rknightuk / gist:45630e1e0ed62558928e
Created July 29, 2014 13:33
Get grad photos url
https://www.successphotography.com/traceimagefreepp.php?gpr=1412312201431&gpi=
@rknightuk
rknightuk / .bash_profile
Created July 28, 2014 15:50
Vagrant Aliases
alias vu="cd ~/Sites/homestead; vagrant up; cd -;"
alias vd="cd ~/Sites/homestead; vagrant halt; cd -;"
alias vs="cd ~/Sites/homestead; vagrant status; cd -;"
alias vp="cd ~/Sites/homestead; vagrant provision; cd -;"
alias vr="cd ~/Sites/homestead; vagrant reload; cd -;"
alias vssh="cd ~/Sites/homestead; vagrant ssh; cd -;"
<!DOCTYPE HTML>
<html>
<head>
<title>rbbl.ws share</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
@rknightuk
rknightuk / triangle.css
Created May 7, 2014 16:01
CSS triangle
.triangle-topright {
width: 0;
height: 0;
border-top: 12px solid #ffa500;
border-left: 12px solid transparent;
float: right;
margin-top: -16px;
margin-right: -10px;
}
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"font_face": "Source Code Pro",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
@rknightuk
rknightuk / gist:8702766
Last active August 29, 2015 13:55
Backbone model length
initialize: function() {
this.listenTo(this.model, 'sync', this.render)
}
@rknightuk
rknightuk / testhtml
Created December 7, 2013 11:41
HTML for testing style at the beginning of development
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>

Slimdown

A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
@rknightuk
rknightuk / logomarkstyle.css
Last active December 28, 2015 09:49
Robb Lewis Logomark
body {
margin-top: 50px;
}
.logo {
border: 8px solid black;
font-weight: bold;
font-family: Helvetica, Arial, sans-serif;
font-size: 200%;
padding: 10px;