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
hogehoge |
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 not "WebSocket" in window | |
alert "WebSocket NOT supported by your Browser!" | |
return | |
#-----ここからライブラリでやる----- | |
METHOD_IDS = { | |
'chatStoC' : 100, | |
'chatCtoS' : 200 | |
} |
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 not "WebSocket" in window | |
alert "WebSocket NOT supported by your Browser!" | |
return | |
#-----ここからライブラリでやる----- | |
METHOD_IDS = { | |
'chatStoC' : 100, | |
'chatCtoS' : 200 | |
} |
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
import sys.db.Types; | |
class User extends sys.db.Object { | |
public var id : SId; | |
public var name : SString<32>; | |
public var birthday : SDate; | |
public var phoneNumber : SNull<SText>; | |
} | |
class OrmTest { |
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; | |
public class TestWindow : EditorWindow { | |
// Serializableの物(public or SerializeField)がUndo対象. | |
[SerializeField] string testText; | |
// うぃんど~ひらくよ~ | |
[MenuItem("Window/TestWindow")] |
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 TestButton : MonoBehaviour { | |
[SerializeField] string imageUrl; | |
UITexture texture; | |
void Awake() | |
{ | |
texture = GetComponent<UITexture>(); |
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
import vibe.core.core : sleep; | |
import vibe.core.log; | |
import vibe.http.fileserver : serveStaticFiles; | |
import vibe.http.router : URLRouter; | |
import vibe.http.server; | |
import vibe.http.websockets : WebSocket, handleWebSockets; | |
import core.time; | |
shared static this() |
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; | |
using System.Collections; | |
public class Model | |
{ | |
public Action<string> OnChange; | |
protected void Changed(string propertyName) | |
{ | |
if(OnChange != null) OnChange(propertyName); |
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; | |
[CustomEditor(typeof(CanvasRenderer))] | |
public class CanvasRendererMover : Editor | |
{ | |
static int hint = "WidgetHash".GetHashCode(); | |
void OnSceneGUI() | |
{ |
OlderNewer