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
| require 'RNotify' | |
| notify_status = Notify.init('rstakeout') | |
| raise 'Failed to initialize libnotify' unless notify_status | |
| notification = Notify::Notification.new 'rstakeout', nil, nil, nil | |
| # many times | |
| notification.update "test", "message", nil | |
| notification.timeout = 1 | |
| notification.urgency = 0 | |
| notification.show |
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
| require 'rubygems' | |
| require 'mongo_mapper' | |
| require 'pp' | |
| class Person | |
| include MongoMapper::Document | |
| key :name, String, :default => 'John Doe' | |
| end |
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
| <h1>New phrase</h1> | |
| <% form_for(@phrase) do |f| %> | |
| <%= f.error_messages %> | |
| <p> | |
| <%= f.label :content %><br /> | |
| <%= f.text_field :content %> | |
| </p> | |
| <p> |
NewerOlder