Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Sewell impishj

View GitHub Profile
@impishj
impishj / client.js
Last active Nov 30, 2017 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
View client.js
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = window.location.hash;
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
View example podcast post
---
layout: episode
date: 2013-01-09 21:25:18
title: Episode 14 - Fishy Fingers
duration: 18:24
length: 17068092
link: http://pubpodcast.s3.amazonaws.com/pub014.mp3
---
Darren Scott and Adam Wilcox return for a new season of podcasts. In this episode they discuss dating, breakups, Jimmy Savile, and mistaken identity.
View podcast.xml
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
You can’t perform that action at this time.