(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.
| /* C implementation QuickSort */ | |
| #include<stdio.h> | |
| // A utility function to swap two elements | |
| void swap(int* a, int* b) | |
| { | |
| int t = *a; | |
| *a = *b; | |
| *b = t; | |
| } |
| /* 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 |
| #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; |
| #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; |
(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.
| 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)); |
| ``` | |
| 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 | |
| ``` |
| look process: | |
| `lsof -i :<PORT NUMBER> | |
| kill process | |
| `kill -9 <PID>` |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"