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
#!/bin/sh | |
# i3get | |
# | |
# search for windows in i3 tree, return desired information | |
# if no arguments are passed. con_id of acitve window is returned. | |
# ctrl+c, ctrl+v by budRich 2017 | |
# bash to sh by: nimaje | |
# | |
# Options: |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
This script takes a BibTeX .bib file and outputs a series of .md files for use | |
in the Academic theme for Hugo, a general-purpose, static-site generating web | |
framework. Each file incorporates the data for a single publication. | |
Written for and tested using python 3.6.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
(defun my-gnus-summary-view-html-alternative () | |
"Display the HTML part of the current multipart/alternative MIME message | |
in current default browser." | |
(interactive) | |
(save-current-buffer | |
(gnus-summary-show-article) | |
(set-buffer gnus-article-buffer) | |
(let ((file (make-temp-file "html-message-" nil ".html")) | |
(handle (nth 3 (assq 1 gnus-article-mime-handle-alist)))) | |
(mm-save-part-to-file handle file) |

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
""" | |
MIT License | |
Copyright (c) 2017 Cyrille Rossant | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
(defun cofi/helm-flyspell-correct () | |
"Use helm for flyspell correction. | |
Adapted from `flyspell-correct-word-before-point'." | |
(interactive) | |
;; use the correct dictionary | |
(flyspell-accept-buffer-local-defs) | |
(let ((cursor-location (point)) | |
(word (flyspell-get-word)) | |
(opoint (point))) |
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
;; This are setting for nice tabbar items | |
;; to have an idea of what it looks like http://imgur.com/b0SNN | |
;; inspired by Amit Patel screenshot http://www.emacswiki.org/pics/static/NyanModeWithCustomBackground.png | |
;; Tabbar | |
(require 'tabbar) | |
;; Tabbar settings | |
(set-face-attribute | |
'tabbar-default nil | |
:background "gray20" |