I hereby claim:
- I am jcdyer on github.
- I am jcdyer (https://keybase.io/jcdyer) on keybase.
- I have a public key ASAPhLGO0eSvrDxJPWV_c0wAXZhdWtRTaD7P42OyX2LftQo
To claim this, I am signing this object:
| import codejail.languages | |
| CODE_JAIL = { | |
| 'jails': [ | |
| { | |
| 'command': 'python', | |
| 'bin_path': '/edx/app/edxapp/venvs/edxapp-sandbox/bin/python', | |
| 'user': 'sandbox', | |
| 'lang': codejail.languages.python2, | |
| }, |
| [package] | |
| name = "hello" | |
| version = "0.1.0" | |
| authors = ["J. Cliff Dyer <[email protected]>"] | |
| [dependencies] | |
| clap = "~2" |
I hereby claim:
To claim this, I am signing this object:
| [package] | |
| name = "edge" | |
| version = "0.1.0" | |
| authors = ["J. Cliff Dyer <[email protected]>"] | |
| [dependencies] | |
| indradb = "0.12.0" | |
| indradb-lib = "0.12.0" | |
| serde_json = "*" | |
| uuid = "*" |
| [package] | |
| name = "hops" | |
| version = "0.1.0" | |
| authors = ["J. Cliff Dyer <[email protected]>"] | |
| [dependencies] | |
| bytes = "*" | |
| clap = "*" | |
| futures = "*" | |
| rand = "*" |
Here's a fun smallish, intermediate level rust exercise: Implement an extension trait that allows you to call .skipping(n) on an iterator, and only yield every nth item, starting with the first one. (An extension trait is one that adds functionality to anything that already implements a existing trait, usually one in std).
It should pass the test below.
Here are some hints if you need help:
ReadBytesExt and WriteBytesExt traits, which let you read and write integers of different sizes| use std::borrow::Cow; | |
| use std::convert::TryInto; | |
| enum BsonType { | |
| String, | |
| Document, | |
| Array, | |
| } | |
| impl BsonType { |
| use gs1::Gtin; | |
| pub mod owned { | |
| use gs1::Gtin; | |
| // This is constructed as a newtype wrapper around Gtin that only exists | |
| // to prove that the GTIN belongs to the currently logged-in user. | |
| #[derive(Debug, Clone)] | |
| pub struct OwnedGtin(Gtin); |
| def add_and_double(x, y): | |
| return 2 * (x + y) |
| Climbing gear: | |
| Quickdraws -- 6 @ 11cm, 4 @ 18cm https://hownot2.store/products/orbit-mixed-express-ks | |
| Alpine draws -- 2 @ 60cm https://hownot2.store/products/miniwire-alpine-draw | |
| Dyneema sling -- 2 @ 120cm https://hownot2.store/products/dyneema-sling-8mm?variant=46378769252667 | |
| Dorothy Dunnett, The ringed castle (book 5) https://www.regulatorbookshop.com/book/9780525565284 | |
| Dorothy Dunnett, Checkmate (book 6) https://www.regulatorbookshop.com/book/9780525565291 | |
| 2 tickets to one of: |