Skip to content

Instantly share code, notes, and snippets.

View atchyut-re's full-sized avatar

Atchyut Nagabhairava atchyut-re

View GitHub Profile
@anchetaWern
anchetaWern / responsive-voice.js
Created May 16, 2015 09:44
responsive-voice.js
//Look for other responsivevoice instances
/*if (window.parent != null) {
var iframes = window.parent.document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
//iframes[i].style.width = "300px"
}
}*/
if (typeof responsiveVoice != 'undefined') {
console.log('ResponsiveVoice already loaded');
@bknarendra
bknarendra / gist:6496065
Created September 9, 2013 14:07
Download all railscasts videos
require 'mechanize'
a = Mechanize.new { |agent| agent.user_agent_alias = 'Mac Safari'}
url=your_subscription_url
doc=nil
a.get url
for i in 1..420
begin
url="http://railscasts.com/episodes/#{i}"
a.get url do |page|
doc=page.parser