This recipe bakes 2 rectangular cake tins (~23x13cm base)
360g all-purpose flour
2.5 teaspoons baking soda
1.25 teaspoons salt
400g dark brown sugar
from fastapi import FastAPI, Request, Response | |
import secrets | |
import requests | |
from datetime import datetime | |
targetBaseUrl = "http://localhost:5000" | |
app = FastAPI() |
from dataclasses import field | |
from typing import List | |
from pydantic import BaseModel, Field | |
class ClassWithList(BaseModel): | |
list: List = Field([], description="A list field") | |
a = ClassWithList() | |
b = ClassWithList() |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type My struct{} | |
func (m My) MyFunc(name string) { |
pactl load-module module-remap-sink \ | |
sink_name=reverse-stereo \ | |
master=0 \ | |
channels=2 \ | |
master_channel_map=front-right,front-left \ | |
channel_map=front-left,front-right |
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"fmt" | |
"log" | |
"net/http" | |
"golang.org/x/oauth2" |
get updates from branch (-r puts your commits on top of the pull, don't do this if you're not the only one working on the branch)
git pull -r
push local commit
git push origin <branch>
create new branch (and switch to it)
// https://play.golang.org/p/PWQlSox72E | |
package main | |
import ( | |
"context" | |
"fmt" | |
"strconv" | |
"time" | |
) |
package testcockroach | |
import ( | |
"fmt" | |
"log" | |
"testing" | |
// Import GORM-related packages. | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" |
#!/bin/bash | |
GOVersion="1.14.3" | |
echo "Removing go if already present" | |
rm -dr /usr/local/go | |
echo "Downloading Go" | |
wget -O go.tar.gz https://storage.googleapis.com/golang/go$GOVersion.linux-armv6l.tar.gz | |
echo "Extracting Go" | |
sudo tar -C /usr/local -xzf go.tar.gz |