Dvorak Simplified Keyboard keybindings for Oxygen Not Included
This file contains hidden or 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
""" | |
Find Geometric Series Sum | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or | |
as a compiled binary, for any purpose, commercial or non-commercial, and by any means. | |
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright |
This file contains hidden or 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
from bisect import bisect_right, bisect_left | |
from itertools import count, islice | |
from math import isqrt | |
from typing import Iterator, Union, Generator | |
class Primes: | |
known = [2, 3] | |
def __iter__(self) -> Generator[int, None, None]: |
This file contains hidden or 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
""" | |
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 |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
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() |
This file contains hidden or 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
/* | |
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 |
This file contains hidden or 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
( •_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) |
NewerOlder