Skip to content

Instantly share code, notes, and snippets.

@ekevoo
ekevoo / pigs.go
Created May 6, 2021
Simulation of a game of Pigs
View pigs.go
/*
Simulation of the game Pigs.
Inspired by a Numberphile video.
https://www.youtube.com/watch?v=ULhRLGzoXQ0
*/
package main
@ekevoo
ekevoo / cuckoo.py
Last active Sep 11, 2020
CUCKOO. Chimes the current time according to a set frequency. Inspired by the "Announce the time" setting in macOS, apparently unavailable in Windows.
View cuckoo.py
"""
CUCKOO. Chimes the current time according to a set period.
Inspired by the "Announce the time" setting in macOS, apparently unavailable in Windows.
MIT License
Copyright (c) 2020 Ekevoo.com
Permission is hereby granted, free of charge, to any person obtaining a copy
@ekevoo
ekevoo / README.md
Last active Nov 5, 2020
Dvorak Simplified Keyboard keybindings for Oxygen Not Included
@ekevoo
ekevoo / deduplicator.py
Last active Aug 5, 2019
file deduplicator
View deduplicator.py
#!/usr/bin/python3
#
# MIT License
#
# Copyright (c) 2019 Ekevoo.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View continued_fraction.py
from fractions import Fraction as F
from math import floor, pi
def to_cf(value):
head = floor(value)
value = F(value - head)
parts = [head]
while value:
value = F(1, value)
@ekevoo
ekevoo / cfic
Created Apr 21, 2018
Console full image color
View cfic
#!/usr/bin/env python3
"""
Console full image color
Usage: ./cfic image.png
Any image format supported by Pillow will work.
Make sure the image is small. Width of 80 pixels is ideal.
Keep in mind that console blocks aren't usually 1:2 exactly, and the
@ekevoo
ekevoo / calc1.py
Last active Jan 1, 2018
Factorio Rates
View calc1.py
from collections import namedtuple
from fractions import Fraction
from functools import partial
from itertools import chain
from math import log, floor
class FractionDict(dict):
zero = Fraction()
@ekevoo
ekevoo / paperclipsHelper.js
Last active May 13, 2020
Paperclips Helper
View paperclipsHelper.js
/*
Copyright 2017 Ekevoo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
View keybase.md

Keybase proof

I hereby claim:

  • I am ekevoo on github.
  • I am ekevoo (https://keybase.io/ekevoo) on keybase.
  • I have a public key ASA-rgjR0pXe64n03J561V7xw8Ev1RLltPti2cBuGqAB8wo

To claim this, I am signing this object:

View putonglasses.txt
( •_•)
( •_•)>⌐■-■
(⌐■_■)