Skip to content

Instantly share code, notes, and snippets.

use std::arch::x86_64::*;
fn main() {
unsafe { run() }
}
#[target_feature(enable = "avx")]
unsafe fn run() {
let mut data:Vec<u8> = Vec::new();
for i in 0..32 {
// should recognize:
// input-node name=foo dim=12
// i want to assume both are here, but not necessarily in this order
// i have similar case with more numrous foo=bar cases
fn parse_input_node_line(i: &str) -> IResult<&str, (String, usize)> {
use crate::parser::spaced;
use std::cell::Cell;
let name: Cell<Option<String>> = Cell::new(None);
let dim: Cell<Option<usize>> = Cell::new(None);
pub fn spaced<I, O, E: nom::error::ParseError<I>, F>(
it: F,
) -> impl Fn(I) -> IResult<I, O, E> where
I: nom::InputTakeAtPosition,
<I as nom::InputTakeAtPosition>::Item: nom::AsChar + Clone,
F: Fn(I) -> IResult<I, O, E> {
delimited(space0, it, space0)
}
pub fn multispaced<I, O, E: nom::error::ParseError<I>, F>(
extern crate flate2;
extern crate image;
extern crate ndarray;
extern crate protobuf;
extern crate tar;
#[allow(unused_imports)]
#[macro_use]
extern crate tract_core;
use std::{fs, io, path};
@kali
kali / dog.rs
Created February 13, 2019 19:32
extern crate flate2;
extern crate image;
extern crate ndarray;
extern crate protobuf;
extern crate tar;
#[allow(unused_imports)]
#[macro_use]
extern crate tract_core;
use std::{fs, io, path};
#!/bin/sh
/Users/kali/dev/toolchains/raspbian/stretch/rpi-linaro/armv7-unknown-linux-gnueabihf/bin/armv7-unknown-linux-gnueabihf-gcc --sysroot /Users/kali/dev/toolchains/raspbian/stretch/rpi-linaro/armv7-unknown-linux-gnueabihf/armv7-unknown-linux-gnueabihf/sysroot "$@"
impl<I> ModularArithmetic for I
where
I: Clone + Sized,
I: Zero + One + Neg<Output=I> + NumberTests,
for<'a> &'a I: Mul<I, Output=I>,
for<'a,'b> &'a I: Mul<&'b I, Output=I>,
for<'a,'b> &'a I: Div<&'b I, Output=I>,
for<'a> I: Rem<&'a I, Output=I>,
for<'a,'b> &'a I: Rem<&'b I, Output=I>,
for<'a,'b> &'a I: Add<&'b I, Output=I>,
error: failed to run custom build command for `libc-test v0.1.0 (file:///home/kali/libc/libc-test)`
process didn't exit successfully: `/home/kali/libc/libc-test/target/debug/build/libc-test-bad5caa69cfa4e7d/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=../src/lib.rs
cargo:rerun-if-changed=../src/dox.rs
cargo:rerun-if-changed=../src/unix/mod.rs
cargo:rerun-if-changed=../src/macros.rs
cargo:rerun-if-changed=../src/unix/notbsd/mod.rs
cargo:rerun-if-changed=../src/unix/notbsd/linux/mod.rs
cargo:rerun-if-changed=../src/unix/notbsd/linux/other/mod.rs
error[E0046]: not all trait items implemented, missing: `clerks_info`
--> src/lib.rs:367:1
|
367 | impl<I, C, S, M> sda_transport::TransportInterface for SummerServer<I, C, S, M>
| ^ missing `clerks_info` in implementation
error: aborting due to previous error

Keybase proof

I hereby claim:

  • I am kali on github.
  • I am kali (https://keybase.io/kali) on keybase.
  • I have a public key ASDv5uRrAnqze_sDKiWzA13hJ3V8fZJkXzjo_tayotW9FQo

To claim this, I am signing this object: