Skip to content

Instantly share code, notes, and snippets.

View nairdo's full-sized avatar

Nick Airdo nairdo

View GitHub Profile
@nairdo
nairdo / NuGetPackageFolder.cs
Last active December 14, 2016 14:04
From the NuGet Package Explorer's MainWindow.xaml.cs and the PackageViewModel PackageFolder class...
///
/// Example building a package (from the NuGet PackageBuilderTest.cs class)
///
// Act
var builder = new PackageBuilder { Id = "test", Version = new SemanticVersion("1.0"), Description = "test" };
builder.Authors.Add("test");
foreach (var name in fileNames)
{
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active July 17, 2024 10:30
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@JasonOffutt
JasonOffutt / Global.asax.cs
Created October 17, 2011 15:42
First attempt at dynamic web service definition
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.Data.Services;
using System.Linq;
using System.ServiceModel.Activation;
using System.Web;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;