Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: I Design with Code. Parent comment
Using my Powershell module, this creates a Powershell module that loads a Powershell Filter that does FizzBuzz:
New-Module FizzBuzz.ps1 (New-Function Filter-FizzBuzz (New-FunctionStatement If -not _ Modulus 15 'return "FizzBuzz"' (New-FunctionStatement ElseIf -not _ Modulus 5 'return "Fizz"' (New-FunctionStatement ElseIf -not _ Modulus 3 'return "Buzz"' 'return $_' ) ) ) -Filter)
And that command's output: https://github.com/Gilgamech/Main/blob/master/FizzBuzz.ps1
There are no comments on this comment yet.
Using my Powershell module, this creates a Powershell module that loads a Powershell Filter that does FizzBuzz:
New-Module FizzBuzz.ps1 (New-Function Filter-FizzBuzz (New-FunctionStatement If -not _ Modulus 15 'return "FizzBuzz"' (New-FunctionStatement ElseIf -not _ Modulus 5 'return "Fizz"' (New-FunctionStatement ElseIf -not _ Modulus 3 'return "Buzz"' 'return $_' ) ) ) -Filter)
And that command's output: https://github.com/Gilgamech/Main/blob/master/FizzBuzz.ps1