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
// かっこの数が合わない | |
task hello { | |
doLast { | |
println 'Hello world!' | |
} | |
// actual | |
gradle -m clean compile |
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
// ログの内容を流し込むとエディタ上に表示したりするやつ。 | |
defineFilter: { | |
"name": "unity", | |
"filters": [ | |
{ | |
// log line of error | |
"(.*)[(]([0-9].*?),.*[)]: error .*: (.*)": { | |
"injects": { | |
"groups[0]": "name", |
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
"transform<-path, crossed, messages": { | |
"code": " | |
import os\n | |
name = os.path.basename(inputs[\"path\"])\n | |
onselected = []\n | |
messages = inputs[\"messages\"]\n | |
for message in messages:\n |
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 string Decompress(string s) { | |
var bytes = Convert.FromBase64String(s); | |
using (var msi = new MemoryStream(bytes)) | |
using (var mso = new MemoryStream()) { | |
using (var gs = new GZipStream(msi, CompressionMode.Decompress)) { | |
CopyStream(gs, mso); | |
} | |
return Encoding.Unicode.GetString(mso.ToArray()); | |
} | |
} |
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 (環境) がすべてのパーツに浸食 | |
・DBがへんな区切り |
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
Uniy errors & regexp | |
1.error on edit | |
sample: | |
Assets/Flight/Scripts/WorldRule.cs(44,52): error CS1525: Unexpected symbol `)', expecting `;' | |
2.error on play | |
sample: | |
MissingReferenceException: The variable flighterPrefab of 'WorldRule' doesn't exist anymore. | |
You probably need to reassign the flighterPrefab variable of the 'WorldRule' script in the inspector. |
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 BuildBatch : MonoBehaviour { | |
// build iOS app | |
private static void BuildiOS(){ | |
Debug.Log("/////////// build start ///////////"); | |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
[InitializeOnLoad] | |
public class UnityEditorTestKit : MonoBehaviour { |
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
var WebSocket = require('ws'); | |
var assert = require('assert'); | |
var msgpack = require('msgpack'); | |
var ws = new WebSocket('ws://127.0.0.1:8823/'); | |
Tail = require('tail').Tail; | |
tail = new Tail("/Users/sassembla/Library/Logs/Unity/Editor.log"); | |
ws.on('open', function() {}); |
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
trait TimeAssert { | |
val SecUnit = 1000 | |
def timeAssert(timestamp: String, message: String, delaySec: Int = 0) = { | |
val timestampDate = new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(timestamp) | |
val limit = timestampDate.getTime + delaySec * SecUnit | |
val currentDate = new Date | |
val currentDateTime = currentDate.getTime |