Skip to content

Instantly share code, notes, and snippets.

View AlexandrDragunkin's full-sized avatar

Alexander Dragunkin AlexandrDragunkin

  • RUSSIA
View GitHub Profile
@AlexandrDragunkin
AlexandrDragunkin / metaclasses.py
Created September 16, 2025 16:58 — forked from rnag/metaclasses.py
Field Property Support in Dataclasses, for Python 3.7+
from __future__ import annotations
import builtins
from collections import deque
from dataclasses import field as dataclass_field, Field, MISSING
from logging import getLogger
log = getLogger(__name__)
@AlexandrDragunkin
AlexandrDragunkin / gist:e9e6d5cb04292d7178b7ce2d7a7dc34f
Created November 20, 2018 20:28 — forked from chrisparnin/gist:6849751
Syntax highlighting for Markdown Pad.
<link href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.css" type="text/css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js">
</script>
<script>
$(document).ready(function()
{
$("pre").addClass("prettyprint");
prettyPrint();