Skip to content

Instantly share code, notes, and snippets.

@xbora
xbora / gopure_video_eval_criteria.txt
Last active July 16, 2025 18:20
CRITERIA AND RULES TO REVIEW BEFORE SCORING AND ANALYSIS
CRITERIA AND RULES TO REVIEW BEFORE SCORING AND ANALYSIS
New Criteria for Selecting High-Quality Affiliate Ads
To ensure we are consistently producing the highest quality ads, I’d like the team to adhere to the following updated selection criteria. This builds on all the previous guidelines we've used, with a focus on refining our approach to content quality.
1. Aspirational Appeal
1A Aspirational Appearance (primary)
Favor creators who look aspirational for their age group
If the creator’s appearance is only moderate (Appearance ≥ 60 but < 80), strong, visible results from consistent product use can raise the clip to approval.
@xbora
xbora / aware-renewal-reminder
Created February 18, 2025 18:19
Sends renewal reminder email
import AWS from 'aws-sdk';
import { initializeApp, getApps, cert } from 'firebase-admin/app';
import { getFirestore } from 'firebase-admin/firestore';
import path from 'path';
// AWS SES Configuration
const ses = new AWS.SES({
region: process.env.AWS_REGION || 'us-east-1',
accessKeyId: process.env.AWS_ACCESS_KEY_ID || 'AKIA_MOCK_KEY',
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || 'mock_secret_key',
@xbora
xbora / map_view.rb
Created December 6, 2012 19:22
Map View
class MapViewController < UIViewController
attr_accessor :selected_show
def didReceiveMemoryWarning
super
AH.alert("Memory issue", "Received memory warning.")
end
def viewDidLoad
@xbora
xbora / mixpaneler.rb
Created November 20, 2012 02:39
Mixpanel library in RubyMotion
class MP
class << self
def init_mixpanel
@mixpanel = Mixpanel.sharedInstance
self.identify(@mixpanel)
@mixpanel.people.set({"$last_login" => Time.now})
MP.update_person(@mixpanel)
end
@xbora
xbora / spotifier.rb
Created September 28, 2012 18:40
Spotifier
class Spotifier
require 'hallon'
attr_accessor :user
def initialize(member)
appkey = IO.read('./bin/spotify_appkey.key')
if Hallon::Session.instance?
hallon = Hallon::Session.instance
hallon.logout!
hallon.forget_me!