./watermark.sh input.jpg "僅供 linnil1 使用" output.jpg /OTF/TraditionalChinese/NotoSansCJKtc-Regular.otf
#!/bin/sh
podman run -it --rm \
    -v $4:/font/noto_sans_tc.otf:ro \
 -v $PWD:/app -w /app \| from collections import defaultdict | |
| from collections.abc import Iterable | |
| from dataclasses import dataclass | |
| from enum import Enum | |
| from itertools import chain | |
| import random | |
| class ActionType(Enum): | |
| """Enum for different action types""" | 
| from functools import partial | |
| from itertools import chain | |
| import os | |
| def runDocker(image, command): | |
| os.system(f"podman run -it --rm -v $PWD:/app -w /app " f"{image} {command}") | |
| def pdfToImage(name, password): | 
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class SublistMemoryTest { | |
| public static void main(String[] args) { | |
| List<Integer> largeList = new ArrayList<>(); | |
| // Measure memory usage before creating the sublist | |
| long beforeMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); | 
| import pandas as pd | |
| from openpyxl import load_workbook | |
| def readExcel(filename): | |
| excel = load_workbook(filename) | |
| sheetname = excel.sheetnames[0] | |
| df = pd.read_excel(filename, sheet_name=sheetname, header=None) | |
| # print("origin:", df, sep="\n") | |
| sheet = excel.get_sheet_by_name(sheetname) | 
| # https://www.youtube.com/watch?v=I3gKT1CL5Z | |
| 0:20:13 XX的設計 | |
| 0:22:50 OO的設計 | |
| 0:31:51 XX的設計 | |
| 0:52:08 新衣裝發表 | |
| 0:52:42 描述鞋底和鞋帶 | |
| 0:53:50 描述大腿骨和骨頭 | |
| 0:54:40 描述臉部設計包括牙齒和鼻子 | |
| 0:57:42 詳細介紹外套設計和LOGO | |
| 0:58:52 獵物胸章和腰帶的設計 | 
| input { | |
| syslog { | |
| id => "syslog_rfc3164" | |
| port => 1514 | |
| } | |
| syslog { | |
| id => "syslog_rfc5424" | |
| port => 1515 | |
| grok_pattern => "%{SYSLOG5424LINE}" | |
| tags => [ "rfc5424" ] | 
| import sys | |
| import time | |
| import json | |
| import random | |
| import requests | |
| from pathlib import Path | |
| from datetime import datetime | |
| cookie_path = "./cookie.json" | 
| import time | |
| import uuid | |
| import asyncio | |
| import httpx | |
| import aiohttp | |
| url = "http://localhost:8080/" | |
| -- Excercise Haskell | |
| -- Aim: 1A2B game without import library (random excluded) | |
| -- Author: linnil1 | |
| import System.Random (randomRIO) | |
| import qualified Data.Map as M | |
| ------------ | |
| -- utilities | |
| ------------ |