This file contains hidden or 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
<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>W3Schools Home Page</title> | |
<link>http://www.w3schools.com</link> | |
<description>Free web building tutorials</description> | |
<item> | |
<title>RSS Tutorial</title> | |
<link>http://www.w3schools.com/rss</link> |
This file contains hidden or 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
<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>W3Schools Home Page</title> | |
<link>http://www.w3schools.com</link> | |
<description>Free web building tutorials</description> | |
<item> | |
<title>RSS Tutorial</title> | |
<link>http://www.w3schools.com/rss</link> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>Twitter Stream no @replies/RT</title> | |
<description>Pipes Output</description> | |
<link>http://pipes.yahoo.com/pipes/pipe.info?_id=94deb73d5821d47b8d4cea719cf49ba7</link> | |
<atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=94deb73d5821d47b8d4cea719cf49ba7&_render=rss&page=2"/> | |
<pubDate>Tue, 04 Sep 2012 08:44:37 +0000</pubDate> | |
<generator>http://pipes.yahoo.com/pipes/</generator> | |
<item> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>Twitter Stream no @replies/RT</title> | |
<description>Pipes Output</description> | |
<link>http://pipes.yahoo.com/pipes/pipe.info?_id=94deb73d5821d47b8d4cea719cf49ba7</link> | |
<atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=94deb73d5821d47b8d4cea719cf49ba7&_render=rss&page=2"/> | |
<pubDate>Tue, 04 Sep 2012 08:44:37 +0000</pubDate> | |
<generator>http://pipes.yahoo.com/pipes/</generator> | |
<item> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dashboard integration example</title> | |
<link rel="stylesheet" href="https://www.gosquared.com/dashboard/css/dashboard.css"> | |
</head> | |
<body> | |
<div id="dashboard"></div> | |
<script> | |
var GS = { |
This file contains hidden or 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
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
exports.version = '0.7.7'; | |
var checkForInputs = function($node, data) { | |
$node.each(function(i, elem) { | |
if(this[0].name === 'input') { | |
$(this[0]).attr('value', data); | |
}else { | |
$(this[0]).html(data); |
This file contains hidden or 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
require(["jquery", "utils", "routeHelpers"], function() { | |
// get new page fragment and swap it out. | |
var frax = function(context, next) { | |
if(!context.init) { // No need to fetch the page as its the initial page load and markup will be in the page. | |
$.get(context.canonicalPath+'?_frax=true', function(markup) { // gets the page without the layout. | |
$('#container').html(markup); | |
next(); | |
}); | |
}else { |
This file contains hidden or 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
/* | |
Blend middleware for Express.js | |
Exposes not only the data but also the object which would get passed to the templating language so that we can do the rendering in the browser. | |
An example usage: | |
*/ | |
res.blend({ |
This file contains hidden or 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
var _blend = function(req, res, next) { | |
res.blend = function(params) { | |
params.buildData(params.params, function(e, d) { | |
if(req.headers['content-type'] === 'application-json') { | |
res.json(d); | |
} else { // render html | |
params.buildSelectors(d, function(selectors) { | |
if(req.headers['content-type'] === 'sizlate') { | |
var options = { |
This file contains hidden or 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
var frax = function(context, next) { | |
if(!context.init) { | |
$.get(context.canonicalPath+'?_pjax=true', function(markup) { | |
if(context.delay) { | |
context.pending = markup; | |
}else { | |
context.container.html(markup); // cached $('#container') | |
} | |
next(); | |
}); |