This file contains hidden or 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
extern mod native; | |
use std::io::net::unix::UnixStream; | |
use std::path::posix::Path; | |
use std::str; | |
use std::rt::rtio::IoFactory; | |
use native::io; | |
fn main() { |
This file contains hidden or 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
use std::io; | |
pub struct A<'a, R> { | |
reader: &'a R | |
} | |
pub fn init<'a, R: io::Reader>(r: &'a R) -> ~Parser<'a, R> { | |
~A { | |
reader: r | |
} |
This file contains hidden or 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 hidden or 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
v=`curl -s https://s3.amazonaws.com/download.draios.com/stable/install-sysdig`; if [ "7777a6bb3188993fc70fd8124c03e2880f034be6 -" != "`echo -n "$v" | sha1sum`" ]; then echo "invalid hash"; else `echo "$v" | sudo bash`; fi |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 epsi.com.phototest; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.pm.PackageManager; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.hardware.Camera; | |
import android.media.MediaScannerConnection; | |
import android.net.Uri; |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <stdbool.h> | |
#include <time.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include "future.h" |
This file contains hidden or 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())); | |
} |