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
$ bundle exec rake assets:precompile | |
/Users/Stammy/.rvm/rubies/ruby-1.9.3-p0-perf/bin/ruby /Users/Stammy/.rvm/gems/ruby-1.9.3-p0-perf/bin/rake requirejs:precompile:all RAILS_ENV=production RAILS_GROUPS=assets | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: ENOENT, no such file or directory '/Users/Stammy/code/picplum/app/assets/javascripts/app/strobeo.js' | |
at Object.openSync (fs.js:230:18) | |
at Object.readFileSync (fs.js:120:15) | |
at Object.readFile (/Users/Stammy/.rvm/gems/ruby-1.9.3-p0-perf/gems/requirejs-rails-0.7.3/bin/r.js:2707:27) |
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
require.config({ | |
paths: { | |
jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min', | |
jqueryui: 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min', | |
json2: 'libs/json2', | |
underscore: "libs/underscore_132", | |
backbone: "libs/backbone_92", | |
order: 'order', | |
// uploader | |
fileupload: 'libs/jquery.fileupload', |
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
modules: | |
- name: "main" | |
baseUrl: "app/assets/javascripts/" | |
paths: | |
jquery: "empty:" | |
jqueryui: "empty:" | |
backbone: "libs/backbone_92" | |
underscore: "libs/underscore_132" | |
fileupload: 'libs/jquery.fileupload' | |
fileupload_ui: 'libs/jquery.fileupload-ui' |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
http://tumblr.everlane.com/ | |
http://blog.hipmunk.com/ | |
http://blog.shoplrapp.com/ | |
http://blog.mailgun.net/ | |
http://blog.grooveshark.com/ | |
http://blog.path.com/ | |
http://blog.instagram.com/ | |
http://blog.oink.com/ | |
http://blog.shelby.tv/ | |
http://blog.roamz.com/ |
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 ApplicationController < ActionController::Base | |
# Tell Devise to redirect after sign_in | |
def after_sign_in_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
end | |
# Tell Devise to redirect after sign_out | |
def after_sign_out_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
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
[ec2-user@ip-XXX-XXX-XXX-XXX 64]$ ./bitcoind getinfo | |
{ | |
"version" : 32100, | |
"balance" : 0.00000000, | |
"blocks" : 125008, | |
"connections" : 74, | |
"proxy" : "", | |
"generate" : true, | |
"genproclimit" : -1, | |
"difficulty" : 244139.48158254, |
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
<% if @user.errors.any? %> | |
<div id="errorExplanation"> | |
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this record from being saved:</h2> | |
<ul> | |
<% @user.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% 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
module ApplicationHelper | |
# pretty page titles | |
# yield_for(:title, 'default text goes here') in layout | |
# content_for(:title, 'some text') in view | |
def yield_for(content_sym, default) | |
output = content_for(content_sym) | |
output = default if output.blank? | |
output | |
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
class ApplicationController < ActionController::Base | |
# Tell Devise to redirect after sign_in | |
def after_sign_in_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
end | |
# Tell Devise to redirect after sign_out | |
def after_sign_out_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
end |