miniblog.
May 14, 2013
Python gotcha of the day: an empty generator is truthy. Grr.
Wilfred Hughes
May 14, 2013
I've always pronounced __init__ as "under under init" but apparently "dunder init" has precedence:
https://wiki.python.org/moin/DunderAlias
Wilfred Hughes
May 13, 2013
I'm not saying I use #emacs a lot, but my control-key foot pedal has just given up the ghost.
Wilfred Hughes
May 13, 2013
Fixing injection bugs properly
https://www.more-magic.net/posts/structurally-fixing-injection-bugs.html
(longer blog post, worth your time)
Structurally fixing injection bugs | More magic
www.more-magic.net/posts/structurally-fixing-injection-bugs.html
Wilfred Hughes
May 13, 2013
https://github.com/jcoglan/coping
The most elegant solution escaping HTML that I've ever seen.
GitHub - jcoglan/coping: An experimental type-safe/context-aware templating library
An experimental type-safe/context-aware templating library - jcoglan/coping
Wilfred Hughes
May 9, 2013
#Emacs tip: if you want to discard TAGS tables you've been using, use tags-reset-tags-tables (I reimplemented this before knowing about it!)
Wilfred Hughes
May 8, 2013
.@documentcloud Looking at the underscore.js docs, I'd find it easier to skim if each category was sorted alphabetically. Do you agree?
Wilfred Hughes
May 8, 2013
TIL that #Python has the -B switch, or the PYTHONDONTWRITEBYTECODE environment variable (since 2.6). Handy.
Wilfred Hughes
May 7, 2013
Interesting question: what would you do if Python had macros? (My thoughts:
https://stackoverflow.com/a/16174524/509706
)
Wilfred Hughes
May 4, 2013
A cute hack with elnode to show off what you're currently editing:
https://gist.github.com/Wilfred/5519156
#emacs
show-your-colours.el --- an HTTP server showing the current buffer fontified
show-your-colours.el --- an HTTP server showing the current buffer fontified - show-your-colors.el
Wilfred Hughes
May 4, 2013
Wow, Emacsers were writing CGI scripts with elisp in 2000 (scroll to cgi.el):
https://emarsden.chez.com/downloads/
Wilfred Hughes
May 3, 2013
I'm excited to announce mustache.el, a powerful templating library for #emacs lisp!
GitHub - Wilfred/mustache.el: A mustache templating library for Emacs
A mustache templating library for Emacs. Contribute to Wilfred/mustache.el development by creating an account on GitHub.
Wilfred Hughes
May 3, 2013
AsciiCasts -- really neat approach for screencasts with a CLI:
Domain availability | introvert.com
This domain name is for sale from introvert.com. Make an offer in writing. No calls required.
Wilfred Hughes
May 2, 2013
https://github.com/jeffh/sniffer/
and
https://github.com/gfxmonk/autonose
are both excellent for writing Python unit tests. No solution for Django though (AFAIK).
GitHub - jeffh/sniffer: Python auto testing tool.
Python auto testing tool. Contribute to jeffh/sniffer development by creating an account on GitHub.
GitHub - timbertson/autonose: autotest-like runner for nosetests
autotest-like runner for nosetests. Contribute to timbertson/autonose development by creating an account on GitHub.
Wilfred Hughes
Apr 27, 2013
Feeling very complimented that a blog post of mine made it onto Hacker News! Thanks
@rachbelaid
:) (didn't know you were an #emacs guy)
Wilfred Hughes
1
...
22
23
24
25
26
...
32
Showing 346-360 of 470 posts