Skip to content

Instantly share code, notes, and snippets.

View lolwuz's full-sized avatar

Marten Hoekstra lolwuz

View GitHub Profile
@lolwuz
lolwuz / todo.js
Last active October 21, 2019 18:42
Todos
var todos = [];
function addTodo() {
var name = document.getElementById("form-name").value;
var newTodo = {
id: guidGenerator(),
name: name,
isDone: false
};
//Feel free to edit, change, or otherwise tweak this config to your liking.
// Bind mousewheel for jumping
bind "MWHEELUP" "+jump"
bind "MWHEELDOWN" "+jump"
// Crosshair
cl_crosshairalpha "255" // Changes opacity/alpha of the crosshair color
@lolwuz
lolwuz / Controller.py
Last active November 6, 2018 20:32
MPU-6050 Raspberry Pi
import smbus
import math
class Mpu:
def __init__(self):
self.acceleration_x = 0.0
self.acceleration_y = 0.0
self.acceleration_z = 0.0
self.acceleration_x_scaled = 0.0