Skip to content

Instantly share code, notes, and snippets.

//https://stackoverflow.com/questions/18833920/webrtc-for-realtime-scaling/21103641#21103641
/*
* Client 1 Server Client 2
* Create an RTC object
* Create offer
* set localdescription = offer Create RTC object
* send offer -------------------> ------>set remote description to offer
* Create answer
* local description = answer
* set remote description<-------- <------send answer

Keybase proof

I hereby claim:

  • I am louislang on github.
  • I am louislang (https://keybase.io/louislang) on keybase.
  • I have a public key whose fingerprint is 0F18 EC5D 5D63 4379 035F 74C2 842D 0584 C034 B7EA

To claim this, I am signing this object:

@louislang
louislang / counter.html
Created November 9, 2015 05:08
A simple one page (88 line, heavily commented) demonstration of React/Reflux/JSX. Implements a simple counter with increment, decrement and reset.
<html>
<body>
<!-- This is where our counter will eventually go -->
<div id="counter"></div>
<!-- Include React, Reflux, ReactDOM, and Babel -->
<script src="bower_components/react/react.js"></script>
<script src="bower_components/reflux/dist/reflux.js"></script>
<script src="bower_components/react-dom/react-dom.js"></script>
<script src="bower_components/babel/browser.js"></script>
Verifying myself: My Bitcoin username is +louis. https://onename.io/louis
<html>
<body>
<script>
document.write(document.cookie);
</script>
</body>
</html>
@louislang
louislang / dwolla-add-funding-source.py
Created January 23, 2013 02:00
Using Dwolla's Python Library, I am unable to add a new bank account. The library throws an "Access Token Empty" exception when add_funding_source is called. I've debugged the library thinking it may have been a problem with it, however it appears Dwolla's API is returning this message. I've checked, and rechecked that the data sent is what the …
# Include the Dwolla REST Client
from dwolla import DwollaUser
# Include any required keys
import _keys
# Instantiate a new Dwolla User client
# And, Sseed a previously generated access token
DwollaUser = DwollaUser(_keys.token)