Skip to content

Instantly share code, notes, and snippets.

View astronautlevel2's full-sized avatar

Alex Taber astronautlevel2

View GitHub Profile

Keybase proof

I hereby claim:

  • I am astronautlevel2 on github.
  • I am astronautlevel (https://keybase.io/astronautlevel) on keybase.
  • I have a public key whose fingerprint is 21AA 5B62 FD00 7AF3 B29B 5316 AD05 850C 3388 CF02

To claim this, I am signing this object:

'''
Fix Autodesk CAM General LabVolt code to work with LabVolt M600 Mills
This probably requires some generalisation before it works with all setups
Code is heavily commented, but a basic knowledge of regex is required still
Consider it a dirty hack until proven otherwise
Current features:
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define BUF_SIZE 100
setterm -cursor off
while true; do
printf "\n\n"
acpi
date
echo Brightness: $(xbacklight)%
cat /proc/net/wireless
sleep 1
clear
done
@astronautlevel2
astronautlevel2 / robot.py
Created October 11, 2017 23:53
Sample robot.py code
import wpilib
class MyRobot(wpilib.IterativeRobot):
"""Main robot class which represents the physical robot. Contains methods that describe how the robot works"""
def robotInit(self):
"""robotInit method which determines what the robot does when it first turns on"""
self.leftJoystick = wpilib.Joystick(0) # Assign the joystick on port 0 to leftJoystick
self.rightJoystick = wpilib.Joystick(1) # Assign the joystick on port 1 to rightJoystick
self.leftMotor = wpilib.Talon(0) # Assign the motor on port 0 to leftMotor