Skip to content

Instantly share code, notes, and snippets.

View TatsuyaOGth's full-sized avatar

Tatsuya Ogusu TatsuyaOGth

View GitHub Profile
@TatsuyaOGth
TatsuyaOGth / file0.html
Last active August 29, 2015 14:11
Proessing.js でJavaScript側からProcessingの任意の関数を呼ぶ or 値を渡す方法 ref: http://qiita.com/TatsuyaOGth/items/fc80020a285e62335a4a
<!DOCTYPE html>
<html>
<head>
<title>Hello Web - Controlling Processing from JavaScript</title>
<script src="processing-1.3.6.min.js"></script>
</head>
<body>
<!-- ここまでは必須項目
Processingアプリケーションのjavascriptモードでも自動的にエクスポートされます -->
@TatsuyaOGth
TatsuyaOGth / common.h
Created June 18, 2014 13:19
Detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor
#ifdef _WIN64
//define something for Windows (64-bit)
#elif _WIN32
//define something for Windows (32-bit)
#elif __APPLE__
#include "TargetConditionals.h"
#if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
// define something for simulator
#elif TARGET_OS_IPHONE
// define something for iphone