Skip to content

Instantly share code, notes, and snippets.

View bradtheappguy's full-sized avatar

Brad Anderson bradtheappguy

View GitHub Profile
-(void) deleteButtonPressed:(id)sender {
actionSheet = [UIActionSheet alloc]]
}
@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:
@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: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"

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 / 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
#!/usr/bin/env ruby
#
# == Synopsis
#
# ocalc: computes file offset for a given vma address
#
# == Usage
#
# ocalc [OPTION] FILENAME ADDRESS
#
@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

@bradtheappguy
bradtheappguy / gist:5758987
Created June 11, 2013 17:40
Reorder the tabs for the R1 Effects SDK
//To reorder the tabs in the R1 Effects SDK for iOS
//add the following code before enabling the SDK
NSArray *demoTabs = @[@"R1TabEffects", @"R1TabBorders", @"R1TabStickers", @"R1TabText"];
[[NSUserDefaults standardUserDefaults] setObject:demoTabs forKey:@"R1TabSetupList"];
@bradtheappguy
bradtheappguy / gist:5861045
Created June 25, 2013 18:32
RadiumOne PhotoEffects SDK Android Integration

Introduction

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

The zip file includes the R1 Photo Effects SDK and an SDK demo app for installation reference.

Eclipse Demo Installation

1. Verify that the latest android tools have been installed in the SDK Manager.