Skip to content

Instantly share code, notes, and snippets.

Franziskus Domig fdomig

Block or report user

Report or block fdomig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View imagemagick.sh
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
View 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:

View gist:010cc9ad3334f8a937b4
# 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
Start Android Intent without pushing on the history stack
View gist:5531562
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 Jun 12, 2011 — forked from Wolfy42/ci_4_3.m
CI 4_3
View ci_4_3.m
%%%
% 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 Jun 9, 2011 — forked from Wolfy42/ci_4_3.m
CI 4_3
View ci_4_3.m
%%%
% 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 Jun 9, 2011 — forked from Wolfy42/ci_4_3.m
CI 4_3
View ci_4_3.m
%%%
% 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 Mar 24, 2011
A sample node.js sensor
View sensor.js
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'});
You can’t perform that action at this time.