This file contains hidden or 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.Threading; | |
//USAGE: | |
//using (Timeout timeout = new Timeout(TimeSpan.FromSeconds(5), "This code timed out!")) | |
//{ | |
// SomeLinesOfCodeThatYouWantToCheck... | |
//} | |
public class Timeout: IDisposable | |
{ |
This file contains hidden or 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 System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
namespace FTPHelper | |
{ |
This file contains hidden or 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 System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace NumberWordsToNumbers | |
{ | |
/* ================================================================================================== | |
* A robust class for converting a number words (eg "one-hundred and sixty-nine") in a string |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using System.Xml.Linq; | |
using System.Xml.Serialization; |
This file contains hidden or 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 Google; | |
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Calendar.v3; | |
using Google.Apis.Calendar.v3.Data; | |
using Google.Apis.Services; | |
using Google.Apis.Util.Store; | |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; |
This file contains hidden or 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
/*---------------------------------------------------------------------------------------------------------- | |
* THIS CLASS DEPENDS ON THE FOLLOWING: | |
* System.Web.Extensions reference | |
* MimeTypeMap.List nuget package (https://www.nuget.org/packages/MimeTypeMap.List/) | |
* | |
* | |
* ALSO: do not forget to fill in your FreshDesk domain and FreshDesk API (lines 23 & 24) | |
* ---------------------------------------------------------------------------------------------------------- | |
*/ | |
using System; |
NewerOlder