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 interface AvailabilityChecker { | |
Observable<ValidationResult<String>> isEmailAvailable(@NonNull String email); | |
Observable<ValidationResult<String>> isUsernameAvailable(@NonNull String email); | |
ValidationResult<String> isEmailAvailableSync(@NonNull String email); | |
ValidationResult<String> isUsernameAvailableSync(@NonNull String email); | |
} |
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 interface AvailabilityChecker { | |
Observable<ValidationResult<String>> isEmailAvailable(@NonNull String email); | |
Observable<ValidationResult<String>> isUsernameAvailable(@NonNull String email); | |
ValidationResult<String> isEmailAvailableSync(@NonNull String email); | |
ValidationResult<String> isUsernameAvailableSync(@NonNull String email); | |
} |
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
swagger: '2.0' | |
info: | |
description: >- | |
This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, | |
#swagger](http://swagger.io/irc/). For this sample, you can use the api | |
key `special-key` to test the authorization filters. | |
version: 1.0.0 | |
title: Swagger Petstore | |
termsOfService: 'http://swagger.io/terms/' |
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
Shader "Outline" { | |
Properties { | |
_Color ("Main Color", Color) = (.5,.5,.5,1) | |
_OutlineColor ("Outline Color", Color) = (0,0,0,1) | |
_Outline ("Outline width", Range (0.0, 0.03)) = .005 | |
_MainTex ("Base (RGB)", 2D) = "white" { } | |
} | |
CGINCLUDE | |
#include "UnityCG.cginc" | |
struct appdata { |
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 os | |
import paramiko, base64 | |
""" only add file here, if you delete file in the client, server wont delete | |
""" | |
luaRoot = './www/game/test/luaRoot/' | |
def LoginServer(serverRoot, username, psw): | |
transport = paramiko.Transport((serverRoot,22)) | |
transport.connect(username = username, password = psw) |
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 os | |
def Test2(rootDir, filehandle): | |
for lists in os.listdir(rootDir): | |
path = os.path.join(rootDir, lists) | |
print path | |
filehandle.write(path + '\n') | |
if os.path.isdir(path): | |
Test2(path,filehandle) | |
if __name__ == '__main__': |
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
#define DEBUG_CONSOLE | |
#define DEBUG_LEVEL_LOG | |
#define DEBUG_LEVEL_WARN | |
#define DEBUG_LEVEL_ERROR | |
#if (UNITY_EDITOR || DEVELOPMENT_BUILD) | |
#define DEBUG | |
#endif | |
#if (UNITY_IOS || UNITY_ANDROID) |
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; | |
using System.Threading; | |
using System.Linq; | |
public class Loom : MonoBehaviour | |
{ | |
public static int maxThreads = 8; |
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 UnityEditor; | |
/** | |
* originally by buffonomics | |
* originally posted on: http://forum.unity3d.com/threads/77444-How-to-create-new-GameObject-as-child-in-hierarchy | |
*/ | |
public class SmartCreate : MonoBehaviour { | |
[MenuItem("GameObject/Create Empty Parent #&e")] | |
static void createEmptyParent() { |
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 UnityEditor; | |
/* | |
* orignially posted | |
http://answers.unity3d.com/questions/179775/game-window-size-from-editor-window-in-editor-mode.html | |
*/ | |
public class SetGameViewSize : EditorWindow { | |
private Vector2 _size = new Vector2(800, 600); |
NewerOlder