Skip to content

Instantly share code, notes, and snippets.

View kira0x1's full-sized avatar
๐Ÿ’พ

Kira kira0x1

๐Ÿ’พ
View GitHub Profile
@kira0x1
kira0x1 / pandoc.css
Created July 30, 2023 11:15 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

O - Schindler's List ๐Ÿฅ‡ [9.5] ๐Ÿฅ‡ O - alien prometheus -> covenant [7.8/ 7] O - The Shawshank Redemption O - Interstellar [8.7] O - Annihilation [6.5] O - Revenant [6.2] O - prospect O - Infinity war -> End Game O - GreenBook O - The Last of Us Series [๐Ÿ† Episode 3: 10 ๐Ÿ†]

@kira0x1
kira0x1 / .a-unity-git-config.md
Created April 17, 2023 03:17 — forked from bitinn/.a-unity-git-config.md
My Unity git config
@kira0x1
kira0x1 / pre-commit
Created April 17, 2023 03:15 — forked from bitinn/pre-commit
pre-commit hook to prevent large file on git commit (and allow git-lfs tracked binary files to pass through)
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
# Redirect output to stderr.
@kira0x1
kira0x1 / FogComponent.cs
Created April 7, 2023 06:02 — forked from cs-altshift/FogComponent.cs
Simple Fog Shader
using UnityEngine;
[RequireComponent(typeof(Camera))]
public class FogComponent : MonoBehaviour
{
public Shader myFogShader;
public Color fogColor = Color.red;
private Material myFogMaterial;
@kira0x1
kira0x1 / .gitattributes
Created January 12, 2021 05:07 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@kira0x1
kira0x1 / UGuiTextToTextMeshPro.cs
Created October 30, 2020 02:53 — forked from Naphier/UGuiTextToTextMeshPro.cs
Unity3D Editor Tool to convert Unity GUI Text objects to Text Mesh Pro Text Objects
using UnityEngine;
using UnityEditor;
using UnityEngine.UI;
using TMPro;
using TMPro.EditorUtilities;
public class UGuiTextToTextMeshPro : Editor
{
[MenuItem("GameObject/UI/Convert To Text Mesh Pro", false, 4000)]
static void DoIt()
@kira0x1
kira0x1 / tileset.js
Created July 20, 2020 15:29 — forked from greggman/tileset.js
Make a quick tileset image for a texture
const hsl = (h, s, l) => `hsl(${h * 360},${s * 100}%,${l * 100}%)`;
function createTileset(tileSize, tilesAcross, tilesDown, padding = 0) {
const ctx = document.createElement('canvas').getContext('2d');
const tileSpace = tileSize + padding;
const width = tileSpace * tilesAcross + padding;
const height = tileSpace * tilesDown + padding;
ctx.canvas.width = width;
ctx.canvas.height = height;