Skip to content

Instantly share code, notes, and snippets.

View q45's full-sized avatar
💭
fai pe ae ngaue

Quintin q45

💭
fai pe ae ngaue
View GitHub Profile
@q45
q45 / 0-startup-overview.md
Created August 16, 2019 20:22 — forked from dideler/0-startup-overview.md
Startup Engineering notes
from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
# Create your models here.
class Restaurant(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='restaurant')
name = models.CharField(max_length=500)
phone = models.CharField(max_length=500)
address = models.CharField(max_length=500)
// digital ocean creds
// db, err := sql.Open("mysql", "root:@/theory_mysql")
databaseURL := os.Getenv("DATABASE_URL")
fmt.Println(databaseURL)
db, err := sql.Open("mysql", databaseURL)
fmt.Println(databaseURL)
if err != nil {
fmt.Println("error opening theory database")
@q45
q45 / redditbot.md
Created January 6, 2016 17:51 — forked from aggrolite/redditbot.md
Writing a reddit bot with Go and OAuth2