I hereby claim:
- I am bergerjac on github.
- I am jacobberger (https://keybase.io/jacobberger) on keybase.
- I have a public key whose fingerprint is 40E9 6B86 8C85 4ABF 710E 509E 4A89 D5CF D7C7 4196
To claim this, I am signing this object:
/* refs | |
http://machadogj.com/2013/4/error-handling-in-nodejs.html | |
http://nodejs.org/api/process.html#process_event_uncaughtexception | |
*/ | |
function asyncTryCatch(tryFunction, catchFunction, keepAliveOnHandled) | |
{ | |
process.on('uncaughtException', function(ex) | |
{// hook onto uncaughtException -> execute catch | |
var handled = catchFunction(ex); |
I hereby claim:
To claim this, I am signing this object:
# debugging | |
save_and_open_page | |
puts page.body | |
puts find("#id").native | |
puts first("#id .class element").native | |
# navigating | |
visit('/projects') | |
visit(post_comments_path(post)) | |
# include RSpec Factories in Cucumber | |
Dir["../../spec/factories/*.rb"].each { |file| require_relative file } |
group :test do | |
gem 'capybara-screenshot' | |
end |
group :test do | |
gem 'rspec-gherkin' | |
end |
# config/initializers/backtrace_silencers.rb | |
Rails.backtrace_cleaner.remove_silencers! |
# nano config/initializers/assets.rb | |
Rails.application.config.assets.precompile += %w(active_admin/*.gif active_admin/*.png) |
# rendered in new.js.erb | |
<%= simple_form_for @task, remote: true do |f| %> | |
<%= f.input :description %> | |
<%= f.input :deadline %> | |
<%= f.button :submit %> | |
<% end %> |
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT |