Skip to content

Instantly share code, notes, and snippets.

View oniram88's full-sized avatar

Marino Bonetti oniram88

  • Archimedianet
  • Gavardo,Brescia,Italy
View GitHub Profile
@bazzel
bazzel / README.md
Last active March 20, 2022 22:00
Webpacker and I18n
$ rails new my-i8n --webpack

Gemfile

gem 'i18n-js'
@maxivak
maxivak / webpacker_rails.md
Last active June 15, 2024 21:37
Webpack, Yarn, Npm in Rails
@booch
booch / Ruby ORMs.md
Created February 10, 2014 22:19
Ruby ORMs

Ruby ORMs

Abstract

Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the

@khash
khash / em.rb
Created March 13, 2012 16:50
eventmachine daemon start method
@pid_full = '/tmp/my_daemon.pid'
def run
EM.run{
Signal.trap('INT') { stop }
Signal.trap('TERM'){ stop }
# your daemon code runs here. This will not exit since it is running in EM
}
end