Skip to content

Instantly share code, notes, and snippets.

View hanthuyen8's full-sized avatar
🐝
Happy Coding!

Nguyễn Hy Nhân hanthuyen8

🐝
Happy Coding!
View GitHub Profile
@phosphoer
phosphoer / SpriteAtlasAsset.cs
Last active July 22, 2024 19:51
Unity Sprite Atlas Asset
// The MIT License (MIT)
// Copyright (c) 2024 David Evans @festivevector
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O
@mieko
mieko / MIT-LICENSE
Last active February 24, 2024 15:47
Douglas-Peucker Polyline simplification
Copyright 2016 Mike Owens
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
@Doggie52
Doggie52 / StringExtensions.cs
Created August 16, 2018 13:01
Thread-safely write to files in C#
using System.IO;
using System.Threading;
namespace Util
{
/// <summary>
/// Various extensions to the String class.
/// </summary>
public static class StringExtensions
{
@ilkinulas
ilkinulas / logcat_unity.py
Last active November 8, 2022 19:18
Formats unity (adb) logcat logs
#!/usr/bin/python
#
# Usage:
# adb logcat -v time | python logcat_unity.py
import sys
import re
IGNORED_LINES=["(Filename:"]
LOG_TAG="Unity"
@waldobronchart
waldobronchart / UnityPlatformSwitcher.cs
Last active February 5, 2025 00:51
A simple fast platform switcher for Unity
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public class PlatformSwitcher
{
[MenuItem("Platform/PC, Mac and Linux Standalone")]
static void SwitchPlatformToDesktop()
{