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 kaaro_stream_bridge_url = "boomboom.store:3012"; | |
let stream_key = '<twitch_streaming_key>'; | |
let mediaRecorder; | |
let mediaStream; | |
let ws_url = window.location.protocol.replace('http', 'ws') + '//' + // http: => ws:, https: -> wss: | |
kaaro_stream_bridge_url + | |
'/rtmp/' + | |
encodeURIComponent(`rtmp://live-sin.twitch.tv/app/${stream_key}`); |
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 python | |
"""A simple Bloom Filter implementation | |
Calculating optimal filter size: | |
Where: | |
m is: self.bitcount (how many bits in self.filter) | |
n is: the number of expected values added to self.filter | |
k is: the number of hashes being produced | |
(1 - math.exp(-float(k * n) / m)) ** k | |
http://en.wikipedia.org/wiki/Bloom_filter | |
""" |