Skip to content

Instantly share code, notes, and snippets.

View davinmsu's full-sized avatar
🐖
Thinking about old friends

Ivan Dashkevich davinmsu

🐖
Thinking about old friends
View GitHub Profile
/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.3",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b
/*
* Note: Compatibility async embed codes;
*/
(function(){
parent.adfox_debug = parent.adfox_debug || {};
parent.adfox_debug['banner_978993'] = {
load: 1,
onRender: 0,
altCallback: 0,
iframe: document
(function(){
var spicyTargeting = 'extra1=&extra2=&extra3=&extra4=';
if (parent.handlebarsData.user.spicy) {
spicyTargeting = parent.handlebarsData.user.spicy
}
parent.drawFullScreen({
type: 'spicy',
url: 'http://adv.sspicy.ru/show?clbk=sspicy_1435782206952&adslot_id=395&' + spicyTargeting + '&no_json=1&ref=',
trackingURL: '%trackingURL%',
closeTimer: '%user1%',
- t = '[{"guid":"184381","category":13,"category_title":"Светская жизнь","title":"Это неожиданно: родственники среди звезд","body":"\u003cp\u003eНИКОЛАС КЕЙДЖ И СОФИЯ КОППОЛА.\n .\n \u003c/p\u003e\u003cfigure\u003e\u003cimg src=\"http://n1s1.hsmedia.ru/03/61/6b/03616bc156ca1d9d090556b736722356/580x381_1_07432e463308eef9a998be9f57e5ad29@690x454_0xd42ee42a_523067691440756745.jpeg \" alt=\"НИКОЛАС КЕЙДЖ И СОФИЯ КОППОЛА\"/\u003e\u003c/figure\u003e\u003cp\u003eГолливудские знаменитости — двоюродные брат и сестра. Когда Николас решил стать актером, первым делом, сменил родную фамилию Коппола на псевдоним Кейдж. Не хотел, чтобы его обвиняли в «семейном покровительстве» со стороны именитого дяди Фрэнсиса — режиссера \"Крестного отца\". Соответственно, дочь Копполы-старшего — София, пошедшая по стопам папы, приходится Кейджу двоюродной сестрой. \u003c/p\u003e \u003cp\u003eХОАКИН ФЕНИКС И БЕН АФФЛЕК.\n .\n \u003c/p\u003e\u003cfigure\u003e\u003cimg src=\"http://n1s1.hsmedia.ru/d6/85/1
$ ->
data = []
$('.q').on 'click', ->
$q = $(this)
return true if $q.hasClass 'disabled'
isValid = $q.data('valid') == 1
$q.addClass 'selected'
question = $q.data('question')
$(".q[data-question=#{question}]").addClass 'disabled'
$q.addClass if isValid then 'valid' else 'invalid'
#container
h1 Новый формат видеобаннера
#frame
a#go
#strip
= image_tag 'videobanner/sprites/sprite4_0.jpg'
= image_tag 'videobanner/sprites/sprite4_1.jpg'
= image_tag 'videobanner/sprites/sprite4_2.jpg'
= image_tag 'videobanner/sprites/sprite4_3.jpg'
threads = []
threads << Thread.new do
#ololo
end
threads << Thread.new do
#ololo
end
threads << Thread.new do
#ololo
end
GC.copy_on_write_friendly = true if GC.respond_to? :copy_on_write_friendly=
before_exec do |_|
ENV['BUNDLE_GEMFILE'] = "#{@dir}/Gemfile"
end
before_fork do |server, _|
old_pid = "#{server.config[:pid]}.oldbin"
if File.exist?(old_pid) && server.pid != old_pid
begin
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: 'R-144034-3',
renderTo: 'yandex_ad_R-144034-3',
async: true
});
});
t = d.getElementsByTagName('script')[0];
(function() {
var banner = parent.document.getElementById('AdFox_banner_%random1%');
banner.innerHTML =
'<div id="div-gpt-ad-30474309">' +
'<script type="text/javascript">' +
'googletag.cmd.push(function() { googletag.display("div-gpt-ad-30474309"); });' +
'</script>' +
'</div>';
})();