Skip to content

Instantly share code, notes, and snippets.

View kgtkr's full-sized avatar

kgtkr kgtkr

View GitHub Profile
@AleBles
AleBles / ScaleManager.js
Last active January 15, 2019 10:28
Phaser v3 temp (css) scale amanger
class ScaleManager {
constructor(canvas, isMobile) {
this.canvas = canvas;
this.mobile = isMobile;
window.addEventListener('resize', () => {
this.resize(this.canvas);
if (this.mobile) {
if (window.innerWidth < window.innerHeight) {
@Nafmo2
Nafmo2 / Main.cpp
Last active February 8, 2018 10:38
Thread Through ver 0.3(完成版)
// 製作者 @Nafmo2
// Siv3Dを使用。
// 5日クオリティーのため雑に仕上げたところ多数。
// 無告知で編集・削除されることがあります。ご了承ください
// 無断利用はご遠慮ください。
#include "Main.h"
#define NAD 300
#define BMAX 1000
int mode = 1;
@voluntas
voluntas / webrtc.rst
Last active April 30, 2024 14:20
WebRTC コトハジメ
@acacio
acacio / upnp.js
Created January 12, 2012 21:17
UPNP Port Forwarding for node.js
/* node UPNP port forwarding PoC
This is a simple way to forward ports on NAT routers with UPNP.
This is a not-for-production hack that I found useful when testing apps
on my home network behind ny NAT router.
-satori
usage: