view_paths = Rails::Application::Configuration.new(Rails.root).paths["app/views"] av_helper = ActionView::Base.new view_paths
include Rails.application.routes.url_helpers
av_helper.render "path/to/your/partial"
# Color formatting | |
PROMPT="%F{14}%n%f@:%F{11}%1d%f$ " | |
alias ls='ls -GFh' | |
alias la_haus="cd <APP>" | |
alias l='ls -lah' | |
alias lh_wp="<APP>/webpack-dev-server" | |
alias lh_db="docker-compose -f docker-compose.yml up -d" | |
alias rubo="rubocop --safe-auto-correct" | |
export GPG_TTY=$(tty) |
id,name,number_of_real_estates,start_operation_date,number_of_projects_built,average_building_time,price_range,trust_fund,associated_trust_funds,overseeing_entity,picture,extra_data,country_id,created_at,updated_at,slug,legal_id_number,logo | |
3,Londoño Gómez Propiedad Raíz,19,1971-01-01,178,"15,9",De $219 a 2113 Millones,Más de el 33% de sus proyectos recibe FNA,"Alianza fiduciaria, Credicorp Capital, entre otras.","Secretaría Distrital de Hábitat, en su mayoría manejan Fiducias.",NULL,{},1,2021-03-18 17:39:11.549023,2021-03-18 17:39:11.549032,NULL,NULL,NULL | |
4,Bienes & Bienes S.A,16,1991-01-01,86,16,De $193 a 525 Millones,Más de el 31% de sus proyectos recibe FNA,"Bancolombia, Caja Social, Alianza Fiduciaria, entre otras.","Secretaría Distrital de Hábitat, en su mayoría manejan Fiducias.",NULL,{},1,2021-03-18 17:39:11.549023,2021-03-18 17:39:11.549032,NULL,NULL,NULL | |
5,Capital,16,1993-01-01,160,12 a 16,De $122 a 655 Millones,Más de el 28% de sus proyectos recibe FNA,"Colmena, Banco Amigo bancolombia, Fid. Bogotá |
#macro(VelListToJSON $list ) | |
#set($myList = $list )## dereference | |
{ | |
#foreach($key in $myList.keySet()) | |
"$key": | |
#set($x = $myList.get($key)) | |
#VelToJSON($x) | |
#if($foreachCount != $myList.keySet().size()) , #end | |
#end | |
} |
Lecturas y demas https://github.com/charlax/professional-programming https://github.com/mtdvio/every-programmer-should-know
Gema reemplazo de foreman, Rails 6.
https://github.com/arzezak/overminder/ https://github.com/DarthSim/overmind
Services, Interactor and command pattern gems
https://github.com/adomokos/light-service https://github.com/collectiveidea/interactor https://github.com/AaronLasseigne/active_interaction
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
Repository Pattern https://medium.com/@laertis.pappas/repository-pattern-in-ruby-i-decoupling-activerecord-and-persistence-e395e1b0cf69
Remove single tabe inheritance https://medium.com/flatiron-labs/how-to-remove-single-table-inheritance-from-your-rails-monolith-c6009239defb
Mediator https://refactoring.guru/design-patterns/mediator https://itnext.io/decouple-object-interaction-with-a-mediator-like-pattern-in-ruby-a9ee1e61c491?source
N+1 queries https://github.com/flyerhzm/bullet
Trace of active record, muestra la linea de codigo donde se ejecuto un active record https://github.com/brunofacca/active-record-query-trace
clean code ruby github https://github.com/uohzxela/clean-code-ruby
ruby-rails static websites framework