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
{ | |
"printWidth": 120, | |
"singleQuote": true | |
} |
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
# EditorConfig is awesome:http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Don't use tabs for indentation. | |
[*] | |
indent_style = space | |
# (Please don't specify an indent_size here; that has too many unintended consequences.) |
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 SixLabors.ImageSharp; | |
using SixLabors.ImageSharp.Processing; | |
using SixLabors.Primitives; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace ConsoleApp8 | |
{ | |
class Program | |
{ |
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
private static Action<iTextSharp.text.Rectangle, PdfImportedPage, PdfSmartCopy, int> shrinkForBateStamp = | |
(pageSizeWithRotation, page, copier, pageNumber) => | |
{ | |
// shrink percentage | |
const float shrinkPercentage = .95f; | |
var stamp = copier.CreatePageStamp(page); | |
var w = page.Width > page.Height ? page.Height : page.Width; | |
var h = page.Width > page.Height ? page.Width : page.Height; |
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
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
public class Foo | |
{ | |
public string MyStr { get; set; } | |
} | |
static void Main(string[] args) |
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
/// <summary> | |
/// Used to parse and normalize an address. | |
/// </summary> | |
/// <param name="addressline"></param> | |
/// <param name="cityName"></param> | |
/// <param name="stateCode"></param> | |
/// <param name="postalCode"></param> | |
/// <returns>A normalized string devoid of unit numbers</returns> | |
internal string ParsedStreetAddress(string addressline, string cityName, string stateCode, string postalCode) |