Skip to content

Instantly share code, notes, and snippets.

from __future__ import with_statement
import itertools
import functools
import sys
def download_files(keylist):
return [key.get_contents_to_filename('%s/%s' % (TEMP_DIR, key.name))
for key in keylist]
;;; ime-snake.el ---
;; Copyright (C) 2013, 2019 Ian Eure
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@ieure
ieure / gist:8d87e377ba53bedb0b9d6379c61702e5
Created February 26, 2022 17:38
High and leaning toward buying a ticket to Poland to join the Ukrainian effort against Putin
Hey y'all,
So i haven't posted here before i think, but I've lived in or around Portland for about 10 years now. Love the
place.
Anyway i think i should go. I don't have much in the sense of responsibilities or dependants, just two adorable
cats whom i love, but i also have dependable friends who can care for them properly.
My job went down to covid reasons, but i was burnt out and depressed (breakup with an LTR—"the One"—followed
by years of overwork, doom-scrolling, and escapism), but i have an okay amount saved up 💎Thanks Keith!🙌 So
@ieure
ieure / tiling
Created March 17, 2009 16:52
Code to handle centering and tiling of Emacs frames
;; Functions to work with frames
(provide 'ime-frame)
(defun screen-usable-height (&optional display)
"Return the usable height of the display.
Some window-systems have portions of the screen which Emacs
cannot address. This function should return the height of the
screen, minus anything which is not usable."
@ieure
ieure / error_debug.py
Created September 25, 2009 03:40
Context manager to enter the Python debugger when an exception is raised
# -*- coding: utf-8 -*-
#
# Author: Ian Eure <http://github.com/ieure>, <http://atomized.org>
#
"""Enter the debugger on exceptions.
example:
from __future__ import with_statement
(defun window-toggle-dedicated (&optional window)
"Toggle the dedicated flag on a window."
(interactive)
(let* ((window (or window (selected-window)))
(dedicated (not (window-dedicated-p window))))
(when (called-interactively-p)
(message (format "%s %sdedicated"
(buffer-name (window-buffer window))
(if dedicated "" "un"))))
(set-window-dedicated-p window dedicated)
beep for Debian
---------------
The code is quite short so it should be clear that it's not exploitable.
I therefore think that "suid root with only group audio executeable" is an
acceptable default - you are of course able to change it anytime with
dpkg-reconfigure beep
@ieure
ieure / python-pep8.el
Created February 12, 2010 18:49
Run pep8.py on Python source in Emacs.
;;; python-pep8.el --- minor mode for running `pep8'
;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com>
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01
@ieure
ieure / python-pylint.el
Created February 12, 2010 18:49
Run pylint on Python source in Emacs.
;;; python-pylint.el --- minor mode for running `pylint'
;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com>
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01
Show: Clojure Java REPL Tooling Duplicates All (0 frames hidden)
1. Unhandled java.lang.ClassNotFoundException
cemerick.piggieback
URLClassLoader.java: 381 java.net.URLClassLoader/findClass
DynamicClassLoader.java: 69 clojure.lang.DynamicClassLoader/findClass
ClassLoader.java: 424 java.lang.ClassLoader/loadClass
DynamicClassLoader.java: 77 clojure.lang.DynamicClassLoader/loadClass