Skip to content

Instantly share code, notes, and snippets.

View knyga's full-sized avatar
🇺🇦

Oleksandr Knyga knyga

🇺🇦
View GitHub Profile
@knyga
knyga / gist:9558652
Created March 14, 2014 22:50
Freelansim.ru, get emails by keyword [outofdate]
var request = "http://freelansim.ru/freelancers?freeonly=true&page=<?%page%?>&q=ruby+on+rails",
pcount = $('.gap').next().text() || 5,
emails = [];
var stat = {
cur: 0,
total: 0,
left: function() {
return this.total - this.cur;
}
};
@knyga
knyga / adscodes__280214
Last active August 29, 2015 13:56
Adsense armorgames codes
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- armorgames, 728x90 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-0350114752821968"
data-ad-slot="6629306714"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@knyga
knyga / mizzle - generate content table
Last active August 29, 2015 13:55
Mizzle - получить список товаров со страницы агрегатора или категорий
var Product = function($dom) {
this.id = /\/product\/(\d+)/.exec($dom.find('a:last').attr('href'))[1];
this.name = $dom.find('a:last').text();
this.href = $dom.find('a:last').attr('href')
if (this.href.indexOf('http') < 0) {
this.href = "http://mizzle.ru" + this.href;
}
};