Skip to content

Instantly share code, notes, and snippets.

View withattribution's full-sized avatar
🦩

Alberto Tafoya withattribution

🦩
View GitHub Profile
@withattribution
withattribution / BLTouchBedLeveling
Created July 6, 2020 13:36
BLTOUCH BED LEVELING CR-10
BLTOUCH BED LEVELING
G28 instructs the printer to home itself to the X an Y endstops and the Z sensor determines the homing of the Z axis; i.e. when the sensor triggers, this is not necessarily (and most commonly) not the position where the nozzle is at Z=0.
G29 determines the shape of the bed by probing the bed. This will set the shape of the bed with respect to the sensor trigger point as described earlier. The Z-offset (set by M851 Z-x.xx is needed to set the offset between the nozzle and the sensor trigger point (to the bed).
The sequence to determine the offset is:
M851 Z0; // Set the Z offset to zero height
G28; // Home Z in the middle of the bed
@withattribution
withattribution / Rose MPC23107 micropython
Created July 6, 2020 12:16
Quck notes on MPC23107 implementation on the Rose Board
i2c MPC23107
from machine import I2C,Pin
i2c = I2C(-1,Pin(14),Pin(2))
i2c.scan()
[IOCON x0A BANK (0 is default)]
i2c.readfrom_mem(32,10,1) (returns b'\x00')
[IODIRA initial read]
Easy Seated Pose
Seated Thunderbolt Pose
Seated Mountain Pose
Seated Spinal Twist Pose
Seated Side Bend Pose
Child’s Pose
Table Top Pose
Cow Pose
Cat Pose
Balancing Table Pose
//vscode
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.minimap.enabled" : false,
"telemetry.enableTelemetry" : false,
"window.zoomLevel" : 0,
"editor.rulers": [80],
"go.buildTags":"integration",
@withattribution
withattribution / install.md
Last active August 10, 2018 13:44 — forked from Micka33/install.md
cassandra on mac OSX

Installing Cassandra on Mac OS X

TLDR; use CCM instead

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@withattribution
withattribution / gist:59c1adc1c0eae4631da0
Created December 17, 2014 19:40
creating gif from mov with ffmpeg and gifsicle
ffmpeg -i in.mov -s 640x360 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=6 > out.gif
@withattribution
withattribution / gist:ac2336a49fb48836b18e
Last active April 22, 2019 23:59
Sample Kernel Driver for Frequency Measurement (beaglebone)
//Taken from https://www.mail-archive.com/beagleboard@googlegroups.com/msg00436.html <-- usage instructions
#include <stdio.h>
#include <sys/time.h>
#define MAXAV 10
void main(void)
{
FILE *fp;
var inherits = require('inherits');
var Readable = require('readable-stream').Readable;
var spawn = require('child_process').spawn;
module.exports = function (opts, fn) {
if (typeof opts === 'function') {
fn = opts;
opts = {};
}
if (!opts) opts = {};
node -e "while(1){process.stdout.write('\x1b[38;5;' + Math.floor(256 * Math.random()) + 'mWOW')}"