Skip to content

Instantly share code, notes, and snippets.

View scottwillson's full-sized avatar

Scott Willson scottwillson

View GitHub Profile
@scottwillson
scottwillson / application_system_test_case.rb
Created May 11, 2020 16:19
Rails 6 system test download directory
require "test_helper"
# Send downloads to tmp/capybara/downloads so they can be reliably checked and cleaned up
# without polluting ~/Downloads.
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] do |driver_option|
driver_option.add_preference(
:download,
default_directory: Rails.root.join("tmp/capybara/downloads")
)
@scottwillson
scottwillson / flagged-list-diffs.txt
Last active May 15, 2019 18:16
Flagged list response
redis srv app result
---- --- --- ------
add x [add x] [] [x]
add [add] [x] [x] or [x, x]?
add, add [add] [] [x]
add, add [add] [x] [x] or [x, x]?
Promise.resolve().then(v => {
console.log('everything is fine');
throw new Error();
}).then(e => {
console.log('after error');
});
Promise.resolve().then(v => {
console.log('everything is fine 2');
throw new Error();
2.1.0 :008 > Category.order(:name).pluck(:name).each {|c| puts(c)}.size
#<Spreadsheet::Formula:0x0000000b60eea0>
#<Spreadsheet::Formula:0x0000001059f028>
#<Spreadsheet::Formula:0x00000015fac818>
#<Spreadsheet::Formula:0x0000001652a240>
#<Spreadsheet::Formula:0x00000016b0b628>
(Beginner) Category 3 Men 14-18
(Beginner) Category 3 Men 19-34
(Beginner) Category 3 Men 35-44
(Beginner) Category 3 Men 45-54
[Error] Error: [$injector:modulerr] Failed to instantiate module rapQueue due to:
[$injector:modulerr] Failed to instantiate module rapQueue.rapQueueController due to:
[$injector:modulerr] Failed to instantiate module rapQueue.rapQueueModalService due to:
[$injector:modulerr] Failed to instantiate module rapQueue.reassignController due to:
[$injector:modulerr] Failed to instantiate module dateInUserTimeZoneFilter due to:
[$injector:modulerr] Failed to instantiate module function (input, format, locale, strict) due to:
[$injector:unpr] Unknown provider: input
http://errors.angularjs.org/1.2.28/$injector/unpr?p0=input
http://0.0.0.0:3000/assets/angular/angular.js?body=1:79:21
http://0.0.0.0:3000/assets/angular/angular.js?body=1:3802:34
input {
file {
type => "rails logs"
path => "/Users/sw/devel/racing_on_rails/log/logstash_development.log"
codec => json {
charset => "UTF-8"
}
}
}
export RUBY_GC_HEAP_FREE_SLOTS="600000"
export RUBY_GC_HEAP_GROWTH_FACTOR="1.25"
export RUBY_GC_HEAP_GROWTH_MAX_SLOTS="300000"
export RUBY_GC_HEAP_INIT_SLOTS="600000"
export RUBY_GC_MALLOC_LIMIT="64000000"
export RUBY_GC_OLDMALLOC_LIMIT="64000000"
unset RUBY_GC_HEAP_FREE_SLOTS
unset RUBY_GC_HEAP_GROWTH_FACTOR
unset RUBY_GC_HEAP_GROWTH_MAX_SLOTS
@scottwillson
scottwillson / gist:9398314
Created March 6, 2014 20:07
Office and Administrative Assistant Job Posting
Bespoke offers is a new service from Barclaycard which gives everyone access to lots of money saving offers from big brands to local favorites.
We are looking for a full time, experienced Office and Administrative Assistant to provide office, administrative and team support for our local Portland office and remote engineering team.
Job Responsibilities:
• Answering the phone
• Ordering and maintaining office supplies and equipment
• Implementing office security procedures
• Interacting and communicating with office landlord and manager
• Arranging travel accommodations in compliance with company policies
@scottwillson
scottwillson / gist:8546664
Created January 21, 2014 19:31
Dallas Eats
Smoke - Amazing brisket; good custom flavored whiskeys
http://smokerestaurant.com/
Chicken Scratch / The Foundry - Lunch time huge chicken biscuit sandwiches. Bacon is awesome too! I think they have dinner food but only been for lunch.
http://cs-tf.com/wordpress/location/
Craft and Growler - Amazing beer selection, also some Oregon beers if missing PDX
http://www.craftandgrowler.com/#contact
Il Cane Rosso - Great pizza; the smore dessert calzone is yummy; This place is in Deep Ellum which apparently has a good night life scene which I have yet to experience. Seemed a little sketch when I was there. :)
[8/1/13 1:48:31 PM] Jesse Garrison: Oh yeah, did people want to get some group food for games? Pizza or something?
[8/1/13 1:48:55 PM] Wilson Rector: maybe, I might just get some los gorditos
[8/1/13 1:48:57 PM] Cameron Thomas: Sizzle pie
[8/1/13 1:49:05 PM] Wilson Rector: or if we are kicked out to lucky lab...
[8/1/13 1:49:06 PM] Robert Peterson: jesse, order 5 pizzas!
[8/1/13 1:54:18 PM] Michael Klopot: (pizza) x ?
[8/1/13 1:55:03 PM] Scott Willson: I will get beer for all. I'll feed myself, though.
[8/1/13 1:55:42 PM] Jesse Garrison: With beer? (giggle)
[8/1/13 1:55:52 PM] Scott Willson: Liquid diet
[8/1/13 1:56:04 PM] Jesse Garrison: "The Beer Cleanse"