public class JsonParser
{
public object Parse(string value)
{
return value.Trim() switch
{
{Length: 0} => null,
var json when json[0] == '{' && json[^1] == '}' => JsonObject(json),
var json when json[0] == '[' && json[^1] == ']' => JsonArray(json),
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
| # Auto detect text files and perform LF normalization | |
| * text=auto | |
| # Images - LFS Tracking for common image formats | |
| *.png filter=lfs diff=lfs merge=lfs -text | |
| *.jpg filter=lfs diff=lfs merge=lfs -text | |
| *.jpeg filter=lfs diff=lfs merge=lfs -text | |
| *.gif filter=lfs diff=lfs merge=lfs -text | |
| *.bmp filter=lfs diff=lfs merge=lfs -text |
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
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.prefab merge=unityyamlmerge eol=lf |
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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
-
dotnet nuget add source \ --username <username> \ --password <github-token> --store-password-in-clear-text \ --name github "https://nuget.pkg.github.com/<username/organization>/index.json"
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
| # BEGIN! ###################################################### | |
| # Updates from: https://gist.github.com/alec1o/95c0d758ff448baaee26e9e72adaaef2 | |
| # build folders | |
| /[Oo]utput/ | |
| /[Oo]ut/ | |
| /.[Oo]ut/ | |
| /[Dd]ist/ | |
| /.[Dd]ist/ |
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
| const INTERVAL = 1000; | |
| const HACK_VALUE = ''; | |
| const DEBUG = true; | |
| const DEBUG_MAIN_PAGE = true | |
| const DEBUG_INTERVAL = false; | |
| const DEBUG_SEARCH_REELS = false; | |
| const DEBUG_VIDEO_AS_REELS = false; | |
| setInterval(() => { |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();
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
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "my@old-email.here" ] |
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 System.Collections; | |
| using UnityEngine; | |
| using UnityEngine.Experimental.Networking; | |
| public class UnityWebRequestUsage : MonoBehaviour | |
| { | |
| void Start() | |
| { | |
| StartCoroutine(GetText()); | |
| } |
NewerOlder