Skip to content

Instantly share code, notes, and snippets.

View DevonEJ's full-sized avatar

Devon Edwards Joseph DevonEJ

  • Spotify
  • Remote, UK
View GitHub Profile
@DevonEJ
DevonEJ / blog.md
Last active July 18, 2020 12:34
Viewing Files in Binary

Viewing Files in Binary 🚀

This is a nice command to know if you are perhaps learning about binary encoding, or are curious about encryption standards.

I have been covering network security in my master's course lately, and particularly cryptography, so this has been a useful in helping to see the inner workings of various ciphers. 🎓

Let's start by creating a simple text file with a super inspiring message.

image

@DevonEJ
DevonEJ / blog.md
Last active August 5, 2022 00:43
Pydantic type hint parsing for Python

Taming Python with Pydantic 🚀

I enjoy using Python, but the dynamic typing makes me itch.

This week I came across Pydantic, a great library that goes some way towards scratching this long-standing itch.

Pydantic allows you to inherit from its BaseModel class in your own classes; Pydantic will then try its best to parse the given input into the type you have specified in your type hints.

from pydantic import BaseModel