Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
View data.yaml
- id: ORCID:1234
full_name: Superman
- related_to: ROR:1
relationship_type: MEMBER_OF
- id: ORCID:3000
full_name: Jor El
- related_to: ORCID:1234
View data.yaml
id: NCBITaxon:40674
name: mammals
name: primates
name: humans
name: cats
capsulecorplab /
Last active July 31, 2022 18:08
How to setup GHCR for kasm workspace images
capsulecorplab / clockdrive_nema17_cg4_drv8825.ino
Last active July 23, 2022 22:13
Arduino sketch for running clockdrive with DRV8825 on Nema17 stepper motor on CG-4 mount
View clockdrive_nema17_cg4_drv8825.ino
// Define pin connections & motor's steps per revolution
const int dirPin = 2;
const int stepPin = 3;
const int stepsPerRevolution = 200;
void setup()
// Declare pins as Outputs
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
capsulecorplab /
Last active July 17, 2022 00:58
micropython class for reading temperature using DS18B20
import machine, onewire, ds18x20, time
class DS18B20:
def __init__(self, ds_pin: int = 4):
self.ds_pin = machine.Pin(ds_pin, machine.Pin.IN)
self.ds_sensor = ds18x20.DS18X20(onewire.OneWire(self.ds_pin))
def read_temperature(self, verbose: bool = False) -> float:
if verbose == True:
capsulecorplab / .gitconfig
Last active December 1, 2022 21:14
.gitconfig for git aliases
View .gitconfig
a = add
ap = add -p
b = branch -v
bd = branch -d -v
bD = branch -D -v
cl = clone
clr = clone --recurse-submodules
capsulecorplab / LICENSE
Last active June 1, 2021 23:06
BlackBelt Cura profiles
MIT License
Copyright (c) 2021 @capsulecorplab
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
capsulecorplab /
Last active January 2, 2021 13:28
bash script for installing arduino on 64bit Linux
#!/usr/bin/env bash
# artifacts
# arduino
if ! command -v arduino &>/dev/null; then
if [ ! -r ~/$arduinosource ]; then
curl -L "" -o ~/$arduinosource.tar.xz
tar -xvf ~/$arduinosource.tar.xz -C ~/
capsulecorplab / .gitignore
Last active April 1, 2021 20:30
plantuml template for specifying stakeholder needs & user stories
View .gitignore
# Asciidoctor