Skip to content

Instantly share code, notes, and snippets.


Pierce Boggan pierceboggan

View GitHub Profile
pierceboggan / CustomUIBarButtonItem.cs
Last active Sep 22, 2016
Shows off using a UIButton with a background image as a UIBarButtonItem, and handling touch events accordingly.
View CustomUIBarButtonItem.cs
var composeButton = new UIButton (new RectangleF (0, 0, 20, 20));
composeButton.SetBackgroundImage (Images.ComposeButton, UIControlState.Normal);
composeButton.SetBackgroundImage (Images.ComposeButtonHighlighted, UIControlState.Highlighted);
composeButton.AddTarget((object sender, EventArgs args) => PresentViewController (new PrayerComposeDialog (), true, null),
ComposeButton = new UIBarButtonItem (composeButton);
NavigationItem.RightBarButtonItem = ComposeButton;
View Logs
Building Solution: Spent (Debug)
Build started 9/6/2016 3:01:43 PM.
Project "/Users/pierce/Documents/GitHub/spent/Spent/Spent.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
pierceboggan / CommentsTextDelegate.cs
Created Jan 25, 2014
An easy way to implement your own UITextView placeholder field without subclassing.
View CommentsTextDelegate.cs
public class CommentsTextDelegate : UITextViewDelegate
public override void EditingStarted (UITextView textView)
if (textView.Text == "Comments") {
textView.Text = "";
textView.TextColor = UIColor.Black;
textView.Font = FontConstants.SourceSansProRegular (13);
pierceboggan / AppDelegate.cs
Created Jun 18, 2013
Urban Airship setup for Xamarin.iOS.
View AppDelegate.cs
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
window = new UIWindow (UIScreen.MainScreen.Bounds);
viewController = new UrbanAirshipTestViewController ();
window.RootViewController = viewController;
window.MakeKeyAndVisible ();
UAPush.Shared.RegisterForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound);


Microsoft Public License (MS-PL)

This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

  1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software.
View gist:2bd3c5362875aebb82d2
Ok, so in the dashboard for mobile services, on the right you will see something that says "Reset credentials" or "Setup source control" like the first image.
Tyler J Vanderhoef [3:36 PM]
Do that, then go into the configure tab, and you will see the git url like in image 2
Tyler J Vanderhoef [3:37 PM]
do a git clone of that url with your credentials you created in step 1
Tyler J Vanderhoef [3:37 PM]
this will yield a project structure like the final image
View gist:e9dd628676b868f3f775
2 (COMP5350- 20pts, COMP 635*-15pts) Essay question. Explain “live incident response” (aka live forensic analysis). Why you do it, what you hope to achieve, how it produces useful evidence. Why live? What kind of information? (5-6 sentences, bullets, diagram if useful).
● Live Incident Response Process addresses running system
● forensically sound way to collect data and analyze it
● Data that we will be looking for - volatile data. Since, Non volatile data can be collected even
when system turns off
● what we are looking for : network connections, activities ongoing, running states of processes
● Once turned off, the system’s temp files, log files and some volatile registry files are altered- in
order to capture data that is only available in running system
3 (COMP 5350-15pts, COMP 635*-12pts). Explain the differences between “volatile” and “non-volatile” data, and give examples of each for Windows and Linux – bullets/lists/facts.
The main difference between volatile and non-volatile storage is what happens


Copyright (c) 2014, PayPal All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice,
pierceboggan / SpeechSynthesizer.cs
Last active Aug 29, 2015
Make your Xamarin.iOS 7+ app speak using AVSpeechSynthesizer. See for more information.
View SpeechSynthesizer.cs
using System;
using MonoTouch.AVFoundation;
namespace Example
public class SpeechSynthesizer
public static void Speak (string toSpeak)
var speechSynthesizer = new AVSpeechSynthesizer ();