I hereby claim:
- I am jpreardon on github.
- I am jpreardon (https://keybase.io/jpreardon) on keybase.
- I have a public key whose fingerprint is 8F9B 907A 09A6 446B E6CA D158 B29D D2EF F2A3 8702
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// A crude simulation of Wait but why's Jellybean Problem | |
// http://waitbutwhy.com/2016/03/the-jellybean-problem.html | |
// This is the simulation: | |
// Randomly pick a number between 1 and 3 (this is the wining choice) | |
// Randomly pick a second number between 1 and 3 (this is the player's first choice) | |
// Compare the two numbers: | |
// - If they are the same, sticking to first choice will win, switchers will lose | |
// - If they are different, sicking to the first choice will lose, switchers will win |
class Dashing.Outboard extends Dashing.Widget | |
ready: -> | |
# This is fired when the widget is done being rendered | |
onData: (data) -> | |
# Handle incoming data | |
# You can access the html node of this widget with `@node` | |
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. |