Skip to content

Instantly share code, notes, and snippets.

View cs-pattern-library.md

Centresource Pattern Library Guide

Below are elements that are expected to be in a Photoshop pattern library file.

Typography

  • Headers (h1 - h5)
  • Paragraphs
  • Lead Copy
  • Unordered List
@rianrainey
rianrainey / style.css
Created Mar 12, 2014
4/12/14 Dump of CSS
View style.css
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
View git-workflow.md
  1. All new branches are created off of the tip of master.
  2. All commits should be created in a feature, bug, or hotfix branch prefixed by "feature/", "bug/", "hotfix/", respectively.
  3. Commits only find their way into master via the GitHub pull request.
  4. All bug/ branches should start with the Redmine issue number if documented in a Redmine issue.
  5. All branch names should use hyphens, NOT underscores.
  6. The integration branch for a staging site shall be called "staging".
  7. Feature branches should be manually merged into staging, often, and staging should be deployable by any member of the project team to facilitate a rapid client feedback cycle.
  8. Only the project lead should merge pull requests into master and deploy to production, unless that person is unavailable.
  9. There should be an alternate project lead.
  10. Do not generate a pull request until you have client approval for the feature.
View day3.md

Topics

  • Partials
  • content_for
  • Form/Data submission
  • Content (CSS/Scripts) Bundling
  • Scripts, Content, Data caching
  • Plugging in validation
View command.sh
SUDO defaults write com.apple.Finder AppleShowAllFiles YES; killall Finder
@rianrainey
rianrainey / user-policy.json
Created Aug 28, 2014
AWS IAM User Policy for S3Auth
View user-policy.json
{ "Statement": [
{ "Effect": "Allow",
"Action": ["s3:GetObject", "s3:GetBucketWebsite"],
"Resource": [ "arn:aws:s3:::goliath.example.com/*" ]
}
]}
@rianrainey
rianrainey / variables.sh
Last active Aug 29, 2015
How To Use S3Auth With Amazon S3
View variables.sh
Goliath National Bank # Client Name
www.example.com # Domain I already own
goliath.example.com # Desired subdomain for client's documentation
goliath.example.com # AWS S3 Bucket Name
0123 # AWS Key
3210 # AWS Secret Key
@rianrainey
rianrainey / submission.txt
Created Aug 28, 2014
s3auth.com example submission
View submission.txt
Host Name: goliath.example.com
AWS Key: 0123
AWS Secret Key: 3210
Bucket Name: goliath.example.com
Optional AWS S3 endpoint: I left it as the default of ‘s3’
Optional syslog UDP end-point: I left it as the default of ‘syslog.s3auth.com:514`.
View spotify.scpt
if application "Spotify" is running then
tell application "Spotify" to playpause
else if application "iTunes" is running then
tell application "iTunes" to playpause
end if
if application "Spotify" is running then
tell application "Spotify" to next track
else if application "iTunes" is running then
tell application "iTunes" to next track
@rianrainey
rianrainey / instructions.md
Created Oct 14, 2014
Set up Amazon S3 for Paperclip on Heroku
View instructions.md
# Amazon S3 settings for Paperclip uploads
  config.paperclip_defaults = {
    :storage => :s3,
    :s3_protocol => 'https',
    :s3_credentials => {
    :bucket => ENV['AWS_BUCKET'],
    :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
    :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
  }