- Open Settings
- Switch to Editor/Code Style
- Set line separator
This file contains hidden or 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
// for assets, we can only use require to import, cause it was process after build(using webpack or gulp) | |
// so, if we have lots of assets to import, we should use some scripts to convert to an Assets file(this file contain the codes that use require to import assets) | |
// prepareAssets.js | |
const fs = require("fs"); | |
const files = fs.readdirSync("./assets/"); | |
const ex =`export default {\n${files.map(x => x.split(".png")[0] + ': require(' + './' + x + '),').join("\n")}`; | |
fs.writeFileSync("./assets/index.js", ex); |
This file contains hidden or 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
# win + x -> A | |
slmgr.vbs /upk | |
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX | |
slmgr /skms zh.us.to | |
slmgr /ato |
This file contains hidden or 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’s enable extra metadata options by default | |
[automount] | |
enabled = true | |
root = /windir/ | |
options = "metadata,umask=22,fmask=11" | |
mountFsTab = false | |
# Let’s enable DNS – even though these are turned on by default, we’ll specify here just to be explicit. | |
[network] | |
generateHosts = true |
- Open Settings
- Search
Safe
- Toggle off
Use "safe write" (Save changes to a temporary file first)
- Download fiddler
- Open WinConfig
- Select UWP then Save Changes
- win + R -> regedit
- find HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2018.817.0_x64__79rhkp1fndgsc_ubuntu1804.exe
- add
CodePage
, type DWORD, value 0x01b5
This file contains hidden or 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
pacman -Rsn $(pacman -Qdtq) |
This file contains hidden or 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
1. Install with AUR | |
2. Use Debtap | |
1. debtap packagetoconvert.deb | |
2. debtap -U * |
This file contains hidden or 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 precision(a) { | |
if (!isFinite(a)) return 0; | |
let e = 1, p = 0; | |
while (Math.round(a * e) / e !== a) { e *= 10; p++; } | |
return p; | |
} |