Skip to content

Instantly share code, notes, and snippets.

@henrikse55
henrikse55 / Output
Created October 2, 2017 12:17
r/DailyProgrammer - Packet Assembler
1938 0 17 You read the Bible, Brett? Well there's
1938 1 17 this passage I got memorized, sorta fits
1938 2 17 ? "The path
1938 3 17 of the righteous man is beset on all sides
1938 4 17 by the iniquities of the selfish and the
1938 5 17 tyranny of evil men. Blessed is he who,
1938 6 17 in the name of charity and good will,
1938 7 17 shepherds the weak through the valley
1938 8 17 of darkness, for he is truly is brother's
1938 9 17 keeper and the finder of lost children.
@henrikse55
henrikse55 / FizzBuzz.asm
Last active August 5, 2017 18:27
I decided to do the fizzbuzz challange using assembly, this is the first thing I decided to do after hello world, there is deffinently room for improvements here
section .data
Fizz db 'Fizz', 10
FizzLen equ $ - Fizz
Buzz db 'Buzz', 10
BuzzLen equ $ - Buzz
FizzBuzz db 'FizzBuzz', 10
FizzBuzzLen equ $ - FizzBuzz
public Dictionary<int, string> GenerateKey(Case c, int amount, int length)
{
if (rand == null) rand = new Random();
if (Keys.Count() > 0) Keys.Clear();
//Run the amount of keys
for (int a = 0; a < amount; a++) {
//Generate Chars here
for (int l = 0; l < length; l++){
Boolean isNumber = rand.Next(0, 50) <= 30;