I hereby claim:
- I am benjamintanweihao on github.
- I am bentanweihao (https://keybase.io/bentanweihao) on keybase.
- I have a public key ASAmpE_QvVG3NZzyRxlD0n5mQCg3vnApNkT3csQAKtXYQQo
To claim this, I am signing this object:
| image = cv2.cvtColor(image, cv2.COLOR_BGR2RGBA) | |
| image[np.all(image == [0, 0, 0, 255], axis=2)] = [0, 0, 0, 0] |
I hereby claim:
To claim this, I am signing this object:
| name: pyimagesearch | |
| channels: | |
| - https://conda.anaconda.org/menpo | |
| - conda-forge | |
| dependencies: | |
| - python==3.6 | |
| - numpy | |
| - matplotlib | |
| - jupyter | |
| - opencv3 |
| fn main() { | |
| let s1 = "x=123, y = 345, rule = B21/S334"; | |
| let s2 = s1.replace(" ", ""); | |
| let s3 = s2.split(',').collect::<Vec<_>>(); | |
| let s4 = &s3[0..2]; | |
| let s5 = s4.iter() | |
| .flat_map(|&x| x.split('=').collect::<Vec<_>>()) | |
| .collect::<Vec<_>>(); | |
| println!("x = {:?}", s5[1]); | |
| println!("y = {:?}", s5[3]); |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright 2016 Massachusetts Institute of Technology | |
| """Extract images from a rosbag. | |
| """ | |
| import os | |
| import argparse |
| %%% File : gpb_eqc.erl | |
| %%% Author : Thomas Arts <[email protected]> | |
| %%% Further developed by: Tomas Abrahamsson <[email protected]> | |
| %%% Description : Testing protocol buffer implemented by Tomas Abrahamsson | |
| %%% Created : 12 May 2010 by Thomas Arts | |
| -module(gpb_eqc). | |
| -include_lib("eqc/include/eqc.hrl"). | |
| -include("gpb.hrl"). |
| defmodule Counter do | |
| @moduledoc """ | |
| This is a simple producer that counts from the given | |
| number whenever there is a demand. | |
| """ | |
| use GenStage | |
| def start_link(initial) when is_integer(initial) do | |
| GenStage.start_link(__MODULE__, initial, name: __MODULE__) | |
| end |
| module Main where | |
| main :: IO () | |
| main = | |
| showcells glider | |
| cls :: IO () | |
| cls = | |
| putStr "\ESC[2J]" |
| type MockSlackClient2 struct { | |
| PostMessageCalled bool | |
| Message string | |
| Entry *model.Entry | |
| Status string | |
| postMessage func(string, string, string) | |
| postMessageWithMarkdown func(sting, string, string) | |
| } |
| (set-window-margins (selected-window) 30 30) |