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
| -- title: TIC-80 Speed test | |
| -- author: Mayank Mandava, mayankmandava@gmail.com | |
| -- desc: | |
| -- site: website link | |
| -- license: MIT License (change this to your license of choice) | |
| -- version: 0.1 | |
| -- script: lua | |
| music(0) |
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 testCases = [ | |
| ['12 de julio de 2023', '2023-07-12'], | |
| ['11 de Julio de 2023.', '2023-07-11'], | |
| ['12/07/2023', '2023-07-12'], | |
| ['23 de mayo de 2023', '2023-05-23'], | |
| ['Domingo, 09 de julio de 2023', '2023-07-09'], | |
| ['29 de junio de 2023', '2023-06-29'], | |
| ['13 de julio de 2023', '2023-07-13'], | |
| ['09/06/2023', '2023-06-09'], | |
| ['27 de Abril de 2023', '2023-04-27'], |
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
| { | |
| "$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
| "name": "Visual studio code themes", | |
| "author": "Microsoft", | |
| "themes":[ | |
| { | |
| "name": "Light (Visual Studio)", | |
| "appearance": "light", | |
| "style": { | |
| "border": null, |
This file has been truncated, but you can view the full file.
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
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "version": "1.1.0", | |
| "title": "Zenduty", | |
| "termsOfService": "https://zenduty.com", | |
| "contact": { | |
| "email": "vishwa@zenduty.com" |
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
| function getGroups( | |
| allSuppliers: { id: string; score: number }[], | |
| results: { left: string; right: string }[] | |
| ) { | |
| const groups: Record<string, string> = {}; | |
| for (const { id } of allSuppliers) { | |
| groups[id] = id; | |
| } | |
| const scoreMap: Record<string, number> = {}; | |
| for (const { id, score } of allSuppliers) { |
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 M = 1_295_827; | |
| const N = 36 ** 4; // 1_679_616 | |
| // Extended Euclidean algorithm to find modular inverse | |
| function modInverse(a, m) { | |
| let [old_r, r] = [a, m]; | |
| let [old_s, s] = [1, 0]; | |
| while (r !== 0) { | |
| const q = Math.floor(old_r / r); | |
| [old_r, r] = [r, old_r - q * r]; |
OlderNewer