Skip to content

Instantly share code, notes, and snippets.

View weakish's full-sized avatar

weakish weakish

View GitHub Profile
@weakish
weakish / 跋張政烺文史論集.md
Created May 15, 2012 11:43
#跋 #張政烺 文史論集

張政烺. 張政烺文史論集[M]. 北京:中華書局,2004年4月. ISBN 7-101-01977-3.

李零在《書品》2005年第一輯發表的書評(2010)中提到,在《試釋周初青銅器銘文中的易卦》一文中,張政烺討論齊家卜骨上的卦畫,其中一字,由於簡報的摹本不夠準確,使李零懷疑張氏的釋讀也許不對,後來從照片看,張氏的釋讀完全正確。因此李零希望書中能加入照片作爲佐證,但最終出版的書中沒有收入。李零還提到,傅學苓說,還有很多原文的插圖被刪掉,書前的照片也有遺漏。另外,本書的整理有多位學者參加,《出版說明》漏掉了一些人,如趙超、吳九龍、劉宗漢等。

案,李零提到的《試釋周初青銅器銘文中的易卦》一文,亦收入《張政烺論易叢稿》(2010)一書,書前所附圖版五即爲李零提到的那張未收的照片。

引用文獻

李零. 2010. 趕緊讀書——讀《張政烺文史論集》[M]//張永山. 張政烺先生學行錄. 北京:中華書局:235

@weakish
weakish / cutfilm.sh
Created May 19, 2011 14:34
scripts to cut #video clips
#!/usr/bin/env bash
### cut a slient clip of film using mencoder
mencoder -nosound -ss $1 -endpos $2 -ovc copy -o $3 $4
@weakish
weakish / README.markdown
Created February 21, 2011 07:02
local and readonly variables in #shell

Local and readonly variables in shells

I've no idea how shells implement them. In this article, I will pretend they use a stack based implementation.

Ksh93 never pops out values. When dash encounteres 'local', it just reuse the outer value. Bash and pdksh/mksh unset values first.

@weakish
weakish / backup-providers.md
Last active September 28, 2022 06:27
reviews of vps, storage, mail forward
@weakish
weakish / Page.astro
Created August 15, 2022 14:34
astro page layout, no css, no javascript, pure html
---
const { title, lang, links } = Astro.props.frontmatter ?? Astro.props
const raw = Astro.props.rawContent()
---
<html lang={lang ?? 'en'}>
<head>
<link rel="icon" href="data:,">
<title>{title ?? 'Astro 1kB'}</title>
</head>
<body>
@weakish
weakish / tran-date.sh
Created June 3, 2011 03:03
#sh script to convert date formats
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
### This script convert date formats:
# YYYY-MM-DD => YYYY-MM-DD
# YYYY-M-DD => YYYY-MM-DD
# YYYY-MM-D => YYYY-MM-DD
# YYYY-M-D => YYYY-MM-DD
@weakish
weakish / setup.go
Created August 9, 2022 01:16
generate dotfiles install scripts
package main
import (
"fmt"
"os"
"path/filepath"
)
// go run script/setup.go > script/setup
// ./script/setup
@weakish
weakish / boot-from-USB-macppc.markdown
Created January 7, 2011 11:16
Boot from USB on a open firmware #mac

Enter into Open Firmware (hold down Command+Option+o+f when power on), and type:

boot ud:,\\:tbxi
@weakish
weakish / loom.js
Created August 5, 2022 08:56
play with jsdoc typing
const crypto = require("crypto");
const fs = require("fs");
const path = require("path");
const os = require("os");
const process = require("process");
const { Encryptor, Decryptor } = require("strong-cryptor");
const globby = require("globby");
const makeDir = require("make-dir");
const prompts = require("prompts");