Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
#! /usr/bin/env ruby
# Generate all tags for all gems included by bundler in gems.tags
#
# Basically does the same as "bundle show gemname", except for all gems.
# Interestingly enough, "bundle show" without any arguments falls back to
# "bundle list", otherwise the whole thing could have been a bash one-liner.
require 'bundler'
@ivanoats
ivanoats / capybara cheat sheet
Created January 10, 2012 02:00 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=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')
@ivanoats
ivanoats / autoclose_janus
Created January 13, 2012 06:49 — forked from jackkinsella/autoclose_janus
How to add autoclose to Janus
#~/.janus.rake file
vim_plugin_task "autoclose", "git://github.com/Townk/vim-autoclose.git"
#~/vimrc.local file
let g:AutoClosePairs = {'(': ')', '{': '}', '[': ']', '"': '"', "'": "'", '#{': '}', '|':'|' }
let g:AutoCloseProtectedRegions = ["Character"]
@ivanoats
ivanoats / gist:1823034
Last active November 19, 2022 06:08 — forked from parndt/gist:958385
Setting up GIT Bash autocompletion. Use this only if you are using Bash instead of ZSH.
#!/bin/bash
BREWBIN=/usr/local/bin
GROWLHOST=$1
(
/usr/bin/ssh "$GROWLHOST" "cat .growl-alerts 2>/dev/null; rm -f .growl-alerts" && echo
) | while read msg
do
@ivanoats
ivanoats / osx_lion_rail_setup.md
Created June 25, 2012 19:43 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@ivanoats
ivanoats / gist:3238371
Created August 2, 2012 16:23 — forked from anonymous/gist:139987
A ruby snippet for Parsing and cleaning Word HTML
#
# This function takes messy Word HTML pasted into a WYSIWYG and cleans it up
# It leaves the tags and attributes specified in the params
# Copyright (c) 2009, Radio New Zealand
# Released under the MIT license
require 'rubygems'
require 'sanitize'
def clean_up_word_html(html, elements = ['p', 'b', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'], attributes={})
@ivanoats
ivanoats / gist:3238387
Created August 2, 2012 16:26 — forked from robertjwhitney/gist:1207453
A ruby snippet to sanitize Html (and specifically Microsoft Word's messy HTML) (based on https://gist.github.com/139987)
# This function cleans up messy HTML that was pasted by a user to a WYSIWYG editor.
# Specifically it also handles messy Word\Outlook generated HTML while keeping its original formattings.
require 'rubygems'
require 'sanitize'
def clean_up_document(html)
elements = %w[p b h1 h2 h3 h4 h5 h6 strong li ul ol i br div pre p]
attributes = {
'a' => ['href', 'title'],

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@ivanoats
ivanoats / icebreaker.rb
Last active December 10, 2015 20:48 — forked from anonymous/icebreaker.rb
puts "What's your name?"
puts "Where are you from?"
puts "Hobbies?"
puts "What do you want to get out of codefellows?"
questions = [ "What is your favorite food?",
"What is your favorite animal? List three adjectives to explain your choice",
"It's a hot muggy day. What would you choose to refresh your thirst and why?",
"If you could be one for just 24 hours, what cereal box cartoon character would you be? Why?",
"What was the best thing that happened to you this weekend?",
"What is your favorite animal? List three adjectives to explain your choice.",