This file contains 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 subprocess | |
import re | |
XINPUT = "xinput list" | |
ID_RE = "id=([0-9]+)" | |
TAPPING_ENABLE_COMMAND = "libinput Tapping Enabled" | |
This file contains 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
;; This is originally from | |
;; http://ubuntuforums.org/showthread.php?s=618526e60dfcf25e6413439603fa08ad&t=1716268&page=2. | |
;; Thanks to user "florenzen". I've included the fixes for Ubuntu 11.10 | |
;; and wrapped buffer-file-name in a call to file-truename because | |
;; kpathsea/SyncTeX follow symlinks; see | |
;; http://tex.stackexchange.com/questions/25578/why-is-synctex-in-tl-2011-so-fussy-about-filenames. | |
;; Forward/inverse search with evince using D-bus. | |
(if (require 'dbus "dbus" t) | |
(progn |
This file contains 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
#!/bin/bash | |
# Listen to So Good 92.1 FM Merida Mexico | |
# http://gruporivas.com.mx/sogood/ | |
exec mpv --no-ytdl http://s4.mexside.net:8090 |
This file contains 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
#!/bin/bash | |
# You can call this script like this: | |
# $./volume.sh up | |
# $./volume.sh down | |
# $./volume.sh mute | |
function get_volume { | |
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 | |
} |
This file contains 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 gi | |
gi.require_version("Gtk", "3.0") | |
import dbus | |
import psutil | |
import subprocess | |
from Xlib import display, protocol, X | |
import time |
This file contains 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
;; Reference: https://www.flannaghan.com/2013/01/09/command-highlight | |
;;This option will hightlight the content inside the parens | |
(setq font-latex-user-keyword-classes | |
'(("my-warning-commands" | |
(("fixme" "{")) | |
(:background "red" :foreground "black") | |
command))) |
This file contains 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 bash | |
# This script requires: | |
# - that the directory $HOME/.mpv exist | |
# - that the program socat be installed | |
# - that you start mpv with the unix socket feature pointing at that directory | |
# I recommend an alias in your .bashrc or equivalent file: | |
# alias mpv="mpv --input-unix-socket=$HOME/.mpv/socket" | |
socket="$HOME/.mpv/socket" |
This file contains 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
#calendar { | |
margin-top:5em; | |
width: 100%; | |
} | |
#month { | |
text-align:center; | |
text-transform:uppercase; | |
} |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Dec 5 11:48:36 2014 | |
@author: isra | |
""" | |
from __future__ import division | |
from scipy import sparse | |
from scipy.sparse.linalg import spsolve | |
import numpy as np |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Dec 5 07:49:22 2014 | |
@author: isra | |
""" | |
from __future__ import division | |
import numpy as np | |
import matplotlib.pyplot as plt |
NewerOlder