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 | |
sudo rm -rf ~/Library/Developer/Xcode/Archives | |
sudo rm -rf ~/Library/Developer/Xcode/DerivedData | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/5.* | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/6.* | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/7.* | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/8.* | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/9.* | |
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/10.* | |
sudo rm -rf ~/Library/Logs/*i |
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
const fs = require('fs'); | |
{ | |
const path = 'test.txt'; | |
const text = fs.readFileSync(path, {encoding: 'utf8'}); | |
const numberIncrementedText = text.replace(/(.*)( versionCode )([0-9]+)(.*)/i, (match, p1, p2, p3, p4) => { | |
return `${p1}${p2}${parseInt(p3, 10) + 1}${p4}`; | |
}); | |
console.log(numberIncrementedText) | |
fs.writeFileSync(path, numberIncrementedText); |
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; | |
/// <summary> | |
/// カメラを常に指定の画角で映すようにします | |
/// </summary> | |
[RequireComponent(typeof(Camera))] | |
public class CameraAspectFitter : MonoBehaviour | |
{ | |
[SerializeField] Vector2 size = new Vector2(540f, 960f); | |
[SerializeField] float pixelPerUnit = 1f; |
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 void Test(string seed) | |
{ | |
var seedNum = 0; | |
foreach (var c in seed) | |
{ | |
seedNum += (int)c; | |
} | |
return new System.Random(seedNum); | |
} |
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
'use strict'; | |
const fecha = require('fecha'); | |
/** | |
* LambdaHandler | |
* @author Kako Akihito<kako@qnote.co.jp> | |
*/ | |
class LambdaHandler { | |
/** |
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; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
/// <summary> | |
/// マス目クラス | |
/// </summary> | |
[RequireComponent(typeof(Button))] | |
public class Game_Cell : UIBehaviour |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
/// <summary> | |
/// 盤面の制御クラス | |
/// </summary> |
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; | |
using UnityEngine.UI; | |
/// <summary> | |
/// ゲームシーン制御クラス | |
/// </summary> | |
public class Game_SceneController : MonoBehaviour | |
{ | |
public static Game_SceneController Instance |
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 UnityEngine.EventSystems; | |
using UnityEngine.Events; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
/// <summary> | |
/// Touch gesture detector for Unity. |