Skip to content

Instantly share code, notes, and snippets.

Brian "Beej Jorgensen" Hall beejjorgensen

Block or report user

Report or block beejjorgensen

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
@beejjorgensen
beejjorgensen / webserver.go
Last active Oct 28, 2018
Super-simple logging webserver
View webserver.go
package main
import (
"log"
"net/http"
)
func logf(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Printf("%s %s %s", r.RemoteAddr, r.Method, r.URL)
View CS9 OOP
# Class Hierarchy
#
# Shows which classes subclass from which other classes:
#
# (Animal)->(Ostrich)
# |
# v
# (Goat)->(AngloNubianGoat)->(FaintingGoat)
# |
# v
View Lambda!
cO2Ai0u4MwW27OfjTUKeGUyXnxGzztyPWztO5/uucQ5siHc8Yq89Z+KfhKGN+xzE6Ef1QDrrqZc=
@beejjorgensen
beejjorgensen / ball.py
Created Jul 12, 2018
CS10 Python OOP Day 2
View ball.py
import math
from pygame.math import Vector2
class Ball:
"""
base class for bouncing objects
"""
def __init__(self, bounds, position, velocity, color, radius):
self.position = position
@beejjorgensen
beejjorgensen / block.py
Last active Jul 11, 2018
CS10 Python-OOP-Toy from lecture
View block.py
import pygame
import random
from pygame.math import Vector2
from pygame import Rect
class Block:
"""
Base class for square or rectangular object
"""
@beejjorgensen
beejjorgensen / bignum.py
Created Jul 10, 2018
CS10 Intro to Python toy programs
View bignum.py
# Print out 2 to the 65536 power
print(2**65536)
View keybase.md

Keybase proof

I hereby claim:

  • I am beejjorgensen on github.
  • I am beej (https://keybase.io/beej) on keybase.
  • I have a public key ASCiX3ExlcEy-50-gU3UZLrLUvJHDwbo0FmsV5hXrCb7two

To claim this, I am signing this object:

You can’t perform that action at this time.