- 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
#include <iostream> | |
#include <memory> | |
enum class FooType | |
{ | |
Bar, | |
Baz | |
}; | |
namespace Impl |
#include <iostream> | |
#include <string> | |
#include <cassert> | |
#include <iterator> | |
#include <array> | |
#include <numeric> | |
#include <vector> | |
template<bool...> struct bool_pack{}; |
// Example program | |
#include <iostream> | |
#include <iterator> | |
#include <algorithm> | |
template <typename T, size_t N> | |
void Show(const T (&array)[N]) | |
{ | |
std::copy(std::begin(array), std::end(array), std::ostream_iterator<T>(std::cout, " ")); | |
} |
#include <iostream> | |
class Base | |
{ | |
public: | |
virtual ~Base() {} | |
virtual void Bar() = 0; | |
}; | |
class Derived : public Base |
#include <iostream> | |
#include <memory> | |
#include <typeinfo> | |
using namespace std; | |
namespace | |
{ | |
class IPrintable | |
{ |
#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); | |
} |
template <typename R> | |
class MultiFuncObject | |
{ | |
std::unordered_map<std::type_index, void(*)()> m_funcs; | |
public: | |
template <typename ...A1> | |
MultiFuncObject<R> operator +=(R(*f)(A1...)) | |
{ |
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 |
#!/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} |