This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| figure | |
| set(gcf,'color','w') % valkoinen tausta | |
| set(gcf, 'PaperUnits', 'centimeters'); % mitat senttimetrejä | |
| set(gcf, 'PaperPosition', [0 0 12 12]) % kuvan koko | |
| subplot(2,1,1) | |
| plot(1:10, [1:10; 5.5:0.5:10]) | |
| ylabel('y-akseli (cm)') | |
| xlabel('x-akseli (s)') | |
| legend('eka', 'toka', 'Location', 'NorthWest') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Vim indent file | |
| " Language: R | |
| " Author: Jakson Alves de Aquino <jalvesaq@gmail.com> | |
| " URL: http://www.vim.org/scripts/script.php?script_id=2628 | |
| " Last Change: Sun Sep 11, 2011 10:55PM | |
| " Only load this indent file when no other was loaded. | |
| if exists("b:did_r_indent") | |
| finish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cursor is on [l], how would you delete the assignment? | |
| (everything until and including ; ) | |
| Eold2 = [l]ength(angles)*-log(... | |
| (1/besseli(0,kappa(j))))+... | |
| -kappa(j)*sum(cos(angles-meanangles))... | |
| ; | |
| there's stuff here too | |
| and here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nnoremap <F5> :w\|:make<CR> | |
| nnoremap <F6> :!./main<CR> | |
| autocmd FileType cpp call <SID>cppstuff() | |
| " C++-special hook"{{{ | |
| function! <SID>cppstuff() | |
| if filereadable("Makefile") | |
| set makeprg=make | |
| else | |
| set makeprg=g++\ -std=c++0x\ -Wall\ -Wextra\ -pedantic\ -g\ -D_GLIBCXX_DEBUG\ -o\ main\ %:h/*.cc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Kuluneena kesänä olin töissä BECS-lafkan Bayes-ryhmässä, jossa aloitin tupsufuksivuoteni jälkeen 2011. Kesän jälkeen olin jatkanut osa-aikaisena, joten kesän alkaessa työnkuva oli jo selkeä. Alunperin päädyin Bayes-ryhmään kuunneltuani ryhmien esittelyt BECS:in järjestämässä kesätyöinfossa, joka järjestetään keväisin ennen kuin haut lafkalle aukeavat. Alkuajat tutkin melko itsenäisesti ihmisten välisen kommunikaation rakennetta menetelmillä, joilla tätä ei ollut ennen tutkittu, mutta viime tammikuusta olen tehnyt tutkimusta ihon hermokuitujen jakautumisesta ihossa ja sen eroista diabetesta sairastavien ja terveiden ihmisten välillä. | |
| Työpäivät koostuivat pääasiassa koodaamisesta ja silloin tällöin myös hieman laskemisesta. Aloittaessani työt osasin hieman MATLABia ja R:ää, joista molemmista on ollut hyötyä. Kummankin osaaminen oli aluksi tietysti vähäistä, sillä harvoilla kursseilla näitä työkaluja oikeasti käytetään, mutta reilussa vuodessa ehtii oppia jo paljon. Itse koodausosaamista työ ei välttämättä vaad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vnoremap <Leader>h :<C-u>exec "match TabLine /\\%" . line("'<") ."l\\_.*\\%" .line("'>"). "l" . "/" <CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vnoremap <Leader>h :<C-u>exec "match rubyRegexp /\\%" . line("'<") ."l\\_.*\\%" .line("'>"). "l" . "/" <CR> | |
| nnoremap <Leader>h :exec "match rubyRegexp /\\%" . line(".") . "l.*/"<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function [record, gp, opt] = gp_mc(gp, x, y, varargin) | |
| <snip> | |
| ip=inputParser; | |
| ip.FunctionName = 'GP_MC'; | |
| ip.addRequired('gp',@isstruct); | |
| ip.addRequired('x', @(x) ~isempty(x) && isreal(x) && all(isfinite(x(:)))) | |
| ip.addRequired('y', @(x) ~isempty(x) && isreal(x) && all(isfinite(x(:)))) | |
| ip.addParamValue('z', [], @(x) isreal(x) && all(isfinite(x(:)))) | |
| ip.addParamValue('nsamples', 1, @(x) isreal(x) && all(isfinite(x(:)))) | |
| ip.addParamValue('repeat', 1, @(x) isreal(x) && all(isfinite(x(:)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! SearchPartyVisualMatch() | |
| let spos = getpos("'<") | |
| let epos = getpos("'>") | |
| if epos[2] > strlen(getline(epos[1])) | |
| let epos[2] = strlen(getline("'>")) | |
| call matchadd('Error', '\%' . spos[1] . 'l\%' . spos[2] . 'c\_.*\%' . epos[1] . 'l\%' . epos[2] . 'c.') | |
| endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deck.cc: In member function ‘int Deck::countVictoryPoints() const’: | |
| deck.cc:73: error: no matching function for call to ‘victoryPointsAccumulate::victoryPointsAccumulate(const Deck&)’ | |
| deck.cc:65: note: candidates are: victoryPointsAccumulate::victoryPointsAccumulate() | |
| deck.cc:65: note: victoryPointsAccumulate::victoryPointsAccumulate(const victoryPointsAccumulate&) | |
| make: *** [deck.o] Error 1 |
OlderNewer