Skip to content

Instantly share code, notes, and snippets.

View Clpsplug's full-sized avatar
😑
Sheer Stupidity

C. Plug Clpsplug

😑
Sheer Stupidity
View GitHub Profile
@Clpsplug
Clpsplug / README.md
Last active July 19, 2022 08:30
Using Shields.IO in Jekyll, made managable

The shields_to Custom Jekyll Liquid Tag

What

Shields.IO is a web service to create a 'badge' you may find in a README in many GitHub repositories.
All you need to craft is a URL, and the service will interpret your request.

Example shield by URL

@Clpsplug
Clpsplug / uploading-artifact-chunk-or-no-chunk.py
Last active November 24, 2020 13:29
This is how I tried to upload the local build to UCB.
# perform_bad_gateway == True: how I first called the API and the server ended up crashing
# perform_bad_gateway == False: how I call it NOW and the server has no issue with it
from tusclient import client
upload_url = "https://build-artifact-api.cloud.unity3d.com/api/v1" + \
"/projects/{0}/buildtargets/{1}/builds/{2}/artifacts/{3}/upload/{4}".format(
project_id,
"_local",
build_number,
@Clpsplug
Clpsplug / TMP Japanese character set.md
Last active September 16, 2021 14:40
Most of the European characters and Japanese character including up to JIS Tier-2 kanji characters.

This gist is intended to be the repository of the characters to prerender for displaying Japanese text in TextMesh Pro.

TL; DR

  • The list is extra big.
  • If you only use fixed text, don't prerender everything.
  • If you absolutely need to render every character, include up to JIS X 0208 Level 1 Kanji.
  • For everything else, use Dynamic SDF System.
  • Use fallback font to make a composite font to save atlas space.

The List