Skip to content

Instantly share code, notes, and snippets.

View sixtyfive's full-sized avatar
🐯
Rawrrr.

J. R. Schmid sixtyfive

🐯
Rawrrr.
View GitHub Profile
@reefwing
reefwing / DShotTimer2.cpp
Created May 26, 2020 22:38
DShot implementation for Arduino using bit-banging method. Library modified to use Timer 2 and Port B.
/**********************
@file DShotTimer2.cpp
@brief DShot implementation for Arduino using bit-banging method
@author Andy Tsui
Original version using Timer 1 - https://github.com/gueei/DShot-Arduino
Modified to use Timer 2 and Port B on the Arduino UNO
Pins D8 - D13
@kmcallister
kmcallister / logger.py
Created July 4, 2019 06:17
Dead-simple DS1054Z data logger
#!/usr/bin/env python
import time
import visa
IP_ADDR = '192.168.50.219'
INTERVAL = 1.0
rm = visa.ResourceManager('@py')
scope = rm.open_resource('TCPIP::%s::INSTR' % (IP_ADDR,))
#include <math.h>
unsigned const int led_count = 5;
int led_pin[led_count] = {10, 9, 6, 5, 3};
const unsigned int min_val = 25; // never go dark completely
const unsigned int max_val = 255; // don't kill the LEDs (atm there are no resistors)
void setup()
{
Serial.begin(9600);
@sixtyfive
sixtyfive / README.md
Created July 15, 2017 11:38
My dream window manager

My dream window manager

  • every function accessible by mouse needs to be accessible by keyboard and vice-versa

  • there are 1-n screens

    • each screen has 1-n workspaces, but the default is 12
    • workspaces do not span screens
@andywer
andywer / talk-proposal.md
Last active December 23, 2020 17:22
Reactive Conf 2017 ⚡️ Talk Proposal - Memory Leak Hunt 2017 Style

This is a proposal for lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!

Memory Leak Testing in 2017

Hi, I am Andy, creator of leakage - the node-powered memory leak testing library.

Instead of manual debugging it provides a structured approach to fix or even prevent memory leaks.

# Throw this in config/initializers and add
# @import variables.sass to the top of application.sass
# to have all variables in app_config.yml
# available as variables in your sass stylesheets
#
# First draft by unixmonkey (http://gist.github.com/323198)
# flatten method added by J. R. Schmid <jrs+git@weitnahbei.de>
app_config = YAML::load(File.open(File.join(RAILS_ROOT, 'config', 'app_config.yml')))