Skip to content

Instantly share code, notes, and snippets.

Avatar

William George Cook wgeorgecook

View GitHub Profile
@wgeorgecook
wgeorgecook / main.go
Created Jul 2, 2020
Creates an HTTP server that listens on port :8000 for routes matching "/hello/{person}". If it matches the route, returns json {"hello": {person}}. If not, returns an error.
View main.go
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"log"
"net/http"
"os"
"os/signal"
View battle.py
class Equipment:
pass
class Weapon(Equipment):
def __init__(self, damage):
self.damage = damage
class Armour(Equipment):
def __init__(self, defence):
self.defence = defence
View facebook.py
# Facebook facing library
from fbchat import Client
from fbchat.models import *
from settings import FACEBOOK_SETTINGS
class facebookface(object):
You can’t perform that action at this time.