Skip to content

Instantly share code, notes, and snippets.

View edipofederle's full-sized avatar
🏠
Working from home

Édipo Féderle edipofederle

🏠
Working from home
View GitHub Profile

TODO

From models side

  • adds column type to the bookings table. (STI);
  • Add news columns for PersonalBooking in bookings table:
    • Description:text
    • Linen:string (enum in rails side)
    • services:array
module Airbnb
class AuthService
class << self
def authorize(username, password)
proxy = next_proxy
res = HTTParty.post(AIRBNB_AUTHORIZE_USER, http_proxyaddr: proxy[0], http_proxyport: proxy[1],
body: {client_id: CLIENT_ID,
username: username,
password: password,
;; Simple code to dump a postgres database and upload it to S3.
;; Author: Edipo L Federle <edipofederle@gmail.com>
;;
;; Usage:
;;
;; Build the jar: lein uberjar
;; Run: java -jar target/pg-backup-s3-0.1.0-SNAPSHOT-standalone.jar "db-name"
;;
;;
;; Improvements Needs:
RAILS_ENV=production bundle exec rake assets:precompile
/Users/edipo/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.7/lib/action_dispatch/http/mime_type.rb:163: warning: already initialized constant Mime::PDF
/Users/edipo/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.7/lib/action_dispatch/http/mime_type.rb:163: warning: previous definition of PDF was here
rake aborted!
Sass::SyntaxError: Undefined variable: "$font-name".
(in /Users/edipo/.rvm/gems/ruby-2.1.1/bundler/gems/semantic-ui-sass-17393aaee1f6/app/assets/stylesheets/semantic-ui/collections/_all.scss:101)
/Users/edipo/.rvm/gems/ruby-2.1.1/bundler/gems/semantic-ui-sass-17393aaee1f6/app/assets/stylesheets/semantic-ui/collections/_form.scss:101
/Users/edipo/.rvm/gems/ruby-2.1.1/bundler/gems/semantic-ui-sass-17393aaee1f6/app/assets/stylesheets/semantic-ui/collections/_all.scss:2
/Users/edipo/.rvm/gems/ruby-2.1.1/gems/sass-3.2.19/lib/sass/script/variable.rb:49:in `_perform'
/Users/edipo/.rvm/gems/ruby-2.1.1/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
config.action_mailer.default_url_options = { :host => 'domain.com' }
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
remote: Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/build_82c61778093d5c199dedf47797381313/log/production.log
remote: /tmp/build_82c61778093d5c199dedf47797381313/config/environments/production.rb:85:in `new'
remote: /tmp/build_82c61778093d5c199dedf47797381313/config/environments/production.rb:85:in `block in <top (required)>'
remote: /tmp/build_82c61778093d5c199dedf47797381313/vendor/bundle/ruby/2.2.0/gems/railties-4.1.7/lib/rails/railtie.rb:210:in `instance_eval'
remote: /tmp/build_82c61778093d5c199dedf47797381313/vendor/bundle/ruby/2.2.0/gems/railties-4.1.7/lib/rails/railtie.rb:210:in `configure'
remote: /tmp/build_82c61778093d5c199dedf47797381313/config/environments/production.rb:1:in `<top (required)>'
remote: /tmp/build_82c61778093d5c199dedf47797381313/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_82c61778093d5c199dedf47797381313/vendor/bundle/ruby/2.2.0/gems
migrating all outstanding migrations
May 31, 2016 9:22:44 PM clojure.tools.logging$eval293$fn__297 invoke
INFO: Starting migrations
May 31, 2016 9:22:45 PM clojure.tools.logging$eval293$fn__297 invoke
INFO: creating migration table 'schema_migrations'
May 31, 2016 9:22:45 PM clojure.tools.logging$eval293$fn__297 invoke
INFO: Ending migrations
Exception in thread "main" java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Named, compiling:(/private/var/folders/88/0z6nxx1n1yq487nq4nwg9w2h0000gn/T/form-init5724046555868652873.clj:1:125)
at clojure.lang.Compiler.load(Compiler.java:7391)
at clojure.lang.Compiler.loadFile(Compiler.java:7317)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
✝  ~  lein
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: resources/see-also.edn (No such file or directory), compiling:(info.clj:143:38)
at clojure.lang.Compiler$InvokeExpr.eval (Compiler.java:3657)
clojure.lang.Compiler$NewExpr.eval (Compiler.java:2568)
clojure.lang.Compiler$InvokeExpr.eval (Compiler.java:3651)
clojure.lang.Compiler$DefExpr.eval (Compiler.java:451)
clojure.lang.Compiler.eval (Compiler.java:6932)
clojure.lang.Compiler.load (Compiler.java:7379)
clojure.lang.RT.loadResourceScript (RT.java:372)
clojure.lang.RT.loadResourceScript (RT.java:363)
import org.junit.Test;
import arquitetura.builders.ArchitectureBuilder;
import arquitetura.representation.Architecture;
import arquitetura.representation.Class;
import arquitetura.representation.Concern;
import mestrado.arquitetura.factories.Klass;
public class Main {