- {n,m}fo: From lines n to m fold them.
- zo: Open this fold.
- zc: Close this fold.
- za: Alternate closing and opening the fold.
- m{_}: Mark this line using a lowercase letter to reference later.
/* | |
[dependencies] | |
crossbeam-utils = "0.6" | |
hashbrown = "0.2" | |
parking_lot = "0.7" | |
*/ | |
// Go Reference: https://github.com/golang/groupcache/blob/5b532d6fd5efaf7fa130d4e859a2fde0fc3a9e1b/singleflight/singleflight.go | |
use std::fmt::Debug; |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type BankAccount struct { | |
balance int |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
var wg sync.WaitGroup |
#[macro_use] | |
extern crate error_chain; | |
extern crate clap; | |
extern crate reqwest; | |
use std::fs::File; | |
use std::io; | |
use clap::{App, Arg}; |
FROM alpine:3.6 | |
RUN apk add --no-cache rust cargo | |
COPY project /build | |
WORKDIR /build | |
RUN ["cargo", "build", "--release"] | |
ENTRYPOINT ["cargo", "run", "--release"] |
extern crate byteorder; | |
extern crate futures; | |
extern crate tokio_core; | |
extern crate tokio_io; | |
use std::io::{self, Write}; | |
use std::net::TcpStream; | |
use byteorder::{BigEndian, ByteOrder}; | |
use futures::{Future, Stream}; |
I hereby claim:
To claim this, I am signing this object:
diff --git a/Cargo.toml b/Cargo.toml | |
index 633e404..6963348 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -12,6 +12,7 @@ license = "MIT/Apache-2.0" | |
hyper = { version = "0.9" , default-features = false } | |
log = "0.3" | |
native-tls = "0.1" | |
+serde_derive = "0.8" | |
serde = "0.8" |
package main | |
import ( | |
"fmt" | |
"log" | |
"math" | |
"net/http" | |
"os" | |
"os/exec" | |
"time" |