Skip to content

Instantly share code, notes, and snippets.

pi@taurus:~/tmp $ ls -lh vineyard*
-rw-r--r-- 1 pi pi 31M Jul 7 11:50 vineyard.jpg
pi@taurus:~/tmp $ time convert -resize 5% vineyard.jpg vineyard-small.jpg
real 1m25.157s
user 1m20.400s
sys 0m1.710s
pi@taurus:~/tmp $ ls -lh vineyard*
-rw-r--r-- 1 pi pi 31M Jul 7 11:50 vineyard.jpg
-rw-r--r-- 1 pi pi 174K Jul 7 12:04 vineyard-small.jpg
@fdomig
fdomig / keybase.md
Created June 30, 2016 06:43
keybase.md

Keybase proof

I hereby claim:

  • I am fdomig on github.
  • I am fdomig (https://keybase.io/fdomig) on keybase.
  • I have a public key ASDG9vfdy_Yv-uBcSLBqfNchV4Yad1BtATVJqz3ceoQw5Qo

To claim this, I am signing this object:

# git funky stuff
red="$(tput setaf 1)"
green="$(tput setaf 2)"
NC="$(tput sgr0)" # No Color
branchcolor=""
branch=""
PS_ORIGINAL=$PS1
function prompt_setup ()
@fdomig
fdomig / gist:5531562
Created May 7, 2013 10:00
Start Android Intent without pushing on the history stack
public void doSomething()
{
Intent intent = new Intent(this, SomeOtherClass.class);
// do not keep this intent in history
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);
}
@fdomig
fdomig / ci_4_3.m
Created June 12, 2011 17:20 — forked from Wolfy42/ci_4_3.m
CI 4_3
%%%
% Feed forward with back propagation algorithm
%
% @param X ... all possible inputs (matrix)
% @param Y ... all expected outputs (matrix)
% @param T ... the network topology (matrix)
% @param l ... the iteration limit for the error min. func.
% @returns W ... the calculated weight matrix
% @returns Ev ... the error dynamic vector
%%
@fdomig
fdomig / ci_4_3.m
Created June 9, 2011 12:11 — forked from Wolfy42/ci_4_3.m
CI 4_3
%%%
% Feed forward with back propagation algorithm
%
% @param X ... all possible inputs
% @param Y ... all expected outputs
% @param T ... the network topology
% @param l ... the iteration limit for the error min. func.
% @returns W ... the optimal weight matrix
% @returns Ev ... the error dynamic vector
%%
@fdomig
fdomig / ci_4_3.m
Created June 9, 2011 11:19 — forked from Wolfy42/ci_4_3.m
CI 4_3
%%%
% Feed forward with back propagation algorithm
%
% @param X ... all possible inputs
% @param Y ... all expected outputs
% @param T ... the network topology
% @param l ... the iteration limit for the error min. func.
% @returns W ... the optimal weight matrix
% @returns Ev ... the error dynamic vector
%%
@fdomig
fdomig / sensor.js
Created March 24, 2011 09:01
A sample node.js sensor
var argv = require('optimist').argv;
var http = require('http');
var temp = function() {
return '17';
}
http.createServer(function(req, res) {
console.log(req.method + " " + req.url + ' HTTP/' + req.httpVersion);
res.writeHead('200', {'Content-Type': 'text/plain'});