Created
April 23, 2015 16:18
-
-
Save thegoldenmule/04d6ed72e14cff8133e4 to your computer and use it in GitHub Desktop.
Random Signature Generator!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
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
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.