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
using UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// Easing Functions, | |
/// All Arguments "t" are values between 0.0f to 1.0f. | |
/// http://easings.net/ | |
/// </summary> | |
public static class Easing | |
{ |
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
#!/bin/sh | |
# can additional arguments | |
# ex.: $ sh rsync_tool.sh --checksum | |
echo "Input source directory path (no need end slash)" | |
read SRC | |
echo "Input destination directory path (no need end slash)" | |
read DST |
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)" | |
# リモートのバックアップの保存先 |
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
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
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
#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
#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
" 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import subprocess | |
from datetime import datetime | |
argv = sys.argv | |
if len(argv) > 1: |
NewerOlder