Skip to content

Instantly share code, notes, and snippets.

View tjp's full-sized avatar

Janos P Toth tjp

View GitHub Profile
@tjp
tjp / gist:3160264
Created July 22, 2012 16:54
twitter list members
{
users: [
{
id: 7588892,
profile_background_image_url: "http://a0.twimg.com/profile_background_images/342542280/background7.png",
verified: false,
profile_link_color: "0084B4",
following: false,
url: "http://t.co/SSiVavc4",
is_translator: false,
//http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs
var httpAgent = require('http-agent'),
jsdom = require('jsdom'),
sys = require('sys');
var agent = httpAgent.create('www.google.com', ['finance', 'news', 'images']);
//original line:
//agent.addListener('next', function (agent) {
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>kit</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.0.0b1/build/cssreset/reset-min.css&amp;3.0.0b1/build/cssfonts/fonts-min.css" />
<style type="text/css">
div {
background: #eeeeee;
margin: 1em;
padding: 1em;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>kit</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.0.0b1/build/cssreset/reset-min.css&amp;3.0.0b1/build/cssfonts/fonts-min.css" />
<style type="text/css">
.kit-module {
width:400px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>kit</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.0.0b1/build/cssreset/reset-min.css&amp;3.0.0b1/build/cssfonts/fonts-min.css" />
<style type="text/css">
.kit-module {
width:400px;
@tjp
tjp / overlay
Created July 30, 2009 11:53
overlay x y
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>example</title>
</head>
<body>
<div id="myContent" style="background: red; opacity:.5;">
<div class="yui-widget-hd">Overlay Header</div>
<div id="wrapper">
<h1>context menu widget w/ menu plugin</h1>
<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->
<div id="delegate" style="background: #ffeb88;">
<div>first div</div>
<span>span confuses the universe</span>
<div>second div</div>
<div>third div</div>
<div>fourth div</div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Y.on w/o nodelist</title>
<script type="text/javascript" src="http://yui.yahooapis.com/3.0.0b1/build/yui/yui-min.js"></script>
</head>