Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin Wilson jwilsjustin

View GitHub Profile
@jwilsjustin
jwilsjustin / capybara.rb
Created Jul 21, 2021
capybara chrome headless with media and logging
View capybara.rb
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"
}
)
View git-pre-commit-standardrb.sh
#!/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
View 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
View resume.md

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