CodeMirror: Emacs bindings demo
CodeMirror: User Manual
Flows of energy
CodeMirror/lib/util at master · marijnh/CodeMirror · GitHub
Implementing a Syntax-Highlighting JavaScript Editor In JavaScript,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.1355325884,d.dmQ&fp=bbcdca4f4ff7f7a5&bpcl=39967673&biw=1037&bih=628
codemirror vs ace - Google Search
3 Browser Based Editors to Watch | End of Line
Sandeep Shetty's Blog: CodeMirror vs. Ace
ACE - The High Performance Code Editor for the Web
Sign up for Standard or Premium! | Cloud9 IDE | Online IDE – Your code anywhere, anytime
ajaxorg/ace · GitHub
Ace Kitchen Sink

have been happy using svgfig for python and svg integration

requested [2011.02.19 12:00:25] todo 20110216
python to svg library

For each active instance of emacs:

open up the file called instances.txt
make a new entry
(keywords describing what you're doing with the files that are open)
press M-x jp (journal print open file paths)
save it

also check the script for that context
describe the workspace state
and make sure everything open is noted there.

close emacs (repeat for any other emacs open)

previously [2009.01.15 16:00:43]

If on a machine with multiple workspaces or desktops,
it's probably easiest to update the todo list for that machine
to reflect each desktop's current task.

Now that desktops can be ordered, that order should reflect todo list priority.

Alternatively for a machine with multiple workspaces,
manually note which workspaces are open in a new journal entry:
[now] instances [system]

I've been looking into Django more. I was wondering the best way to automatically return the correct response format for any given type of request. Specifically, I'm interested in distinguishing between html and json requests.

In the past I've just appended '/json' to a given url to get json data, but then I was curious how Rails seems to automatically know what the request format was. According to this:

"Rails determines the desired response format from the HTTP Accept header submitted by the client."

It looks like there is similar functionality in Django, but the routing is not as built in as in Rails.


You can use request.is_ajax(). But that requires that the HTTP_X_REQUESTED_WITH header is set. Most JavaScript libraries do this automatically, but if you're using some other type of client, you'll need to make sure it sets it as well. Alternatively, you can pass a querystring such as ?json with the URL and then check request.GET.has_key('json'), which is probably a little more foolproof.

More details are available here: