用例子讲解 RxJS 5 的 Operators 。
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
use futures::StreamExt; | |
use std::error::Error; | |
use tokio; | |
use tokio::macros::support::Pin; | |
use tokio::prelude::*; | |
use tokio::time::{Duration, Instant}; | |
pub fn main() -> Result<(), Box<dyn std::error::Error>> { | |
let mut multi_threaded_runtime = tokio::runtime::Builder::new() | |
.threaded_scheduler() |
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
/** | |
* Given a DOM data structure in JSON | |
* write a function that can render JSON DOM | |
* onto an existing DOM node | |
* It is totally acceptable to google for javascript or dom | |
* manipulation related functions | |
*/ | |
const vDom = { | |
name: "form", | |
tag: "form", |
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
[user] | |
name = musicq | |
email = liang.kui@hotmail.com | |
[pull] | |
rebase = true | |
[alias] | |
co = checkout | |
s = status -s | |
a = add | |
c = commit |
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
let binaryArray = new Array(5).fill(new Array(10)); | |
// or maybe more dimension | |
let arr = new Array(5).fill(new Array(10).fill(new Array(15))); |
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
{"lastUpload":"2020-03-26T06:45:06.530Z","extensionVersion":"v3.4.3"} |
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
" vundle 环境设置 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#begin() | |
" Define bundles via github repos | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/syntastic' |
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
#!/usr/bin/env bash | |
command=$1 | |
registry="https://registry-npm.yunzhanghu.net" | |
if [ ! ${command} ]; then | |
command="install" | |
fi |