Skip to content

Instantly share code, notes, and snippets.

Harry Cutts HarryCutts

Block or report user

Report or block HarryCutts

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
@HarryCutts
HarryCutts / ABOUT.md
Created Nov 17, 2018 — forked from laobubu/ABOUT.md
A very simple HTTP server in C, for Unix, using fork()
View ABOUT.md

Pico HTTP Server in C

This is a fork of [laobubu's Pico HTTP server][laobubu-gist]. The only change is a fix to the POST payload reading code.

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913
View keybase.md

Keybase proof

I hereby claim:

  • I am harrycutts on github.
  • I am hc (https://keybase.io/hc) on keybase.
  • I have a public key whose fingerprint is 14C4 E347 399F 4D1F 9668 9CF6 4E44 A55E 80BB 7ECE

To claim this, I am signing this object:

@HarryCutts
HarryCutts / worksheet.md
Created Jul 9, 2013
Smallpeice worksheet
View worksheet.md

Python in Action

In Python: A Whirlwind Tour, you learnt to use Python in quite an abstract environment. In this worksheet, we'll build on that knowledge in an applied setting: that of programming a robot. For now, this robot will be in a simulator, but the code you will write for it will be very similar to the code for your real robot.

Using the simulator

On your desktop on the lab machine, you should find a folder named 'robot-sim', with another folder and a couple of Python programs inside. This is the simulator directory. When you place programs in the folder and follow the steps below, your program will be run in the simulator.

@HarryCutts
HarryCutts / run.sh
Last active Dec 19, 2015
Python file runner bash script
View run.sh
#!/bin/bash
echo "Choose the program to run:"
cd robot-sim
select FILENAME in *.py;
do
echo "Running $FILENAME ($REPLY):"
echo "---"
echo
You can’t perform that action at this time.