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
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
" call vundle#begin('~/some/path/here') | |
" | |
" let Vundle manage Vundle, required |
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
import React from 'react'; | |
export const RAFHOC = Component => class RAF extends React.Component { | |
constructor() { | |
super(); | |
this.state = { isRunning: false }; | |
} | |
componentWillUpdate(nextProps, nextState) { |
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
const s3 = new AWS.S3(); | |
const BUCKET = 'multipart-upload-test'; | |
const FILENAME = `test-${Math.random()}.webm`; | |
const logSize = size => { | |
console.log(`current size: ${totalSize / (1024*1024)}mb`); | |
}; | |
const createUpload = () => new Promise((resolve, reject) => { | |
const options = { Bucket: BUCKET, Key: FILENAME }; |
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
{ | |
"type": "kafka", | |
"ioConfig": { | |
"consumerProperties": { | |
"bootstrap.servers": "kafka:19092" | |
}, | |
"topic": "stats_tap.flat_player_event.proto.v0", | |
"type": "kafka", | |
"taskCount": 1, | |
"replicas": 1 |
OlderNewer