This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEditor.Toolbars; | |
using UnityEngine; | |
/// <summary> | |
/// Add extra buttons to Main Toolbar in Unity 6.3+ | |
/// | |
/// To enable; right click in the toolbar area (play/pause/step area) and click Show All in Extend menu | |
/// </summary> | |
public class MainToolbarExtend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; change exe path | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\Alacritty] | |
@="Open Alacritty Here" | |
"Icon"="C:\\Apps\sbin\\alacritty.exe" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\Alacritty\command] | |
@="\"C:\\Apps\\sbin\\alacritty.exe\" --working-directory \"%V\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go to https://old.reddit.com/user/[your_username]/upvoted/ | |
// open developer tools, ctrl-shift-i | |
// open console tab and copy-paste code below | |
// delay 2s between requests | |
// | |
// tips: increase display posts per page to 100 from pref page: https://old.reddit.com/prefs/ | |
// | |
(async () => { | |
const elements = Array.from(document.querySelectorAll("div.arrow.upmod")); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add this line to My Filters in uBlock configuration | |
outlook.live.com##span:has-text(Microsoft Outlook):upward(8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Update() | |
{ | |
if (Input.GetMouseButtonDown(0)) | |
{ | |
swipeStart = true; | |
firstTap = Input.mousePosition; | |
} | |
if (Input.GetMouseButtonUp(0) && swipeStart) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenInUnity2019] | |
@="Open in Unity 2019.3" | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenInUnity2019\command] | |
@="C:\\Program Files\\Unity\\Hub\\Editor\\2019.3.5f1\\Editor\\Unity.exe -projectPath \"%1\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://davikingcode.com/blog/unity-auto-set-android-password-in-project/ | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class GameStartup | |
{ |