Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Klemm paulklemm

View GitHub Profile
@paulklemm
paulklemm / Solarized_Dark.itermcolors
Created Mar 3, 2014
Solarized Dark Colored Scheme for Iterm
View Solarized_Dark.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
View .bash_profile
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
#export PATH=/usr/local/share/python:$PATH
#export PATH=/usr/local/Cellar/ruby/1.9.3-p194/bin:$PATH
export PATH=/usr/local/opt/ruby/bin:$PATH
export PATH=/Applications/MATLAB_R2013b.app/bin:$PATH
export PATH=/usr/local/mysql/bin:$PATH
export NODE_PATH="/usr/local/lib/node"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/share/npm/bin:$PATH"
export CLICOLOR=1
@paulklemm
paulklemm / LaTeX Gitignore
Created Jul 16, 2014
.gitignore file for use with LaTeX projects
View LaTeX Gitignore
*.acn
*.acr
*.alg
*.aux
*.bbl
*.blg
*.dvi
*.fdb_latexmk
*.glg
*.glo
@paulklemm
paulklemm / Requirements for Regression Cube prototype
Created Nov 17, 2014
Requirements for Regression Cube prototype
View Requirements for Regression Cube prototype
# Requirements
- Volume Rendering
- Rendering of ~3,375,000 cubes
- Rendering as Pointcloud?
+ http://potree.org/wp/
+ http://threejs.org/examples/webgl_particles_random.html
- rendering of text labels in the scene
- transfer functions
- for 2D-transfer-functions
- brushing elements (shooting rays into the scene at mouse position and matching objects)
@paulklemm
paulklemm / app.js
Created Jan 23, 2015
Flow.js Node Server renames the uploaded file but cannot emit the changed file name to the Javascript client.
View app.js
process.env.TMPDIR = 'tmp'; // to avoid the EXDEV rename error, see http://stackoverflow.com/q/21071303/76173
var UPLOAD_DIR = 'uploads/';
var express = require('express');
var multipart = require('connect-multiparty');
var multipartMiddleware = multipart();
var flow = require('./flow-node.js')('tmp');
var fs = require('fs');
var crypto = require('crypto');
var path = require('path');
@paulklemm
paulklemm / gist:bcca6e5a5ffc37cca630
Created Feb 1, 2015
Enhancement reassemble chunks - How often does 'done' fire when file is larger than chunksize?
View gist:bcca6e5a5ffc37cca630
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
POST partly_done codeschool_1488.mp4 154430339-codeschool_1488mp4
@paulklemm
paulklemm / xshade-makeError
Created Feb 3, 2015
xshade 1.1 make error. OSX 10.102
View xshade-makeError
xshade-1.1/ make
mkdir OBJ.Darwin64
Compiling xshade-main.cc
clang: warning: argument unused during compilation: '-fopenmp'
In file included from xshade-main.cc:12:
./xsh.h:18:17: error: unknown type name 'vec'; did you mean 'trimesh::vec'?
vector< vector<vec> > snormals;
^~~
trimesh::vec
../trimesh2/include/Vec.h:420:22: note: 'trimesh::vec' declared here
View RCube Shader
<script type="x-shader/x-vertex" id="vertexshader">
attribute float alpha;
varying float vAlpha;
// Coloring: https://stackoverflow.com/questions/25740054/three-js-passing-vertex-colors-to-fragment-shader
varying vec3 vColor;
void main() {
vColor = color;
vAlpha = alpha;