create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| look process: | |
| `lsof -i :<PORT NUMBER> | |
| kill process | |
| `kill -9 <PID>` |
| ``` | |
| gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config | |
| Note: in newer versions (in 9.4 at least) the path is actually: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config | |
| ``` |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
(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.
| #include <mpi.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int numnodes; | |
| int main(int argc, char* argv[]) | |
| { | |
| int rank; | |
| int *myray,*send_array,*back_array; | |
| int count; |
| #include <mpi.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int numnodes; | |
| int main(int argc, char* argv[]) | |
| { | |
| int rank; | |
| int *back_array; | |
| int i,data; |
| /* C++ implementation QuickSort using Lomuto's partition | |
| Scheme.*/ | |
| #include <cstdlib> | |
| #include <iostream> | |
| using namespace std; | |
| /* This function takes last element as pivot, places | |
| the pivot element at its correct position in sorted | |
| array, and places all smaller (smaller than pivot) | |
| to left of pivot and all greater elements to right |