Basic subtree:
git subtree push --prefix {directory} origin gh-pages
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. |
package components | |
import ( | |
"crypto/rsa" | |
jwt "github.com/dgrijalva/jwt-go" | |
"io/ioutil" | |
"log" | |
"time" | |
) |