Skip to content

Instantly share code, notes, and snippets.

View teacherc's full-sized avatar

Candace Williams teacherc

View GitHub Profile
@jamesbar2
jamesbar2 / postal-codes.json
Last active March 1, 2024 23:53 — forked from matthewbednarski/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
@lezwon
lezwon / lightning.py
Created March 14, 2020 15:09
Training a classification model with PyTorch Lightning
import pretrainedmodels
import logging
import torch.nn.functional as F
from torch import nn
import torch
import pytorch_lightning as pl
from torch.utils.data import DataLoader
from tqdm.notebook import tqdm
class ShutdownInstanceCallback(pl.Callback):
@ericvenarusso
ericvenarusso / config.yaml
Created November 19, 2021 02:52
Example using Pydantic as Schema for YAML Files
name: 'Eric Venarusso'
age: '21'
sex: 'male'
sports:
- name: 'soccer'
team:
name: 'corinthians'
- name: 'basketball'