Obsoleted please refer to here for New Scripts
Python script that minimize ttf font by input word list
Use minifyTC as input word list
printf -v clock "%d" `expr $(date +%H%M) % 1200` | |
oclock=🕛 | |
[ ${clock} -gt 14 ] && oclock=🕧 | |
[ ${clock} -gt 44 ] && oclock=🕐 | |
[ ${clock} -gt 114 ] && oclock=🕜 | |
[ ${clock} -gt 144 ] && oclock=🕑 | |
[ ${clock} -gt 214 ] && oclock=🕝 | |
[ ${clock} -gt 244 ] && oclock=🕒 |
// <script src="tts.js"></script> embed in html | |
// tts_content_tag_id is the ElementID that to be read | |
// tts_lang is lang of speak | |
// tts_icon_in_tagname (h1) where is tts icon to place with | |
// yue is zh-HK | |
// Mandarin is zh | |
var tts_content_tag_id = '_tl_editor'; | |
var tts_lang = 'zh-HK'; |
Python script that minimize ttf font by input word list
Use minifyTC as input word list
Center All Chinese Punctuations
A simple word list test file, only one to one case, no one to many case
A Word list there is simple different from TC and SC, only one to one case, no one to many case
''' Basic Script for Libre Office Calc , Demo AutoFill | |
Sub AutoFill | |
Sheets = ThisComponent.getSheets() | |
oSheet = Sheets.getByName("MemberList") | |
oRange = oSheet.getCellRangeByName("A2:A6") ' A4:A6 has no data | |
oRange.fillAuto(com.sun.star.sheet.FillDirection.TO_BOTTOM,1) | |
End Sub |
/adb shell screenrecord --help | |
Android screenrecord v1.2. Records the device's display to a .mp4 file. | |
Options: | |
--size WIDTHxHEIGHT | |
Set the video size, e.g. "1280x720". Default is the device's main | |
display resolution (if supported), 1280x720 if not. For best results, | |
use a size supported by the AVC encoder. | |
--bit-rate RATE |
var fs = require("fs"); | |
var Fontmin = require('fontmin'); | |
var content = fs.readFileSync('a.txt', 'utf8'); | |
var fontmin = new Fontmin() | |
.src('a.ttf') | |
.use(Fontmin.glyph({ | |
text: content, | |
hinting: false // keep ttf hint info (fpgm, prep, cvt). default = true |
sudo chcon -R -v -t httpd_sys_content_t www/ | |
sudo chcon -R -v -t httpd_sys_rw_content_t www/wp-content/plugins/ www/wp-content/themes/ www/wp-content/upgrade/ www/wp-content/uploads/ |
Preparation
brew install Caskroom/cask/osxfuse
brew install ntfs-3g
Serria is now rootless, so we
need to disable rootless
csrutil disable
or reboot in recovery mode