社群版本:
Usage / 使用方法
| [user] | |
| name = Poren Chiang | |
| email = <EMAIL> | |
| [color] | |
| ui = true | |
| [alias] | |
| tree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| keepup = !git checkout $2 && git merge $1 && git push && git push origin $2 && git checkout $1 && echo | |
| on = commit -m | |
| themall = commit -a -m |
| #!/usr/bin/env python3 | |
| import requests | |
| import re | |
| def fetch(url): | |
| if url.startswith('/'): | |
| url = 'http://www.oia.ntu.edu.tw' + url | |
| request = requests.get(url) | |
| request.encoding = 'utf8' | |
| return request.text |
社群版本:
Usage / 使用方法
Originally posted on CommonMark discussion board, 2016/10/29.
It is fairly common for East Asian languages (mostly CJK characters) to have ruby texts annotations; not only do they provide phonetic guides, the actual meaning of text might even differ without labeling.
This technique is currently implemented in HTML as a set of <ruby> tags, as demonstrated.
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <alias> | |
| <family>sans-serif</family> | |
| <prefer> | |
| <family>Noto Sans UI</family> | |
| <family>Noto Sans</family> | |
| <family>Noto Sans CJK TC</family> | |
| </prefer> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <style-scheme version="1.0" name="Monokai"> | |
| <style name="Text" foreground="#f8f8f2" background="#282828"/> | |
| <style name="Link" foreground="#66d9ef"/> | |
| <style name="Selection" background="#49483e"/> | |
| <style name="LineNumber" foreground="#a6a6a3" background="#303030"/> | |
| <style name="SearchResult" background="#888888"/> | |
| <style name="SearchScope" background="#282828"/> | |
| <style name="Parentheses" underlineColor="#a6e22e" underlineStyle="DotLine"/> | |
| <style name="ParenthesesMismatch" background="#f92672"/> |
| #!/bin/bash | |
| convert bounce.png -background white -alpha remove -crop 150x150 +repage frame%02d.png | |
| gifski frame*.png --fps 18 --output bounce.gif |
| #!/usr/bin/env bash | |
| # Copy M3U response from Firefox and do this | |
| pbpaste | base64 --decode | python -c 'import sys;_=list(sys.stdout.write('"'"'url="{}"\noutput="{:02}.mp3"\n'"'"'.format(line.strip(), i)) for i, line in enumerate(filter(lambda x: x[0] != "#", sys.stdin), start=1))' | curl -K - | |
| ffmpeg -i concat:"01.mp3|02.mp3|03.mp3|04.mp3|05.mp3|06.mp3|07.mp3|08.mp3|09.mp3|10.mp3|11.mp3|12.mp3|13.mp3|14.mp3" -c copy output.mp3 |
| editor | |
| foreground: b7c5d3 | |
| background: 181d23 | |
| caret: 666d81 | |
| editor-selection | |
| foreground: ffffff | |
| background: 41505e | |
| H1 |