Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import org.apache.spark.graphx._ | |
import org.apache.spark.rdd.RDD | |
case class Peep(name: String, age: Int) | |
val vertexArray = Array( | |
(1L, Peep("Kim", 23)), | |
(2L, Peep("Pat", 31)), | |
(3L, Peep("Chris", 52)), | |
(4L, Peep("Kelly", 39)), |
Centralize the support libraries dependencies in gradle
Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.
A very good way is to separate gradle build files, defining something like:
root
--gradleScript
----dependencies.gradle
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode
- Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
group: Elmasri & Navathe Possible Airline DB State Figure 5.8 | |
description[[ this is a potential set of data based on the Airline Schema from the Elmasri & Navathe (Fundamentals of Database Systems Textbook) While it is based on the Schema, this is not from the book. | |
The relation _Airport_ contains basic information about an airport | |
The relation _Flight_ contains basic information about a complete flight route | |
The relation _Flight_Leg_ contains information about a flight segment within that route | |
The relation _Leg_instance_ contains information on a flight leg from a particular day | |
The relation _Fare_ contains information on a fare for a flight | |
The relation _Airplane_type_ has information about different airplane models |
Can't share the complete code because the app's closed source and still in stealth mode, but here's how I'm using React Router and Redux in a large app with server rendering and code splitting on routes.
- Wildcard Express route configures a Redux store for each request and makes
an
addReducers()
callback available to thegetComponents()
method of each React Router route. Each route is responsible for adding any Redux reducers it needs when it's loaded. (This isn't really necessary on the