Skip to content

Instantly share code, notes, and snippets.

View archishou's full-sized avatar

Archishmaan Peyyety archishou

  • 02:16 (UTC -04:00)
View GitHub Profile
package Library4997.MasqResources.MasqMath;
import Library4997.MasqResources.MasqHelpers.MasqHardware;
/**
* Created by Archishmaan Peyyety on 8/13/18.
* Project: MasqLib
*/
public class MasqVector implements MasqHardware {
#pragma once
#include <cstdint>
#include <string>
#include <array>
#include <vector>
#include <algorithm>
#include <sstream>
#include "iostream"
@archishou
archishou / .vimrc
Last active November 15, 2023 15:36
Archi Vimrc
syntax on
set number
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
def compute_tax(income):
tax = 0
def tax_income(rate, top_bound):
nonlocal income, tax
removed = income - max(income - top_bound, 0)
# print(removed, '\ttaxed at', rate, '\tfor', removed * rate)
tax += removed * rate
income -= removed
tax_income(0.1, 10_275)