Skip to content

Instantly share code, notes, and snippets.

View RealKC's full-sized avatar
😎
Making undecidable grammars

Dumitru Mițca RealKC

😎
Making undecidable grammars
  • Romania
  • 17:46 (UTC +03:00)
View GitHub Profile
#pragma once
#include <array>
#include <iterator>
#include <cstdlib>
#include <cstdint>
#include <utility>
#include <stdexcept>
#include <utility>
#include <cmath>
@RealKC
RealKC / cancer_fizzbuzz.cpp
Last active December 24, 2018 12:58
Fizzbuzz with a twist! Uses digraphs, class templates, inheritance, function pointers, and possibly more to overcomplicate the classic FIzzBuzz into something that Satan himself would want smitten.
/*
* THIS CODE IS ABSOLUTE CANCER
*/
%:include <algorithm>
%:include <cstring>
%:include <iostream>
%:include <iterator>
%:include <exception>
@RealKC
RealKC / boxify.cpp
Last active January 8, 2019 18:19
A simple C++ console app that will make any given string into a box.
/*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2018 Mitca Dumitru
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
@RealKC
RealKC / fizzbuzz.cpp
Last active December 21, 2018 20:16
Needlessly complicated fizzbuzz using templates
#include <algorithm>
#include <cstring>
#include <iostream>
#include <iterator>
template<class T>
class Fizz
{
public:
bool operator()(T t) {

Keybase proof

I hereby claim:

  • I am realkc on github.
  • I am realkc (https://keybase.io/realkc) on keybase.
  • I have a public key ASAbIdT7Qx_jGYMOX0VY_b6jZ7BDupOSYy_Q9CpCcuZG_go

To claim this, I am signing this object: