Skip to content

Instantly share code, notes, and snippets.

@gailimov
gailimov / gist:1362347
Created November 13, 2011 17:12
Pretty awesome parser of advices from http://fucking-great-advice.ru
# coding: utf-8
# Pretty awesome parser of advices from http://fucking-great-advice.ru
# PHP version from Dmitry Zudochkin: https://gist.github.com/1303241
# Author: Kanat Gailimov <gailimov@gmail.com> (http://gailimov.info) with love :)
require 'json'
require 'open-uri'
require 'cgi'
<map name="Map">
<area shape="rect" coords="48,-3,175,53" href="/index.php">
<area shape="rect" coords="345,24,434,48" href="/sections/sitemap">
<area shape="rect" coords="479,27,558,49" onclick="window.print()" href="#" >
<area shape="rect" coords="710,27,731,50" href="/index.php">
<area shape="rect" coords="737,28,753,49" onclick="bookmark(this)" href="#">
<area shape="rect" coords="757,25,776,44" href="#">
<area shape="rect" coords="780,26,797,43" href="#">
<area shape="rect" coords="802,25,816,43" href="#">
<area shape="rect" coords="823,27,842,42" href="mailto:president@aitkaz.com">
<script>
function getBrowserInfo() {
var t,v = undefined;
if (window.chrome) t = 'Chrome';
else if (window.opera) t = 'Opera';
else if (document.all) {
t = 'IE';
var nv = navigator.appVersion;
var s = nv.indexOf('MSIE') + 5;