Skip to content

Instantly share code, notes, and snippets.

View HeathHopkins's full-sized avatar

Heath Hopkins HeathHopkins

View GitHub Profile
@HeathHopkins
HeathHopkins / blackboard.html
Created March 29, 2012 16:00
Blackboard counter
<html>
<head>
<title>Blackboard Countdown</title>
</head>
<body>
<!-- Copy below this line -->
<h2>
<script type="text/javascript">
(function () {
@HeathHopkins
HeathHopkins / CodeSubmitter.cs
Last active October 11, 2015 22:48
APP5 Hidden Meta-game Solution
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace APP5
{
class Program
@HeathHopkins
HeathHopkins / Feedback.cs
Created January 8, 2013 14:56
Demo of extending EF classes and adding metadata.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonoTouch.CoreLocation;
using MonoTouch.MapKit;
using System.Xml.Linq;
namespace Auburn.Models
/// <summary>
/// See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
/// </summary>
public static class GooglePoints
{
/// <summary>
/// Decode google style polyline coordinates.
/// </summary>
/// <param name="encodedPoints"></param>
/// <returns></returns>

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
  Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep -H UI_APPEARANCE_SELECTOR ./* | sed 's/ __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0) UI_APPEARANCE_SELECTOR;//'

UIActivityIndicatorView

@HeathHopkins
HeathHopkins / Social.cs
Last active December 16, 2015 19:00
Removes stored Facebook records created by Xamarin.Social
public static void ClearFacebookRecords()
{
var records = Social.FacebookRecords;
for (var i = 0; i < records.Length; i++)
{
var delQuery = new SecRecord(SecKind.GenericPassword);
delQuery.Service = "Facebook";
delQuery.Account = records[i].Account;
Console.WriteLine("Removing stored Facebook account: " + records[i].Account);
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
@HeathHopkins
HeathHopkins / AssemblyVersion.cs
Created January 6, 2014 19:59
Build date of current application. Must have wildcard in AssemblyVersion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using TestLibrary;
namespace AssemblyDateTest
{