Skip to content

Instantly share code, notes, and snippets.

View egm0121's full-sized avatar
⚛️
https://www.generationatomic.org/why-nuclear/

Giulio Dellorbo egm0121

⚛️
https://www.generationatomic.org/why-nuclear/
View GitHub Profile
@egm0121
egm0121 / index.html
Created January 31, 2013 13:48
real time user tracking socket.io + Redis
<script src="socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost');
socket.on('news', function (data) {
console.log(data);
});
socket.emit('setinfo',{'bella merda':navigator.userAgent})
</script>
<script src="socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost');
socket.on('news', function (data) {
console.log(data);
});
socket.emit('my other event', { my: 'data' });
</script>
Ciao, sono un piccolo socket.io
@egm0121
egm0121 / API.md
Created December 18, 2012 10:14 — forked from iros/API.md

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: