Skip to content

Instantly share code, notes, and snippets.

View timdorr's full-sized avatar
🚪

Tim Dorr timdorr

🚪
View GitHub Profile
@timdorr
timdorr / lol.js
Last active February 16, 2016 22:16 — forked from wesbos/lol.js
// paste in your console
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = document.body.textContent;
this.speak(msg);
};
@timdorr
timdorr / railsconf_schedule.rb
Last active August 29, 2015 14:19 — forked from sionide21/railsconf_schedule.rb
Make the Schedule Items at http://railsconf.com/schedule clickable to add to your Google Calendar
var authuser = 2; // Change if you have multiple Google accounts logged in. This is zero-indexed.
$("<script/>", {type: "text/javascript", src: "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"}).appendTo(document.body);
$(".session-content a").on("click", function() { event.stopPropagation(); });
$(".session-content").on("click", function() {
var session = $(this),
title = session.find(".session-title"),
details = title.find("a")[0].href,
speaker = session.find(".speaker-name"),