This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Append a special DFP bigbox slot that will update at set interval automatically. The interval is controlled by | |
| * ad operations using the global config file | |
| * @param {string} target ID of element that slot is appended to. | |
| * @return {string} The new slot name. | |
| */ | |
| api.appendAutoSlot = function(target){ | |
| if( typeof(target) !== "string" ){ | |
| throw new SniAds.SniAdsError("Invalid argument: target value must be a string."); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Delay initialization of the gallery module until library is ready. | |
| var galleryCfg = {foo:bar}; // Gallery settings | |
| SniAds.ready(function(){ | |
| // You can put any code in here | |
| SniAds.Gallery.init(galleryCfg); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Copy all public methods and modules to clipboard | |
| var api = []; | |
| for( var method in SniAds ){ | |
| if(SniAds.hasOwnProperty(method) ){ | |
| api.push(method); | |
| } | |
| copy(api) | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!-- Current bigbox code --> | |
| <div id="bigbox"> | |
| <script> | |
| if(typeof mdManager != "undefined"){ | |
| BigboxAd(5, mdManager.getParameterString("keyterm")); | |
| } else { | |
| BigboxAd(5); | |
| } | |
| </script> | |
| </div> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var dfpAdDescriptors = []; | |
| /** | |
| * Photo Descriptor Configuration | |
| * | |
| * Each custom photo descriptor set as a item in the dfpAdDescriptors array and it an object with two propeties. The keys property is the set of page key-value pairs to match against. All keys must match for the descriptor to pass. The descriptor property is the data itself. When setting up, the keys should be as specific as possible to avoid un-desired matching. | |
| * | |
| * In cases where two or more blocks match on a page, the last matching block will be used. | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Run the queued functions. | |
| var SniAdsQueue = function() { | |
| this.push = function() { | |
| var method, methodParts; | |
| for (var i = 0; i < arguments.length; i++) { | |
| if (typeof arguments[i] === "function") { | |
| arguments[i](); | |
| } else { | |
| if( typeof(method) === "string" ){ | |
| // If method is string. Than we assume it is a submodule like 'Gallery.init' | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | split -l 10000 sourceFile.sql splitFilePart- | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function(min, max){ | |
| return Math.floor(Math.random() * max) + min; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (function(console){ | |
| console.save = function(data, filename){ | |
| if(!data) { | |
| console.error('Console.save: No data') | |
| return; | |
| } | |
| if(!filename) filename = 'console.json' |