Skip to content

Instantly share code, notes, and snippets.

View atwalsh's full-sized avatar

Adam Walsh atwalsh

View GitHub Profile
@atwalsh
atwalsh / MainPage.xaml.cs
Last active August 29, 2015 14:18
textBlock example
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
@atwalsh
atwalsh / ArrayWork.java
Last active August 29, 2015 14:18
ITCS 1213 Lab 8
/**
*
* @author adamwalsh
*/
import java.util.*;
public class ArrayWork {
/**
* @param args the command line arguments
*/
@atwalsh
atwalsh / checkStatus.rb
Created March 19, 2015 00:54
USNWC Trail Status checker
require 'open-uri'
content = open('http://usnwc.org/#trail-status').read
if content =~ /trailsclosed\.png/
puts "Trails closed!"
elsif content =~ /trailsopen\.png/
puts "Trails open!"
else
puts "Oops, images not found?"
end
//inside didFinishLaunchingWithOptions in deleagte
if ([PFUser currentUser]) {
// Present wall straight-away
[self presentWallViewControllerAnimated:NO];
} else {
// Go to the welcome screen and have them log in or create an account.
[self presentLoginViewController];
}
// end