Skip to content

Instantly share code, notes, and snippets.

View ewilderj's full-sized avatar
🦕

Edd Wilder-James ewilderj

🦕
View GitHub Profile
@teamdandelion
teamdandelion / notes.md
Last active August 18, 2019 20:39
SustainOSS Ways to Encourage Contributors

List of Ways to Help Get New Contributors

Ideas

(Sorted by # of people who voted for each one)

  • Say "Thank You" / Acknowledgement (8)
  • Have website (but website can be a distraction) (8)
  • "Setup social spaces" (8)
  • Good First Issue (7)
  • Status / Recognize status. A way to show/document that someone is a maintainer vs a collaborator (7)
  • Have a fast build (6)
@mecab
mecab / osc52e.el
Last active December 20, 2023 14:10 — forked from AlexCharlton/osc52e.el
Copy text from emacs into xterm, hterm, trough screen and tmux, with support for graphical displays and multi-byte characters
;;;; This script can be loaded during emacs initialization to automatically
;;;; send `kill-region' and `kill-ring-save' regions to your system clipboard.
;;;; The OSC 52 terminal escape sequence is used to transfer the selection from
;;;; emacs to the host terminal.
;;;; It is based off of the osc52.el copyright the Chromium OS authors, but
;;;; was modified to add support for tmux, graphical displays, and
;;;; multi-byte strings.
;;;; It works in hterm, xterm, and other terminal emulators which support the
@ftrain
ftrain / .tmux.conf
Created January 15, 2014 20:18
A tmux that respects mouse events.
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g base-index 1
setw -g aggressive-resize on
set-option -g status-utf8 on
@jackrusher
jackrusher / gist:3182488
Created July 26, 2012 14:49
Fetching PDF text with attributes in Clojure using PDFBox
(ns pdfbox.core
(:import [org.apache.pdfbox.pdmodel PDDocument]
[org.apache.pdfbox.util PDFMarkedContentExtractor TextPosition]
[java.util ArrayList]))
(defn parse-pdf [filename]
(let [pages (.getAllPages (.getDocumentCatalog (PDDocument/load filename)))
textpool (ArrayList.)
extract-text (proxy [PDFMarkedContentExtractor] []
(processTextPosition [text]
#!/bin/sh
ROOT=$HOME/working-dir
cd $ROOT
URL='http://SOURCE-URL/'
DIR='DEST-DIR/'
pavuk \
-mode sync \
@ewilderj
ewilderj / friends.py
Created December 9, 2010 18:19
Make a graph of your social network from those you follow
# a messy hack written by Edd Dumbill. http://twitter.com/edd
# You may need to rerun this script if you hit a Twitter Error because you
# use up API rate limiting. That's why we pickle the results, so we can resume
# where we left off.
# get the twitter module using 'easy_install twitter'
from twitter.api import Twitter, TwitterError
from twitter.oauth import OAuth