# path=mod.pyi
def get_foo() -> Foo: ...
class Foo: ...
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
x = [1] | |
a = [a for a in x] | |
print("eager", a) # eager [1] | |
x = [2] | |
print("eager", a) # eager [1] | |
x = [1] | |
def f(): | |
return list(x) | |
print("lazy", f()) # lazy [1] |
header | header | header |
---|---|---|
a | b | c |
d | e |
a | b | c |
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
$ cargo +local build | |
Compiling cc v1.0.26 | |
Compiling cc-01-works-by-accident v0.1.0 (/Users/dcreager/git/rust-cc-linking/cc-01-works-by-accident) | |
Compiling cc-02-broken v0.1.0 (/Users/dcreager/git/rust-cc-linking/cc-02-broken) | |
Finished dev [unoptimized + debuginfo] target(s) in 2.77s |
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
$ cargo build | |
Compiling cc v1.0.26 | |
Compiling cc-02-broken v0.1.0 (/Users/dcreager/git/rust-cc-linking/cc-02-broken) | |
Compiling cc-01-works-by-accident v0.1.0 (/Users/dcreager/git/rust-cc-linking/cc-01-works-by-accident) | |
warning: redundant linker flag specified for library `c++` | |
warning: redundant linker flag specified for library `c++` | |
Finished dev [unoptimized + debuginfo] target(s) in 3.13s |
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
# assuming you already have the code checked out and you've been working on it | |
$ cd varon-t | |
$ buzzy test | |
[1] Build varon-t 3.0.0+4+git (cmake) | |
...snip... | |
[2] Test varon-t 3.0.0+4+git (cmake) | |
Running tests... | |
Test project /home/dcreager/.cache/buzzy/build/varon-t-local-bd7557b2/build | |
Start 1: test-perf-dq | |
1/2 Test #1: test-perf-dq ..................... Passed 3.98 sec |
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
$ git clone https://github.com/dcreager/varon-t.git | |
$ cd varon-t | |
$ buzzy install | |
[1] Clone git://github.com/dcreager/libcork.git (master) | |
[2] Clone git://github.com/dcreager/clogger.git (master) | |
[3] Clone git://github.com/dcreager/bowsprit.git (master) | |
[4] Clone git://github.com/dcreager/buzzy-core.git (master) | |
[5] Install native Arch package libcork 0.15.0 | |
[6] Build clogger 1.0.0 (cmake) | |
[7] Stage clogger 1.0.0 (cmake) |
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/sh | |
if [ -n "$SSH_AUTH_SOCK" ]; then | |
SSH_AUTH_DIR=`dirname $SSH_AUTH_SOCK` | |
SSH_OPTS="-v $SSH_AUTH_DIR:$SSH_AUTH_DIR -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK" | |
fi | |
IMAGE=$1 | |
shift |
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/sh | |
INTERFACE=$1 | |
if [ -z $INTERFACE ]; then | |
echo "Usage: wait-for-interface [interface name]" | |
exit 1 | |
fi | |
echo "Wait for $INTERFACE to have an IP address..." |
I hereby claim:
- I am dcreager on github.
- I am dcreager (https://keybase.io/dcreager) on keybase.
- I have a public key whose fingerprint is 4264 88AF 0C16 318A 3728 CC7C 45D2 1F1C 6453 AD83
To claim this, I am signing this object:
NewerOlder