Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
javascript: | |
addresses = JSON.parse(localStorage.glv_user_addresses); | |
for (var i in addresses) { | |
address = addresses[i]; | |
if (confirm(address.fullText + "\n\n" + $nuxt.$i18n.t('common.remove') + "?")) { | |
delete addresses['DELIVERY.' + address.placeId] | |
}; | |
}; | |
localStorage.glv_user_addresses = JSON.stringify(addresses); | |
location.reload(); |
;~ https://autohotkey.com/board/topic/36304-hidextended-input-devices-ms-natural-keyboard-4000-etc/page-2 | |
; Capture input from the "Zoom" slider on the Natural Keyboard 4000 and use it to scroll up and scroll down | |
; The HID top level collection for the Natural Keyboard 4000 is:; Usage 1 ; Usage Page 12 | |
;~ #NoTrayIcon | |
#SingleInstance force ; Replace any previous instance | |
DetectHiddenWindows, on | |
OnMessage(0x00FF, "InputMessage") | |
SizeofRawInputDeviceList := 8, SizeofRidDeviceInfo := 32, RIM_TYPEMOUSE := 0, RIM_TYPEKEYBOARD := 1, RIM_TYPEHID := 2, RIDI_DEVICENAME := 0x20000007 | |
RIDI_DEVICEINFO := 0x2000000b, RIDEV_INPUTSINK := 0x00000100, RID_INPUT := 0x10000003, Usage := 1, UsagePage := 12 |
//#define SHADER_COMPILATION_LOGGING | |
//#define SKIP_SHADER_COMPILATION | |
using System.Collections.Generic; | |
using UnityEditor.Build; | |
using UnityEditor.Rendering; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class ShaderStripper : IPreprocessShaders |
(() => { | |
// Run this in Chrome's console, while in Bitbucket's website and logged in | |
const csrftoken = document.cookie.match(/\bcsrftoken=(.*?)(?:;| |$)/)[1]; | |
const repoName = window.__initial_state__.section.repository.currentRepository.full_name; | |
const expiry = 1000 * 60 * 60; // Delete only files older than an hour | |
let page = 1; | |
function iterateNext() { | |
fetch(`https://bitbucket.org/${repoName}/admin/lfs/file-management/?iframe=true&spa=0&page=${page}`, { |
/* | |
* Created by Galvanic Games (http://galvanicgames.com) | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2019 | |
* | |
* 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 |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
public class MarkUnused | |
{ | |
private const string UnusedLabel = "Unused"; // All unused assets will be tagged with this label |
using UnityEngine; | |
static class Vector2Swizzles { | |
// swizzle of size 2 | |
public static Vector2 Swizzle_xx(this Vector2 a) { return new Vector2(a.x, a.x); } | |
public static Vector2 Swizzle_xy(this Vector2 a) { return new Vector2(a.x, a.y); } | |
public static Vector2 Swizzle_x0(this Vector2 a) { return new Vector2(a.x, 0); } | |
public static Vector2 Swizzle_x1(this Vector2 a) { return new Vector2(a.x, 1); } | |
public static Vector2 Swizzle_yx(this Vector2 a) { return new Vector2(a.y, a.x); } |
@rem update-unity-compiler.cmd | |
@rem start in */[email protected] folder | |
@echo off | |
@rem NOTE: FIND.EXE can clash with git/msys/cygwin's find | |
for %%a in (%ComSpec%) do set __system=%%~dpa | |
%__system%FIND.EXE /i "com.unity.incrementalcompiler" package.json 1> NUL | |
if %errorlevel% neq 0 goto :not_found | |
nuget install Microsoft.Net.Compilers -verbosity quiet |