Skip to content

Instantly share code, notes, and snippets.

>>> import numpy as np
>>> from av import VideoFrame
>>> a = np.zeros((3,3,3))
>>> a[:,:,2] = 255
>>> a = a.astype(np.uint8)
>>> a
array([[[  0,   0, 255],
        [  0,   0, 255],
 [ 0, 0, 255]],
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Scroll demo</title>
<style>
#canvas {
height: 1200px;
background-color: rgb(69, 111, 225)
@mtn
mtn / main.rs
Last active July 22, 2018 05:12
rustc optimization check
#[no_mangle]
pub fn a_function(arg_1: &mut u32, arg_2: &mut u32) -> u32 {
// pub fn a_function(arg_1: &mut u32) {
*arg_1 = 10;
*arg_2 = 11;
*arg_2
}
fn main() {

Keybase proof

I hereby claim:

  • I am mtn on github.
  • I am mnoronha (https://keybase.io/mnoronha) on keybase.
  • I have a public key ASArvWa0tesG_XGrp_dP-LKtdBLqCW2lvY5EwpJsKRNmUAo

To claim this, I am signing this object: