Skip to content

Instantly share code, notes, and snippets.

View jgujgu's full-sized avatar

jgu jgujgu

  • Denver
View GitHub Profile
Prisoner's Dilemma and Strategy vs Strategy in Ruby
1. Prisoner's Dilemma as it relates to geopolitics
US v China, climate change and the economy
2. What is the Prisoner's Dilemma? (a particular normal form game)
Explain normal form games, how they look, what they mean, and what a Nash Equilibrium is
3. Prisoner's Dilemma, 2x2 games in Ruby code discussion/demonstration
Discuss different classes, different outcomes

Presenters & Decorators

Decorators

Decorators are used to add new functionality to an already existing object by "wrapping" it with new methods, without effecting other instances of that object. Thus, decorators are a perfect example of the Open/closed principle, in which an object is "open for extension" but "closed for modification"; you should be able to add new behavior to application without changing it's underlying source code. If any of this is a bit hard to swallow, I would

Presenters & Decorators

Decorators

Decorators are used to add new functionality to an already existing object by "wrapping" it with new methods, without effecting other instances of that object. Thus, decorators are a perfect example of the Open/closed principle, in which an object is "open for extension" but "closed for modification"; you should be able to add new behavior to application without changing it's underlying source code. If any of this is a bit hard to swallow, I would

@jgujgu
jgujgu / .block
Last active November 12, 2016 23:11
fresh block
license: mit
@jgujgu
jgujgu / .block
Created November 12, 2016 23:15
Pop vs Soda trivariate choropleth
license: mit
@jgujgu
jgujgu / .block
Last active November 12, 2016 23:26
fresh block 3
license: mit
@jgujgu
jgujgu / .block
Created November 12, 2016 23:26
fresh block 3
license: mit
@jgujgu
jgujgu / .block
Created November 12, 2016 23:28
fresh block
license: mit
@jgujgu
jgujgu / .block
Last active February 15, 2017 03:57
The world's number one...
license: mit
@jgujgu
jgujgu / .block
Last active February 15, 2017 03:58
We 😍 Wikipedia
license: mit