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
#!/usr/bin/env | |
# Convert Evernote notes in HTML to Markdown | |
# requires reverse_markdown (https://github.com/xijo/reverse_markdown) | |
# Preserve timestamp from Evernote | |
function get_timestamp { | |
reverse_markdown "$1" | \ | |
sed -n '/<meta name="created" content="/p' | \ | |
sed -e 's/<meta name="created" content="//g' | \ |
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
// ----- SuperWatcher JQuery extension ----- | |
var watcher = new SuperWatcher(); | |
// Dynamically modify a CSS property when function result changes | |
$.fn.dynamicCss = function (prop, func) { | |
// Currying the $.css method | |
watcher.add(func.bind(this), this.css.bind(this, prop), prop); | |
// For function chaining | |
return this; |
NewerOlder