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 System.Collections; | |
using System.Collections.Generic; | |
//============================================================================================// | |
// PlayerPrefsのラッパー | |
//============================================================================================// | |
public static class MyPlayerPrefs { | |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>転置インデックス作成</title> | |
</head> | |
<body> | |
<form name="input" action="indexer.php" method="post"> | |
転置インデックスを作成するテキストを入力してください: |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>転置インデックス作成</title> | |
</head> | |
<body> | |
<form name="input" action="indexer.php" method="post"> | |
転置インデックスを作成するテキストを入力してください: |
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
<?php | |
// アプリケーションID | |
$app_id = ''; | |
// シークレットキー | |
$app_secret = ''; | |
$token_url = 'https://graph.facebook.com/oauth/access_token?' | |
. 'client_id='.$app_id.'&client_secret='.$app_secret.'&grant_type=client_credentials'; |
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
とりあえずupdate | |
# sudo yum update -y | |
必要なもんを用意 | |
# wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
# wget https://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz | |
解凍 | |
# tar xvfz mecab-0.996.tar.gz | |
# tar xvfz mecab-ipadic-2.7.0-20070801.tar.gz |
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
[root@xxx ~]# date | |
Fri Jan 31 09:44:27 UTC 2014 | |
[root@xxx ~]# cp /usr/share/zoneinfo/Japan /etc/localtime | |
cp: overwrite `/etc/localtime'? yes | |
[root@xxx ~]# date | |
Fri Jan 31 18:44:45 JST 2014 |
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
-- 旧バージョン | |
rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/6/x86_64/zabbix-release-2.0-1.el6.noarch.rpm | |
-- 安定板バージョン | |
rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm | |
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
#if !UNITY_EDITOR | |
#define DEBUG_LOG_OVERWRAP | |
#endif | |
using UnityEngine; | |
#if DEBUG_LOG_OVERWRAP | |
public static class Debug | |
{ | |
static public void Break(){ |
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 System.Collections; | |
public class sample : MonoBehaviour { | |
void Start () { | |
string format = "https://twitter.com/intent/tweet?&text={0}"; | |
string url = string.Format(format, WWW.EscapeURL("Twitterは楽しいよ") ); | |
Application.OpenURL(url); | |
} |
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;// これ追加するのわすれないように | |
using System.Collections; | |
public class testScript : EditorWindow {//EditorWindowを継承する | |
[MenuItem("Window/My Window %i")]// 実は%iのとこでショートカットキー指定してたり..なくてもいいよ. | |
static void Init(){ | |
// windowつくれ、ていうことか. |