At the Futurice Code Camp, we wanted to motivate people to share what they learn.
At the Futurice Code Camp, we wanted to motivate people to share what they learn. We urged the campers to share code examples, which earned them a reward. It worked very well with snippets ranging from git configuration to RxJS best practices and some Clojure magic.
GitHub’s Gist is a great tool for sharing blocks of text or code with other people because each gist is also a git repository that you can fork. Gist also supports commenting the code and enables effortless collaborations around tiny bits of code.
And, since sharing is caring, here are the gists from our code camp:
valueAndValidFrom, a helper method for creating a pair of value and validity streams from a single RxJS Observable stream. Rocks the world, at least ours.