- adds column
type
to thebookings
table. (STI); - Add news columns for PersonalBooking in
bookings
table:- Description:text
- Linen:string (enum in rails side)
- services:array
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0EZx4LX/STwFVXkrvj9cdNsUVHqA+1rArHSyuBqe+uSzjk9QcdeGruQowPGBYHNLjJ6GW+HH3xRwuhoNQblkHwr3yQo4SOe3rK3Suq3SkN15jPOSnaZHqx0+l+ZG/1EJCVV4k148QvAKmY/cVlp01sIhvHq7GJjYxCARerIXmicnAvWHvfMi8b5rOWDBS2U7IR89DuOwm1rdI3XjKe0AEyJSNjPvKVdvqrHqcOamDWin6NSODfS/by3arnHLGxVsT13EL6tixP+1XPrHay94OoYmDYQLHifn0YGRyQ+4uSn9iVGQe08ywluN77oa1VAoVEFA9hVypCPPrc6xH6qfJG8HIHNTQelPOqbEcBJpBdorAH1FReOkxTK0fKN79AB0GZlBN1SSSE/r+GxpG7tGH/peq5zCB+z4bZThWCLi1PGsVHFGkA+bLiCFMKyTymIjLZF6SpIr7hDCWxMAT//P1/R9tCbWsotBQFNOLqssCwVXNFRt4c/iYKGHw4HTi0ZT+DoGhS8oxUQO1JmiVmwWFv5OENHgYSHFCxgnihSkv5SXarU39satdcK+d1hik3ZUhMwMN0xUUY6YrygZZ0GD/6EHun9pGa2E5UvUWY3HJwc89HBkoVU7KaG27IAr7Kub+wxZYkz91ptGdeXZi6Rv3U9CzYMUzoKeWTW0mJXDVsQ== [email protected] |
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
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, |
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
;; Simple code to dump a postgres database and upload it to S3. | |
;; Author: Edipo L Federle <[email protected]> | |
;; | |
;; Usage: | |
;; | |
;; Build the jar: lein uberjar | |
;; Run: java -jar target/pg-backup-s3-0.1.0-SNAPSHOT-standalone.jar "db-name" | |
;; | |
;; | |
;; Improvements Needs: |
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
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' |
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
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. |
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
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 |
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
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) |
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
(defn foo | |
"I don't do a whole lot." | |
[x] | |
(println x "Hello, World!")) |
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
✝ ~ 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) |