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
$TempDir = 'C:\Temp' | |
if(-not (Test-Path -Path "$TempDir" -PathType Container)){ | |
New-Item -Path "$TempDir" -ItemType Directory | |
} | |
Start-Transcript -Path "$TempDir\Disable-Recall-Scheduled-Task.log" -Force | |
$WindowsDisplayVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion |
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") |