Skip to content

Instantly share code, notes, and snippets.

View fulcanelly's full-sized avatar
🎯
Focusing

fulcanelly

🎯
Focusing
View GitHub Profile
@fulcanelly
fulcanelly / ruby-fibers.rb
Last active January 6, 2022 03:48
The ruby fibers somehow similar to haskell's free monads
class FiberDSL
def expect regex
Fiber.yield({regex:})
end
def reply text
Fiber.yield({reply: text})
end
end
@fulcanelly
fulcanelly / BigInt.cpp
Created November 28, 2019 17:35 — forked from sphere913/BigInt.cpp
bignum class for C++
/*
######################################################################
####################### THE BIG INT ##########################
*/
const int base = 1000000000;
const int base_digits = 9;
struct bigint {
vector<int> a;
int sign;
/*<arpa>*/