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
<?php | |
/** | |
* Created by IntelliJ IDEA. | |
* User: kmuramatsu | |
* Date: 2018/09/05 | |
* Time: 18:41 | |
*/ | |
// 設定 | |
const SPACE_NAME = 'space-name'; |
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/bash | |
export AWS_ACCESS_KEY_ID= | |
export AWS_SECRET_ACCESS_KEY= | |
export AWS_DEFAULT_REGION=ap-northeast-1 | |
export AWS_DEFAULT_OUTPUT=json | |
function exec_command() { | |
$1 | |
RETURN_CODE=$? |
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
import Foundation | |
import UIKit | |
extension UIColor { | |
class func hexStr (hexStr : String, alpha : CGFloat) -> UIColor { | |
let scanner = Scanner(string: hexStr.replacingOccurrences(of: "#", with: "") as String) | |
var color: UInt32 = 0 | |
if scanner.scanHexInt32(&color) { | |
let r = CGFloat((color & 0xFF0000) >> 16) / 255.0 | |
let g = CGFloat((color & 0x00FF00) >> 8) / 255.0 |
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; | |
#if UNITY_EDITOR || UNITY_STANDALONE | |
#elif UNITY_5_0 && UNITY_IPHONE | |
using UnityEngine.iOS; | |
#endif | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using LitJson; |
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
#.bash_profile | |
google(){ | |
if [ $(echo $1 | egrep "^-[cfs]$") ]; then | |
local opt="$1" | |
shift | |
fi | |
local url="https://www.google.co.jp/search?q=${*// /+}" | |
"/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe" "${url}" | |
} | |
if [ -f ~/.ssh-agent ]; then |
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
sudo usermod -G ubuntu ${USER} | |
echo 'export PATH="/home/ubuntu/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
echo 'export PATH=$PATH:/home/ubuntu/.rbenv/shims' >> ~/.bash_profile | |
exec $SHELL -l |
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
<?php | |
ini_set('memory_limit' ,'-1'); | |
class SpeedTest | |
{ | |
private $loop; | |
public function SpeedTest($num) { | |
$this->loop = range(0, $num); | |
} |
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
/*! | |
* Reel JavaScript Library v1.2 | |
* | |
* Copyright 2012, GREE, Inc. | |
* | |
* zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License | |
* | |
* Tue Jul 3 13:26:58 JST 2012 | |
*/ | |
(function () { |
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
<?php | |
ini_set('memory_limit' ,'-1'); | |
class TestClass | |
{ | |
private $testArray; | |
public function setTestArray($num) { | |
$this->testArray = range(0, $num); | |
} | |
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
<?php | |
// -GameBaseController | |
class GameBaseController extends AppController { | |
protected $name = 'test'; | |
} | |
// -GameAController | |
class GameAController extends GameBaseController { | |
public $components = array('GameExecute'); |
NewerOlder