Use docker to run the linter
$ docker-compose -f docker/compose/run-lint.yaml up lint-python
use std::sync::Arc; | |
use std::ops::Deref; | |
#[derive(Clone, Debug)] | |
pub struct BytesRef { | |
bytes: Arc<Vec<u8>>, | |
} | |
impl BytesRef { | |
pub fn value(&self) -> &[u8] { |
pub struct SelectIterator<'i, I> { | |
iters: Vec<&'i mut dyn Iterator<Item=I>> | |
} | |
pub fn select<'i, I>(iters: Vec<&'i mut dyn Iterator<Item=I>>) | |
-> SelectIterator<'i, I> | |
{ | |
SelectIterator { iters } | |
} |
use std::cell::RefCell; | |
use std::cmp::Ord; | |
use std::collections::BinaryHeap; | |
use std::sync::mpsc::{channel, Receiver, RecvError, Sender, TryRecvError}; | |
pub struct PriorityReceiver<T> | |
where | |
T: Ord, | |
{ | |
internal: Receiver<T>, |
use std::cell::{Ref, RefCell}; | |
use std::collections::HashMap; | |
use std::rc::Rc; | |
#[derive(Debug)] | |
struct Key<'b> { | |
k: Ref<'b, String>, | |
} | |
impl<'b> Key<'b> { |
use std::borrow::Cow; | |
use std::collections::HashMap; | |
#[derive(Eq, PartialEq, Hash, Clone, Default, Debug)] | |
struct Symbol<'a> { | |
ns: Cow<'a, str>, | |
name: Cow<'a, str>, | |
} | |
impl<'a> Symbol<'a> { |
#[derive(Default)] | |
struct X { | |
a: String, | |
b: String, | |
c: String, | |
} | |
macro_rules! reject_empty { | |
($obj:ident, $first_field:tt, $($field:tt),*) => { | |
{ |
# This is the current latest, as of 8/16/2018 | |
curl -O https://github.com/zeromq/libzmq/releases/download/v4.2.5/zeromq-4.2.5.tar.gz | |
tar xvf zeromq-4.2.5.tar.gz | |
cd zeromq-4-2.5 | |
./configure | |
make | |
sudo make install |
use std::collections::HashMap; | |
use std::sync::Arc; | |
use std::sync::Mutex; | |
#[derive(Default)] | |
struct StringManagerPrimative { | |
pub map: HashMap<String, String>, | |
} | |
impl StringManagerPrimative { |
(let [bisect-by (juxt filter remove)] | |
(bisect-by odd? [1 2 3 4 5])) | |
; => [(1 3 5) (2 4)] |