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 testTouch : MonoBehaviour { | |
// Update is called once per frame | |
void Update () { | |
if( Input.GetMouseButtonDown(0) ) | |
{ | |
Destroy(gameObject); |
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
【環境】 | |
AWS EC2 | |
【事前準備てきな】 | |
・GitHubにリポジトリ作成 | |
・EC2上でキー作成 | |
$ ssh-keygen -t rsa -C "github-hoge" | |
・作成した公開キーをGithubに登録しとく(あとでらくちん) |
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
【環境】 | |
CentOS 6.4 | |
Vagrant | |
【手順】 | |
・rbenvを使用してruby 2.0をいれる | |
# yum -y install git | |
# git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
# echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
# echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |
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
【環境】 | |
# ruby -v | |
ruby 2.0.0p247 | |
【手順】 | |
# gem update | |
# gem install rails | |
【確認】 |
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
#!/usr/local/bin/php | |
<?php | |
/** | |
* Pre-commit Subversion script that runs unit tests. | |
* @author Omni Adams <[email protected]> | |
* @copyright 2010 Digital Darkness | |
*/ | |
/** |
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
【環境】 | |
Cent OS 6.4 | |
【インストールとか】 | |
Javaの用意 | |
# yum install java-1.7.0-openjdk.x86_64 | |
Jenkinsの用意 | |
# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key |
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 | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: masayuki5160 | |
* Date: 2013/10/26 | |
* Time: 13:19 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
require_once 'DB.php'; |
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
Jenkins × PHP環境構築の巻 | |
■目的 | |
PHP環境に対応したJenkins設定を行い、 | |
コミットされる度にサーバ上でのPHPUnitの実行 及び | |
カバレッジレポート出力を"全自動"で行えるようにすること。 | |
1) PHP Pear系のインストール | |
sudo pear channel-discover pear.phing.info | |
sudo pear channel-discover pear.pdepend.org |
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
--DATABASEの作成 | |
CREATE DATABASE test_sql CHARACTER SET utf8; | |
--TABLEの作成 | |
CREATE TABLE test_sql.PopTbl | |
(pref_name VARCHAR(32) PRIMARY KEY, | |
population INTEGER NOT NULL); | |
--データ作成 | |
INSERT INTO test_sql.PopTbl VALUES('徳島', 100); |
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
#!/bin/sh | |
USER="masayuki" | |
HOST="192.168.10.10" | |
PASS="pass" | |
expect -c " | |
set timeout 10 | |
spawn ssh $USER@$HOST | |
expect \"Are you sure you want to continue connecting (yes/no)?\" { |