I hereby claim:
- I am colmjude on github.
- I am colmjude (https://keybase.io/colmjude) on keybase.
- I have a public key ASDBm_lZPIbHo1s3RwG9lWa5pj41_xgXfrmxLCs8u2UAUAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
name | date | |
---|---|---|
black | 2022-12-20 | |
wezza | 2022-12-21 | |
field | 2022-12-22 | |
binns | 2022-12-23 | |
digby | 2022-12-24 | |
paris | 2022-12-25 | |
drury | 2022-12-26 | |
lomas | 2022-12-27 | |
cowan | 2022-12-28 |
{ | |
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
#!/usr/bin/env bash | |
DIRECTORY=$1 | |
function basefiles { | |
cat <<EOF > README.md | |
# $1 | |
EOF | |
curl -qsL "https://gist.githubusercontent.com/colmjude/2d7c85d80df6f6879e92d976b02beb4c/raw/2e9dcbb7a42be77fa3eb92417c18f55b48b808a7/.editorconfig" >> .editorconfig |
[flake8] | |
max-line-length = 120 | |
; W291 Trailing whitespace | |
; E203 Whitespace before ':' | |
; W503 Line break occurred before a binary operator | |
ignore = W291, E203, W503 | |
exclude = | |
__pycache__ | |
node_modules | |
.venv |
[*] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
[Makefile] | |
indent_style = tab | |
[*.py] | |
indent_size = 4 |
function camelCaseReplacer(match, s) { | |
return s.toUpperCase() | |
} | |
function toCamelCase(s) { | |
return s.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, camelCaseReplacer) | |
} |
#!/usr/bin/env python3 | |
import os | |
import json | |
from urllib.request import Request, urlopen | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
def parse_page_for_twitter_links(url): |
appdirs==1.4.4 | |
asyncio==3.4.3 | |
Pillow==7.1.2 | |
pyee==7.0.1 | |
pyppeteer==0.2.2 | |
tqdm==4.46.0 | |
urllib3==1.25.9 | |
websockets==8.1 |
def patch_remote_dataset(name, key): | |
url="https://github.com/digital-land/boundary-collection/raw/master/index/local-authority-boundary.csv" | |
try: | |
# create tmp location | |
tmp_dir = "data/tmp" | |
if not os.path.exists(tmp_dir): | |
os.makedirs(tmp_dir) | |
tmp_path = csv_path(tmp_dir, "local-authority-boundary") | |
# fetch file | |
response = requests.get(url) |