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 |
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
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
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
# init | |
accum = [0, 0, ... duration/bucketSize] | |
display = [0, 0, ... duration/bucketSize] | |
#when adding a worm / worm change | |
display = accum.map (viewCount, index) -> | |
return viewCount if index < worm[0], index > worm[1] | |
return viewCount + 1 |
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
describe 'VulcanTransitioner' do | |
it 'should accept an account' do | |
end | |
it 'should switch the vulcan flag on for all medias in the account' do | |
end |
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's wrap this in a closure so we keep isHidden local | |
(function(){ | |
var isHidden = true; | |
wistiaEmbedz46h62nme5.bind("secondchange", function (s) { | |
if(s >== 10 && isHidden) { | |
isHidden = false; | |
$('#lp-pom-button-26') | |
.css({'z-index':16777272}) |
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var head = document.getElementsByTagName('head')[0], | |
ev1Script, metaDataScript; | |
ev1Script = document.createElement('script'); | |
ev1Script.src = "//fast.wistia.com/assets/external/E-v1.js"; | |
ev1Script.type = "text/javascript"; | |
ev1Script.charset = "ISO-8859-1"; | |
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
<div id="wistia_agmhsklp6p" class="wistia_embed" style="width: 640px; height: 388px;"> | |
<h4 style="text-align: center;"> | |
<object id="wistia_agmhsklp6p_seo" style="display: block; height: 360px; position: relative; width: 640px;" width="300" height="198" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> | |
<param name="movie" value="https://embed-ssl.wistia.com/flash/embed_player_v2.0.swf?2015-02-27"> | |
<param name="allowfullscreen" value="true"><param name="bgcolor" value="#000000"> | |
<param name="wmode" value="opaque"><param name="flashvars" value="autoPlay=false&banner=false&controlsVisibleOnLoad=true&customColor=0ac8db&endVideoBehavior=default&fullscreenDisabled=true&mediaDuration=91.971&playButtonVisible=true&quality=&showPlayButton=true&showPlaybar=true&showVolume=true&stillUrl=https%3A%2F%2Fembed-ssl.wistia.com%2Fdeliveries%2F6fb414e10137ba54ad2f25a05fe445c1696b84d6.bin%3Fimage_crop_resized%3D640x360&unbufferedSeek=true& |
NewerOlder