# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
#!/usr/bin/which python | |
# -*- coding: utf-8 -*- | |
""" | |
The MIT License (MIT) | |
Copyright © 2014 Jack Scott <code@nine78.com> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the “Software”), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
# mycharts.py | |
import sys | |
from reportlab.graphics.shapes import Drawing, String | |
from reportlab.graphics.charts import barcharts, piecharts, linecharts, legends | |
from reportlab.graphics.widgets.markers import makeMarker | |
from reportlab.graphics.charts.textlabels import Label | |
from reportlab.lib import colors | |
from reportlab.graphics.charts.piecharts import Pie, Pie3d | |
import types |
### | |
# This was lifted from here: http://blog.jolexa.net/2009/03/gentoo-tips-to-upgrade-your-really-old-installation/ | |
### | |
#Version 0, written by Nick Fortino | |
#March 23, 2009 | |
#This has been tested only in chroot, bringing 2006.1-amd64-stage3 upto | |
#a stable amd64 system | |
#This is an experimental guide on how to upgrade an old system to get to |