This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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モードでも自動的にエクスポートされます --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import subprocess | |
from datetime import datetime | |
argv = sys.argv | |
if len(argv) > 1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" reference: http://d.hatena.ne.jp/mtbtaizo/20080622 | |
"# set nocompatible "vi非互換モード | |
"####################### | |
" 表示系 | |
"####################### | |
set number "行番号表示 | |
set showmode "モード表示 | |
set title "編集中のファイル名を表示 | |
set ruler "ルーラーの表示 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
#include "ofxAnimationPrimitives.h" | |
static const string SHADER_FILEPATH_VERT = "shaders/pointSprite.vert"; | |
static const string SHADER_FILEPATH_FRAG = "shaders/pointSprite.frag"; | |
static const string TEXTURE_FILE_DIR = "textures"; | |
class Particle : public ofxAnimationPrimitives::Instance | |
{ | |
const int mNum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "ofMain.h" | |
/** | |
* Logger util | |
*/ | |
#define __FILE_AND_LINE__ ofSplitString(ofToString(__FILE__), "/").back()+"|line:"+ofToString(__LINE__) | |
#define LOG_NOTICE ofLogNotice(__FILE_AND_LINE__) | |
#define LOG_WARNING ofLogWarning(__FILE_AND_LINE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N_8 = \left\{ P_1, P_2, P_3, P_4, P_5, P_6, P_7, P_8 \right\} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
P_{i, j} = (p_0, p_1, ... p_{j-1} ) \\ | |
p_j = (x, y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static T DeepCopy<T>(T src) | |
{ | |
using (var stream = new MemoryStream()) | |
{ | |
var serializer = new XmlSerializer(typeof(T)); | |
serializer.Serialize(stream, src); | |
stream.Seek(0, SeekOrigin.Begin); | |
return (T)serializer.Deserialize(stream); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ローカルフォルダ | |
local="rsync_test_dir" | |
# リモートフォルダ | |
remote="rsync://[email protected]/public/rsync" | |
# ローカルのバックアップ保存先 | |
local_backup="./_deleted_files/$(date +%Y-%m-%d_%H-%M-%S)" | |
# リモートのバックアップの保存先 |
OlderNewer