Skip to content

Instantly share code, notes, and snippets.

@johntynan
johntynan / CreateBookmarklet.html
Last active March 3, 2017 01:13 — forked from johnfmorton/CreateBookmarklet.html
Bookmarklet to auto-refresh any page at some point in the near future.
<!DOCTYPE html>
<html>
<head>
<title>Page Refresher</title>
</head>
<body>
<h1>Page Refresher</h1>
<p>Drag the link below to your toolbar to install the "page refresher" bookmarklet. Press the bookmarklet and you will be prompted for when you'd like the page you're on to be refreshed in your browser.</p>
<a href="javascript: (function () { var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://gist.githubusercontent.com/johntynan/fb858830754b424b222a28c536f8505e/raw/f80b30fcb17daf6452a4292f2e2b88eb478174b2/pagerefresher.js'); document.body.appendChild(jsCode); }());">Refresher</a>
@johntynan
johntynan / ontimedcomments.js
Created April 14, 2012 08:51 — forked from leemartin/ontimedcomments.js
OnTimedComments Example
SC.initialize({
client_id: "YOUR_CLIENT_ID"
});
SC.whenStreamingReady(function() {
SC.stream(TRACK_ID, {
ontimedcomments: function(comments) {
var comment, _i, _len;
for (_i = 0, _len = comments.length; _i < _len; _i++) {