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
\documentclass{article} | |
\usepackage{verbatim} % includes the 'comment' environment | |
\begin{document} | |
displayed | |
\begin{comment} | |
the comment, not displayed. | |
\end{comment} |
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 python | |
import csv | |
import itertools | |
import os | |
import subprocess | |
import sys | |
import termios | |
import tty | |
import logging |
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
% \todo command | |
\usepackage[usenames, dvipsnames]{color} | |
\newcommand{\todo}[1]{\colorbox{BurntOrange}{todo}\footnote{\textcolor{Bittersweet}{#1}}} |
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
/* | |
Return JSON from url, use browser's localStorage as cache | |
JQuery extension, returns a promise. | |
'cacheInvalidMs' indicates the milliseconds after which the cache is invalidated. | |
Default is 24 hours. | |
'cacheDelayMs' indicates the milliseconds after which data from the cache is returned. | |
Can be used to simulate the delay of normal requests. | |
Default is 0. | |
*/ | |
//Adapted from https://gist.github.com/contolini/6115380 |
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
touch ~/Templates/txt.txt | |
touch ~/Templates/sh.sh |
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 requests import get | |
# Some more ideas: https://www.programmableweb.com/category/humor/api | |
data = get('https://api.chucknorris.io/jokes/random').json() | |
joke = data['value'] | |
print joke |
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
\documentclass[10pt,english,landscape]{article} | |
\usepackage{multicol} | |
\usepackage{calc} | |
\usepackage[landscape]{geometry} | |
\usepackage{color,graphicx,overpic} | |
\usepackage[T1]{fontenc} | |
\usepackage[bitstream-charter]{mathdesign} | |
\usepackage[utf8]{inputenc} | |
\usepackage{url} |
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
#http://ubuntuhandbook.org/index.php/2017/10/change-login-screen-background-ubuntu-17-10/ | |
sudo cp ~/Pictures/landscape.png /usr/share/backgrounds/ | |
xhost +local: && sudo gedit /etc/alternatives/gdm3.css | |
#lockDialogGroup { | |
background: #000000 url(file:///usr/share/backgrounds/landscape.png); | |
background-repeat: no-repeat; | |
background-size: cover; | |
background-position: center; } |
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
guake --no-startup-script # Should give info on how to disable popups | |
# For Guake Terminal 0.8.8 the following command is used | |
gconftool-2 --type bool --set /apps/guake/general/use_popup false |
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 tkinter as tk | |
from tkinter import filedialog | |
from tkinter import ttk | |
from tkinter import scrolledtext | |
import time | |
import threading |