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
def entries(dir = '') | |
entries = [] | |
# Depth of the directory path | |
dir_depth = dir.count('/') | |
@bucket.keys(:prefix => path).each do |entry| | |
# Entries cannot end with ~ (ascii 126) or starts with # or . (35 and 46 respectively) | |
if entry.name[-1] != 126 && entry.name[0] != 35 && entry.name[0] != 46 && entry.name != path | |
# If is a subdirectory (entries that are deeper than the current path must only be directories) |
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
Show hidden characters
// ERB hotkey, based on https://github.com/eddorre/SublimeERB | |
{ "keys": ["ctrl+shift+."], "command": "erb", "context": | |
[ | |
{ "key": "selector", "operator": "equal", "operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" } | |
] | |
} |
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
// These files will still show up in the side bar, but won't be included in | |
// Goto Anything or Find in Files | |
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip", "*.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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Vibrant Ink.tmTheme", | |
"font_size": 17.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Soda Dark.sublime-theme" | |
} |
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
[ | |
{"keys": ["super+alt+["], "command": "reindent" , "args": {"single_line": false}} | |
] |
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 Users::Devise::OmniauthCallbacksController < Devise::OmniauthCallbacksController | |
# guest trying to login with facebook | |
def facebook | |
self.process_login | |
end | |
# guest trying to login with twitter | |
def twitter | |
self.process_login | |
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
if @new_user.save | |
if @invitation && @invitation.persisted? | |
# Mark private invites as used. | |
@invitation.deactivate unless @invitation.public? | |
# Send referrer feedback/rewards when the new user signs up. | |
@invitation.delay.reward_referrer_on_signup(@new_user) | |
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
Started POST "/users?traditional=true" for 10.240.223.45 at Tue Dec 11 23:13:04 -0800 2012 | |
Processing by Users::Devise::RegistrationsController#create as HTML | |
Parameters: {"user"=>{"email"=>"aviva_cohen@comcast.net", "last_name"=>"Cohen", "first_name"=>"Aviva", "password"=>"[FILTERED]", "zipcode"=>"94010"}, "invitation"=>{"code"=>"JHXFJYX9"}, "utf8"=>"✓", "traditional"=>"true", "commit"=>"Create Account", "authenticity_token"=>"jxOAmx4nvkLBTcw/J+/RlWxhqQiMF+UzNsBsGQDYzNg="} | |
Rendered home/_testimonials.html.erb (0.8ms) | |
Rendered shared/_error_messages.html.erb (0.1ms) | |
Rendered shared/_footer.html.erb (2.0ms) | |
Rendered shared/_kissmetrics.html.erb (0.3ms) | |
Rendered shared/_fb_og.html.erb (0.6ms) | |
Rendered shared/_ga.html.erb (0.1ms) | |
Rendered shared/_mixpanel.html.erb (0.1ms) |