Skip to content

Instantly share code, notes, and snippets.

Danny Staple dannystaple

Block or report user

Report or block dannystaple

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
dannystaple / build.log
Created Aug 31, 2019
Jekyll Builder segfault
View build.log
$ jekyll build
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux-musl]
/usr/gem/gems/ffi-1.11.1/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x00007f58683716e2
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux-musl]
-- Control frame information -----------------------------------------------
c:0026 p:---- s:0148 e:000147 CFUNC :open
c:0025 p:0022 s:0142 e:000141 BLOCK /usr/gem/gems/ffi-1.11.1/lib/ffi/library.rb:112 [FINISH]
c:0024 p:---- s:0133 e:000132 CFUNC :each
c:0023 p:0113 s:0129 e:000128 BLOCK /usr/gem/gems/ffi-1.11.1/lib/ffi/library.rb:109 [FINISH]
View strip_half.lua
red = string.char(255, 0, 0)
blue = string.char(0, 0, 255)
ws2812.writergb(1, red:rep(30)
dannystaple / serial_read_servo.ino
Created Dec 28, 2013
Testing/calibrating servo's with the Arduino - asks for a position and moves the servo there.
View serial_read_servo.ino
#include <Servo.h>
Servo myservo;
void setup() {
dannystaple / TurtleMotors.h
Last active Dec 29, 2015
Turtle Motors for Explorer
View TurtleMotors.h
#include <Arduino.h>
class Motor {
int enable;
int in1;
int in2;
void setup() {
//Set all the pins as outputs
dannystaple / bluetooth_remote.ino
Last active Dec 29, 2015
Code for Bluetooth Orion Explorer 1 Tutorial
View bluetooth_remote.ino
#include "SoftwareSerial.h"
#include "TurtleMotors.h"
//Define the devices
Motor motor_left = {10, 8, 9};
Motor motor_right = {3, 4, 5};
TurtleMotors motors = {motor_left, motor_right, 255, 100};
SoftwareSerial mySerial(11, 12); // RX, TX
void setup() {
View DistanceSensor.h
#include <Arduino.h>
class SR04 {
int trigPin;
int echoPin;
void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
dannystaple /
Created Oct 28, 2011
Simple bottle example
from bottle import *
def test():
return "<h1>Hello!</h1>"
run(host = "localhost", port=8100)
You can’t perform that action at this time.