Skip to content

Instantly share code, notes, and snippets.

" git
NeoBundleLazy 'kmnk/vim-unite-giti', {
\ 'depends' : 'Shougo/unite.vim',
\ 'autoload': {
\ 'unite_sources': [
\ 'giti', 'giti/branch', 'giti/branch/new',
\ 'giti/branch_all', 'giti/config', 'giti/log',
\ 'giti/remote', 'giti/status'
\ ]
\ }}
" ------------------------------------
" cascading.vim
"------------------------------------
"{{{
nnoremap <silent>-- :Cascading<CR>
"}}}
"------------------------------------
" smartchr.vim
"------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="MPISpec-Run.xsl" ?>
<BEHAVIOUR timestump="Sat Jul 5 23:38:00 2014">
<DESCRIBE>
<DESCRIPTION><![CDATA[function cpi]]></DESCRIPTION>
<DESCRIBE>
<DESCRIPTION><![CDATA[rank0]]></DESCRIPTION>
<IT>
<DESCRIPTION><![CDATA[it return 0]]></DESCRIPTION>
<ASSERTION>
@calorie
calorie / .cvimrc
Last active April 15, 2020 10:28
.cvimrc
set nocncpcompletion
set nosmoothscroll
set nohud
set noregex
set noinsertmappings
set noautoupdategist
set nochangelog
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
Expand Filesystem, OK
Advanced Options, Hostname
Advanced Options, SSH, Enable, OK
Advanced Options, Update
Finish
$ sudo reboot
user:pi pass:raspberry
$ sudo vi /etc/network/interfaces
#include "mpi.h"
#include <stdio.h>
int
sync()
{
int rank, val = 0;
MPI_Request request;
MPI_Status status;
diff --git script/mpiut.in script/mpiut.in
index 7b817b0..6dbf334 100644
--- script/mpiut.in
+++ script/mpiut.in
@@ -8,6 +8,6 @@ EXEC="exec_test"
MPIUTFLAGS="-I${INSTDIR}/include -finstrument-functions -rdynamic"
MPIUTLIBS="-L${INSTDIR}/lib -lmpiunit -lm"
-$CC $MPIUTFLAGS $MPIUTLIBS src/*.c test/*.c -o $EXEC
+$CC $MPIUTFLAGS src/*.c test/*.c -o $EXEC $MPIUTLIBS
export USE_SYSTEM_GECODE=1
export DOCKER_HOST=tcp://127.0.0.1:4243
export VAGRANT_DEFAULT_PROVIDER=docker
@calorie
calorie / auto_woot.js
Last active August 29, 2015 14:13
plug.dj auto woot script without ads.
function autowoot(){ $("#woot").click(); }
autowoot();
API.on(API.ADVANCE, autowoot);
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html