Skip to content

Instantly share code, notes, and snippets.

Brian Fife BDFife

Block or report user

Report or block BDFife

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c9c7e0ec75358ab9a13349cf3431aa02
int redPin = 5;
int greenPin = 6;
int bluePin = 3;
int ledMax = 10;
int ledMin = 2;
int redVal = ledMin;
int greenVal = ledMin;
View gist:d44c17271687f4ef86914110f8252d63
int redPin = 5;
int greenPin = 6;
int bluePin = 3;
int ledMax = 40;
int ledMin = 5;
//int brightness = ledMin;
//int fadeAmount = 1;
BDFife / gist:6d1372e01dabaff5ecb1fa966d0cb3b9
Last active Feb 24, 2019
Printrbot Simple Pro Start gcode
View gist:6d1372e01dabaff5ecb1fa966d0cb3b9
(==Configuration Settings==)
G21 ;set metric mode - use mm as units
M100 ({{ysv:1000}}) ;slow y-axis homing velocity so it doesn't slam
M100 ({{4pl:0.6}}) ;this is setting the motor power level on the Extruder - motor 4 - to 60 percent
;skipping all other configuration. The stock settings should be correct
(==Home Printer==)
M100 ({{_leds:3}}) ;turn LED on, blue color
G92.1 X0 Y0 Z0 A0 B0 ;reset origin offsets on all axes -clean slate
G28.2 X0 Y0 Z0 ;home the x, y and z axes.
(==Level Bed==)
BDFife / config.yaml
Created Jun 23, 2018
config.yaml for Octoprint/Printrbot plugin development.
View config.yaml
enabled: false
key: <apikey>
color: black
enabled: false
preemptive: false
View gist:02a6c4741591255e3732
import sys
import random
text =
text = text.split()
new_text = ""
View gist:f8193f390c25bc0341fe
import sys
import random
text =
new_text = ""
for char in text:
BDFife / monospace_test.html
Last active Dec 30, 2015
Test code that demonstrates iOS Monospace with Courier and Courier New
View monospace_test.html
code { font-family: Courier; }
.new code { font-family: "Courier New";}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p> Courier Font:</p>
View show_hide.html
<script language=javascript type='text/javascript'>
function toggle_visiblity(id) {
var e = document.getElementById(id);
if ( == 'block') = 'none';
else = 'block';
BDFife / .emacs
Last active Oct 12, 2015
BDFife Emacs Config
View .emacs
; disable beeps
(setq visible-bell t)
; better switch buffer mode. just type and go
; (crtl-r moves through the buffers)
(iswitchb-mode 1)
; highlight matching parens
(show-paren-mode t)
You can’t perform that action at this time.