- Whatever people like
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
# 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 |
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
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" |
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
// 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 }; |
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
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:
- I am shterrett on github.
- I am stuartbridj (https://keybase.io/stuartbridj) on keybase.
- I have a public key ASB8hxe6lKxsYIimQjMZtBT7YWtuLbT9rvHPBvKUX4czqgo
To claim this, I am signing this object:
I hereby claim:
- I am shterrett on github.
- I am shterrett (https://keybase.io/shterrett) on keybase.
- I have a public key ASBiJAOCX614oFJf_ePS9fAOCZyV0VU1naCP7qtXkdVGmAo
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.
- Bridj-1.0 -- Bridj before the intellectual property was acquired by Transit Systems
- Dynamic Dropoff -- currently existing service where an algorithm re-assigns traveler's booked stops so that the aggregate walk time is minimized.
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
| 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 |