Skip to content

Instantly share code, notes, and snippets.

View Joy1792's full-sized avatar
🎯
Focusing

Ming Joy1792

🎯
Focusing
View GitHub Profile
@Joy1792
Joy1792 / index.html
Created February 18, 2024 01:12
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>
@Joy1792
Joy1792 / index.html
Last active February 2, 2024 07:39
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>
@Joy1792
Joy1792 / README.md
Created July 15, 2021 15:30 — forked from JohannesDeml/README.md
Remove Unity mobile notification warning for WebGL builds

Remove warning

Unity shows the following warning on mobile devices up to Unity 2019.4: "Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway." This script helps you remove this warning

Live example

To see live examples see Unity Web GL Loading Test

Logic

The script will run after the build has completed and replace the checks from all generated javascript files.

Support

@Joy1792
Joy1792 / manifest.json
Created November 9, 2018 03:16 — forked from phi-lira/manifest.json
Lightweight Pipeline package manager manifest
{
"registry": "https://staging-packages.unity.com",
"dependencies": {
"com.unity.render-pipelines.lightweight" : "2.0.0-preview"
}
}
@Joy1792
Joy1792 / TCP_Client_Server_
Created July 30, 2018 03:10 — forked from anselm/TCP_Client_Server_
C# TCP Client Server TcpListener NetworkStream UDP
/*
Some scratch code for testing a variety of patterns of client server connection.
I needed to send data from an android phone to a macbook via USB and I happened to be using C# under Unity 3D. Some of the problems I ran into included:
- co-routines under unity were not fully exhausting the tcp buffers fast enough i think; even when I aggressively polled until they were empty...
- kept running into a curious bug where when the android device overheated that there would be a huge latency in traffic from the android device to the desktop.
@Joy1792
Joy1792 / gist:df80c713b0f021337220df9741555ea8
Created July 1, 2018 08:02 — forked from pa6lo/gist:5070811
HTML5 Multi Touch Canvas Paint (canvas + jquery)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Multi Touch HTML5 Canvas Paint</title>
<meta charset="UTF-8">
</head>
<!--[if lt IE 7 ]> <body class="ie6 "> <![endif]-->
<!--[if IE 7 ]> <body class="ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie8 "> <![endif]-->
<!--[if !IE]>--> <body class=""> <!--<![endif]-->