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 myArray = Array.from({length: 10}, (e, i)=> i) | |
doWork( | |
doSomethingWith, | |
myArray, | |
logToConsole | |
) | |
//Die Funktion, die das Ganze abarbeitet | |
async function doWork(doSomething, anArray, aCallback) { |
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
Clear-Host | |
Set-Location $PSScriptRoot | |
$main = { | |
npm list --prod | | |
Select-Object -Skip 1 | # First line is the project itself | |
Get-Dependency | | |
Sort-Object | | |
Get-Unique | |
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
def do_magic(decimal_num:int): | |
if decimal_num < 2: | |
return decimal_num | |
result = 0 | |
square_num = 2 | |
while square_num < decimal_num: | |
square_num *= 2 |
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'; | |
const createEnumeration = (...keys) => | |
keys.reduce( | |
(result, key) => Object.assign(result, { [key]: key }), | |
{} | |
); | |
const myEnum = createEnumeration( | |
'first', |
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
public Guid combineThose(Guid[] IDs_) { | |
const int length = 16; | |
return IDs_.Aggregate(Guid.Empty, (Accumulate, Current) => { | |
var result = new byte[length]; | |
var asByteArrayAccumulate = Accumulate.ToByteArray(); | |
var asByteArrayCurrent = Current.ToByteArray(); |
OlderNewer