Skip to content

Instantly share code, notes, and snippets.

View robbyronk's full-sized avatar
🏎️

Robby Ronk robbyronk

🏎️
View GitHub Profile
@robbyronk
robbyronk / api-doc.md
Created April 21, 2020 23:28
Sample HTTP API Documentation

Simple lightweight API descriptions prevent misunderstanding.

Add emoji symbols to help guide people's eyes when scanning the docs.

User Endpoints

PATCH /user/:id

Updates a user.

@robbyronk
robbyronk / contracts.py
Created January 22, 2019 11:07
contracts and property based testing
from dpcontracts import require, ensure, invariant
@invariant("procs can never be empty", lambda self: len(self.procs) > 0)
@invariant("procs must consist only of positive integers",
lambda self: all(isinstance(x, int) and x > 0 for x in self.procs))
@invariant("space must be positive integer", lambda self: self.space > 0)
class Meltdown:
def __init__(self, space, procs):
self.space = space
self.procs = procs
@robbyronk
robbyronk / gist:e45a15ee0d93e22281b4
Last active August 29, 2015 14:04
AM3 Research

Motherboards that have:

  • DDR3
  • 2x PCIe 16x slots
  • High build quality
  • 4 RAM slots

Asus

Crosshair Formula V