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 puppeteer from "puppeteer"; | |
import cliProgress from "cli-progress"; | |
// ───────── CONFIG ───────── | |
// Canvas URL: | |
const URL = "https://addapixel.com/"; | |
// Worker configurations: each specifies its own sub-area and color. | |
// Adjust xStart, xEnd, yStart, yEnd, and colorIdx as needed. | |
const WORKER_CONFIGS = [ |
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 org.jetbrains.compose.desktop.application.dsl.TargetFormat | |
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | |
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl | |
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | |
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig | |
plugins { | |
alias(libs.plugins.kotlinMultiplatform) | |
alias(libs.plugins.androidApplication) | |
alias(libs.plugins.composeMultiplatform) |
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
from list import summieren, reverse | |
def test_summieren(): | |
assert summieren([1, 2, 3]) == 6 | |
assert summieren([1, 2, 3, 4]) == 10 | |
assert summieren([]) == 0 | |
assert summieren([1, 2, 3, 4, -5]) == 5 | |
def test_reverse(): |
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
/** | |
* Author: Ian Gallagher <igallagher@securityinnovation.com> | |
* | |
* This code utilizes jBCrypt, which you need installed to use. | |
* jBCrypt: http://www.mindrot.org/projects/jBCrypt/ | |
*/ | |
public class Password { | |
// Define the BCrypt workload to use when generating password hashes. 10-31 is a valid value. | |
private static int workload = 12; |