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
module Main (main) where | |
-- build-depends: base, containers, mtl | |
import qualified Data.List as L | |
import Data.Maybe (fromJust) | |
import Data.Char (digitToInt, toLower) | |
import qualified Control.Monad.State.Lazy as S | |
---------------------- |
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
### quick 'n' dirty CSV -> LaTeX table output | |
import csv | |
############################### | |
## stuff you should change ## | |
############################### | |
# the CSV to be table-ized | |
IN_FILENAME = "data.csv" |
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
# [Created by task 2.5.0 4/9/2019 13:40:28] | |
# Taskwarrior program configuration file. | |
# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color', | |
# 'man task-sync' or 'man taskrc' | |
# Here is an example of entries that use the default, override and blank values | |
# variable=foo -- By specifying a value, this overrides the default | |
# variable= -- By specifying no value, this means no default | |
# #variable=foo -- By commenting out the line, or deleting it, this uses the default |
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
from pathlib import Path | |
if os.geteuid()!=0: | |
args = ['sudo'] + sys.argv | |
os.execlp('sudo',*args) |
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
#Werkzeug only checks the root logger for user-created handlers before setting its own. | |
#Since the correct way to create module-wide logging is _not_ with the root logger, this | |
#causes werkzeug to set its own logger over top of any you may create. | |
#This can be solved by setting the level of the 'werkzeug' logger to > 0 before werkzeug | |
#is started. It can also be solved by adding a handler to the root logger. But the consensus | |
#is that you should not do that. Do this: | |
import logging | |
#somewhere before app.run |