- The pitfalls of Test-Driven Development
- Power your projects with Telerik - Now with the Convenience of NuGet
- What is Software Architecture?
- Servers Microsoft Message Analyzer 1.1
- Paket
- Coupling and Cohesion
- TypeConverters: There's not enough TypeDescripter.GetConverter in the world
- PostSharp
- Neo4j
- http://design-types.net
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
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
Jedes Problem wird solange mit MSExcel bearbeitet, bis bemerkt wird, dass es nicht verstanden wurde. | |
When there’s no more room in your Repo. Then dead code will be in the deployment | |
and coders won’t have a commit. Cause it’s the dawn of the dead code | |
Wenn die Schnittstelle schwer zu verstehen ist und eine Dokumentation braucht, | |
dann ist die Schnittstelle unter Umständen nicht wirklich gut. | |
Eine schlechte Schnittstelle wird durch eine Dokumentation nicht besser. | |
Es geht nicht darum, es richtig zu machen, sondern nicht falsch! |
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
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
$sample = @( | |
[PSCustomObject]@{ | |
From = [datetime]::Parse("01.01.2022 00:00:00") | |
To = [datetime]::Parse("10.01.2022 23:59:59") | |
} | |
[PSCustomObject]@{ | |
From = [datetime]::Parse("05.01.2022 00:00:00") | |
To = [datetime]::Parse("15.01.2022 23:59:59") | |
} | |
[PSCustomObject]@{ |
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 static class ReadFromCsv { | |
public static IEnumerable<IDictionary> asKeyValuePairs(this TextReader Reader_, string Delimiter_ = ";") { | |
var splitThis = Delimiter_.asSplitter(); | |
var result = new List<Dictionary<string, object>>(); | |
var columns = splitThis(Reader_.ReadLine()); |
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
function combineIds() { | |
param( | |
[Parameter()] | |
[Guid]$First, | |
[Parameter()] | |
[Guid]$Second | |
) |
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
function getStartOfWeek() { | |
begin { | |
$base = [DayOfWeek]::Monday | |
} | |
process { | |
$difference = $_.DayOfWeek - $base | |
$offset = (7 + $difference) % 7 * -1 | |
NewerOlder