I hereby claim:
- I am daeyun on github.
- I am daeyun (https://keybase.io/daeyun) on keybase.
- I have a public key whose fingerprint is C082 56CF 3D97 BBBF A18A FAE2 42CB 2976 346F 9688
To claim this, I am signing this object:
/** | |
* C++11 coroutine example using Boost.Coroutine | |
* Created by daeyun on 1/13/15. | |
*/ | |
#include <iostream> | |
#include <boost/coroutine/all.hpp> | |
template <typename T> | |
using coro = boost::coroutines::asymmetric_coroutine<T>; | |
using std::cout; |
function renderMesh(Mesh, vertexColors, az, el, upvec) | |
if ~exist('vertexColors', 'var'), vertexColors=zeros(size(Mesh.v,1), 1); end | |
if ~exist('az', 'var'), az=-45; end | |
if ~exist('el', 'var'), el=-120; end | |
if ~exist('upvec', 'var'), upvec=[0 1 0]; end | |
y=Mesh.v(:,2); | |
Mesh.v(:,2)=Mesh.v(:,3); | |
Mesh.v(:,3)=y; |
EchoRed() { | |
{ set +x; } 2>/dev/null | |
echo "$(tput setaf 1)${1}$(tput sgr0)" | |
set -x | |
} | |
EchoGreen() { | |
{ set +x; } 2>/dev/null | |
echo "$(tput setaf 2)${1}$(tput sgr0)" | |
set -x |
I hereby claim:
To claim this, I am signing this object:
daeyun |
void Inverse33(const double a[3][3], double inv[3][3]) { | |
int i, j; | |
double determinant = 0; | |
for (i = 0; i < 3; i++) | |
determinant = | |
determinant + (a[0][i] * (a[1][(i + 1) % 3] * a[2][(i + 2) % 3] - | |
a[1][(i + 2) % 3] * a[2][(i + 1) % 3])); | |
for (i = 0; i < 3; i++) { | |
for (j = 0; j < 3; j++) |
#!/usr/bin/env python3 | |
""" Take a screenshot, save to Dropbox, and copy link to clipboard. | |
Install imagemagick, xsel, and | |
sudo pip3 install sh docopt | |
Usage: screenshot.py [<delay>] | |
""" | |
import sh |
import sys | |
import os | |
import re | |
import subprocess | |
import textwrap | |
from dateutil.parser import parse | |
def rename_all(working_dir='.', video_ext='.mpg'): | |
filenames = sorted(os.listdir(working_dir)) |
With HDR: | |
cameraParams = | |
cameraParameters with properties: | |
Camera Intrinsics | |
FocalLength: [3.049454576567071e+03 3.046823089742351e+03] | |
PrincipalPoint: [1.505576556380548e+03 2.003875417152112e+03] | |
Skew: 0 |
Add to ~/.numpy-site.cfg
[mkl]
library_dirs = /opt/intel/mkl/lib/intel64/
include_dirs = /opt/intel/mkl/include/
mkl_libs = mkl_rt
lapack_libs =