This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trace = TracePoint.new(:raise) do |trace| | |
puts trace.raised_exception if "IT WAS NOT RESCUED" | |
end | |
trace.enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fourchette::Heroku | |
def copy_pg from, to | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Disable useless shit (for Logitech remote)</name> | |
<identifier>private.logitech_remote_disable_shit</identifier> | |
<autogen>__KeyToKey__ KeyCode::DOT</autogen> | |
<autogen>__KeyToKey__ KeyCode::ESCAPE</autogen> | |
<autogen>__KeyToKey__ KeyCode::F5</autogen> | |
</item> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] One moment, building ... | |
[DEBUG] Detecting modules in /Users/macbook_pro_jpb/ti_studio_workspace/1.7.1 tableview crashing test/modules | |
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules | |
[INFO] Titanium SDK version: 1.7.1 | |
[INFO] iPhone Device family: iphone | |
[INFO] iPhone SDK version: 4.3 | |
[INFO] iPhone simulated device: iphone | |
[DEBUG] executing command: /usr/bin/killall iPhone Simulator | |
[DEBUG] No matching processes belonging to you were found | |
[DEBUG] finding old log files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/my/rvm/gemset/gems/activerecord-3.2.1/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x007fb9743d8288> (NoMethodError) | |
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:4:in `<class:Image>' | |
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:2:in `<module:Spree>' | |
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:1:in `<top (required)>' | |
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `load' | |
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `block in load_file' | |
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:639:in `new_constants_in' | |
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:468:in `load_file' | |
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:353:in `require_or_load' | |
fro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: you need to add the files in say "app/overrides", ie: "/app/overrides/insert_this_here.rb" | |
# Step 2: add that in your application.rb to load them (and decorators) | |
config.to_prepare do | |
# Load application's model / class decorators (optional for Deface, but you should have it in your app if you use Spree AFAIK. | |
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| | |
Rails.configuration.cache_classes ? require(c) : load(c) | |
end | |
# Load application's view overrides | |
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- path: app/views/refinery/admin/pages/_actions.html.erb --> | |
<!-- | |
You could override this view, if you want to add links to each page type via the admin UI. If you don't you'll have to add a param the the URL. | |
WARNING: You most probably want to do it cleaner than that and find a way to hook to this view instead of overriding it if at all possible. | |
--> | |
<ul> | |
<li> | |
<%= render '/refinery/admin/search', :url => refinery.admin_pages_path %> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [...] | |
Todos.ListTodosView = Ember.View.extend({ | |
templateName: 'todo-list', | |
todosBinding: 'Todos.todosController' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------ | |
Top failing specs | |
------------------------------------------------ | |
18 | ./spec/models/my_model_spec.rb | |
4 | ./spec/models/your_failing_model_spec.rb |
OlderNewer