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
1 min: | |
~Painless Javascript | |
koting hatduklgg | |
with wind tunnel | |
~tenderlove.dup jremsikjr | |
~iwanttolearnruby.com | |
(collecting resources for learning ruby) |
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
(-10..-5).include?(-7) | |
#=> true | |
(-5..-10).include?(-7) | |
#=> false | |
(10..5).include?(7) | |
#=> false | |
(5..10).include?(7) | |
#=> true | |
# OK, so maybe 10..5 wraps the whole set of integers? |
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
Rails::Application.routes.draw do | |
# Limits the admin site only on the admin subdomain | |
constraints subdomain: /^admin/ do | |
ActiveAdmin.routes(self) | |
# Make resque only available to the admin users & redirect to admin login | |
# if trying to access resque without being logged in. | |
match('/admin/resque/admin/login' => redirect('/admin/login')) | |
authenticate :admin_user do | |
mount Resque::Server.new, :at => "/admin/resque" |
OlderNewer