Skip to content

Instantly share code, notes, and snippets.

const adToAdhere = "zeus_top-ad"
// The amount of space between the container of your leaderboard and the top of your website
const spaceFromTop = 300
let adToAdhereRendered = false
const detectAdRenderComplete = () => {
window.googletag = window.googletag || {}
window.googletag.cmd = window.googletag.cmd || []
const afterRenderEnded = event => {
const slotId = event.slot.getSlotElementId()
if (slotId === adToAdhere) {

Keybase proof

I hereby claim:

  • I am jonnyd55 on github.
  • I am jonnyd55 (https://keybase.io/jonnyd55) on keybase.
  • I have a public key ASDYVvPM7C1czwKkyeku9Tb3_wDuxCIz1jKYBA1BfbIx8Ao

To claim this, I am signing this object:

@Jonnyd55
Jonnyd55 / models.py
Created June 23, 2015 16:55
Autocomplete lookups in flask views.
from app import db
class School(db.Model):
id = db.Column(db.Integer, primary_key=True)
unitid = db.Column(db.Integer, unique=True)
name = db.Column(db.String(228))
@Jonnyd55
Jonnyd55 / cookie.js
Created June 19, 2015 16:10
Get specific cookie