Skip to content

Instantly share code, notes, and snippets.

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
import React from 'react';
export const RAFHOC = Component => class RAF extends React.Component {
constructor() {
super();
this.state = { isRunning: false };
}
componentWillUpdate(nextProps, nextState) {
@nvolungis
nvolungis / streaming-webcam-upload.js
Created March 14, 2018 15:15
streaming webcam upload
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 };
@nvolungis
nvolungis / flat-player-event-ingestion-spec.json
Last active March 26, 2020 18:25
basic ingestion spec for flat player events
{
"type": "kafka",
"ioConfig": {
"consumerProperties": {
"bootstrap.servers": "kafka:19092"
},
"topic": "stats_tap.flat_player_event.proto.v0",
"type": "kafka",
"taskCount": 1,
"replicas": 1