This file contains hidden or 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 System.IO; | |
using System.Collections; | |
using System.Security.Cryptography; | |
public class Crypt | |
{ | |
private const string AesIV = @"8863d67c62113fb8"; | |
private const string AesKey = @"2eeee02d3dc3ef6c"; | |
public string EnCrypt( string text ) |
This file contains hidden or 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 class UnixTime | |
{ | |
private static readonly DateTime UNIX_EPOCH = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); | |
/*===========================================================================*/ | |
/** | |
* 現在時刻からUnixTimeを計算する. | |
* | |
* @return UnixTime. | |
*/ |
This file contains hidden or 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 <iostream> | |
#include <functional> | |
class Test | |
{ | |
public: | |
void print1() | |
{ | |
std::cout << "print" << std::endl; | |
} |
This file contains hidden or 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
# 最低バージョンの指定 | |
cmake_minimum_required(VERSION 2.8) | |
# SETコマンドでは定数を設定するコマンド | |
# 設定した定数は環境変数の様に利用する事が可能 | |
# CMAKE_CXX_COMPILERは任意で宣言する定数と違いc++のコンパイラを指定することが可能 | |
SET( CMAKE_CXX_COMPILER /usr/bin/clang++ ) | |
# このコマンドではコンパイラオプションの指定を行う | |
# C++11でのビルドをしたい場合ここに"-std=c++11"と記載 |
This file contains hidden or 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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEditorInternal; | |
#endif | |
public class ReorderableListAttribute : PropertyAttribute {} |
This file contains hidden or 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 UnityEditor; | |
namespace EditorExtension | |
{ | |
namespace Scope | |
{ | |
public class ContentsScope : GUI.Scope | |
{ | |
public ContentsScope() |
This file contains hidden or 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
#ifndef __TOML_HPP__ | |
#define __TOML_HPP__ | |
#include <iostream> | |
#include <algorithm> | |
#include <chrono> | |
#include <ctime> | |
#include <memory> | |
#include <string> |
This file contains hidden or 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
.PHONY ターゲット | |
ターゲット: 依存ファイル | |
[実行コマンド] |
This file contains hidden or 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
# アカウント追加 | |
sudo htpasswd /etc/apache2/dav_svn.passwd *** # ***はユーザー名 | |
sudo apache2ctl restart | |
# リポジトリの追加 | |
sudo svnadmin create test | |
sudo chown -R www-data:www-data /var/lib/svn |
This file contains hidden or 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 System.Text; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
namespace UniUtil | |
{ | |
namespace Attribute | |
{ | |
[CustomPropertyDrawer(typeof(FindObjects))] |
OlderNewer