Skip to content

Instantly share code, notes, and snippets.

View jaredliw's full-sized avatar
😆
Follow your curiosity.

wolfishLamb jaredliw

😆
Follow your curiosity.
  • Malaysia
View GitHub Profile
@jaredliw
jaredliw / skewedboxlayout.kv
Created July 18, 2021 05:55
Kivy skewed box layout w/ animation
#: import ScrollEffect kivy.effects.scroll.ScrollEffect
<MainScreen>:
anchor_x: "center"
anchor_y: "center"
canvas.before:
Color:
rgba: root.config["background_color_dark"]
Rectangle:
size: self.size
pos: self.pos
@jaredliw
jaredliw / Modified-SEIR-Model.py
Last active July 7, 2021 08:10
Modified SEIR Python Model
from random import uniform
import matplotlib.pyplot as plt
import numpy as np
from scipy.integrate import solve_ivp
# Define constants
n_countries = 100
t_start = 0
t_end = 150
/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code & run
*/
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
@jlesech
jlesech / assert.ino
Created July 11, 2012 11:55
How to use assertions with Arduino.
#define __ASSERT_USE_STDERR
#include <assert.h>
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {