Skip to content

Instantly share code, notes, and snippets.

View JCxYIS's full-sized avatar
😭
😭 うおおおおああああああ!!!

JCxYIS JCxYIS

😭
😭 うおおおおああああああ!!!
View GitHub Profile
@mattyellen
mattyellen / UnityAsyncOperationAwaiter.cs
Created July 26, 2020 19:36
Allows the use of async/await (instead of yield) with any Unity AsyncOperation
public static class ExtensionMethods
{
public static TaskAwaiter GetAwaiter(this AsyncOperation asyncOp)
{
var tcs = new TaskCompletionSource<object>();
asyncOp.completed += obj => { tcs.SetResult(null); };
return ((Task)tcs.Task).GetAwaiter();
}
}
@EliverLara
EliverLara / blur.ds
Created February 27, 2020 22:58
Blurry kde
(begin
(spawn_async (str "xprop -id " (window_xid) " -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 "))
(spawn_async (str "xprop -id " (window_xid) " -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xdfffffff"))
)
@unitycoder
unitycoder / SpriteBackgroundRemove.cs
Last active November 20, 2024 06:16
Sprite Background Remover (convert single color mask to transparent)
// original script : http://answers.unity3d.com/answers/252528/view.html
// modified by unitycoder.com
// Usage: Place this script in Editor/ folder
// Start the tool from menu, Window/Tools/Alpha-fy Images
using UnityEngine;
using UnityEditor;
using System.IO;
@fokayx
fokayx / git_remote_set-url.md
Last active April 8, 2025 11:44
Git switch remote URLs. Git 更換遠端伺服器倉庫網址

Git 更換遠端伺服器倉庫網址URL

1.確認目前Git遠端伺服器網址: git remote -v

git remote -v
origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
origin  https://github.com/USERNAME/REPOSITORY.git (push)

2.更換Git遠端伺服器位網址,使用:git remote set-url