Skip to content

Instantly share code, notes, and snippets.

@chutaicho
chutaicho / addon_config.mk
Last active December 19, 2015 21:58
addon_config.mk for using "libcurl" as a OF-addon on the RPi
meta:
ADDON_NAME = libcurl
ADDON_DESCRIPTION = Addon for libcurl
ADDON_AUTHOR = OF Team
ADDON_TAGS = "libcurl"
ADDON_URL = ""
common:
# dependencies with other addons, a list of them separated by spaces
# or use += in several lines
@chutaicho
chutaicho / OFProject.sublime-project
Last active December 30, 2015 13:09
Project file template for OF + Sublime 2 + Sublimeclang. Related post: http://codingnote.tumblr.com/post/69201477364
{
"folders":
[
{
"path": "PATH TO YOUR PROJECT"
},
{
"path": "PATH TO OPENFRAMEWORKS"
}
],
@chutaicho
chutaicho / ClearBuildData.sh
Created December 8, 2013 21:25
A quick shell-script for removing all Build and DerivedData. Put this into your projects' root or wherever you like, then execute with Terminal.
#!/bin/sh
find . -name "build" -print -exec rm -rf {} ";"
find . -name "DerivedData" -print -exec rm -rf {} ";"
@chutaicho
chutaicho / Makefile
Last active November 28, 2017 13:46
a quick makefile for small c++ project.
#
# Created by Takashi Aoki
#
TARGET = $(shell basename `pwd`)
CC = g++
CFLAGS = -MMD -MP
INCLUDE = -I./src
ODIR = obj
@chutaicho
chutaicho / ShowAllFIles
Created February 22, 2014 16:41
Switching status of AppleShowAllFiles
#!/bin/bash
current_value=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $current_value = "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
@chutaicho
chutaicho / mmtocpp.sh
Created June 17, 2014 03:47
Bash rename extension recursive: .mm to .cpp
#!/bin/bash
for i in `find . -name "*.mm"`
do
mv $i ${i%.mm}.cpp
done
@chutaicho
chutaicho / cpptomm.sh
Created June 17, 2014 03:49
Bash rename extension recursive: .cpp to .mm
#!/bin/bash
for i in `find . -name "*.cpp"`
do
mv $i ${i%.cpp}.mm
done
@chutaicho
chutaicho / chutaicho.tmTheme
Created June 17, 2014 07:53
an original color theme for sublime text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Chris Thomas</string>
<key>name</key>
<string>Mac Classic</string>
<key>settings</key>
<array>
@chutaicho
chutaicho / convert-prores
Created April 2, 2021 01:56
a ffmpeg command to encodes any movie file into ProRes format.
#!/bin/bash
ffmpeg -i $1.mov -c:v prores -profile:v 3 -c:a pcm_s16le $1-ProResHQ.mov