Skip to content

Instantly share code, notes, and snippets.

View vinaydawani's full-sized avatar
😶‍🌫️
coding and crying

Vinay Dawani vinaydawani

😶‍🌫️
coding and crying
View GitHub Profile
@kevinkub
kevinkub / scriptable-line-chart.js
Last active August 27, 2025 01:41
Simple line chart class for https://scriptable.app 📈
class LineChart {
// LineChart by https://kevinkub.de/
constructor(width, height, values) {
this.ctx = new DrawContext();
this.ctx.size = new Size(width, height);
this.values = values;
}
_calculatePath() {
@DavideCanton
DavideCanton / quadtree.py
Created May 1, 2014 12:57
Quad Tree Python implementation.
__author__ = 'davide'
from collections import namedtuple, deque
from random import randint
import sys
import itertools as it
class Rect(namedtuple("_Rect", "x, y, w, h")):
def __contains__(self, point):