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>Settings</h1> | |
<%= simple_form_for @settings, :as => 'settings', :url => admin_settings_path, :html => { :class => 'form form-horizontal' } do |f| %> | |
<fieldset> | |
<legend>Points Earning</legend> | |
<%= f.input :site_name %> | |
<%= f.input :per_page %> | |
</fieldset> | |
<div class="control-group"> |
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
extern crate mio; // 0.6.14 | |
use mio::event::Evented; | |
use mio::{Poll, PollOpt, Ready, Registration, Token, Events}; | |
use std::io; | |
use std::thread; | |
use std::time::{Instant, Duration}; | |
pub struct Deadline { |