Skip to content

Instantly share code, notes, and snippets.

import System.Posix.Env (getEnv)
import Data.Maybe (maybe)
import XMonad
import XMonad.Config.Desktop
import XMonad.Config.Gnome
import XMonad.Config.Kde
import XMonad.Config.Mate
import XMonad.Config.Xfce
@przmv
przmv / csv.R
Created July 2, 2020 13:47
Convert all xls[x] files in the current directory to CSV
#!/usr/bin/env Rscript
library(readxl)
pattern <- ".xls[x]?$"
# Create a vector of Excel files to read
files_to_read = list.files(pattern=pattern)
# Read each file and write it to CSV
@przmv
przmv / email_check.go
Created July 2, 2020 13:54
Check if lines of the provided files are valid email addresses. Regular expression for checking emails is from the awsome book “Let's Go!” by Alex Edwards — https://lets-go.alexedwards.net/
package main
import (
"bufio"
"fmt"
"os"
"regexp"
)
var EmailRX = regexp.MustCompile("^[a-zA-Z0-9\\.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
@przmv
przmv / LXQt.hs
Created July 16, 2020 20:49
My XMonad + LXQt config
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module XMonad.Config.LXQt (
-- * Usage
-- $usage
lxqtConfig,
desktopLayoutModifiers
) where
import XMonad
@przmv
przmv / README.md
Created February 5, 2021 19:00
Google App Engine Standard environment runtime sizes comparison

Test case

// index.html
<h1>Hello, world!</h1>
// app.yaml
runtime: ${RUNTIME}