Skip to content

Instantly share code, notes, and snippets.

View nicinabox's full-sized avatar

Nic Haynes nicinabox

View GitHub Profile
<div class="content-block heading-block">
<h2><%= sir_trevor_markdown block["text"] %></h2>
</div>

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@nicinabox
nicinabox / index.html
Created September 17, 2013 14:28
Image focus on CSS cropped image thumbnails
<div class="image-editable">
<img src="http://lorempixel.com/700/400" />
<a class="focus"></a>
</div>
<div class="image-display">
<img src="http://lorempixel.com/700/400" alt="">
<span class="focus"></span>
</div>
# Sample Boxcar Addon
boot/
...
install/
doinst.sh
slack-desc
usr/
...
boxcar.json
{
dependencies: {
# Basic
"openssl": "~1.0.0",
# or custom url
"openssl": "http://..."
}
}
<?PHP
/* Copyright 2012, Bergware International & Andrew Hamer-Adams.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*/
?>
<?
parse_str($argv[1], $_GET);
/*
* Modified from TJ VanToll's script
* http://tjvantoll.com/2012/06/15/detecting-print-requests-with-javascript/
*/
(function() {
var beforePrint = function() {
_gaq.push(['_trackEvent', 'Print', document.title, window.location.pathname]);
};
var afterPrint = function() {
<li class="item">
<a href="/blog/2013/5/a-break-down-of-the-apprenticeship" class="container">
<div class="image-wrapper">
<div class="placeholder">N</div>
</div>
<span class="tags">
Blog
</span>
<header>
<hgroup>
li:nth-child(even) {
background: aquamarine;
}
@nicinabox
nicinabox / archive.sh
Last active December 14, 2015 08:48
Archive a site
wget --mirror -p --html-extension --convert-links -e robots=off -P . SITEURL