Skip to content

Instantly share code, notes, and snippets.

View gist:f8193f390c25bc0341fe
#!/usr/bin/python
import sys
import random
text = sys.stdin.read()
new_text = ""
for char in text:
View gist:02a6c4741591255e3732
#!/usr/bin/python
import sys
import random
text = sys.stdin.read()
text = text.split()
new_text = ""
@BDFife
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)
View show_hide.html
<html>
<head>
<script language=javascript type='text/javascript'>
function toggle_visiblity(id) {
var e = document.getElementById(id);
if (e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
@BDFife
BDFife / monospace_test.html
Last active Dec 30, 2015
Test code that demonstrates iOS Monospace with Courier and Courier New
View monospace_test.html
<html>
<head>
<style>
code { font-family: Courier; }
.new code { font-family: "Courier New";}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p> Courier Font:</p>
@BDFife
BDFife / config.yaml
Created Jun 23, 2018
config.yaml for Octoprint/Printrbot plugin development.
View config.yaml
accessControl:
enabled: false
api:
key: <apikey>
appearance:
color: black
devel:
cache:
enabled: false
preemptive: false
View gist:d44c17271687f4ef86914110f8252d63
int redPin = 5;
int greenPin = 6;
int bluePin = 3;
int ledMax = 40;
int ledMin = 5;
//int brightness = ledMin;
//int fadeAmount = 1;
View gist:c9c7e0ec75358ab9a13349cf3431aa02
int redPin = 5;
int greenPin = 6;
int bluePin = 3;
int ledMax = 10;
int ledMin = 2;
int redVal = ledMin;
int greenVal = ledMin;
@BDFife
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==)
You can’t perform that action at this time.