Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working from 🛰

Harry Moreno morenoh149

💭
Working from 🛰
View GitHub Profile
View gemfile.rb
source 'https://rubygems.org'
ruby '2.1.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
gem 'pg'
gem 'devise'
View _card_back.html.erb
<div class="back">
<div class="my-row">
<div class="back-user col-xs-12 col-sm-12">
<div class="row">
<div class="col-xs-5 col-sm-4">
<%= image_tag feed_item.image_url(:thumb_small).to_s, class: "avatar-img" %>
</div>
<div class="col-xs-7 col-sm-8">
<%= image_tag feed_item.user.avatar_url(:icon).to_s, class: "avatar-img" %>
<%= link_to feed_item.user.username, user_path(feed_item.user) %>
View log.txt
2014-02-04T23:42:42.628940+00:00 app[web.1]: Rendered shared/_card_front.html.erb (5.7ms)
2014-02-04T23:42:42.628940+00:00 app[web.1]: Rendered shared/_card_front.html.erb (5.7ms)
2014-02-04T23:42:42.716817+00:00 app[web.1]: Rendered shared/_card_front.html.erb (78.5ms)
2014-02-04T23:42:42.722279+00:00 app[web.1]: Rendered shared/_card_back.html.erb (5.2ms)
2014-02-04T23:42:42.722279+00:00 app[web.1]: Rendered shared/_card_back.html.erb (5.2ms)
2014-02-04T23:42:42.716817+00:00 app[web.1]: Rendered shared/_card_front.html.erb (78.5ms)
2014-02-04T23:42:42.730583+00:00 app[web.1]: Rendered shared/_card_front.html.erb (8.0ms)
2014-02-04T23:42:42.730583+00:00 app[web.1]: Rendered shared/_card_front.html.erb (8.0ms)
2014-02-04T23:42:42.735506+00:00 app[web.1]: Rendered shared/_card_back.html.erb (4.8ms)
2014-02-04T23:42:42.735506+00:00 app[web.1]: Rendered shared/_card_back.html.erb (4.8ms)
View a.rb
Rendered users/index.html.erb within layouts/application (62.8ms)
Rendered users/index.html.erb within layouts/application (62.8ms)
Completed 500 in 84ms
Completed 500 in 84ms
ArgumentError - wrong number of arguments (2 for 1)
(in /Users/harrymoreno/programming/railsdev/dezzmo/dezzmo0003/app/assets/stylesheets/application.css.scss):
() Users/harrymoreno/.rvm/gems/ruby-2.1.0/bundler/gems/sass-f9a615c1e3ab/lib/sass/engine.rb:364:in `block in _render_with_sourcemap'
() Users/harrymoreno/.rvm/gems/ruby-2.1.0/bundler/gems/sass-f9a615c1e3ab/lib/sass/util.rb:431:in `silence_warnings'
() Users/harrymoreno/.rvm/gems/ruby-2.1.0/bundler/gems/sass-f9a615c1e3ab/lib/sass/engine.rb:364:in `_render_with_sourcemap'
View staging.rb
0003::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = true
# Do not eager load code on boot.
config.eager_load = false
View a.rb
ActiveRecord::ConnectionTimeoutError
could not obtain a database connection within 5.000 seconds (waited 5.002 seconds)
Rails.root: /app
Application Trace | Framework Trace | Full Trace
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `loop'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:136:in `block in poll'
View a.rb
ActiveRecord::ConnectionTimeoutError
could not obtain a database connection within 5.000 seconds (waited 5.002 seconds)
Rails.root: /app
Application Trace | Framework Trace | Full Trace
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `loop'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:136:in `block in poll'
View a.rb
ActiveRecord::ConnectionTimeoutError
could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)
Rails.root: /app
Application Trace | Framework Trace | Full Trace
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `loop'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:136:in `block in poll'
View resignation
To my successor. Cograts! You are working on dezzmo for palermo.
I was the co-founder and conciever of dezzmo's vision. Palermo and I went to high school together. We were best friends.
I'm the 'mo' in 'dezzmo'. It's our surnames put together.
I came out to sf after graduating college. He was still in college, first in art then switched to business.
One day we were talking about startups and he suggested we work on an app for rating art.
I mulled it over and came up with a professional social networking site for all creative types. LinkedIn/stackoverflow for
art.
I worked on the site for months, loved the idea, it was MY baby. Palermo is all bullshit and talk. I soon realized I
severly undervalued my contribution to the company. I wasn't worth %50, I should've gotten 60%-%90.
He was in school while working on dezzmo, I was losing money and time. He had nothing to lose, I was losing real value.
View a.rb
<ul class="nav navbar-nav navbar-right" ng-hide="signedIn()">
<li>
<a href="#/register">Register</a>
</li>
<li>
<a href="#/login">Log In</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right" ng-show="signedIn()">
<li>