Skip to content

Instantly share code, notes, and snippets.

View seanstickle's full-sized avatar

Seán Stickle seanstickle

View GitHub Profile

Tiny Content Framework

About the Project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Contribute

There’s more to come, and I’d love to hear what you think. Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com). We all benefit from sharing our ideas and creating standards. Onward.

U1=%q{M_]C_X``02D9)1@`!`@$!+`$L``#_X0?M17AI9@``34T`*@````@`!P$2``,`
M```!``$```$:``4````!````8@$;``4````!````:@$H``,````!``(```$Q
M``(````4````<@$R``(````4````AH=I``0````!````G````,@```$L````
M`0```2P````!061O8F4@4&AO=&]S:&]P(#<N,``R,#$R.C$Q.C`V(#(S.C0U
M.C0Q``````.@`0`#`````0`!``"@`@`$`````0```#N@`P`$`````0```"T`
M````````!@$#``,````!``8```$:``4````!```!%@$;``4````!```!'@$H
M``,````!``(```(!``0````!```!)@("``0````!```&OP````````!(````
M`0```$@````!_]C_X``02D9)1@`!`@$`2`!(``#_[0`,061O8F5?0TT``?_N
M``Y!9&]B90!D@`````'_VP"$``P("`@)"`P)"0P1"PH+$14/#`P/%1@3$Q43
M$Q@1#`P,#`P,$0P,#`P,#`P,#`P,#`P,#`P,#`P,#`P,#`P,#`P!#0L+#0X-
a.resource_sets.reduce({}) do |a, x|
a[x.key] = { id: x.resource.id, url: x.resource.url }; a
end
@seanstickle
seanstickle / README.txt
Created June 4, 2012 18:02 — forked from RichardBronosky/README.txt
Apache mod_rewrite unit tests
ReUnit - Unit tests for HTTP Redirects.
# ATTENTION: Please do not think badly of me for this code!
# I REALLY WANT TO REDO THIS IN PYTHON AND USE YAML!!!
# It started out as a oneliner! https://gist.github.com/1158733/2f9aa7e2db9ccfbda4669c2102daebacf8a04284#L6
Contents:
reunit.sh - This is the main script and the purpose of this repo. It reads a text file full of tests.
tests.txt - This holds the tests that will be run. It's format is Identical to the output of reunit.sh an urltest
urltest - This is the test utility used by reunit.sh. It was extracted into an executable so that it could be used for single tests or creating entries for tests.txt
# all upcoming events for a client
def future_events_all_accounts
self.accounts.map{ |account|
account.events.in_future(account.now).where(:client_id => self.id)
}.uniq.sort_by{ |a| a.start_time }
end
# all past events for a client
def past_events_all_accounts
self.accounts.map{ |account|
#!/bin/env ruby
def broken
people = Hash.new([])
people['a'] = [1]
people['b'] = [2]
p people
end
broken
@seanstickle
seanstickle / black.scm
Created April 8, 2012 07:54 — forked from ecounysis/black.scm
Black-Scholes Option Pricing Model in Scheme
(define new-pi 3.1415926)
(define days-in-year 365)
(define (sqrt-t days-to-expiration)
(sqrt (/ days-to-expiration days-in-year)))
(define (normal-dist zz)
(if (= zz 0) 0.5
[let ((p 0.2316419) (b1 0.31938153) (b2 -0.356563782)
@seanstickle
seanstickle / hack.sh
Created March 31, 2012 14:44 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@seanstickle
seanstickle / README.md
Created February 11, 2012 17:19 — forked from netmute/README.md
Game of Life

Game of Life

An implementation of Conway's Game of Life in 140 characters of Ruby.

Author

Created by Simon Ernst (@sier).

%h1 New document
%table
%tr
%th
%th
%th
- @documents.each do |document|
%tr
%th= link_to 'Show', document