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.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace YouNamespace.Utils { | |
/// <summary> | |
/// Class HashUtils. | |
/// </summary> | |
public static class HashUtils { |
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 System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace YouNamespace.Utils { | |
/// <summary> | |
/// Class FileUtils. | |
/// </summary> |
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 StringExtensions | |
{ | |
/// <summary> | |
/// Interpolates placeholders in the string with the values of the specified dictionary. | |
/// </summary> | |
/// <param name="pattern">String with placeholders.</param> | |
/// <param name="values">Dictionary with values for placeholders.</param> | |
/// <example> | |
/// const string pattern = "Name = {name}, Age = {age}, Null = {nullString}, Escape = {{escape}}"; | |
/// var dict = new Dictionary<string, object>() |
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><para>Specifies the variant types.<br/> | |
/// See also <see href="https://docs.microsoft.com/en-us/windows/win32/api/wtypes/ne-wtypes-varenum">VARENUM enumeration</see> | |
/// and <see href="https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.16299.0/shared/wtypes.h#L833">wtypes.h</see> | |
/// </para></summary> | |
public enum VariantType | |
{ | |
/// <summary>Not specified.</summary> | |
VT_EMPTY = 0, | |
/// <summary>Null.</summary> | |
VT_NULL = 1, |
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="Log" 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"></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
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSearchDescription | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/" | |
xmlns="http://a9.com/-/spec/opensearch/1.1/"> | |
<!-- | |
The "AdultContent" element contains a boolean value that should be set to true if the search results may contain material intended only for adults. | |
As there are no universally applicable guidelines as to what constitutes "adult" content, | |
the search engine should make a good faith effort to indicate when there is a possibility | |
that search results may contain material inappropriate for all audiences. | |
Values: |
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 Types { | |
/// <summary> | |
/// Used for comparison SQL statements. | |
/// <seealso href="https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.transactsql.scriptdom.tsqlstatement.aspx"/> | |
/// </summary> | |
public enum SqlStatement { | |
/// <summary> | |
/// The unknown statement. Default value. |
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.Collections.Generic; | |
using System.Data; | |
using System.Dynamic; | |
using System.Linq; | |
namespace NamespaceName { | |
public static class Extensions { | |
/// <summary> | |
/// Create a datatable from a list of <see cref="IEnumerable{T}"/> |
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
function foo() { | |
var fooName = arguments.callee.toString(); | |
fooName = fooName.substr('function '.length++); | |
fooName = fooName.substr(0, fooName.indexOf('(')); | |
return fooName; | |
} |
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
module.exports = function(providerName) { | |
return require('./'+providerName+'-storage.jsx'); | |
}; | |
// For require 'fs' storage | |
var storageConstructor = require('storage')('fs'), | |
fsStorage = new storageConstructor(); |
NewerOlder