Skip to content

Instantly share code, notes, and snippets.

View webdevinci's full-sized avatar
💣
Breaking Stuff! 💣

webdevinci webdevinci

💣
Breaking Stuff! 💣
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:noNamespaceSchemaLocation="vast.xsd">
<Ad id="3939346">
<Wrapper>
<AdSystem version="1">RubiconProject</AdSystem>
<VASTAdTagURI><![CDATA[https://bid.g.doubleclick.net/dbm/vast?dbm_c=AKAmf-CWN34-8_1E_uwR8ypBu0R0jubKPyJj57EjgbZZwLUvIFlj1gswlHciLTBwNGPRBr_sryvN&dbm_d=AKAmf-DMgHtaMc0bd1sqnkoBL5WEXu6kGVKOZrE2oOaigvcxYKOiJ8Qhy5HjMNKGG8uCz8G5MILsk3YBLw-fkhc7YtMc7vTs4oFuAFNERH21WhGTJHqFVJOfYgDUn591-cSEsy03WivrjwwvmByYHXbZgoLDow7oSUi_HQgPUmPmUrcm5YkOoC1IXX_Pfk6KOu7RryYp-FPkW7gJWy2MjU8IKnCmhCDHpZZQWEbvotVACVyfqyHaeKRijDAJPsAuQ6AeYKthh4ZC5O8r_1RqMZ76XIQwsVDnYmy2cNBm_ERdxoXssl7W0HWGEy5iIugCiTvOxxj8rBxfqlAYfI93NQ_jrcF5zW7Bwtf9f3Wj58wzrJjpRHeqw1sew7rd0xu0U89ZXJH1PCAotHLffS9WUbHxaQCrKaAKCcp7K7E7OZ4gg9wZIki-qJ9ao1WduLmVKTHLH0BRtctIjiiDAnCDV3f47HsqutRyvp9wfTwKURAV1O6Xd7Al_epZz7qZXv-11EfyLufRK6JazS-IG5CrTt1w_me4x5MBzIbEKuBx3quS1WmjkjLem7vAH8gx9ZdUc4iz9Xt_wLmVM7NJJrXJ-1SK_JQzw7DJnWHNHwjwTmkN6UVV6NwSQL0U804tJWNZYI
{
"settings": {
"title": "Ad-tech retrieves SpotX ad",
"autoplay": true,
"iosAutoplayInline": true,
"branding": true,
"theme": "//cdn.playwire.com/bolt/js/zeus/themes/orion/main.js",
"share": false,
"automute": true,
"loop": false,
{
"settings": {
"iosInlineAutoplay":true,
"title": "Ride Along Trailer",
"branding": true,
"theme": "//cdn.playwire.com/bolt/js/zeus/themes/orion/main.js",
"share": true,
"autoplay": true,
"automute": false,
"loop": false,
{
"settings": {
"autoplay": true,
"automute": false,
"iosAutoplayInline": true,
"playerType": "precontent",
"appearance": {
"preloader": {
"background": "rgb(0,0,0)",
"loaderType": "three-bounce",
{
"settings": {
"title": "Test Video",
"autoplay": true,
"minimumViewability": 50,
"iosAutoplayInline": false,
"branding": true,
"theme": "//cdn.playwire.com/bolt/js/zeus/themes/orion/main.js",
"share": true,
"automute": true,
@webdevinci
webdevinci / GlobalTimer.js
Last active December 11, 2017 15:35
This code snippet should be used in the case of a script that is running multiple window.setInterval() timers. Instead of creating multiple timer instances, GlobalTimer holds on to an array of timers, executing them in order and removing them when their return sequence has been reached. When there are no timers left, the GlobalTimer's interval w…
/*
STILL TODO: Currently the interval is set to 10ms (since that was the fastest timer out of all of the ones I was dealing with at the time).
- Need to add a parameter to get the
*/
/**
* GlobalTimer {Class} - class to pack multiple setInterval calls into a single interval
* NOTE: The 'globalTimer' variable is defined above Timer class and instantiated within the Timer class;
* only Timer objects should be instantiated
* @constructor
// npm i express
let app = require('express')();
app.get('/', (req, res) => res.send(req.connection.remoteAddress))
app.listen(3000, () => console.log('Example app listening on port 3000!'))
module.exports = app;
@webdevinci
webdevinci / esbanner.json
Created October 4, 2017 21:02
epic stream bottom left sticky
{
"id": 926,
"url": "gamezone.com",
"version": 3,
"settings": {
"publisherId": 343,
"isMobile": "auto",
"reportAdLinks": true,
"blueKai": true,
"category": "Games"
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('missiles:server');
var http = require('http');
/* prebid.js v0.25.0-pre
Updated : 2017-06-09 */
!(function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)})([(function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){e.forEach((function(e){if(u(e.called)===j)try{e.call(),e.called=!0}catch(t){A.logError("Error processing command :","prebid.js",t)}}))}function o(e){var t=y._bidsRequested.map((function(e){return e.bids.map((function(e){return e.placementCode}))})).reduce(l.flatten).filter(l.uniques);return A.contains(t,e)?!0:(A.logError('The "'+e+'" placement is not defined.'),void 0)}function a(){y._bidsRequested=[],y._bidsReceived=y._bidsReceived.filter((function(e){return!y._adUnitCodes.includes(e.adUnitCode)}))}function s(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defau