Skip to content

Instantly share code, notes, and snippets.

@JamesJOliver
JamesJOliver / rakefile
Last active August 29, 2015 13:58 — forked from adam-lynch/Rakefile
Rakefile to change the character encoding on Windows.
task :jekyll do
puts '* Changing the codepage'
`chcp 65001`
puts '* Running Jekyll server'
`jekyll serve -w --drafts`
end
@JamesJOliver
JamesJOliver / HTML Notepad Bookmarklet
Last active December 12, 2015 00:08 — forked from jakeonrails/Ruby Notepad Bookmarklet
Now a HTML notepad bookmark
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/html");</script>
@JamesJOliver
JamesJOliver / Python Notepad Bookmarklet
Last active November 3, 2021 18:03 — forked from jakeonrails/Ruby Notepad Bookmarklet
Python Notepad.This bookmarklet gives you a code editor in your browser with a single click - with python syntax highlighting.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/python");</script>