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.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace YourNamespace | |
{ | |
public class EncryptionService : IEncryptionService | |
{ | |
static readonly RandomNumberGenerator _random = RandomNumberGenerator.Create(); |
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; | |
namespace Blackjack | |
{ | |
internal class Player | |
{ | |
public string Name { get; set; } | |
public ICollection<Card> Hand { get; set; } | |
} |
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
public IEnumerable<Uri> GetSitemapUrls(Uri sitemapUrl) | |
{ | |
var sitemapText = GetSitemapText(sitemapUrl); | |
if (string.IsNullOrWhiteSpace(sitemapText)) | |
yield break; | |
var urlRegex = new Regex(@"\b(?:https?://|www\.)[^ \f\n\r\t\v\]]+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase); | |
foreach (Match m in urlRegex.Matches(sitemapText)) |
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
// ==UserScript== | |
// @name Jira Swimlane Status Helper | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.0 | |
// @description Change text and colour of Jira 'lozenges' on the Rapid Board to more accurately reflect the state of each ticket | |
// @author Luke Pothier <[email protected]> | |
// @match https://*.atlassian.net/jira* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Skip tinyurl.is | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Skip tinyurl.is redirects | |
// @author Luke Pothier <[email protected]> | |
// @match https://tinyurl.is/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Trello Card Colour | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Colours Trello cards according to their labels | |
// @author Luke Pothier | |
// @match https://trello.com/b/* | |
// @grant none | |
// ==/UserScript== |