Skip to content

Instantly share code, notes, and snippets.

@stuwilli
stuwilli / mraid-image-splash-template.html
Created September 18, 2015 14:54
MRAID Splash Screen Template
<script src="mraid.js"></script>
<style>
body {
background: black;
margin: 0;
padding: 0;
}
#advert {
width: 640px;
}
{
"ecmaVersion": 5,
"libs": [
"browser",
"jquery"
],
"plugins": {
"complete_strings": {},
"node": {},
"lint": {},
(function() {
function getFrame() {
if (!document.getElementById('akami-research-frame')) {
var iframe = document.createElement('iframe');
iframe.id = 'akami-research-frame';
iframe.src = 'about:blank';
iframe.style.width = '1px';
@stuwilli
stuwilli / gist:1a4d503f6e8db523540e77f381990cb9
Created July 6, 2016 13:49 — forked from jacqui/gist:983051
Redis SORT command examples
# Optimized for writes, sort on read
# LVC
redis.hset("bonds|1", "bid_price", 96.01)
redis.hset("bonds|1", "ask_price", 97.53)
redis.hset("bonds|2", "bid_price", 95.50)
redis.hset("bonds|2", "ask_price", 98.25)
redis.sadd("bond_ids", 1)
redis.sadd("bond_ids", 2)