Skip to content

Instantly share code, notes, and snippets.

View eddieespinal's full-sized avatar

Eddie Espinal eddieespinal

View GitHub Profile
@mjonesjr90
mjonesjr90 / super-auction-guidance.md
Last active January 14, 2019 14:32
Super Auction Guidance

Super Auction Guidance

Super Auction gives you access to multiple demand sources at once in real-time. By calling the requestBid API, ONE Mobile will produce a bid response containing ad markup and a bid price. Once you get the bid, you decide what to do with it. Some of your options are:

  • Display the ad
  • Send it to your primary SSP - in many cases this is MoPub or DFP
  • Insert it into your proprietary waterfall

Usage with Proprietary Waterfall

If you have a custom/proprietary waterfall, you need to take our bid response and insert it into your own waterfall. The gist of this will be to call our requestBid API, determine if we return a bid, and if a bid is returned you need to dynamically insert that bid response in your waterfall.

Let's look at a waterfall with Partner A, B, C, and D. The following historic eCPMs apply to these:

@ecovictoriano
ecovictoriano / python-ffmpeg-waveform.md
Last active February 27, 2023 20:19
Generate waveform image from audio file using FFMPEG

Generate waveform image from audio file using FFMPEG

This will generate waveform images (jpg) for all files inside media/audios and media/videos to a directory media/waveforms following the sufolder structure of media

Folder structure

Audio/video folder structure

|-- media
|   |-- audios
|   |-- videos
@stefanwuthrich
stefanwuthrich / middleware.go
Created November 21, 2017 06:01
Casbin Authorization for qiangxue/golang-restful-starter-kit
package util
import (
"net/http"
"github.com/casbin/casbin"
"github.com/qiangxue/golang-restful-starter-kit/app"
"github.com/go-ozzo/ozzo-routing"
)
// Authorizer is a middleware that controls the access to the HTTP service, it is based
@ShawnHymel
ShawnHymel / Endless Runner bb.png
Last active September 18, 2020 12:09
Endless Runner Game
Endless Runner bb.png
@saoudrizwan
saoudrizwan / Storage.swift
Last active October 27, 2021 01:51
Helper class to easily store and retrieve Codable structs from/to disk. https://medium.com/@sdrzn/swift-4-codable-lets-make-things-even-easier-c793b6cf29e1
import Foundation
public class Storage {
fileprivate init() { }
enum Directory {
// Only documents and other data that is user-generated, or that cannot otherwise be recreated by your application, should be stored in the <Application_Home>/Documents directory and will be automatically backed up by iCloud.
case documents
func filterVideo(inputFilePath: String, outputFilePath: String,
filterPath: String, callback: @escaping (Bool) -> Void) -> (Process, DispatchWorkItem)? {
guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else {
return nil
}
let process = Process()
let task = DispatchWorkItem {
process.launchPath = launchPath
process.arguments = [
"-y",
@mikoim
mikoim / README.md
Last active April 27, 2024 00:22
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@atsepkov
atsepkov / universal-framework.sh
Last active February 18, 2021 06:26 — forked from cromandini/universal-framework.sh
This run script will build the iphoneos and iphonesimulator schemes and then combine them into a single framework using the lipo tool (including all the Swift module architectures). This version works with Cocoapods, merging simulator and device architectures for intermediate libraries as well. To use this script, go to Product > Scheme > Edit S…
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
if [ "true" == ${ALREADYINVOKED:-false} ]
then
echo "RECURSION: Detected, stopping"
else
export ALREADYINVOKED="true"
@MedwayMakers
MedwayMakers / BasicGPS.ino
Created January 10, 2016 16:11
GPS Tests
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
/*
This sample sketch demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
static const int RXPin = 0, TXPin = 1;
static const uint32_t GPSBaud = 9600;