Skip to content

Instantly share code, notes, and snippets.

@julionc
julionc / 00.howto_install_phantomjs.md
Last active June 7, 2024 11:29
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@nanek
nanek / native-renderer.js
Created December 10, 2018 15:13
Prebid.js native renderer
window.track = function (action, adId) {
var message = {message: 'Prebid Native', adId: adId};
if (action === 'click') { message.action = 'click'; }
window.parent.postMessage(JSON.stringify(message), '*');
}
var render = function(bid, adUnitDivId) {
// Can include CSS styles here, or just use styles from your site.
var markup = `
<style>