Skip to content

Instantly share code, notes, and snippets.

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

webdevinci webdevinci

💣
Breaking Stuff! 💣
View GitHub Profile
#updated 3/30/2021
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
/* 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
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('missiles:server');
var http = require('http');
@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"
// 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 / 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
{
"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,
{
"settings": {
"autoplay": true,
"automute": false,
"iosAutoplayInline": true,
"playerType": "precontent",
"appearance": {
"preloader": {
"background": "rgb(0,0,0)",
"loaderType": "three-bounce",
{
"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": {
"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,