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
;;* Helper functions | |
;; Taken from http://endlessparentheses.com/emacs-narrow-or-widen-dwim.html | |
(defun narrow-or-widen-dwim (p) | |
"Widen if buffer is narrowed, narrow-dwim otherwise. | |
Dwim means: region, org-src-block, org-subtree, or | |
defun, whichever applies first. Narrowing to | |
org-src-block actually calls `org-edit-src-code'. | |
With prefix P, don't widen, just narrow even if buffer |
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 | |
# NB: the script file must be in the same directory as media files | |
FILES=./*.webm | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
ffmpeg -i "$f" -ss 10 -vframes 1 "$f.png" | |
done |
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
/**********************************************/ | |
/* | |
/* IR_Black Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |