Skip to content

Instantly share code, notes, and snippets.

View pierceboggan's full-sized avatar

Pierce Boggan pierceboggan

View GitHub Profile
@pierceboggan
pierceboggan / SpeechSynthesizer.cs
Last active August 29, 2015 13:56
Make your Xamarin.iOS 7+ app speak using AVSpeechSynthesizer. See http://blog.xamarin.com/make-your-ios-7-app-speak/ for more information.
using System;
using MonoTouch.AVFoundation;
namespace Example
{
public class SpeechSynthesizer
{
public static void Speak (string toSpeak)
{
var speechSynthesizer = new AVSpeechSynthesizer ();

PayPal

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,
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
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

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.
@pierceboggan
pierceboggan / AppDelegate.cs
Created June 18, 2013 20:39
Urban Airship setup for Xamarin.iOS.
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);
@pierceboggan
pierceboggan / CommentsTextDelegate.cs
Created January 25, 2014 23:22
An easy way to implement your own UITextView placeholder field without subclassing.
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);
}
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
pierceboggan / CustomUIBarButtonItem.cs
Last active September 22, 2016 14:15
Shows off using a UIButton with a background image as a UIBarButtonItem, and handling touch events accordingly.
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),
UIControlEvent.TouchUpInside);
ComposeButton = new UIBarButtonItem (composeButton);
NavigationItem.RightBarButtonItem = ComposeButton;