Skip to content

Instantly share code, notes, and snippets.

View abstractart's full-sized avatar
👷‍♂️
Work

Eugene Kozlov abstractart

👷‍♂️
Work
View GitHub Profile
@abstractart
abstractart / main_resources_ierarchy.go
Last active January 29, 2022 20:08
Dining philosopher problem solutions written in Go/Golang
package main
import (
"fmt"
"sync"
"time"
)
func main() {
count := 5
@abstractart
abstractart / main.go
Created November 10, 2021 09:31
BigIntegers Serialization and Deserialization in Golang
package main
import (
"bytes"
"encoding/json"
"fmt"
)
func main() {
jsonStr := "{\"time\":9223372036854775807}\n"
@abstractart
abstractart / fibonacci_with_fibers.rb
Created July 5, 2021 14:52
A implementation of Fibonacci function using Ruby Fibers
fib = Fiber.new do
last = [0, 1]
while(true)
v = last.sum
last[0] = last[1]
last[1] = v
Fiber.yield v
end
from random import randint
from time import sleep
from copy import deepcopy
import os
LIFE = 1
DEATH = 0
def main():
cols, rows = 7, 7
@abstractart
abstractart / books.md
Last active June 18, 2024 16:10
Free Programming Ebooks - O'Reilly Media. Codeship free ebooks here - https://bit.ly/2oQ0knQ