Skip to content

Instantly share code, notes, and snippets.

View Brooooooklyn's full-sized avatar
🚣‍♂️
∑( ̄□ ̄;)

LongYinan Brooooooklyn

🚣‍♂️
∑( ̄□ ̄;)
View GitHub Profile
@Brooooooklyn
Brooooooklyn / Cargo.toml
Last active January 16, 2024 16:42
fetch implementation using NAPI-RS and reqwest
[package]
name = "napi-rs_fetch"
version = "1.0.0"
edition = "2021"
license = "MIT"
[lib]
crate-type = ["cdylib"]
[dependencies]
C++ 20 mins ███████████████████▏░ 91.6%
Other 1 min █▌░░░░░░░░░░░░░░░░░░░ 7.5%
TypeScript 0 secs ▏░░░░░░░░░░░░░░░░░░░░ 0.7%
TOML 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
Task: {
_id: string
name: string
content: string
executor: {
_id: string
name: string
}
}
@Brooooooklyn
Brooooooklyn / ChunkUploader.ts
Created December 21, 2016 13:10
RxJS file uploader demo
import { Fetch, Utils } from 'teambition-sdk'
import { Observable } from 'rxjs/Observable'
import { Subject } from 'rxjs/Subject'
import { ReplaySubject } from 'rxjs/ReplaySubject'
import { AjaxResponse } from 'rxjs/observable/dom/AjaxObservable'
import { Subscriber } from 'rxjs/Subscriber'
import * as config from 'config'
export interface ChunkMeta {
fileType: string
@Brooooooklyn
Brooooooklyn / rx.ts
Created October 11, 2016 06:14
RxJS 5.0.0 mixin for Vuejs 1.x
import { Observable } from 'rxjs/Observable'
import { Subscription } from 'rxjs/Subscription'
/**
* @see https://github.com/vuejs/vue-rx
*/
let isInstalled = false
export function VueRx(Vue) {
if (isInstalled) {
return