Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Second iteration, fixing styles, adding scss twitter bootstrap and co…
…demirror
- Loading branch information
Showing
25 changed files
with
5,365 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
TimerWatcher allows you to create one-shot timers | ||
|
||
From Libev guides: Configure the timer to trigger after after seconds. If repeat is false, then it will automatically be stopped once the timeout is reached. If it is true, then the timer will automatically be configured to trigger again repeat seconds later, again, and again, until stopped manually. | ||
|
||
watcher = Cool.io::TimerWatcher.new(interval, true) | ||
watcher.attach(Cool.io::Loop.default) | ||
|
||
another way to do so would be to subclass a TimeWatcher: | ||
|
||
Cool.io::Loop.default.run | ||
|
||
class SimpleTimerWatcher < Cool.io::TimerWatcher | ||
def initialize args | ||
|
||
end | ||
def on_timer | ||
TMP.succ! | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|
Oops, something went wrong.