This file contains 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
(?P<originalartist>.+?) -(?: (?P<albumname>(?:(?! - ).)+) -(?: (?<tracknumber>(?:[0-9][0-9])))?)? (?P<songtitle>(?P<songname>(?:(?! \(ft\.).)+) ?(?:\(ft\. (?P<originalfeaturing>(?:[^)]+?(?:(?=\))|, ))+)\))?(?: \((?:(?P<productionartist>(?:(?!\1 ).+)?) )?(?P<songtype>(?:Remix|VIP|Cover|Version|Instrumental|Parody|Mashup))(?: ft\. (?P<additionalfeaturing>(?:[^)]+?(?:(?=\))|, ))+))?\))?) |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
/* demo purpose only */ | |
body {display:flex; } | |
/** CSS **/ | |
.blurbox { | |
--size: 500px; |
This file contains 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
class T { | |
constructor(){ | |
this.value = 'test'; | |
} | |
test() { | |
return this.value + '-amend'; | |
} | |
wrap() { | |
return proxy(this.test).bind(this); | |
} |
This file contains 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
// Licence: Public domain | |
function zipArray(...params) { | |
for (let i in params) | |
if (!Array.isArray(params[i])) | |
throw new Error(`All parameters to be zipped MUST be an array. Parameter ${i} is not.`); | |
let out = [], count = Math.max(...params.map(i=>i.length)); | |
for (let i = 0; i < count; i++) { | |
for (let param of params) { | |
if (i < param.length) out.push(param[i]); |
This file contains 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
function getElementsByXpath(path, context) { | |
if (!context) context = document; | |
let res = document.evaluate(path, context, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); | |
let tmp, out = []; | |
while (tmp = res.iterateNext()) | |
out.push(tmp); | |
return out; | |
} |
This file contains 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
@echo off | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET count=0 | |
FOR /F "tokens=* USEBACKQ" %%F IN (`%ANDROID_HOME%\emulator\emulator.exe -list-avds`) DO ( | |
SET /a count=!count!+1 | |
SET var!count!=%%F | |
) | |
for /l %%i in (1,1,%count%) do echo %%i) !var%%i! | |
@echo digit number of virtual machine to run or 'q' to quit | |
set /p choice="" |
This file contains 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
ᕕ( ᐛ )ᕗ | |
ᕙ( ᐖ )ᕓ | |
( ͡° ͜ʖ ͡°) | |
( ‾ʖ̫‾) | |
¯\_(ツ)_/¯ | |
(ノಠ益ಠ)ノ彡┻━┻ | |
ᕦ(ò_óˇ)ᕤ | |
ヽ༼ຈل͜ຈ༽ノ | |
ಠ_ಠ | |
ಥ‿ಥ |
This file contains 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 UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
[RequireComponent(typeof(VRC_Pickup))] | |
public class PickupAsInteract : UdonSharpBehaviour | |
{ | |
[Tooltip("Receives events: OnInteractLeft, OnInteractRight")] |
This file contains 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 UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
public class GetMyComponents : UdonSharpBehaviour | |
{ | |
public GameObject[] roots; | |
[HideInInspector] public MyComponent[] comps; |