Skip to content

Instantly share code, notes, and snippets.

View HamptonMakes's full-sized avatar
💭
Coding

Hampton Lintorn-Catlin HamptonMakes

💭
Coding
View GitHub Profile
class ArticlesController < ApplicationController
make_resourceful do
actions :show, :index
before :index do
@lead_news_item = NewsItem.last
end
response_for :index do |format|
puts "Does my code get in here?"
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cairo configure 1.10.2, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cairo/1.10.2 --with-x
## --------- ##
## Platform. ##
@HamptonMakes
HamptonMakes / SassMeister-input.scss
Created November 27, 2013 23:51
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$time: morning;
@if $time == morning { a { color: red; } }
@else if $time == afternoon { a { color: blue; } }
@else { a { color: gray; } }
@HamptonMakes
HamptonMakes / gist:7849723
Created December 7, 2013 22:07
pi by the digits.
var piDigit = function(i) {
if(i == 0) {
i = -1;
}
return (Math.PI + "").substring(i+1,i+2)
}
@HamptonMakes
HamptonMakes / gist:9179210
Created February 24, 2014 00:02
In all my years running open source projects, I've yet to have this happen...
Date: Sun, 23 Feb 2014 14:51:43 -0800
From: Michael Kalmykov <[email protected]>
To: [email protected]
Sender: [email protected]
Subject: SASS
Semantically awful style sheets
You sir, have made my life more difficult. Details spared, I have to learn
your stupid language and rack my brain in your filthy bird shatted 'nests'.
%ul
%li One
%li Two
%li <a href="boo">Yo</a>
%li= link_to "boo", "Yo"
<li>a</li><li><a>b</a></li>
@HamptonMakes
HamptonMakes / RBResizer.swift
Created June 27, 2014 14:45
Swift Image Resizer
//
// RBResizer.swift
// Locker
//
// Created by Hampton Catlin on 6/20/14.
// Copyright (c) 2014 rarebit. All rights reserved.
//
import UIKit
@HamptonMakes
HamptonMakes / SassMeister-input.scss
Created October 3, 2014 18:13
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
/*!
*/
a {
color: red;
}
@import url("x");