Skip to content

Instantly share code, notes, and snippets.

View georgewhewell's full-sized avatar
🎯
Hacking the Gibson

georgewhewell

🎯
Hacking the Gibson
View GitHub Profile
This file has been truncated, but you can view the full file.
{"token_id":"0x2710","num_sales":0,"name":"CryptoPunk #10000","description":null,"image_preview_url":"https://www.larvalabs.com/cryptopunks/cryptopunk10000.png","permalink":"https://opensea.io/assets/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb/10000","decimals":null,"asset_contract":{"address":"0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb","asset_contract_type":"non-fungible","created_date":"2018-01-23T04:51:38.832339","name":"CryptoPunks","nft_version":"unsupported","opensea_version":null,"owner":null,"schema_name":"CRYPTOPUNKS","symbol":"PUNK","total_supply":null,"description":"CryptoPunks launched as a fixed set of 10,000 items in mid-2017 and became one of the inspirations for the ERC-721 standard. They have been featured in places like The New York Times, Christie’s of London, Art|Basel Miami, and The PBS NewsHour.","external_link":"https://www.larvalabs.com/cryptopunks","image_url":"https://lh3.googleusercontent.com/BdxvLseXcfl57BiuQcQYdJ64v-aI8din7WPk0Pgo3qQFhAUH-B6i-dCqqc_mCkRIzULmwzwecnohLhrcH8A9mpWIZqA
a
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 642ceeef127b..b83f6add7989 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -817,6 +817,16 @@ spdif_tx_pin: spdif-tx-pin {
function = "spdif";
};
+ spi0_pins: spi0-pins {
+ pins = "PC0", "PC1", "PC2", "PC3";
Section "ServerFlags"
Option "AutoAddGPU" "off"
EndSection
Section "OutputClass"
Identifier "Meson"
MatchDriver "meson"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
import math
from time import sleep
from urllib.request import Request, urlopen
from PIL import Image
ZOOM_SIZE = 16
TILE_SIZE = 256
TILE_URL = "https://a.tile.openstreetmap.org/{}/{}/{}.png"
def deg2num(lat_deg, lon_deg, zoom):
@georgewhewell
georgewhewell / shell.nix
Created April 30, 2019 13:52
rust project nix shell
{ pkgs ? (import <nixpkgs> {})}:
let
toolchain = with pkgs.rustChannels.stable;
(rust.override {
extensions = [ "rust-src" ];
});
in pkgs.mkShell {
buildInputs = with pkgs; [
pkgs.jetbrains.idea-community
@georgewhewell
georgewhewell / README.md
Last active September 13, 2018 19:51
A simple URL shortening service

URL Shortener

This is a simple URL shortening service, written in Python using Flask and Redis.

Run

$ nix-shell -p python3.pkgs.flask python3.pkgs.redis
[nix-shell:~/src/shortener]$ FLASK_APP=app.py flask run
 * Serving Flask app "app.py"
 * Environment: production
   WARNING: Do not use the development server in a production environment.

Use a production WSGI server instead.

defmodule MyApp.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
use Supervisor
def start(_type, _args) do
children = [
@georgewhewell
georgewhewell / keybase.md
Created November 18, 2017 17:15
Keybase proof

Keybase proof

I hereby claim:

  • I am georgewhewell on github.
  • I am grw (https://keybase.io/grw) on keybase.
  • I have a public key ASC3hjTd0i6iLX4Wcg9ouuTlG5qf20PCMytWTZDL_HPvowo

To claim this, I am signing this object: