Imagine two hashes that are clearly different:
hash_a[:donkey]
# => 5
hash_b[:donkey]
# => 10
Yet:
def print_graphviz(items, compiler) | |
dt = compiler.dependency_tracker | |
oc = compiler.outdatedness_checker | |
puts "digraph {" | |
self.sorted_reps_with_prev(items) do |rep, _| | |
reason = oc.outdatedness_reason_for(rep) | |
prevs = dt.objects_causing_outdatedness_of(rep.item) | |
outdated_prevs = prevs.select { |e| oc.outdated?(e) } |
Imagine two hashes that are clearly different:
hash_a[:donkey]
# => 5
hash_b[:donkey]
# => 10
Yet:
require 'json' | |
# => true | |
JSON.load('') | |
# => nil | |
JSON.parse('') | |
# JSON::ParserError: A JSON text must at least contain two octets! |
I hereby claim:
To claim this, I am signing this object:
[BIP34] 15:43:14 INFO: syncthing v0.10.1+15-g964d17d (go1.3.2 linux-amd64 default) ddfreyne@bhakti 1970-01-01 00:00:00 UTC | |
[BIP34] 15:43:14 INFO: My ID: OBSCURED-MY-ID | |
[BIP34] 15:43:14 INFO: Starting web GUI on http://127.0.0.1:8080/ | |
[BIP34] 15:43:17 INFO: No UPnP gateway detected | |
[BIP34] 15:43:17 INFO: Starting local discovery announcements | |
[BIP34] 15:43:17 INFO: Starting global discovery announcements | |
[BIP34] 15:43:17 OK: Ready to synchronize default (read-write) | |
[BIP34] 15:43:17 INFO: Device OBSCURED-MY-ID is "bhakti" at [dynamic] | |
[BIP34] 15:43:17 INFO: Device OBSCURED-OTHER-ID is "tahontaenrat" at [dynamic] | |
... |
extern crate core; | |
struct Point { | |
t: f32, | |
l: f32, | |
} | |
impl core::fmt::Show for Point { | |
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { | |
write!(f, "Point(left={}, top={})", self.l, self.t) |
I have this bit of data:
C3 A3 E2 80 9A C2 A2 C3
A3 C6 92 C2 AC C3 A3 C6
92 3F C3 A3 C6 92 C2 B3
C3 A3 C6 92 E2 80 B0 C3
A3 C6 92 3F C3 A3 C6 92
C2 BB C3 A3 C6 92 C2 A9
C3 A3 C6 92 C5 B8 C3 A3
C6 92 C2 AC C3 A3 E2 80
class Stuff | |
def initialize(params = {}) | |
@foo_name = params.fetch(:foo_name) | |
@foo_identifier = params.fetch(:foo_identifier) | |
@bar_name = params.fetch(:bar_name), | |
@bar_identifier = params.fetch(:bar_identifier) | |
end | |
def to_a | |
[ |
# Ruby’s Time and DateTime classes have different behaviors for #iso8601. Time | |
# uses the "Z" postfix to indicate UTC, while DateTime uses "+00:00". | |
require 'time' | |
require 'date' | |
puts Time.now.utc.iso8601 | |
# => 2015-03-17T08:43:08Z | |
puts Time.now.utc.to_datetime.iso8601 |