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
#!/bin/bash | |
# Sleep sort | |
# http://dis.4chan.org/read/prog/1295544154 | |
function f() { | |
sleep "$1" | |
echo "$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
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 |
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
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 |
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
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") | |
} |
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
[Match] | |
Name=eth* | |
[Network] | |
DHCP=v4 | |
IPv4LL=true |