Skip to content

Instantly share code, notes, and snippets.

View bradtheappguy's full-sized avatar

Brad Anderson bradtheappguy

View GitHub Profile
@bradtheappguy
bradtheappguy / Android-Integration.MD
Created April 26, 2013 18:10
R1 Effects SDK Android Integration Guidw

Introduction


The Android R1 Photo Effects SDK allows developers to include a suite of image effects to their applications.

Installation


1. Download and Install the Photo Effects SDK

#!/usr/bin/env ruby
#
# == Synopsis
#
# ocalc: computes file offset for a given vma address
#
# == Usage
#
# ocalc [OPTION] FILENAME ADDRESS
#
@bradtheappguy
bradtheappguy / getdrunk.gdb
Created April 3, 2013 05:39
GDB script to get drunk
break *0x10000e2a9
commands
set {int}0x10000e2a9=0x55
set {int}0x10000e2aa=0x48
set {int}0x10000e2ab=0x89
set {int}0x10000e2ac=0xe5
set {int}0x10000e2ad=0xb0
set {int}0x10000e2ae=0x01
set {int}0x10000e2af=0x48
set {int}0x10000e2b0=0x89

R1 Effects SDK Quick Start (ios version)

The R1 Effects SDK allows user's to edit photos using filters, borders, cropping, stickers, and text effects.

Contents

@bradtheappguy
bradtheappguy / gist:3124547
Created July 16, 2012 19:33
Ruby Oneliner to run a http server in the current directory
# This is a command line one-liner to run a webserver with the contents of the current directory. no Config needed!
#
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 9090, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
@bradtheappguy
bradtheappguy / .tmux.conf
Created February 9, 2012 22:05 — forked from wyattdanger/.tmux.conf
my tmux configuration
# This sets default key to control-a instead of control-b.
# I also recommend remapping caps lock to control in system preferences
set-option -g prefix C-a
bind-key C-w last-window
set -g base-index 1
set-option -g default-terminal "screen-256color"
# act like vim
setw -g mode-keys vi
bind h select-pane -L
@bradtheappguy
bradtheappguy / gist:1679899
Created January 26, 2012 00:07
Via.Me Download URLS
Via.Me for iPhone Download URLs
Direct:
http://itunes.apple.com/us/app/viame/id474113683
Linkshare: (US Only)
http://click.linksynergy.com/fs-bin/stat?id=T3ko3TGvRWQ&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Fapp%252Fviame%252Fid474113683%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30
Note: for custom tracking on the link-share urls please append an &u1=MY_CAMPAIGN at the end. for example:
-(void) deleteButtonPressed:(id)sender {
actionSheet = [UIActionSheet alloc]]
}