Skip to content

Instantly share code, notes, and snippets.

View insthync's full-sized avatar

Ittipon Teerapruettikulchai insthync

  • Chiang Mai, Thailand
View GitHub Profile
@insthync
insthync / serverConfig.json
Created April 17, 2022 11:21
MMORPG KIT - WebGL - serverConfig.json - 001
{
"databaseOptionIndex": 0,
"centralAddress": "localhost",
"centralPort": 7000,
"centralMaxConnections": 1000,
"clusterPort": 7001,
"machineAddress": "localhost",
"mapSpawnPort": 6001,
@insthync
insthync / gist:f8a24fa94021a37fb7e0a1c6f07b9777
Created November 18, 2021 09:26
GetStableHash (The same algorithm with what MMORPG KIT does)
<?php
function getUncheckedInt32($r) {
$r = $r & 0xFFFFFFFF;
if ($r & 0x80000000)
{
$r = $r & ~0x80000000;
$r = -2147483648 + $r;
}
return $r;
}
- https://github.com/date-fns/date-fns
- https://github.com/axios/axios
- https://github.com/fastify/fastify
- https://github.com/prisma/prisma
https://www.blender.org/
https://dust3d.org/
https://opentoonz.github.io/e/
https://krita.org/en/
https://www.audacityteam.org/download/
https://handbrake.fr/
https://www.blackmagicdesign.com/products/davinciresolve/
https://obsproject.com/
https://www.gimp.org/
https://inkscape.org/
@insthync
insthync / README.md
Last active May 9, 2020 03:25
Using Redis/Docker on Windows
@insthync
insthync / gist:b725fc12e0c80f87f0f467f662210203
Last active July 30, 2019 16:50
Line-link puzzle example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestCollider : MonoBehaviour
{
static bool isDragging;
static TestCollider lastDragNode;
static List<TestCollider> draggedNodes = new List<TestCollider>();
@insthync
insthync / EnterMMOServer
Created February 17, 2019 15:24
EnterMMOServer
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using LiteNetLib;
using LiteNetLibManager;
namespace MultiplayerARPG.MMO
{
public class EnterMMOServer : MonoBehviour
@insthync
insthync / gist:8d4438848dcbb3a1e4268dea4873861f
Created February 13, 2019 03:34
Simple draggable window
using UnityEngine;
using UnityEngine.EventSystems;
public class DraggableWindow : MonoBehaviour, IBeginDragHandler, IDragHandler
{
private float mouseOffsetY;
private float mouseOffsetX;
public void OnBeginDrag(PointerEventData eventData)
{
@insthync
insthync / gist:7d2ea7935f491e8decbe29eb840c98ea
Created February 12, 2019 11:25
Install Laravel (Always forget)
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassword';
composer install
php artisan migrate
chmod -R 0777 storage/
minValue + Mathf.CeilToInt((maxValue - minValue) * Mathf.Pow((float)(currentLevel - 1) / (float)(maxLevel - 1), growth))