This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var todos = []; | |
function addTodo() { | |
var name = document.getElementById("form-name").value; | |
var newTodo = { | |
id: guidGenerator(), | |
name: name, | |
isDone: false | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |