Skip to content

Instantly share code, notes, and snippets.

View ijanos's full-sized avatar

János Illés ijanos

View GitHub Profile
Running target/debug/parallel_letter_frequency-633a2f434576b678
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
Running target/debug/parallel_letter_frequency-92f6d5c26c276ad3
running 9 tests
test test_all_three_anthems_1_worker ... ignored
tests/parallel-letter-frequency.rs:40:16: 40:36 error: unresolved name `frequency::frequency` [E0425]
tests/parallel-letter-frequency.rs:40 assert_eq!(frequency::frequency(&[], 4), HashMap::new());
^~~~~~~~~~~~~~~~~~~~
tests/parallel-letter-frequency.rs:40:5: 40:62 note: in this expansion of assert_eq! (defined in <std macros>)
tests/parallel-letter-frequency.rs:40:16: 40:36 help: run `rustc --explain E0425` to see a detailed explanation
tests/parallel-letter-frequency.rs:48:16: 48:36 error: unresolved name `frequency::frequency` [E0425]
tests/parallel-letter-frequency.rs:48 assert_eq!(frequency::frequency(&["a"], 4), hm);
^~~~~~~~~~~~~~~~~~~~
tests/parallel-letter-frequency.rs:48:5: 48:53 note: in this expansion of assert_eq! (defined in <std macros>)
tests/parallel-letter-frequency.rs:48:16: 48:36 help: run `rustc --explain E0425` to see a detailed explanation
[Match]
Name=eth*
[Network]
DHCP=v4
IPv4LL=true
for _, intro := range introspectPath("/com/github/guelfey/Demo") {
fmt.Println(intro.path, intro.introspectableXML)
conn.Export(introspect.Introspectable(intro.introspectableXML), dbus.ObjectPath(intro.path), "org.freedesktop.DBus.Introspectable")
}
@ijanos
ijanos / sleepsort.bash
Created June 15, 2011 16:41
Sleep sort!
#!/bin/bash
# Sleep sort
# http://dis.4chan.org/read/prog/1295544154
function f() {
sleep "$1"
echo "$1"
}