Skip to content

Instantly share code, notes, and snippets.

View zerotri's full-sized avatar

Wynter Woods zerotri

  • Santa Rosa, California
View GitHub Profile
@zerotri
zerotri / ServoControl.ino
Created August 14, 2014 20:34
Arduino Servo Control Code
// Serial Servo
// by Paul H. Dietz, 4/22/2014
//
// Allows an Arduino UNO to act like a Scott Edwards Mini Serial Servo Controller.
//
// Data Format:
//
// 9600 baud, 8-N-1
//
// Sync byte (255), Servo Num (2-13), Postion (0-254)

Keybase proof

I hereby claim:

  • I am zerotri on github.
  • I am zerotri (https://keybase.io/zerotri) on keybase.
  • I have a public key whose fingerprint is 093E A5CE 3495 52E0 6B89 A88E 7341 81D1 40F2 77DA

To claim this, I am signing this object:

@zerotri
zerotri / vector.cpp
Created September 24, 2011 15:05
I have no idea what is wrong with this. Trying to assign a new vector doesn't seem to change the values. Values are only changed using the initial constructor or if manually accessing members.
#include <math.h>
#include <iostream>
class Vector
{
public:
float x;
float y;
// constructor
@zerotri
zerotri / phpmcinfo.php
Created September 14, 2011 10:14 — forked from dalbothek/phpmcinfo.php
PHP Minecraft Info Query
<?php
class Socket
{
private $sock;
public function __construct()
{
$this->sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if(!$this->sock)
throw new Exception("Socket.create() failed; reason: " . socket_strerror(socket_last_error($this->sock)) . "\n");
@zerotri
zerotri / phpmcinfo.php
Created September 14, 2011 09:33
PHP Minecraft Info Query
<?php
class Socket
{
private $sock;
public function __construct()
{
$this->sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if(!$this->sock)
throw new Exception("Socket.create() failed; reason: " . socket_strerror(socket_last_error($this->sock)) . "\n");