Skip to content

Instantly share code, notes, and snippets.

View desmondfernando's full-sized avatar

Desmond Fernando desmondfernando

View GitHub Profile
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Icaruk
Icaruk / multipleGitProfiles.md
Last active April 8, 2026 14:59
How to have multiple profiles on git

Last update: 30-01-2024
Last view: 25-11-2025

Step 1

Go to your work folder, mine is located at: F:/Work/EnterpriseName/

And then create a .gitconfig-work with the following data:

@NamPhuThuy
NamPhuThuy / Game-Programming-Shortcuts.md
Last active March 11, 2026 21:28
This document provides a quick reference for keyboard shortcuts in Cursor IDE, JetBrains Rider and Unity

Cursor vs Rider IDE Shortcuts Comparison

General Navigation

Action Cursor Rider Description
Quick Open Ctrl + P Ctrl + Shift + N Open file by name
Command Palette Ctrl + Shift + P Ctrl + Shift + A Show all commands
Go to Definition F12 Ctrl + B Navigate to definition of current field/method/class
Find All Usages Shift + F12 Ctrl + B Find all usages
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@gering
gering / Toolkit
Last active February 25, 2026 01:53
persitent data path handling in Unity with fallback
private static string[] _persistentDataPaths;
public static bool IsDirectoryWritable(string path) {
try {
if (!Directory.Exists(path)) return false;
string file = Path.Combine(path, Path.GetRandomFileName());
using (FileStream fs = File.Create(file, 1)) {}
File.Delete(file);
return true;
} catch {
@shanselman
shanselman / setupmachine.bat
Last active February 12, 2026 22:11
WinGet Setup a New Machine
mkdir c:\github
winget install --id=Git.Git -e --accept-package-agreements --accept-source-agreements
winget install --id=Microsoft.VisualStudioCode -e
winget install --id=AgileBits.1Password -e
winget install --id=7zip.7zip -e
winget install --id=Twilio.Authy -e
winget install --id=Bethesda.Launcher -e
winget install --id=Microsoft.Bicep -e
winget install --id=Microsoft.bitsmanager -e
winget install --id=BrutalChess.BrutalChess -e
@tomkail
tomkail / ExtendedScriptableObjectDrawer.cs
Last active January 28, 2026 07:58
Displays the fields of a ScriptableObject in the inspector
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
@dpid
dpid / how-to-notarize-unity-for-macos.md
Last active January 22, 2026 18:25
How to notarize a Unity build for MacOs 10.15 Catalina

How to notarize a Unity build for macOs 10.15 Catalina

As of January 2020, all apps running on macOs 10.15 Catalina are required to be notarized. For Unity games distributed outside the Mac App Store, such as with Steam, the notarization process is done post build using a series of Xcode command line tools.

Prerequisites

  • a Mac that is compatible with macOs 10.15 Catalina :
    • MacBook (2015 or newer)
    • MacBook Air (2012 or newer)
  • MacBook Pro (2012 or newer)
@jase-perf
jase-perf / Perforce Unity 3D Ignored Streamspec
Created June 4, 2024 18:58
Paste this into a Helix Core stream's "Ignored" field to setup ignores for Unity 3D without requiring users to have a p4ignore file.
/Library/...
/Temp/...
/Obj/...
/Build/...
/Builds/...
/UserSettings/...
/MemoryCaptures/...
/Logs/...
/Assets/AssetStoreTools/...
/Assets/AddressableAssetsData/*/*.bin*