Skip to content

Instantly share code, notes, and snippets.

@tobetchi
tobetchi / init.lua
Created February 19, 2019 17:24
Remap ctrl-h to delete for Skype.app with hammerspoon config
local function enableHotkeys(hotkeys)
for k, v in pairs(hotkeys) do
v:enable()
end
end
local function disableHotkeys(hotkeys)
for k, v in pairs(hotkeys) do
v:disable()
end
@tobetchi
tobetchi / get-apple-event2018oct-logos.sh
Created October 19, 2018 04:45
Get apple logos from https://www.apple.com/apple-events/ (Apple Special Event October 30, 2018)
#!/bin/sh
urls=$(curl -s https://www.apple.com/v/apple-events/home/a/built/styles/overview.built.css | grep -Eo 'background[^)]+)' | grep hero_image_ | grep large_2x | grep -v past | sed -E 's/^.+"([^"]+)".+$/\1/' | sort | uniq)
for url in $urls
do
curl -O https://www.apple.com/$url
done
@tobetchi
tobetchi / main.cpp
Created September 30, 2016 07:41
Simple VJ Controller (refine): Resolume + Launchpad + openFrameworks
#include "ofMain.h"
#include "ofApp.h"
int main(){
ofSetupOpenGL(320, 320, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created September 29, 2016 12:05
Simple VJ Controller: Resolume + Launchpad + openFrameworks
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(320, 320, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created September 28, 2016 10:55
openFrameworks MIDI recieve sample
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created September 28, 2016 10:53
openFrameworks MIDI send to Launchpad sample
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(320, 320 , OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created September 28, 2016 08:20
openFrameworks OSC send sample
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created September 28, 2016 08:19
openFrameworks OSC recieve sample Raw
#include "ofMain.h"
#include "ofApp.h"
int main() {
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
$ sudo php-build 5.4.5 ~/.phpenv/versions/5.4.5
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.4.5 into /Users/s_urabe/.phpenv/versions/5.4.5
[Skipping]: Already downloaded and extracted http://www.php.net/distributions/php-5.4.5.tar.bz2
[Preparing]: /var/tmp/php-build/source/5.4.5
[Compiling]: /var/tmp/php-build/source/5.4.5