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
/* | |
Requirements: | |
1. Install YTMusic PWA | |
2. Install https://chromewebstore.google.com/detail/youtube-like-dislike-shor/fdkpkpelkkdkjhpacficichkfifijipc | |
*/ | |
#+:: | |
SetTitleMatchMode, 2 | |
if WinExist("YouTube Music") | |
WinActivate | |
Send, {+} |
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
// inserts the element at index i into the correct position, | |
// [0..i-1] must be sorted | |
function insert_rec(l, i) { | |
if (i == 0) return l; | |
else { | |
if (l[i] < l[i - 1]) { | |
return compare_rec( | |
[...l.slice(0, i - 1), l[i], l[i - 1], ...l.slice(i + 1)], | |
i - 1 |
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
const facts = [ | |
['m', 3.28, 'ft'], | |
['m', 100, 'cm'], | |
['ft', 12, 'in'], | |
['hr', 60, 'min'], | |
['min', 60, 'sec'], | |
]; | |
const construct_graph = (facts) => { | |
const graph = {}; |
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
type FirstCharacter<T extends string> = T extends `${infer first}${infer rest}` | |
? first | |
: T; | |
type LastCharacter<T extends string> = T extends `${infer first}${infer rest}` | |
? rest extends '' | |
? first | |
: LastCharacter<rest> | |
: T; |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 class="main"> | |
<h1 id="title"> Star Clock Trivia</h1> | |
<h1 id="clock"></h1> | |
<div class='info'> | |
<h2 id="trivia"><span id="name"></span><span id="eyes"></span></h2> | |
</div> | |
</div> |
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
Fibonacci Finder | |
---------------- | |
A [Pen](https://codepen.io/bumchik/pen/pXGajw) by [Samuel Nittala](https://codepen.io/bumchik) on [CodePen](https://codepen.io). | |
[License](https://codepen.io/bumchik/pen/pXGajw/license). |