COMPLETE:
MIT 6.00 Introduction to Computer Science and Programming
# database.yml | |
# development: | |
# database: development | |
# secondary_development: | |
# database: second_development | |
module Second | |
class Property < ActiveRecord::Base | |
establish_connection YAML::load(File.open(Rails.root.join('config', 'database.yml')))['second_development'] | |
has_and_belongs_to_many :property_groups |
require "minitest/autorun" | |
require "timecop" | |
describe "Parsing time in a time zone" do | |
describe "on current day" do | |
it "returns the proper offset" do | |
Timecop.travel Time.new(2016, 3, 9) do | |
time_string = "03/09/2016 10:00 AM America/Chicago" | |
format_string = "%m/%d/%Y %I:%M %p %Z" |
// http://stackoverflow.com/a/39639200 | |
use std::mem; | |
use std::hash::{Hash, Hasher}; | |
use std::collections::HashSet; | |
use std::fmt; | |
fn integer_decode(val: f64) -> (u64, i16, i8) { | |
let bits: u64 = unsafe { mem::transmute(val) }; | |
let sign: i8 = if bits >> 63 == 0 { 1 } else { -1 }; |
Compiling cache-server v0.1.0 (file:///Users/stuart/coding/cLRUd/cache-server) | |
error[E0277]: the trait bound `std::rc::Rc<std::cell::RefCell<lru_cache::list::Node<std::string::String>>>: std::marker::Send` is not satisfied | |
--> src/main.rs:24:12 | |
| | |
24 | server.serve(|| Ok( | |
| ^^^^^ the trait `std::marker::Send` is not implemented for `std::rc::Rc<std::cell::RefCell<lru_cache::list::Node<std::string::String>>>` | |
| | |
= note: `std::rc::Rc<std::cell::RefCell<lru_cache::list::Node<std::string::String>>>` cannot be sent between threads safely | |
= note: required because of the requirements on the impl of `std::marker::Send` for `std::collections::hash::table::RawTable<std::string::String, std::rc::Rc<std::cell::RefCell<lru_cache::list::Node<std::string::String>>>>` | |
= note: required because it appears within the type `std::collections::HashMap<std::string::String, std::rc::Rc<std::cell::RefCell<lru_cache::list::Node<std::string::String>>>>` |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Dynamic Dropoff and System Optimization do not have the flexibility nor the existing knowledge to be incrementally extended to support more flexible headway service. We propose to gradually deprecate Dynamic Dropoff in favor of building a system that can tree-out a linear route with full stop skipping and the ability to intersperse pickups and dropoffs. This will increase the flexibility of the system while simultaneously increasing the ease of understanding the routing and scheduling limitations.
| Title | |
---+------- | |
x | 1953 - Hugo - The Demolished Man, Alfred Bester | |
x | 1955 - Hugo - They'd Rather Be Right (aka The Forever Machine), Mark Clifton & Frank Riley | |
x | 1956 - Hugo - Double Star, Robert A. Heinlein | |
x | 1958 - Hugo - The Big Time, Fritz Leiber | |
x | 1959 - Hugo - A Case of Conscience, James Blish | |
x | 1960 - Hugo - Starship Troopers, Robert A. Heinlein | |
x | 1961 - Hugo - A Canticle for Leibowitz, Walter M. Miller, Jr. | |
x | 1962 - Hugo - Stranger in a Strange Land, Robert A. Heinlein |