Skip to content

Instantly share code, notes, and snippets.

View amodig's full-sized avatar

Arttu Modig amodig

View GitHub Profile
Inkubion legendaarinen maisteluiltojen sarja jatkuu, ja mikäs sopiikaan paremmin kylmiin ja pimeisiin marraskuun iltoihin kuin olutilta!
Lauantaina 23.11. on siis luvassa tuhti ja moninainen kattaus erilaisia oluita ja tiukka infopaketti! Peruslageria (siis keppanaa tai bissee) ei ole tarjolla, joten mukaan toivotaan erityisesti myös olutummikkoja ja -skeptikkoja. Pahoittelen myöhässä tulevaa kutsua!
Paikkoja rajoitetusti 20 hengelle. Hintapyytö 10e. Käteisellä tai tilille: FI63 5271 1850 0013 39
---
Wikipedia kertoo lyhyesti oluen syntyhistoriasta seuraavaa:
"Oluen syntysanojen mukaan Osmotar tai vastaavan niminen henkilö, ilmeisesti jumaluus, on luonut ensimmäisen oluen. Osmotar hieroi käsiään, jolloin syntyi eläimiä, kuten orava, kettu tai näätä. Osmotar lähetti eläimet hakemaan tarpeita olutta varten. Eläimet hakivat tarpeita, kuten palkoheinää, käpyjä tai mettä. Olut ei kuitenkaan alkanut käydä. Apuri-eläin toi sitten kuolaa, jota valui tappelevien eläinten suusta, ja sen avulla olut vihdoin alkoi k
@amodig
amodig / MBNex2.m
Created November 7, 2013 13:44 — forked from anonymous/MBNex2.m
pre = [0 1 0 0 1;
1 0 0 0 0;
0 1 0 0 0;
0 0 1 0 0;
0 0 0 2 0;
0 0 0 0 1;
0 0 1 0 0;
0 0 0 1 0];
post = [1 0 0 0 0;
@amodig
amodig / ar2graph.tex
Created February 7, 2014 14:12
dot2tex - AR2 model
\documentclass[english]{article}
\usepackage[margin=0.0in]{geometry}
\usepackage{babel}
\usepackage{tikz}
\usetikzlibrary{automata,shapes,arrows}
\usepackage{dot2texi}
\begin{document}
\pagestyle{empty}
Measuring human's motor cababilities has always been a part of human culture. Since the dawn of sports, people have been competing with each other in skills that require a high level of motor-cognitive competence. Besides sports and other physical games, many artistical skills, especially related to music, such as playing an instrument or performing a dance, require a high level of motorical cababilities. Many world-class dancers, musicians and athleths are also among the most motorically skilful people in the world.
Evaluation of such skills is a science of its own. In sports where the scored performance is complex, there is a judge or a whole jury to evaluate the level of skill. In musical competitions, there needs to be experts, usually expert musicians themselves, that have the required knowledge to be able to evaluate others. Thus, there is virtually no metrics, in the sense of natural sciences, that could help with the evaluation process or even standardize it. The scoring process is commonly a jury of
From The Disaster Artist, by Greg Sestero:
Before running the scene one final time, Tommy wanted to talk to the flower shop owner about her dog. “So cute,” he said, as he petted the dog. “Hopefully he doesn’t bite me, my God.”
I think the owner somehow misinterpreted this as Tommy wanting the dog out of the next take. “Well,” she said, “he’s actually really old now. He just sits around. He won’t bother anyone. He kind of rules over this counter.”
Tommy nodded, smiling, still gazing down at the motionless little dog. “So is it real thing?”
The flower shop owner looked at Tommy uncertainly. “I’m sorry?” she said, after a moment.
#!/bin/sh
logpath='./log/batcher.log'
# remove old output
#rm ${logpath}
matlab_exec='sudo -H -u amodig /usr/local/MATLAB/R2012a/bin/matlab'
r_exec='sudo -H -u amodig /usr/bin/Rscript'
# first argument for MATLAB (function)
# NOTES:
#
# - For 'make nomex', define variables MEX_SUFFIX and MATLAB_LIB.
# - For 'make mex', define variable MEX, and setup mex.
# - For 'make oct', define variables OCT and OCTAVE_INCLUDE.
#
# CHOOSE MATLAB CONFIGURATION
# This should be the path to your Matlab installation
# you can find it by the commands 'locate matlab' or 'find / -name "matlab"'
$ make mex
gfortran -O3 -fPIC -fexceptions -Wall -g -Wno-uninitialized -o solver30.o -c solver30.f
gfortran -O3 -fPIC -fexceptions -Wall -g -Wno-uninitialized -o linpack.o -c linpack.f
gfortran -O3 -fPIC -fexceptions -Wall -g -Wno-uninitialized -o timer.o -c timer.f
gfortran -O3 -fPIC -fexceptions -Wall -g -Wno-uninitialized -o blas.o -c blas.f
gcc-4.7 -O3 -fPIC -pthread -Wall -Werror -ansi -ffast-math -fomit-frame-pointer -I \
-I/home/amodig/MATLAB/R2014a/extern/include -o matlabexception.o -c matlabexception.cpp
gcc-4.7 -O3 -fPIC -pthread -Wall -Werror -ansi -ffast-math -fomit-frame-pointer -I \
-I/home/amodig/MATLAB/R2014a/extern/include -o matlabscalar.o -c matlabscalar.cpp
In file included from matlabscalar.cpp:1:0:
@amodig
amodig / output
Last active August 29, 2015 14:07
Verbose Makefile error
$ make mex
gcc-4.7 -v -O3 -fPIC -pthread -Wall -Werror -ansi -ffast-math -fomit-frame-pointer -I \
-I/home/amodig/MATLAB/R2014a/extern/include -o matlabscalar.o -c matlabscalar.cpp
Using built-in specs.
COLLECT_GCC=gcc-4.7
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-2ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64
@amodig
amodig / gist:58ac9af3b3cf27f90db4
Created April 1, 2015 13:40
Irssi UTF-8 settings
term_charset = UTF-8
recode = ON
recode_out_default_charset = UTF-8
recode_autodetect_utf8 = ON
recode_fallback = CP1252
recode_out_default_charset = UTF-8
recode_transliterate = ON