Skip to content

Instantly share code, notes, and snippets.

View t3db0t's full-sized avatar
😃
Working on https://www.Bartleby.ink

Tedb0t t3db0t

😃
Working on https://www.Bartleby.ink
View GitHub Profile
@t3db0t
t3db0t / arduino_timer.ino
Created April 1, 2019 15:43
A general schematic for an asynchronous timer on the Arduino. (Untested conceptual sketch)
// constants won't change. They're used here to set pin numbers:
const int motorPin = 4;
// int high_in_millisecond = 50; // how long 5V is sent (in ms)
// int low_in_millisecond = 500; // how long 0V is sent (in ms)
// variables will change:
// int motorState = LOW;
//int ledState = HIGH;
int switchPin = 8;
@t3db0t
t3db0t / dateTest.json
Created January 25, 2019 18:26
Replication of mongoimport date error
[{
"title": "Pilgrims travel to the healing temples of Asclepieion ",
"start":
{
"$date": "-000300-01-01T05:00:00.000Z"
}
}]
@t3db0t
t3db0t / buildGraphTest.js
Created December 11, 2017 22:18
Trying to build an asynchronous recursive tree builder
const Redis = require("ioredis");
const redisOpts = {
port: 6379,
host: "127.0.0.1"
};
var _redis = new Redis(redisOpts);
var blacklist = [];
@t3db0t
t3db0t / supercrawler-test.js
Created November 29, 2017 23:11
Example using Supercrawler
var supercrawler = require("supercrawler");
// 1. Create a new instance of the Crawler object, providing configuration
// details. Note that configuration cannot be changed after the object is
// created.
var crawler = new supercrawler.Crawler({
// By default, Supercrawler uses a simple FIFO queue, which doesn't support
// retries or memory of crawl state. For any non-trivial crawl, you should
// create a database. Provide your database config to the constructor of
// DbUrlList.
@t3db0t
t3db0t / gist:de49195d1e6809c9c1e8a413dfe85a47
Created September 8, 2016 21:57
Why Clubhouse/Why Not Jira
TL;DR: JIRA is the salesforce of project management: slow, ancient, difficult. Clubhouse is a modern, reactive application tailor-made for agile product development. I’ve measured speed increases of 400-1500% (or more in a few worst cases). No, I’m not making that up.
Why Clubhouse?
Here’s a simple presentation I made of why:
https://docs.google.com/presentation/d/14KWfFRXzAJGA1oAblV_5Z4wSPcuR74QxaFLaM2Mjhsg/pub?start=false&loop=false&delayms=3000
A few additional items:
- Easily configurable/filterable workspaces
- Shareable workspaces for custom views tailored to a specific purpose
@t3db0t
t3db0t / workflows.go
Created September 8, 2016 20:16
Workflow mappings
switch item.Status {
case "Ready for Test":
// ready for test
state = 500000010
case "Task In Progress":
// in progress
state = 500000015
case "Selected for Review/Development":
// selected
state = 500000011
@t3db0t
t3db0t / userMaps.json
Created September 8, 2016 19:13
Maps JIRA users to Clubhouse projects and user IDs
[
{
"jiraUsername": "userA",
"chProjectID": 5,
"chID": "476257c9-ac5a-46bc-67d6-4bc8bbfde7be"
},
{
"jiraUsername": "userB",
"chProjectID": 81,
"chID": "476257c9-ac5a-46bc-67d6-4bc8bbfde7be"
@t3db0t
t3db0t / eeprom_rw_test.ino
Created August 1, 2012 19:53
Arduino EEPROM Read-Write Example
/******************************************************
Arduino EEPROM Read-Write Test
by Ted Hayes 2012
ted.hayes@liminastudio.com
Demonstrates the usage of the EEPROM Library for checking the state of a single value,
changing it, and resetting it. To use:
1) Put a momentary switch between ground and pin 11 on your Arduino.
@t3db0t
t3db0t / buttonLED.c
Created June 15, 2012 22:38
Raspberry Pi test program using wiringPi; changes blinking rate with button press
/*
* buttonLED.c:
* Simple test program to change the blinking rate of an LED when a button is pressed
*/
#include <wiringPi.h>
#include <stdio.h>
int main (void)
{
@t3db0t
t3db0t / blink.c
Created June 15, 2012 22:33
Raspberry Pi test program using wiringPi