Skip to content

Instantly share code, notes, and snippets.

View yawnoc's full-sized avatar
🌧️
# 只有淡忘 從前話說要如何 #

Conway yawnoc

🌧️
# 只有淡忘 從前話說要如何 #
View GitHub Profile
@yawnoc
yawnoc / tumbling-polygon.wl
Created January 21, 2021 16:23
Animating a tumbling polygon
(* ::Package:: *)
(* ::Title:: *)
(*Animating a tumbling polygon*)
(*
See <https://mathematica.stackexchange.com/a/237847>.
Licensed under MIT No Attribution (MIT-0),
see <https://spdx.org/licenses/MIT-0.html>.
@yawnoc
yawnoc / .gitconfig
Last active August 14, 2020 04:45
Git aliases for fewer keystrokes in workflow
[alias]
a = add
aa = add --all
ch = checkout
chb = checkout -b
c = commit
cm = commit -m
d = diff
dw = diff --word-diff
dd = diff --word-diff-regex=.
@yawnoc
yawnoc / fonts.conf
Last active June 21, 2020 16:38
Linux: configure preferred Chinese fonts
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
~/.config/fontconfig/fonts.conf
The easiest way to set preferred Chinese fonts in Linux is through <prefer>.
There is no need to worry about lang (locale) matching etc.
For each family (serif, sans-serif, monospace) simply use <prefer>,
and include your corresponding default English font family first
(so that English does not get rendered in your preferred Chinese font)
and then put the preferred Chinese font second.
@yawnoc
yawnoc / pinebook-pro-firefox-audio.md
Last active June 5, 2020 05:24
Pinebook Pro: Firefox no audio fix

Pinebook Pro: Firefox no audio fix

In Firefox pre-installed with the factory OS (mrfixit2001's Debian build), audio does not work in most videos. See [thread by 8jef][8jef].

Test cases:

@yawnoc
yawnoc / .nanorc
Last active May 29, 2020 05:22
Termux: nano configuration for a Windows-to-Linux convert
# $ nano --version
# GNU nano, version 4.9.1
# General settings
set autoindent
set morespace
set smooth
set smarthome
set tabsize 2
set tabstospaces
@yawnoc
yawnoc / termux.properties
Last active April 6, 2020 08:37
Termux: disable phone vibration and add more keys to touch keyboard
bell-character = ignore
extra-keys = [[ \
'TAB', 'CTRL', 'ALT', '-', '/', \
'LEFT', 'DOWN', 'UP', 'RIGHT', \
'DEL', 'HOME', 'END' \
]]