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
| # Registry values to set to prevent Recall from renabling itself. | |
| $RecallRegistryValues = @( | |
| [pscustomobject]@{ | |
| Path="HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" | |
| Name="DisableAIDataAnalysis" | |
| Type="DWord" | |
| Value="1" | |
| } | |
| [pscustomobject]@{ | |
| Path="HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" |
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
| #### Convert bookdown to epub #### | |
| library(devtools) | |
| ## Clone to folder | |
| book_repo <- "hadley/adv-r" | |
| dest_folder <- "~/documents/github" |
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
| library(tidyverse) | |
| # Download Fira Sans Condensed from | |
| # https://fonts.google.com/specimen/Fira+Sans+Condensed | |
| high_mean <- 12 | |
| high_sd <- 4 | |
| flat_mean <- 35 | |
| flat_sd <- 12 |
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
| QTabBar, | |
| QTabBar::tab | |
| { | |
| font-family: "Noto Sans"; | |
| font-size: 11px; | |
| height: 16px; | |
| padding: 2px; | |
| border: 0px; | |
| border-bottom: 3px solid palette(dark); | |
| background-color: palette(dark); |
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
| from subprocess import check_output | |
| EMPTY = tuple() | |
| def get_pkgs(): | |
| """Query local packages""" | |
| tmp = check_output(["pacman", "-Qi"]) | |
| li = tmp.strip().split("\n\n") |