Note: This section of the site is under heavy construction, tread carefully.

Bookmarks tagged with “programming”

855 bookmarks by garrettc



Improve Your Python Decorators

"I've previously written about "yield" and generators. In that article, I mention it's a topic that novices find confusing. The purpose and creation of decorators is another such topic (using them, however, is rather easy). In this post, you'll learn what decorators are, how they're created, and why they're so useful."

Bookmarked on #


huey task queue

A lightweight alternative to Celery

Bookmarked on #



Django Static Files and Templates

Nice deep dive into how static files work in Django.

Bookmarked on #




Permissions in Django

This article looks at how to leverage Django's default permission system to assign permissions to users and groups.

Bookmarked on #


django-improved-user

"A custom Django user that authenticates via email. Follows identity and authentication best practices."

Bookmarked on #


RentFreeMedia

"Rent Free Media is a publishing distribution of Wagtail + Django aimed specifically at content creators who might otherwise use platforms such as Patreon, Substack, and Apple Podcasts. With it you can publish any sort of content to subscription users, as those services allow you to do."

Bookmarked on #



Pangur

Pangur is a visual programming language for working with text in real time.

Bookmarked on #


Responsive table with Django and htmx

Building tables with search, filtering, and pagination.

Bookmarked on #


django-query-capture

"Django Query Capture can check the query situation at a glance, notice slow queries, and notice where N+1 occurs."

Bookmarked on #


The Code Review Pyramid

“When it comes to code reviews, it’s a common phenomenon that there is much focus and long-winded discussions around mundane aspects like code formatting and style, whereas important aspects (does the code change do what it is supposed to do, is it performant, is it backwards-compatible for existing clients, and many others) tend to get less attention.”

Bookmarked on #


Unit testing Django and Wagtail

A repository for the discussion and publication of the CFPB development team standards.

Bookmarked on #




Contributing to Complex Projects – Mitchell Hashimoto

"As a frequent open source maintainer and contributor, I’m often asked: where do you start? How do you approach a new project with the goal of making meaningful changes? How can you possibly understand the internals of a complex project?"

Bookmarked on #



palewire/news-homepages

Example code using GitHub actions and simonw’s new screenshot tool.

Bookmarked on #


Playwright

"Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast."

Bookmarked on #


Docker, Django, Traefik, and IntercoolerJS is My Go-To Stack for Building a SaaS in 2021

I provide a deeper-dive on the tech stack I like to use in 2021. It is simple, easy to work with, and allows you to grow out of it when the time comes. Updated for 2021!”

Bookmarked on #


jpeg-sandbox: Interactively edit individual DCT blocks in any JPEG image in the browser.

This is a very barebones editor that supports clicking on any pixel in a JPEG image to see the 64 DCT coefficients that make up that 8x8 block. Each individual coefficient can be edited through text.

Bookmarked on #


Adding Placeholder Text to Wagtail Forms - CodeRed

"Wagtail forms let the editor customize field types and titles, but not placeholder text. While you could write a custom template and hard-code the placeholder text, this quickly becomes a burden whenever the forms need changed. Here’s how to extend the Wagtail form field to enable editors to customize placeholder text."

Bookmarked on #


Hack an IKEA lamp with Neopixels in MicroPython

Learn how to upgrade an IKEA lamp into a colourful IoT light, with the power of ESP32, MicroPython and Neopixels!

Bookmarked on #


APIs as ladders

"Developers have opinions on what a good API1 is, but rarely have a shared vocabulary to describe what makes them good. This essay puts forward one set of considerations (out of many) that we started using at Stripe in 2019 to discuss API design."

Bookmarked on #


Django styleguide

Useful tips for starting a Django project.

Bookmarked on #


How to create a simple Twitter bot

Bot 101 from the bloke who made @yokoonobot and @fesshole

Bookmarked on #


redbean – single-file distributable web server

"redbean makes it possible to share web applications that run offline as a single-file actually portable executable zip archive which contains your assets. […] redbean can serve 1 million+ gzip encoded responses per second on a cheap personal computer. […] It embeds the Lua programming language and SQLite which let you write dynamic pages. "

Bookmarked on #


A javascript rendering service — Splash 3.5 documentation

Splash is a javascript rendering service. It’s a lightweight web browser with an HTTP API, implemented in Python 3 using Twisted and QT5.

Bookmarked on #


10 tools I wish I knew when I started working with Python

Learn about how venvs, flake8, black, isort, pytest, commitizen, semantic-release, pre-commit hooks, and Github Actions work together.

Bookmarked on #



Web Browser Engineering

How browsers work, demonstrated with Python.

Bookmarked on #


Godot Engine - Free and open source 2D and 3D game engine

A compact, lightweight, yet capable game development system.

Bookmarked on #



WebVM: server-less x86 virtual machines in the browser

“…a server-less virtual Linux environment that runs unmodified Debian binaries in the browser.”

Bookmarked on #


Cheezam ! By Prevision.IO - Computer Vision with AI for cheese

"…can machine learning be used to identify a type of cheese?"

Bookmarked on #



GitHub Actions by Example

GitHub Actions by Example is an introduction to the service through annotated examples.

Bookmarked on #





django-forms-dynamic

Resolve form field arguments dynamically when a form is instantiated, not when it's declared.

Bookmarked on #



django-friendship: Django app to manage following and bi-directional friendships

This application enables you to create and manage follows, blocks and bi-directional friendships between users.

Bookmarked on #


PokéAPI

"All the Pokémon data you'll ever need in one place, easily accessible through a modern RESTful API."

Bookmarked on #


Hyperscript

"Hyperscript is an easy and approachable language designed for modern front-end web development."

Bookmarked on #


Web Development History

Internet history for developers and the technically curious

Bookmarked on #


How to load a Service Worker in Django

Loading a Service Worker in Django might be tricky. Let's see how to make it work in this brief post!

Bookmarked on #