Basic subtree:
git subtree push --prefix {directory} origin gh-pages
| package components | |
| import ( | |
| "crypto/rsa" | |
| jwt "github.com/dgrijalva/jwt-go" | |
| "io/ioutil" | |
| "log" | |
| "time" | |
| ) |
| from django.db import models, connection | |
| """ | |
| Haversine formula in Django using Postgres SQL | |
| Queries a model for all rows that are within a certain radius (given in meters) of a central point. | |
| The 'location_model' placeholder should be raplaced with the name of the table (full name) that includes a latitude and longitude column. | |
| The latitude and longitude columns should be decimal fields. |
LVM on LUKS Arch installation with systemd-boot
Sources:
Note: If you want a simpler encryption setup (with LUKS only), you can instead use the archinstall "guided" installer included with Arch since April 2021.
| import ( | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/mattn/go-sqlite3" | |
| ) | |
| func main() { | |
| db, err := sql.Open("sqlite3", "db.sql") | |
| if err != nil { |
| import time | |
| start_time = time.process_time() | |
| # Timed code. | |
| print("Duration:", time.process_time() - start_time, "seconds") |
I hereby claim:
To claim this, I am signing this object: