Skip to content

Instantly share code, notes, and snippets.


Stephen Benner SteveBenner

View GitHub Profile
SteveBenner / load-jQuery.js
Created Aug 7, 2020 — forked from takkyuuplayer/load-jQuery.js
use jQuery in Chrome javascript console.
View load-jQuery.js
var jq = document.createElement('script');
jq.src = "//";
SteveBenner /
Created Jul 28, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.



Pry Cheat Sheet

Youtube Tutorial (2013)

Command Line

  • pry -r ./config/app_init_file.rb -- load your app into a pry session (look at the file loaded by
  • pry -r ./config/environment.rb -- load your rails into a pry session


View common.loading.css
body.loading:after {
/* with no content, nothing is rendered */
content: "";
position: fixed;
/* element stretched to cover during rotation an aspect ratio up to 1/10 */
top: -500%;
left: -500%;
right: -500%;
bottom: -500%;
z-index: 9999;
View _coderwall-badges.slim
/ This partial allows you to render the Coderwall badges of specified user
username = 'your-coderwall-username'
orientation = 'horizontal' # can be 'vertical' or 'horizontal'
/ Place the following tags in the HEAD section of your web page (omit jQuery if already present, of course)
link href="" media="all" rel="stylesheet" type="text/css"
script src=""
script src=""
SteveBenner / brewfix1-osxfuse.rb
Last active Jan 16, 2016 — forked from yiufung/truecrypt_fix.bash
Homebrew fix - unexpected files and libs from ‘osxfuse'
View brewfix1-osxfuse.rb
#!/usr/bin/env ruby
# Homebrew fix 1 - osxfuse dylibs
# original solutions:
# Fixes the following:
# > Warning: Unbrewed dylibs were found in /usr/local/lib.
SteveBenner / _disqus.slim
Last active Aug 29, 2015 — forked from voigt/disqus.js
Slim partial - Disqus comments widget
View _disqus.slim
/ Integrate Disqus comments into your site with this widget (adheres to official API and config spec)
/ @see Official web integration docs
/ @see Configuration docs
/ @local [Hash{Symbol => String}] disqus Key/value pairs corresponding to the Disqus JS configuration variables
/ @option disqus [String] shortname Unique identifier for your forum website registered on (REQUIRED)
/ @option disqus [String] identifier A String or Integer value which identifies the current web page thread
/ @option disqus [String] title Title of the current page; defaults to value of HTML `title` element
/ @option disqus [String] url URL of the current page; defaults to `window.location.href`
SteveBenner / sitemap.xml.slim
Last active Apr 24, 2016 — forked from ls-lukebowerman/sitemap.xml.erb
Slim template - generates a sitemap for Middleman
View sitemap.xml.slim
- pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) }
doctype xml
urlset xmlns=""
- pages.each do |p|
loc "http://www.YOUR_WEBSITE_URL/#{p.destination_path.gsub('/index.html','')}"
lastmod =
changefreq = || 'weekly'
priority = || '0.5'
You can’t perform that action at this time.