Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# API Documentation at http://api.wikia.com/wiki/LyricWiki_API
require 'open-uri'
require 'json'
require 'tmpdir'
ARTIST = "Johnny Cash"
@jwilsjustin
jwilsjustin / sql_logger.rb
Created September 4, 2015 13:19
The best way I've found to log SQL in Rails 4.x+ applications
# Log SQL queries to STDOUT
unless Rails.env.test?
ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT)
end

Professional Experience

Audiogon - Senior Developer

March 2013 - Present

I built and maintained features for the High-End Audio Community. I utilized full-stack web development skills. Additionally I helped rebuild some legacy sites. To accomplish this I designed Ruby libraries to cycle through thousands of text files, resulting in over a million of database records. It was actually pretty fun.

As a team leader, I was responsible for implementing the software roadmap. I promoted collaborative discussions where developers could reach a consensus about software solutions.

Dealer Ignition - Web Developer

@jwilsjustin
jwilsjustin / dave-ceddia-isms.md
Last active March 5, 2020 21:16
dave-ceddia-isms.md
🤨 TLDR; source
higher-order function it returns a function when you call it link
selector a small function you write that can take the entire Redux state, and pick out a value from it link
#!/bin/sh
files=$(git status -s | grep -E 'A|M' | awk '{print $2}')
files="$files $(git status -s | grep -E 'R' | awk '{print $4}')"
echo $files | xargs bundle exec standardrb --format progress --no-fix --display-cop-names --extra-details --force-exclusion
@jwilsjustin
jwilsjustin / capybara.rb
Created July 21, 2021 17:38
capybara chrome headless with media and logging
Capybara.register_driver :selenium_chrome_headless_with_media do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument("headless")
options.add_argument("use-fake-device-for-media-stream")
options.add_argument("use-fake-ui-for-media-stream")
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
"goog:loggingPrefs" => {
browser: "ALL"
}
)