Skip to content

Instantly share code, notes, and snippets.

@jcohen
jcohen / output
Created August 7, 2012 22:25
Upload photos using the Flickr API from node (and Mikeal's request using oauth and multipart)
$ time node upload.js
Error: null
Body: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photoid>7735964772</photoid>
</rsp>
real 0m5.517s
user 0m0.106s
@jcohen
jcohen / browser.document.innerHTML output.html
Created April 27, 2011 16:55
Zombie.js query selector issue
<!--
This is the output of: console.log(browser.document.innerHTML) in zombie.js
-->
<html><head>
<script charset="utf-8" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
</head>
<body>
<script>
(function test() {
var content = '<div class="topBanner"><div class="companyLogo"></div><h1 class="textOffScreen">My Title</h1></div><div class="viewPadding"><h2 class="textOffScreen">login</h2><div id="errorMessage" class="message marginBottom10"></div><form id="loginForm" method="post" action="/login"><ol class="form"><li><label>Email</label><input id="loginUsername" name="user" type="email" autocomplete="true" value="[email protected]"></li><li><label>Password</label><input id="password" type="password" name="password"></li><li><input class="loginButton" type="submit" value="login"></li></ol><div class="clear"></div></form></div><a class="button centered" href="/loginHelp" data-view-link="login-help-container">Sign In Help</a><div class="button cle