This is just how Nim compilation to C looks like in Windows.
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
pipenv shell # should have yt-dlp installed | |
yt-dlp --write-subs --sub-lang en --convert-subs srt --sub-format txt --cookies-from-browser chrome <VIDEO-OR-PLAYLIST-URL> | |
# https://apple.stackexchange.com/questions/434686/how-to-get-cookies-txt-for-youtube-from-safari |
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
ffmpeg -i https://<SITE>/playlist/<ID>=.m3u8 -codec copy "<FILENAME>.mkv" | |
// Source: https://superuser.com/questions/1705706/how-can-m3u8-and-ts-streams-or-videos-properly-be-saved-without-any-pixelated |
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
// 1. Create a new playlist | |
// 2. Load all video thumbnails in channel in required order (scroll down until the end) | |
// 3. Run script: | |
{ | |
const ll=document.querySelectorAll('yt-icon-button.dropdown-trigger.style-scope.ytd-menu-renderer #button'); // all videos' menu buttons | |
let i=0; | |
function loop() { | |
ll[i].click(); // open menu | |
document.querySelectorAll('tp-yt-paper-listbox ytd-menu-service-item-renderer')[2].click(); // click Add to Playlist | |
setTimeout(() => { |
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() { | |
if (fetch && Promise && document.querySelector && history) { // <-- Dependencies. Otherwise normal links will remain. | |
function loadPage(url) { | |
fetch(url).then(function (res) { | |
return res.text(); | |
}).then(function(html) { | |
var dom = new DOMParser().parseFromString(html, 'text/html'); | |
var title = dom.querySelector('title').innerText; | |
history.pushState({}, title, url); | |
document.title = title; |
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
`<div> | |
Some text here | |
<div> | |
<h3>Lorem <a href="./abc/def.html">ipsum</a></h3> | |
<p>Dolor sit</p> | |
<p>amet</p> | |
</div>` | |
.split(/([<>\s="\/]{1})/g) | |
.map(s=>s.trim()) | |
.filter(Boolean) |
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> | |
<body> | |
<x-one></x-one> | |
<script src="./x-one.js"></script> | |
</body> | |
</html> |
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> | |
<title></title> | |
</head> | |
<body> | |
<x-one> | |
<p>Lorem ipsum</p> | |
Dolor sit amet | |
</x-one> |
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
lines = ''' | |
using Abc.Def; | |
namespace Abc.Hijk | |
{ | |
public class Haha: ILaugh | |
{ | |
public Haha() | |
{ | |
// Constructor |
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 Abc; | |
public class One | |
{ | |
public void Foo() | |
{ | |
// macro: set ClassName // Changes the assigned default or any value in the line below | |
string className = default; | |
Console.WriteLine(className + " Foo"); |
NewerOlder