Skip to content

Instantly share code, notes, and snippets.

@opendevbook
opendevbook / Tailwind.targets
Created April 8, 2025 10:10 — forked from marshalhayes/Tailwind.targets
Using Tailwind the right way for .NET
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This file exposes the following parameters -->
<!-- TailwindVersion: The version of the Tailwind Standalone CLI to download. -->
<!-- TailwindDownloadPath: The path to where to download the Tailwind Standalone CLI. This property is optional, and defaults to %LOCALAPPDATA% on Windows, and $XDG_CACHE_HOME on Linux and MacOS. -->
<!-- TailwindInputStyleSheetPath: The path to the input stylesheet. -->
<!-- TailwindOutputStyleSheetPath: The path to the output stylesheet. -->
<!-- TailwindOptimizeOutputStyleSheet: Whether to optimize the output stylesheet. This property is optional, and defaults to false. -->
<!-- TailwindMinifyOutputStyleSheet: Whether to minify the output stylesheet. This property is optional, and defaults to false when Configuration is Debug, and true when Configuration is Release. -->
<!-- TailwindDownloadUrl: The URL to the Tailwind Standalone CLI. This property is optional, and defau
@opendevbook
opendevbook / thai-id-card.py
Created February 27, 2025 15:12 — forked from bouroo/thai-id-card.py
Thai National ID Card reader in python
#!/usr/bin/env python
# Kawin Viriyaprasopsook<kawin.v@kkumail.com>
# 2023-10-19
# sudo apt-get -y install pcscd python-pyscard python-pil
import binascii
import os
import sys
from PIL import Image
from smartcard.System import readers