To use these tests, just use Git and clone them into the directory you have your project.
You can do this using:
import socket | |
def find_open_port(): | |
""" | |
Use socket's built in ability to find an open port. | |
""" | |
sock = socket.socket() | |
sock.bind(('', 0)) |
#include <stdio.h> | |
char identity(char x); | |
int main(int argc, const char *argv[]) { | |
int compound; | |
printf("For reference:\n"); | |
printf(" the ASCII value of %c is %d\n", ';', ';'); | |
printf(" the ASCII value of %c is %d\n", '}', '}'); |
""" | |
Example of the Adapter Design Pattern | |
""" | |
class RocketShip(object): | |
def turnOn(self): | |
raise NotImplementedError() |
#!/usr/bin/env sh | |
# | |
# Project 2 Tests | |
# Josh Davis | |
# | |
# Overview: | |
# A few quick and crude tests for project 2. | |
# | |
# Running: | |
# To run it, make sure it has the right permissions: |
#!/bin/sh | |
# | |
# Terraria Config | |
# | |
# Tmux session ID | |
SESSION=terraria | |
# Username to run as |
I hereby claim:
To claim this, I am signing this object:
The following historical commit information, by author, was found in the | |
repository: | |
Author Commits Insertions Deletions % of changes | |
Alexander Bolodurin 2 0 144 0.02 | |
Cameron Eagans 2 16 0 0.00 | |
Chris Watkins 6 221 605 0.13 | |
Christian Wellenbroc 1 10 10 0.00 | |
Dane Summers 1 7 5 0.00 | |
David Z. Chen 3 10592 4159 2.24 |