Skip to content

Instantly share code, notes, and snippets.

View jacortinas's full-sized avatar
💭
Coding

Jose Cortinas jacortinas

💭
Coding
View GitHub Profile
+----------------------+-------+-------+---------+---------+-----+-------+
| 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 |
<!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()
{
(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"}
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
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'
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)