Skip to content

Instantly share code, notes, and snippets.

View jdenen's full-sized avatar

Johnson Denen jdenen

  • Columbus, OH
View GitHub Profile
VOWELS = ['a', 'e', 'i', 'o', 'u']
word = gets.chomp.chars.map(&:downcase)
def modify_vowel(char)
VOWELS.include?(@previous_char) ? char : "idig#{char}"
end
def is_vowel?(char)
@jdenen
jdenen / gitflow-breakdown.md
Created September 16, 2016 13:01 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@jdenen
jdenen / no-javascript.rb
Created April 19, 2015 19:35
Automate a browser with JavaScript disabled
require "watir-webdriver"
# Create a Firefox profile and disabled JavaScript
profile = Selenium::WebDriver::Firefox::Profile.new
profile["javascript.enabled"] = false
# Instantiate a browser instance using the profile you created above
browser = Watir::Browser.new :firefox, :profile => profile