Skip to content

Instantly share code, notes, and snippets.

View bibliotechy's full-sized avatar

Chad Nelson bibliotechy

View GitHub Profile

Hacky Way to Get Among Us Running with "Local" Rather than the Central Servers

You will need one user who is the Admin and will run the Local game, and all Users will connect to the Admin's network. Instructions for each user - Admin and User - are below.

Admin:

  • Download and run ZeroTier on your machine
  • Sign in to the web client (my.zerotier.com/network)
    • Ensure it's set to private so rando's don't join
  • Share the Network ID with all your users, and when they join click the checkbox in the in the "Auth?" Column
#!/usr/bin/env python
import json
import urllib
def geocode(postal_code):
"""A function for turning a postal code into a geo-coordinate using Freebase."""
url = "https://www.googleapis.com/freebase/v1/mqlread?query="
q = {
"type": "/location/postal_code",
@edsu
edsu / fb.py
Created February 27, 2013 03:35
>>> from jobs.models import FreebaseEntity
>>> f = FreebaseEntity()
>>> f.freebase_id = '/en/20901'
>>> geo = f.freebase_values('/location/location/geolocation')[0]
>>> geo.get_value('/location/geocode/latitude').value
39.0204
>>> geo.get_value('/location/geocode/longitude').value
-77.0115
@crofty
crofty / leaflet-google.js
Created March 25, 2012 15:07
Leaflet plugin that enables the use of Google Map tiles - http://matchingnotes.com/using-google-map-tiles-with-leaflet
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,