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
public class NamingRulesChecker | |
{ | |
private const string PrivateConst = " "; | |
private static readonly double PrivateStaticReadonlyLikeConstant = TimeSpan.FromSeconds(3).Ticks; | |
private static readonly string[] _privateStaticReadonlyOthers = new[] { "None" }; | |
private static string _privateStatic = ""; | |
public const string PublicConst = ""; | |
public static string PublicStatic = ""; |
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
public static class DbForeignKeysChecker | |
{ | |
private static readonly Dictionary<DbContext, Dictionary<Type, Keys>> KeysPerEntityTypeOfContext = new Dictionary<DbContext, Dictionary<Type, Keys>>(); | |
public static void SaveChangesWithCheck(this DbContext context) | |
{ | |
context.SaveChanges(); | |
context.CheckForeignKeys(); | |
} |
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
{ | |
"QueryResponse": { | |
"TimeActivity": [{ | |
"TxnDate": "2018-05-09", | |
"NameOf": "Employee", | |
"EmployeeRef": { | |
"value": "260", | |
"name": "2level_03c0013" | |
}, | |
"ItemRef": { |
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
// https://stackoverflow.com/questions/15245770/how-to-specify-command-line-options-for-service-in-topshelf/36044058#36044058 | |
/// <param name="argsToSave"> | |
/// If empty, all cli arguments, except added by TopShelf itself, included. | |
/// If not empty, only arguments starting with string from that array included. | |
/// </param> | |
public static void AddCommandLineParametersToStartupOptions(this InstallHostSettings installSettings, IReadOnlyCollection<string> argsToSave = null) | |
{ | |
var serviceKey = Registry.LocalMachine.OpenSubKey( | |
$"SYSTEM\\CurrentControlSet\\Services\\{installSettings.ServiceName}", |
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
<NotepadPlus> | |
<UserLang name="SerilogLogFile" ext="log" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">03 04 00 01 02</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
From 772de67a9a1eca8f6e6f462a9f9c841ccab3ad10 Mon Sep 17 00:00:00 2001 | |
From: smg <[email protected]> | |
Date: Sun, 13 Mar 2016 11:32:45 +0700 | |
Subject: [PATCH] fix EnumerateShortcuts access denied | |
--- | |
TileIconifier/Forms/frmMain.cs | 47 +++++++++++++++++++++++++++--------------- | |
1 file changed, 30 insertions(+), 17 deletions(-) | |
diff --git a/TileIconifier/Forms/frmMain.cs b/TileIconifier/Forms/frmMain.cs |
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
diff --git a/src/SolutionCop.DefaultRules/Basic/FilesIncludedIntoProjectRule.cs b/src/SolutionCop.DefaultRules/Basic/FilesIncludedIntoProjectRule.cs | |
index 54ed67e..c4976d7 100644 | |
--- a/src/SolutionCop.DefaultRules/Basic/FilesIncludedIntoProjectRule.cs | |
+++ b/src/SolutionCop.DefaultRules/Basic/FilesIncludedIntoProjectRule.cs | |
@@ -80,6 +80,7 @@ namespace SolutionCop.DefaultRules.Basic | |
} | |
foreach (var filePatternToProcess in config.FilePatternsToProcess) | |
{ | |
+ var projectDirPath = new DirectoryInfo(Path.GetDirectoryName(projectFilePath)).FullName; | |
var filePaths = Directory.EnumerateFiles(Path.GetDirectoryName(projectFilePath), filePatternToProcess, SearchOption.AllDirectories); |
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
(define (mycrop pattern) | |
(let* | |
((filelist (cadr (file-glob pattern 1)))) | |
(while (not (null? filelist)) | |
(let* | |
((filename (car filelist)) | |
(image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) | |
(drawable (car (gimp-image-get-active-layer image))) | |
) | |
(gimp-image-crop image 608 164 21 301) |