Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Building something awesome

Christopher Beck cwbeck

💭
Building something awesome
View GitHub Profile
@cwbeck
cwbeck / gist:a4539b862c2fafa8e114
Last active Dec 8, 2015
Liverail Ad Manager - Unmin.
View gist:a4539b862c2fafa8e114
/*
LiveRail.AdManager
release 2.2.8
build 201511261816
*/
! function(a, b) {
a.getVPAIDAd = b()
}(this, function() {
var requirejs, require, define;
! function(a) {
@cwbeck
cwbeck / install_ffmpeg_ubuntu.sh
Last active Nov 13, 2015 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
View install_ffmpeg_ubuntu.sh
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
#14.04 complaints..
#libfaac, requires multiverse
View render.js
define(['require','jq','project/ads/request','core/log'],function(require, jq, adRequest, log) {
return {
adRenderStack: [],
processRenderStack: function(){
var self = require('project/ads/render');
while(self.adRenderStack.length > 0){
log.display('Loader: Rendering Won Unit');
var winData = self.adRenderStack.pop();
self.render(winData.bid);
}
View example.scala
/*
# This is present in the config file... (Play 2.5.14)
# cron.schedule = [
# {
# job_class_name = "cron.Bootstrap"
# every = "once"
# },
# {
# job_class_name = "cron.PushToFirehose"
# every = "minute"