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
global _start | |
section .data | |
fizz: db "fizz", 10 | |
buzz: db "buzz", 10 | |
fizzbuzz: db "fizzbuzz", 10 | |
section .text | |
_start: | |
xor rcx, rcx | |
sub rsp, 3 |
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
#include <stdbool.h> | |
#include <stdio.h> | |
// only on ints cause lol no generics in C | |
typedef struct optional { | |
bool exists; | |
int value; | |
} optional; | |
optional functor(int (*f)(int), optional x) { |
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
// CHANGE HERE | |
const serverId = "12345678987654321"; | |
const channelId = "12345678987654321"; | |
const userToken = "NTY0NTM0NTk0NzY0NjQ0MzYx.XcTNkw.IyU7orE_XbkVeKgWs_gpoLLxl9s"; | |
// --- | |
const Discord = require("discord.js"); | |
const moment = require("moment"); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
struct node { | |
int value; | |
struct node* next; | |
}; | |
struct queue { |
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
import sys | |
data = sys.stdin.buffer.read() | |
i = 26 | |
while i < len(data): | |
while i < len(data) and data[i] != 0: | |
sys.stdout.write(chr(data[i])) | |
i += 1 | |
sys.stdout.write("\n") |