(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 node | |
| 'use strict'; | |
| const program = require('commander'); | |
| const fs = require('fs'); | |
| const { spawn } = require('child_process'); | |
| program | |
| .version('1.0.0') | |
| .option('-e, --environment <environment>', 'Environment to deploy to') |
(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.
| mkvirtualenv datascience | |
| sudo apt-get install python-scipy libblas-dev liblapack-dev gfortran | |
| sudo apt-get install libffi-dev # for cryptography from scrapy | |
| sudo apt-get install libxslt-dev # for libxml from scrapy | |
| export BLAS=/usr/lib/libblas.so | |
| export LAPACK=/usr/lib/liblapack.so | |
| pip install numpy | |
| pip install scipy | |
| pip install scikit-learn | |
| pip install pandas |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |