Skip to content

Instantly share code, notes, and snippets.

@tyhenry
tyhenry / luminance melt.glsl
Created March 10, 2017 19:28 — forked from 0gust1/luminance melt.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
//My own first transition — based on crosshatch code (from pthrasher), using simplex noise formula (copied and pasted)
//-> cooler with high contrasted images (isolated dark subject on light background f.e.)
//TODO : try to rebase it on DoomTransition (from zeh)?
@tyhenry
tyhenry / project_1.md
Created July 25, 2017 14:18 — forked from anonymous/project_1.md
Project READMEs - 3D Reconstruction with Computer Vision

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

@tyhenry
tyhenry / .gitignore
Last active October 5, 2018 14:04
gitignore for openFrameworks
#########################
# openFrameworks patterns
#########################
# build files
openFrameworks.a
openFrameworksDebug.a
openFrameworksUniversal.a
libs/openFrameworksCompiled/lib/*/*
!libs/openFrameworksCompiled/lib/*/.gitkeep
@tyhenry
tyhenry / oFProjectGenerator_rPi_error.txt
Last active February 11, 2018 18:52
compilePG.sh - ofxPoco error on rPi3 (of_v20180210_linuxarmv61_release w/ mesa driver)
pi@raspberrypi:~/openFrameworks-built/of_v20180210_linuxarmv6l_release/scripts/linux $ ls
archlinux chip debian testAllExamples.sh
archlinux_armv7 cleanAllExamples.sh el6 ubuntu
buildAllExamples.sh compileOF.sh fedora
buildAllRPIExamples.sh compilePG.sh removeFMOD.sh
pi@raspberrypi:~/openFrameworks-built/of_v20180210_linuxarmv6l_release/scripts/linux $ ./compilePG.sh
make: Entering directory '/home/pi/openFrameworks-built/of_v20180210_linuxarmv6l_release/apps/projectGenerator/commandLine'
# Kill wpa_supplicant
# see SO: https://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex
sudo kill $(ps aux | grep '[w]pa_supplicant' | awk '{print $2}')
# Activate batman-adv
sudo modprobe batman-adv
# Disable and configure wlan0
sudo ip link set wlan0 down
sudo ifconfig wlan0 mtu 1500
sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 essid my-mesh-network
# update packages
sudo apt-get update
# install batctl dependencies
sudo apt install libnl-3-dev libnl-genl-3-dev
# install batctl
git clone https://git.open-mesh.org/batctl.git
cd batctl
sudo make install
# quick git CLI command to view latest commits across all refs on a repo:
# paste this to create alias
git config --global alias.refs "for-each-ref refs/ --sort=committerdate --format='%(color:red)%(committerdate:short) %(color:yellow)%(objectname:short) %(align:25,left)%(color:cyan)%(refname:short)%(end) %(color:magenta)%(subject) %(color:green)%(authorname)'"
# use command
git refs
@tyhenry
tyhenry / Lut3DFilter.h
Created November 27, 2018 16:04
LUT shader - oF
#pragma once
#include "ofMain.h"
#include "TextureFilter.h"
namespace TextureFilter {
class Lut3DFilter : public TextureFilterBase {
public:
Lut3DFilter() {}
~Lut3DFilter() {}
@tyhenry
tyhenry / cherrypicker.itermcolors
Created November 30, 2018 16:22
CherryPicker - iTerm2 color scheme
<?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>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.021151773631572723</real>
@tyhenry
tyhenry / cd && ls
Created December 18, 2018 15:05
cdl shell
cdl() {
cd "$@" && ls;
}