Skip to content

Instantly share code, notes, and snippets.

View andraantariksa's full-sized avatar
🦀

Andra Antariksa andraantariksa

🦀
View GitHub Profile
@andraantariksa
andraantariksa / Scrollbar.kt
Last active January 22, 2024 09:38 — forked from mxalbert1996/Scrollbar.kt
Modifiers to draw scrollbars in Jetpack Compose
/*
* MIT License
*
* Copyright (c) 2022 Albert Chang & Andra Antariksa
*
* 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
* copies of the Software, and to permit persons to whom the Software is
@andraantariksa
andraantariksa / testrunner.py
Created September 14, 2022 03:15 — forked from cessor/testrunner.py
StopwatchTestRunner
import time
import statistics
import unittest
from unittest import TextTestRunner
from django.test.runner import DiscoverRunner
class StopwatchTestResult(unittest.TextTestResult):
"""
Times test runs and formats the result
@andraantariksa
andraantariksa / bigint-single.cpp
Created December 26, 2018 01:24
libBG single
#include <string>
#include <sstream>
#include <map>
#include <algorithm>
#include <cstdio>
#include <cctype>
// included bigint.h
#ifndef DODECAHEDRON_BIGINT_H_
#define DODECAHEDRON_BIGINT_H_