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
| Still Gathering Statistics... |
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
| import { Buffer } from "../buffer.ts"; | |
| export interface CheckPrimeOptions { | |
| checks?: number | undefined; | |
| } | |
| export function checkPrime( | |
| candidate: ArrayBuffer | bigint, | |
| options: CheckPrimeOptions = {}, | |
| ); |
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 getQuestionsElement() { | |
| const questionsElem = document.querySelector( | |
| "body > div > div.root-component > div > div > div > div.page-container.in-quiz > div.screen.screen-game > div.transitioner.transitioner-component > div > div > div > div > div > div.options-container > div" | |
| ); | |
| if (!questionsElem) throw new Error("Unable to retrieve questions list element."); | |
| return questionsElem; | |
| } |
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
| # Constants | |
| VERSION="v0.4.2" | |
| SIMPLEX_CHAT="simplex-chat" | |
| ###################### | |
| PLATAFORM="" | |
| if [ "$(uname)" == "Darwin" ]; then | |
| PLATAFORM="macos-x86-64" | |
| elif [ "$(uname)" == "Linux" ]; then |
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
| import re | |
| def translate_g_language(text: str) -> str: | |
| return re.sub(r"([aeiou])g\1", r"\1", text) | |
| def main(): | |
| print(f"Result: {translate_g_language(input('Enter 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
| var app = WebApplication.Create(args); | |
| app.MapGet("/reverse/{text}", RouteHandlers.Reverse); | |
| app.Run(); | |
| internal static class RouteHandlers | |
| { | |
| public static string Reverse(string 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
| export enum PizzaShapes { | |
| square, | |
| rectangular, | |
| circular, | |
| } | |
| export type PizzaToppings = "sausage" | "mushrooms" | "cabanossi"; | |
| export type PizzaFlavor = | |
| | "veggie" | |
| | "meat" |
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
| class VehiclesFactory { | |
| static build(builder) { | |
| builder.addParts(); | |
| return builder.get(); | |
| } | |
| } | |
| class CarBuilder { | |
| constructor() { | |
| this.car = new Car(); |
OlderNewer