- web: http://mrilab.sourceforge.net
- web (alternative): http://nl.mathworks.com/matlabcentral/fileexchange/45456-mrilab-v1-2
- platform: MATLAB
- author: Brian Hargreaves
- web: http://mrsrl.stanford.edu/~brian/blochsim/
- platform: MATLAB/c-code MEX files
// copied from https://gist.github.com/lexicalunit since I could not star it | |
// c++ -I/usr/local/include -L/usr/local/lib -lVariant schema_validate.cpp | |
#include <cstdio> | |
#include <iostream> | |
#include <iomanip> | |
#include <algorithm> | |
#include <fstream> | |
#include <sstream> | |
#include <iterator> |
cat << EOF > /etc/network/interfaces | |
# Include files from /etc/network/interfaces.d: | |
source-directory /etc/network/interfaces.d | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet manual | |
allow-hotplug wlan0 |
#!/bin/bash | |
# requires kodi callbacks plugin - see http://kodi.wiki/view/Add-on:Kodi_Callbacks | |
# rpi audio switching - https://www.raspberrypi.org/documentation/configuration/audio-config.md | |
# https://github.com/KenV99/service.xbmc.callbacks2/blob/da7449f3d462cd7fe89a9c343ee3ab5cf3778dc9/default.py | |
# def playing_type returns [music|movie|episode|stream|liveTV|recordedTV|PVRradio|unknown] | |
if [ ! $# -eq 1 ]; then | |
echo "usage: switch_audio mediatype" | |
exit 1 |
require 'socket' | |
# client socket # | |
host = piet.net | |
port = 1234 | |
s = TCPSocket.open(host, port) | |
while line = s.gets | |
puts line |
#!/bin/bash | |
fileprefix=telefoonlijst | |
cd /tmp | |
echo 'mirror --no-empty-dirs -I $fileprefix*' | lftp http://www_rt/telefoon-email-web/ | |
evince "$(ls -1tr $fileprefix* | tail -n 1)" --fullscreen | |
#!/bin/bash | |
newyear=$1 | |
for j in *.JPG; do | |
tag=CreateDate | |
datetime=$(exiftool -$tag $j | sed -e 's|^.*: ||') | |
year=$(echo $datetime | sed -e 's|:[0-9 :]*||') | |
newdatetime=${datetime/$year/$newyear} |
lorenz: lorenz.cpp | |
g++ -o $@ $^ -std=c++11 -O3 \ | |
-I${HOME}/work/odeint-v2 \ | |
-I${HOME}/work/opencl/compute/include/ \ | |
-lOpenCL -lboost_system -lboost_timer |
template <typename R> | |
class MultiFuncObject | |
{ | |
std::unordered_map<std::type_index, void(*)()> m_funcs; | |
public: | |
template <typename ...A1> | |
MultiFuncObject<R> operator +=(R(*f)(A1...)) | |
{ |
#include <string> | |
#include <vector> | |
std::vector<std::string> Tokenize(const std::string& str, const std::string& delimiter) | |
{ | |
std::vector<std::string> tokens; | |
if (delimiter.empty()) | |
{ | |
tokens.push_back(str); | |
} |