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
../../extras/package/macosx/../../../modules/codec/avcodec/fourcc.c:448:23: error: use of undeclared identifier 'AV_CODEC_ID_OPUS' | |
{ VLC_CODEC_OPUS, AV_CODEC_ID_OPUS, AUDIO_ES }, | |
^ | |
../../extras/package/macosx/../../../modules/codec/avcodec/fourcc.c:487:43: error: invalid application of 'sizeof' to an incomplete type 'const struct <anonymous struct at | |
../../extras/package/macosx/../../../modules/codec/avcodec/fourcc.c:39:14> []' | |
static const size_t codecs_count = sizeof (codecs_table) | |
^~~~~~~~~~~~~~ | |
2 errors generated. | |
make[4]: *** [codec/avcodec/libavcodec_plugin_la-fourcc.lo] Error 1 | |
make[4]: *** Waiting for unfinished jobs.... |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
"sync" | |
) | |
func main() { |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) | |
type State struct { | |
counter int |
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
#![crate_type = "lib"] | |
#![crate_id = "conveyor"] | |
#![desc = "A conveyor belt for bytes"] | |
#![license = "MIT"] | |
use std::str; | |
pub trait Producer<T> { | |
fn take(&mut self, nb: uint) -> & [T]; | |
} |
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
fn main() { | |
let a = |input: &[u8]| { | |
input.slice_from(1) | |
}; | |
println!("a: {}", a("abc".as_bytes())); | |
} |
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
MacBook-de-Geo:phpinclude geal$ cat Dockerfile | |
# -*- sh -*- | |
FROM base/archlinux | |
MAINTAINER Geoffroy Couprie, contact@geoffroycouprie.com | |
RUN echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" > /tmp/multilib | |
RUN cat /etc/pacman.conf /tmp/multilib > /tmp/pacman.conf | |
RUN mv /tmp/pacman.conf /etc/pacman.conf | |
RUN pacman -Syu --noconfirm | |
RUN pacman -S --noconfirm curl unzip lib32-zlib lib32-ncurses lib32-bzip2 |
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
fn prod<'a,'b>(a:uint) -> Box<FnMut(&'b[u8]) -> &'b[u8] +'a> { | |
box move |&: input: &'b[u8]| -> &'b[u8] { | |
input.slice_from(a) | |
} | |
} | |
fn main() { | |
let mut a = prod(2); | |
println!("a1: {}", a("abcdefgh".as_bytes())); | |
// -> a1: [99, 100, 101, 102, 103, 104] |
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
pub type Fun<'a, I, O> = Box<FnMut(I) -> Res<'a, I, O> +'a>; | |
pub enum Res<'a, I, O> { | |
Done(I, O), | |
Incomplete(Fun<'a, I, O>) | |
} | |
pub trait FMap<I, O, N> { | |
fn fmap<'y,F: Fn(O) -> N>(&'y self, f: F) -> Res<'y, I, N>; | |
} |
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
pub type Fun<'a> = Box<FnMut(u8) -> Res<'a> +'a>; | |
pub enum Res<'a> { | |
Done(u8, u8), | |
Incomplete(Fun<'a>) | |
} | |
pub trait FMap { | |
fn fmap<'y,F: Fn(u8) -> u8 + 'y>(&'y mut self, f: F) -> Res<'y>; | |
} |
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
pub type Fun<'a> = Box<FnOnce(u8) -> Res<'a> +'a>; | |
pub enum Res<'a> { | |
Done(u8, u8), | |
Incomplete(Fun<'a>) | |
} | |
pub trait FMap { | |
fn fmap<'y,F: Fn(u8) -> u8 + 'y>(self, f: &'y F) -> Res<'y>; | |
} |
OlderNewer