Skip to content

Instantly share code, notes, and snippets.

@robince
robince / clonesharedmemory.m
Created March 13, 2013 14:02
clonesharedmemory.m : This function should be modified to load the required data and copy it to shared memory. It will be run once per physical machine.
function clonesharedmemory(shmkey)
% load your data here
x = rand(1000,1000);
sharedmatrix('clone', shmkey, x);
@robince
robince / setup_cluster_sharedmatrix.m
Last active December 14, 2015 21:29
setup_cluster_sharedmatrix.m
% Start your pool!
% matlabpool open
%%
% this cell gets details about the pool to find a single worker on
% each physical machine
% get all hosts and workers
spmd
t = getCurrentWorker();
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
let g:Tex_ViewRule_pdf = 'Skim'
let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode -enable-write18 -file-line-error-style $*'
"let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode -file-line-error-style $*'
let g:Tex_Leader = ';'
"let g:Tex_Folding = 0
let g:Tex_AutoFolding = 0
autocmd FileType tex imap <C-L> <Plug>Tex_LeftRight
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" buftabs (C) 2006 Ico Doornekamp
"
" This program is free software; you can redistribute it and/or modify it
" under the terms of the GNU General Public License as published by the Free
" Software Foundation; either version 2 of the License, or (at your option)
" any later version.
"
" This program is distributed in the hope that it will be useful, but WITHOUT
" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
" BufPos: Activate a buffer by its position number in the buffers
" list
" Author: Michele Campeotto <michele@campeotto.net>
" Date: 2007-04-25
" Version: 1.0
"
" This script provides a function to activate a vim buffer by passing it the
" position in the buffers list and maps it to <M-number> to easily switch
" between open buffers.
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
function Send_to_Screen(text)
if !exists("g:screen_sessionname") || !exists("g:screen_windowname")
call Screen_Vars()
end
execute "python send_with_strip()"
endfunction
"pythoncomplete.vim - Omni Completion for python
" Maintainer: Aaron Griffin <aaronmgriffin@gmail.com>
" Version: 0.9
" Last Updated: 18 Jun 2009
"
" Changes
" TODO:
" 'info' item output can use some formatting work
" Add an "unsafe eval" mode, to allow for return type evaluation
" Complete basic syntax along with import statements