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
'use strict' | |
/** | |
* Standalone JavaScript implementation of a Time-Based One-Time Password (TOTP) generator | |
* | |
* It is optimized to be used directly in any JavaScript context (e.g., for test automation). | |
* | |
* @see https://datatracker.ietf.org/doc/html/rfc6238 | |
*/ |
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
alert('WOW!'); |
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
// Source: https://github.com/Data-Wrangling-with-JavaScript/nodejs-memory-test | |
// | |
// Small program to test the maximum amount of allocations in multiple blocks. | |
// This script searches for the largest allocation amount. | |
// | |
// | |
// Allocate a certain size to test if it can be done. | |
// |
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
{ | |
"catalog": { | |
"name": "Dänemark", | |
"categories": [ | |
{ | |
"name": "Campingvogne", | |
"images": [ | |
{ | |
"name": "previewImage", | |
"url": "https://www.hobby-caravan.de/fileadmin/user_upload/03-CARAVANS/2016/freisteller-caravans.png?v=1562684686" |
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
for ($index=1; $index -le 23; $index++) { | |
$scriptBlock = { | |
Param ( | |
[string] [Parameter(Mandatory=$true)] $id | |
) | |
$durationInMilliseconds = $(Get-Random -Minimum 500 -Maximum 1000) | |
Start-Sleep -Milliseconds $durationInMilliseconds |
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
$maxConcurrentJobs = 5 | |
$pollingFrequencyInMilliseconds = 50 | |
for ($index=1; $index -le 23; $index++) { | |
while ($true) { | |
Get-Job -State Completed | Receive-Job | Remove-Job | |
$concurrencyLimitIsReached = $($(Get-Job -State Running).Count -ge $maxConcurrentJobs) |
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
$maxConcurrentJobs = 5 | |
for ($index=1; $index -le 23; $index++) { | |
$runningJobs = $(Get-Job -State Running) | |
$concurrencyLimitIsReached = $($runningJobs.Count -ge $maxConcurrentJobs) | |
if ($concurrencyLimitIsReached) { | |
Write-Host "Reached concurrency limit of ${maxConcurrentJobs}, waiting for a job to complete..." |