Skip to content

Instantly share code, notes, and snippets.

View mit-license.txt
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:
View .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
View .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
View h5bp-main.css
/*! HTML5 Boilerplate v4.3.0 | MIT License | */
* 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
View normalize.css
/*! normalize.css v1.1.3 | MIT License | */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
View html5-boilerplate.html
<!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]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
craig552uk / ga_tracking.js
Last active Dec 20, 2015
Blog: Extract the Google Analytics Visitor ID from the cookie and push it back to GA as a custom variable.
View ga_tracking.js
// 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']);
craig552uk / Chart.html
Created Sep 28, 2012
Blog: Google Spreadsheet Powered Interactive
View Chart.html
<!DOCTYPE html>
<html lang="en">
<title>My Chart</title>
<meta charset="utf-8">
<p class="my-chart" style="text-align:center"></p>
craig552uk / sublime-text-2 config
Last active Oct 2, 2015
My Sublime Text 2 Config
View sublime-text-2 config
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",