Skip to content

Instantly share code, notes, and snippets.

@thegoldenmule
Created April 23, 2015 16:18
Show Gist options
  • Save thegoldenmule/04d6ed72e14cff8133e4 to your computer and use it in GitHub Desktop.
Save thegoldenmule/04d6ed72e14cff8133e4 to your computer and use it in GitHub Desktop.
Random Signature Generator!
using System;
using System.Collections.Generic;
using Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
namespace RandomSignature
{
public partial class ThisAddIn
{
Inspectors inspectors;
private static readonly string[] _TitleModifiers =
{
"Senior",
"Chief",
"Lead",
"Principal",
"Architect",
"Master",
"Magical",
"Resident"
};
private static readonly string[] _Nouns =
{
"Code",
"Bit",
"Pixel",
"Vector",
"Differential",
"One-form",
"Matrix",
"Tensor",
"Binary",
"Octal",
"Hexidecimal",
"Refactor",
"Engine",
"n00b",
"Fun",
"Shader",
"Automation",
"Automaton",
"Machine Learning",
"Keyboard",
"Sub-System",
"Super-System",
"Mainframe",
"Super-Cluster",
"Beowulf Cluster"
};
private static readonly string[] _Titles =
{
"Rockstar",
"Pusher",
"Wizard",
"Evangelist",
"Guru",
"Slayer",
"Pwner",
"Architecter",
"Remodeler",
"Refactorer",
"King and Tyrant",
"Brogrammer",
"Fellow",
"Analyzer",
"Scientist",
"Hound",
"Specialist",
"Fabricator"
};
private void ThisAddIn_Startup(object sender, EventArgs e)
{
inspectors = Application.Inspectors;
inspectors.NewInspector += Inspectors_NewInspector;
}
private void ThisAddIn_Shutdown(object sender, EventArgs e)
{
}
private void Inspectors_NewInspector(Inspector Inspector)
{
MailItem mailItem = Inspector.CurrentItem as MailItem;
if (mailItem != null)
{
if (mailItem.EntryID == null)
{
mailItem.Body = string.Format(@"
{0}
// AUTO-GENERATED TITLE, DO NOT EDIT
{1}",
"Benjamin,",//Properties.Settings.Default.Username,
GenerateSignature());
}
}
}
private static string GenerateSignature()
{
var signaturePieces = new List<string>();
var random = new Random();
signaturePieces.Add(_TitleModifiers[random.Next(0, _TitleModifiers.Length - 1)]);
signaturePieces.Add(_Nouns[random.Next(0, _Nouns.Length - 1)]);
signaturePieces.Add(_Titles[random.Next(0, _Titles.Length - 1)]);
return string.Join(" ", signaturePieces);
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
Startup += ThisAddIn_Startup;
Shutdown += ThisAddIn_Shutdown;
}
#endregion
}
}
@nemoj463
Copy link

Hello. Do you want to have a cool signature? You should use this signature generator service, which will help you create a customised signature in a few seconds that will meet all your needs and wishes. In addition, by visiting this service you will find detailed instructions on how to use this generator, which will be very useful.

@GlebKozyakow
Copy link

I decided to try out 22Bet Cameroon after hearing great things from my friends, and I wasn't disappointed. The registration process was straightforward, and I was pleasantly surprised by how quickly I could start betting. The welcome get rewards was a fantastic boost, doubling my first deposit and giving me extra funds to explore the site.

@barbarajam
Copy link

As a single dad, finding some me-time can be tough, but ak8 casino https://ak8aud.casino/ has been a great escape. The straightforward login and fast verification process let me dive into the games without any hassle. The popular pokies and bonuses add extra excitement to my gaming sessions. I highly recommend this casino to anyone in Australia needing a fun and easy way to relax.

@nemoj463
Copy link

Good afternoon. Are you bored and don't know which Indian casino is the best place to have fun? I advise you to visit the Dafabet casino review at topcasinosites.in/dafabet-casino. By visiting this resource, you will get a lot of interesting and useful information that best describes all the gaming aspects of this casino. After analysing the review, you will be able to make the right decision about starting the game.

@Catherpillar123
Copy link

Joo Casino Australia offers a top-notch online gaming experience. Logging in is quick and hassle-free, and the site is very user-friendly. There’s a great selection of games, including slots, table games, and live dealer options, keeping the experience fresh and exciting. The bonuses and promotions are generous, which adds to the enjoyment. I also feel safe playing here, thanks to their strong security measures. The customer support team is responsive and helpful, making sure any issues are quickly resolved. Overall, Joo Casino Australia provides a reliable and entertaining gaming environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment