Skip to content

Instantly share code, notes, and snippets.

View stoplion's full-sized avatar
🎯
Focusing

George Norris stoplion

🎯
Focusing
  • Ottertune
  • Elsewhere
View GitHub Profile
@stoplion
stoplion / google_analytics_outbound_link
Last active December 18, 2015 05:59
google analytics outbound link
@stoplion
stoplion / index.slim
Created June 23, 2013 17:12
A CodePen by George Norris. Josef Albers
.frame
.action: a.button Click
@stoplion
stoplion / index.slim
Created June 30, 2013 20:57
A CodePen by George Norris. Responsive tDR 'Angry Man'
.container
.man
.head
.face
.eyes
.eye.left
.eye.right
.mouth
.arms
.legs
###
# Required Gems
###
###
# Settings
###
set :site_title, "Site name"
@stoplion
stoplion / SassMeister-input.sass
Created October 29, 2013 15:32
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// unnest for BEM--------------------------------
.sidebar
color: red
@at-root #{&}__categories
color: blue
@stoplion
stoplion / SassMeister-input.sass
Created October 29, 2013 16:41
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
=module($name)
.#{$name}
@at-root
@content
@stoplion
stoplion / SassMeister-input-HTML.html
Created October 30, 2013 21:03
Generated by SassMeister.com.
<div class='media attribution'>
<a href='#' class='media__image'>
<img src='http://placehold.it/100x100'>
</a>
<div class='media__body'>
@stoplion 12 minutes ago..
</div>
</div>
@stoplion
stoplion / cleanup_desktop_folders
Created November 22, 2013 17:59
Desktop File and Folder cleanup automation written in Thor
# Install on your system..
# thor install cleanup_folder.thor
class Cleanup < Thor
desc "Images", "Move images into Images folders"
def images
if Dir.exists?("Images")
puts "Skipping Images, already a folder named Images"
else
FileUtils.mkdir("Images")
//
// Responsive Margin & Padding Shortcuts for Twitter Bootstrap 3.0
// ---------------------------------------------------------------
// This is an addition to Twitter Bootstrap that allows additional margin and padding shortcuts
// for enhanced layout control purposes. It should be included after the bootstrap.less
// import statement or precompiled as you see fit. It differs from bootstrap standards in
// that for any given screen size it predetermines the margin/padding size. All you have to
// do is specify the size you want xs,sm,md,lg, or xl. The exception is for items that you
// want to be centered using auto left/right margins. This can be device responsive by
// specifying mc-xs, mc-sm, mc-md, or mc-lg depending on when you want that behavior.
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')