Skip to content

Instantly share code, notes, and snippets.

View teacherc's full-sized avatar

Candace Williams teacherc

View GitHub Profile
ericvenarusso / config.yaml
Created November 19, 2021 02:52
Example using Pydantic as Schema for YAML Files
name: 'Eric Venarusso'
age: '21'
sex: 'male'
- name: 'soccer'
name: 'corinthians'
- name: 'basketball'
lezwon /
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 import DataLoader
from tqdm.notebook import tqdm
class ShutdownInstanceCallback(pl.Callback):
jamesbar2 / postal-codes.json
Last active June 14, 2024 11:24 — 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",