Skip to content

Instantly share code, notes, and snippets.

View novica's full-sized avatar

novica novica

View GitHub Profile
@tanho63
tanho63 / script.R
Last active August 4, 2020 12:51
Build bookdown as epub
#### Convert bookdown to epub ####
library(devtools)
## Clone to folder
book_repo <- "hadley/adv-r"
dest_folder <- "~/documents/github"
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
@codemedic
codemedic / konsole-with-palette-colours.css
Last active July 14, 2023 13:56
CSS for KDE Konsole minimal, lighter, dark tabs
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);
@petrushev
petrushev / qpac.py
Created October 28, 2012 14:12
Get missing optional dependencies and see which packages need them
from subprocess import check_output
EMPTY = tuple()
def get_pkgs():
"""Query local packages"""
tmp = check_output(["pacman", "-Qi"])
li = tmp.strip().split("\n\n")