Skip to content

Instantly share code, notes, and snippets.

@craig552uk
craig552uk / mit-license.txt
Created September 23, 2013 15:41
MIT License
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@craig552uk
craig552uk / .conkyrc
Created September 23, 2013 15:40
My Conkyrc
# Conky settings #
background no
update_interval 5
double_buffer yes
no_buffers yes
# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
@craig552uk
craig552uk / .bashrc
Last active December 23, 2015 17:59
My Bashrc
# Colours
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
bldblk='\[\e[1;30m\]' # Black - Bold
bldred='\[\e[1;31m\]' # Red - Bold
bldgrn='\[\e[1;32m\]' # Green - Bold
@craig552uk
craig552uk / h5bp-main.css
Created September 23, 2013 15:37
H5BP Main CSS
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
@craig552uk
craig552uk / normalize.css
Last active December 23, 2015 17:59
Normalize CSS
/*! normalize.css v1.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
@craig552uk
craig552uk / html5-boilerplate.html
Last active December 23, 2015 17:59
HTML5 Boilerplate
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
@craig552uk
craig552uk / ga_tracking.js
Last active December 20, 2015 08:49
Blog: Extract the Google Analytics Visitor ID from the cookie and push it back to GA as a custom variable.
// Extracts the Visitor ID from a GA cookie
function _goog_id(){
var id, a, c = document.cookie.split('; ');
for(i in c){a = c[i].split('=');if(a[0]=='__utma'){id = a[1].split('.')[1];}}
return id || 'unknown';
}
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
@craig552uk
craig552uk / Chart.html
Created September 28, 2012 13:40
Blog: Google Spreadsheet Powered Interactive
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Chart</title>
<meta charset="utf-8">
</head>
<body>
<p class="my-chart" style="text-align:center"></p>
@craig552uk
craig552uk / sublime-text-2 config
Last active October 2, 2015 21:58
My Sublime Text 2 Config
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",