- markdown previewer
- invite a friend (maybe it's only in private mode?)
- tab completion (Date.[now()]) for example
- how do i update the files if github has changed?
- rename folder not working in FF10
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <style> | |
| body { | |
| font-face: Sans-Serif; | |
| } | |
| h1 { | |
| font-face: "Fake-Font"; | |
| } |
a.
<body>
<h1>My Page</h1>
<div>
<h2>My Section</h2>
</div>
| // HTML5 Validator using http://about.validator.nu/#api | |
| exports.validate = function(data, done) { | |
| var url = data.url | |
| var html = data.html | |
| if (!url && !html) return done(new Error("You forget a URL for the validator")) | |
| if (html) return complete(html) | |
| utils.printTitle("HTML5 Validator") | |
| request(url, function(err, res, body) { |
SVG is arguably going to be the main image format of the modern web. I recently wrote an article for Safari Books Online called SVG Icons for New Devices that covers some of the basics of dealing with SVG. This article covers more the pain points of using SVG in production and as it turns out there are many.
Here's how you link to your amazing vector image.
<img src="/images/logo.svg">
| ~/Sites/no.desk [master] $ jitsu deploy | |
| info: Welcome to Nodejitsu xjamundx | |
| info: It worked if it ends with Nodejitsu ok | |
| info: Executing command deploy | |
| info: Analyzing your application dependencies in app.js | |
| info: Creating snapshot 0.0.3 | |
| error: Error running command deploy | |
| error: Nodejitsu Error (500): Internal Server Error | |
| error: npm WARN package.json no.desk@0.0.3 No README.md file found! | |
| npm http GET http://nj-npm.irisnpm.com/express/2.5.8 |
| git_prompt () | |
| { | |
| if ! git rev-parse --git-dir > /dev/null 2>&1; then | |
| return 0 | |
| fi | |
| git_branch=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p') | |
| if git diff --quiet 2>/dev/null >&2; then | |
| git_color="${c_git_clean}" |
| init: function() { | |
| var html = "<!doctype html><html lang='en'>" + $('html').html() + "</html>"; | |
| var validatorURL = "http://html5.validator.nu/?out=json"; | |
| $.post({url: validatorURL, headers: {"Content-type": "text/html"}, body: html}, | |
| function(err, res, body) { | |
| alert('response: '+res); | |
| if (err) alert(err); | |
| var data = JSON.parse(body); | |
| console.log(data); | |
| }); |