Skip to content

Instantly share code, notes, and snippets.

View cwbeck's full-sized avatar
💭
Building something awesome

Christopher Beck cwbeck

💭
Building something awesome
View GitHub Profile
/*
# 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"
@cwbeck
cwbeck / render.js
Created August 5, 2016 09:23
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);
}
@cwbeck
cwbeck / install_ffmpeg_ubuntu.sh
Last active November 13, 2015 11:07 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/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
@cwbeck
cwbeck / gist:a4539b862c2fafa8e114
Last active December 8, 2015 10:10
Liverail Ad Manager - Unmin.
/*
LiveRail.AdManager
release 2.2.8
build 201511261816
*/
! function(a, b) {
a.getVPAIDAd = b()
}(this, function() {
var requirejs, require, define;
! function(a) {