I hereby claim:
- I am nerf on github.
- I am nerf (https://keybase.io/nerf) on keybase.
- I have a public key ASAbYQIeczNRrAVk-vQ_-tLkUmtj_7cJ8udWOgW5HAkWkAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[Unit] | |
Description=God: A process monitoring framework in Ruby | |
After=network.target | |
[Service] | |
Group=_USER_GROUP_ | |
User=_USER_ | |
ExecStart=/usr/local/sbin/god_startup start | |
ExecStop=/usr/local/sbin/god_startup stop |
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'uri' | |
require 'open3' | |
TOKEN = 'YOUR_TOKEN' | |
ROOM = 'ROOM_ID' | |
FROM='YOU_NAME' | |
COLOR='green' |
module ActionController | |
module Flash | |
protected | |
def redirect_to(options = {}, response_status_and_flash = {}) #:doc: | |
if alert = response_status_and_flash.delete(:alert) | |
flash[:alert] = alert | |
end | |
if success = response_status_and_flash.delete(:success) | |
flash[:success] = success |
# Example | |
# in template: <%= number_to_bg_words something.price, :format => '%i и %f' %> | |
# result: триста и дванадесет лева и петдесет и шест стотинки | |
######################## | |
# encoding: UTF-8 | |
module DocumentHelper | |
@@number_to_word = { | |
'1' => 'един', | |
'2' => 'два', |