(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.
(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.
| #!/usr/bin/env python | |
| """Basic Python Cheat Sheet by Filip Kral on 2015/02/16""" | |
| """ | |
| Python is a cross-platform, interpreted, object-oriented programming language. | |
| That means you can run it on Linux, Windows, Mac, and other platforms, | |
| you don't need to compile your code to execute it because it is compiled on | |
| the fly, and you can use classes and objects. |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| pythonbrew is a program to automate the building and installation of Python in the users $HOME. | |
| This is a clean way to install/manage multiple versions of python. | |
| 1. curl -kL http://xrl.us/pythonbrewinstall | bash | |
| 2. add to the end of your ~/.bashrc: | |
| [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc | |
| 3. pythonbrew install 2.7.2, pythonbrew install 3.2 |
| #!/bin/sh | |
| # | |
| # Runs node.js against script, logging to a logfile. We have to do | |
| # this because there's no way to call node directly and have start-stop-daemon | |
| # redirect stdout to a logfile. | |
| # | |
| LOGFILE=/var/log/node/node-application.log | |
| NODE=/usr/local/bin/node | |
| JAVASCRIPT=/var/apps/node-application/app.js |