Skip to content

Instantly share code, notes, and snippets.

@SamWhited
SamWhited / gist:1591977
Created January 10, 2012 23:48
Radiant install setup

Running

RVM 1.1.6
Ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
Rails 2.3.14
Ubuntu 10.04.3 LTS

Source

Radiant commit 6cec8e9feae93f8a4bb6f7c04bed91c282290a55

@SamWhited
SamWhited / readme.md
Created January 18, 2012 17:08
A quick HTML5-ish StopSOPA banner

Use

Make sure the banner is inside of a div or other block level element that has its position set to relative (position: relative;). Adjust the position of the banner by modifying top and left.

By default, the width and height of the banner are set to 100% of whatever relatively positioned div it is placed in.

@SamWhited
SamWhited / README.md
Created February 28, 2012 20:46
Two options for fixing the redundant date tags in Radiant CMS
@SamWhited
SamWhited / LadyOfShalott.tex
Created March 1, 2012 05:25
The Lady of Shalott by Lord Tennyson (1842)
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{poetrytex}
% Use the PA5 paper size
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry}
@SamWhited
SamWhited / PoeTeX.tex
Created March 1, 2012 05:28
PoeTeX: an /ɪɡˈzɑːmpəl/ poem by Sam Whited
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[a4paper,11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{fontspec,poetrytex}
% Use a different font for IPA.
\newfontfamily\ipa{Charis SIL}
@SamWhited
SamWhited / highwayman.tex
Created March 1, 2012 05:48
The Highwayman by Alfred Noyes (1906)
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{poetrytex}
% Use the PA5 paper size
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry}
@SamWhited
SamWhited / DoverBeach.tex
Created March 1, 2012 05:57
Dover Beach by Matthew Arnold (1867)
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{poetrytex}
% Use the PA5 paper size
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry}
@SamWhited
SamWhited / modern.scss
Created March 5, 2012 09:39
The Radiant CMS template being used on SamWhited.com
$accent: #9BBB59;
$accent-darker: #577715;
$background: #FFFFFF;
$header-color: #222222;
$body-fonts: Verdana, Tahoma, Geneva, sans-serif;
$header-fonts: Georgia, "Times New Roman", serif;
$title-fonts: museo-1, museo-2, $header-fonts;
$monospace-fonts: Consolas, "Bitstream Vera Sans Mono", "Lucida Console", "Courier New", monospace;
$shadow-basic: 0px 1px 0px white;
$page-color: #321E1E;
@SamWhited
SamWhited / popdown.css
Created March 6, 2012 02:59
Make an octocat pop-down on mouse over (like https://samwhited.com/projects)
.parent {
overflow: hidden;
}
.popdown {
position: absolute;
top: -60px;
right: 2em;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
@SamWhited
SamWhited / flatten_list.coffee
Created March 6, 2012 04:49
Simple list flattening
(i for i in s for s in l)