Skip to content

Instantly share code, notes, and snippets.

@robwhess
robwhess / Businesses API.postman_collection.json
Created May 9, 2019 18:45
Postman collection for testing businesses API
{
"info": {
"_postman_id": "bb528654-b92d-4752-8acd-0b3c2b951d0f",
"name": "Businesses API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Businesses",
"item": [
@robwhess
robwhess / test.c
Last active September 26, 2019 16:50
Test file for CS 261 recitation 1
#include <stdio.h>
void foo(int x);
int main(int argc, char** argv) {
char* name = "PUT YOUR NAME HERE";
printf("My name is: %s\n", name);
foo(2);
foo(4);
foo(2 + 4);
@robwhess
robwhess / openapi.yaml
Created April 16, 2018 20:19
OpenAPI Specification for CS 493 Example API
openapi: 3.0.1
info:
version: 1.0.0
title: Book-a-Place API
description: A simple API for an Airbnb-like application.
paths:
/lodgings:
get:
summary: Fetch a list of lodgings
#include <iostream>
#include <algorithm>
struct state {
std::string name;
float unemployed_2007;
float unemployed_2015;
};
bool cmp_unemploy_asc(struct state lhs, struct state rhs) {
@robwhess
robwhess / gh_classroom_collect.py
Last active March 13, 2023 18:03
Script to collect a set of assignments from GitHub Classroom.
#!/user/bin/env python
#
# This is a simple python script to clone all of the repositories for an
# assignment managed via GitHub Classroom. It has a dependency on the
# requests module, so to use it, you must:
#
# pip install requests
#
# You can run the script with the '-h' option to get info on its usage.