Skip to content

Instantly share code, notes, and snippets.

@gayancc
gayancc / importDefinition.cs
Created October 8, 2015 10:49
Create import Definition ExactTarget
public string[] CreateImportDefinition(string fileName, string destinationKey, int destinationId)
{
var key = Guid.NewGuid().ToString();
var definition = new ExactTargetApi.ImportDefinition
{
Name = key,
CustomerKey = key,
Description = string.Format("This import definition was created through the API. On {0}", DateTime.Now.ToShortDateString()),
AllowErrors = true,
AllowErrorsSpecified = true,
@tbrianjones
tbrianjones / free_email_provider_domains.txt
Last active April 5, 2025 02:20
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@JoshClose
JoshClose / ScreenShot.cs
Created November 15, 2011 05:38
Programmatically Taking a Full Web Page Screenshot
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
public class ScreenShot
{
[ComImport]
[InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
[Guid( "0000010d-0000-0000-C000-000000000046" )]
@negrond
negrond / HumanNameParser.cs
Created September 23, 2011 15:53
A very simple class for facilitating with breaking up of names into its separate parts
/* TESTED WITH THE FOLLOWING VALUES
Björn O'Malley||Björn|||O'Malley|
Bin Lin||Bin|||Lin|
Linda Jones||Linda|||Jones|
Jason H. Priem||Jason||H.|Priem|
Björn O'Malley-Muñoz||Björn|||O'Malley-Muñoz|
Björn C. O'Malley||Björn||C.|O'Malley|
Björn "Bill" O'Malley||Björn|Bill||O'Malley|
Björn ("Bill") O'Malley||Björn|Bill||O'Malley|
Björn ("Wild Bill") O'Malley||Björn|Wild Bill||O'Malley|