This file contains hidden or 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 'net/http' | |
# two_deep points to the bitly url underneath here | |
two_deep = 'http://tinyurl.com/679cto' | |
# one_deep points to google | |
one_deep = 'http://bit.ly/2V6CFi' | |
def follow_url(url, max_depth = 10) | |
url = URI.parse(url) |
This file contains hidden or 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
equire 'net/http' | |
# two_deep points to the bitly url underneath here | |
two_deep = 'http://tinyurl.com/679cto' | |
# one_deep points to google | |
one_deep = 'http://bit.ly/2V6CFi' | |
amazon = 'http://tinyurl.com/27uk7o6' |
This file contains hidden or 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
SampleBlog.controllers :posts do | |
get :index, :respond_to => [:html, :rss, :atom] do | |
@posts = Post.criteria.order_by([:created_at, :desc]).all | |
case content_type | |
when :rss, :atom | |
render 'posts/index', :layout => false | |
else | |
render 'posts/index' | |
end |
This file contains hidden or 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
(in /Users/jacortinas/Projects/fitly) | |
GET /login {:controller=>"sessions", :action=>"new"} | |
login POST /login {:controller=>"session", :action=>"create"} | |
logout DELETE /logout {:controller=>"sessions", :action=>"destroy"} | |
register /register {:controller=>"users", :action=>"new"} | |
new_facebook_user /connect/new {:controller=>"facebook_users", :action=>"new"} | |
facebook_users_callback /connect/callback {:controller=>"facebook_users", :action=>"oauth_callback"} | |
edit_profile /edit_profile {:controller=>"users", :action=>"edit"} | |
profile /:user_id {:controller=>"users", :action=>"profile"} | |
root / {:controller=>"users", :action=>"show"} |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta name="Russian Museum in Jersey City::exhibitions past,future,present" content="Museum of Russian art in Jersey City, New Jersey culture, art, music, entertainment, charity, art walk, Russian culture" /> | |
<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" /> | |
<link rel="stylesheet" href="images/style.css" type="text/css" /> | |
<title>Museum of Russian Art in Jersey City NJ USA</title> | |
<script type="text/javascript"> | |
function submitform() | |
{ |
This file contains hidden or 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
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Controllers | 3088 | 2616 | 68 | 351 | 5 | 5 | | |
| Helpers | 937 | 780 | 0 | 132 | 0 | 3 | | |
| Models | 4399 | 3643 | 155 | 477 | 3 | 5 | | |
| Libraries | 728 | 495 | 6 | 70 | 11 | 5 | | |
| Functional tests | 1530 | 1223 | 24 | 19 | 0 | 62 | | |
| Unit tests | 5275 | 4252 | 126 | 79 | 0 | 51 | | |
| Integration specs | 1197 | 1022 | 0 | 4 | 0 | 253 | |
This file contains hidden or 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
~/hack/mongoid@master ls | |
Gemfile Rakefile scripts/ | |
Gemfile.lock lib/ spec/ | |
LICENSE mongoid.gemspec | |
README.rdoc perf/ | |
~/hack/mongoid@master rake | |
(in /Users/jacortinas/hack/mongoid) | |
/Users/jacortinas/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -S bundle exec rspec spec/integration/mongoid/attributes_spec.rb spec/integration/mongoid/callback_spec.rb spec/integration/mongoid/config/database_spec.rb spec/integration/mongoid/config/replset_database_spec.rb spec/integration/mongoid/config_spec.rb spec/integration/mongoid/contexts/enumerable_spec.rb spec/integration/mongoid/contexts/mongo_spec.rb spec/integration/mongoid/criteria_spec.rb spec/integration/mongoid/criterion/creational_spec.rb spec/integration/mongoid/criterion/destructive_spec.rb spec/integration/mongoid/criterion/exclusion_spec.rb spec/integration/mongoid/criterion/inclusion_spec.rb spec/integration/mongoid/criterion/inspection_spec.rb spec/integration/mongoid/criterion/modification_spec.rb spec/integration/mongoid/default_scope_spec.rb spec/integra |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js"></script> | |
</head> | |
<body> | |
<p id="loading_msg">Loading...</p> | |
<script type="text/javascript"> | |
/* To being with, just in case the "$" is already taken in the global scope |
This file contains hidden or 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
Gems: | |
gem 'cucumber' | |
gem 'cucumber-rails' | |
gem 'rspec' | |
gem 'rspec-rails' | |
gem 'capybara' | |
gem 'database_cleaner' | |
gem 'spork' | |
gem 'watchr' |
This file contains hidden or 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
rbx-head-nhydra installing #dependencies | |
Pulling from origin hydra | |
Copying from repo to source... | |
rbx-head-nhydra - #configuring | |
rbx-head-nhydra - #compiling | |
ERROR: Error running '/Users/jacortinas/.rvm/wrappers/rbx-head/rake install', please read /Users/jacortinas/.rvm/log/rbx-head-nhydra/rake.log | |
ERROR: There has been an error while running '/Users/jacortinas/.rvm/wrappers/rbx-head/ruby ./configure --prefix=/Users/jacortinas/.rvm/rubies/rbx-head-nhydra --skip-system'. | |
Halting the installation. |
OlderNewer