Skip to content

Instantly share code, notes, and snippets.

View Naamloos's full-sized avatar
🦄
weeeeee

Ryan de Jonge Naamloos

🦄
weeeeee
View GitHub Profile

Keybase proof

I hereby claim:

  • I am naamloos on github.
  • I am naamloos (https://keybase.io/naamloos) on keybase.
  • I have a public key whose fingerprint is 317D 3139 3C67 FA2E 0DC5 7A58 67F1 AB1E 5505 4AAA

To claim this, I am signing this object:

@Naamloos
Naamloos / Disgust.cs
Last active December 28, 2022 15:56
Linq Fizzbuzz Oneliner
string.Join(' ',new int[100].Select((_,x)=>x%15==0?"fizzbuzz":x%3==0?"fizz":x%5==0?"buzz":$"{x}"))
@Naamloos
Naamloos / split.cs
Last active March 23, 2020 22:17
Simple CSV splitter in C#
// Geen zin libraries te importen / rewriten met liraries in mind
// dus dan maar het wiel overnieuw uitvinden
// is waarschijnlijk veel trager dan string.split
// maar er staan commas in mijn comma separated values :(
public static string[] SplitCsv(this string input)
{
// values to return
List<string> values = new List<string>();
@Naamloos
Naamloos / fizzbuzz.cs
Last active July 11, 2018 20:26
My solution for the fizzbuzz test
var fs = new StreamWriter("output.txt");
var sb = new StringBuilder();
for (var i = 1; i <= 100; i++)
{
bool fizz = i % 3 == 0;
bool buzz = i % 5 == 0;
sb.Append($"{i}: ");
sb.Append(fizz ? "fizz" : "");