- Go to
about:config
, enable these flags:toolkit.legacyUserProfileCustomizations.stylesheets
layout.css.color-mix.enabled
- Go to
about:support
, look for profile folder. - Add the CSS below to chrome/userChrome.css inside the profile folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Put this file in ~/Library/LaunchAgents/com.example.KeyRemapping.plist to | |
automatically remap your keys when macOS starts. | |
See https://developer.apple.com/library/archive/technotes/tn2450/_index.html for | |
the key "usage IDs". Take the usage ID and add 0x700000000 to it before putting it | |
into a source or destination (HIDKeyboardModifierMappingSrc and | |
HIDKeyboardModifierMappingDst respectively). | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install rust | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# clone crossfont and alacritty | |
git clone --depth 1 https://github.com/alacritty/crossfont.git | |
git clone --depth 1 https://github.com/alacritty/alacritty.git | |
# patching | |
sed -i '' -E 's/(set_allows_font_smoothing|set_should_smooth_fonts)\(true\)/\1(!use_thin_strokes)/' crossfont/src/darwin/mod.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function abortableAsync(generator) { | |
return ({ | |
[generator.name](...args) { | |
let halt = false; | |
try { | |
return () => { halt = true; }; | |
} finally { | |
(async() => { | |
let g = generator.call(this, ...args); | |
let value, done, err; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
công thức: chia ngày thành 3 khung thời gian: 7am -> 17pm, 17pm -> 24pm, 0am -> 7am | |
tính tổng {số giờ} * {hệ số} của mỗi khung thời gian | |
7am -> 17pm | |
{số giờ} = nếu bắt đầu trước 17pm : 17 - giờ bắt đầu (input) | |
ngược lại không tính (zero) | |
= if(AH40<17,17-AH40,0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let booking = new Machine({ | |
context: { | |
paymentState: 'new' | |
}, | |
initial: 'new', | |
states: { | |
new: { | |
on: { | |
PAYMENT_NEW: 'paying', | |
PAYMENT_CHARING: 'paying', |
I hereby claim:
- I am dangh on github.
- I am dangh (https://keybase.io/dangh) on keybase.
- I have a public key ASDA3BIwCpFrFRdxfbDy8EKXYjuFyRg80azOpRAHoxk4bAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configure CAP | |
Instruct user to power on device and scan QR code | |
cancel -> Exit | |
Init | |
valid QR code -> Instruct user to connect wifi | |
wrong QR code -> Inform user about wrong QR code | |
Inform user about wrong QR code | |
OK -> Instruct user to power on device and scan QR code | |
Instruct user to connect wifi | |
Trying to connect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configure RE | |
Instruct user to power on device and scan QR code | |
cancel -> Exit | |
Scan QR | |
valid QR code -> Check CAP | |
wrong QR code -> Inform user about wrong QR code | |
Inform user about wrong QR code | |
OK -> Instruct user to power on device and scan QR code | |
Active | |
Check CAP |
NewerOlder