This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
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
/* | |
* | |
* Google Maps Formulas for Google Sheets | |
* | |
* Written by Amit Agarwal | |
* | |
* Web: https://labnol.org/google-maps-formulas-for-sheets-200817 | |
* | |
*/ |
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
// Javascript helper functions for parsing and displaying UUIDs in the MongoDB shell. | |
// This is a temporary solution until SERVER-3153 is implemented. | |
// To create BinData values corresponding to the various driver encodings use: | |
// var s = "{00112233-4455-6677-8899-aabbccddeeff}"; | |
// var uuid = UUID(s); // new Standard encoding | |
// var juuid = JUUID(s); // JavaLegacy encoding | |
// var csuuid = CSUUID(s); // CSharpLegacy encoding | |
// var pyuuid = PYUUID(s); // PythonLegacy encoding | |
// To convert the various BinData values back to human readable UUIDs use: | |
// uuid.toUUID() => 'UUID("00112233-4455-6677-8899-aabbccddeeff")' |
The content from this GIST has been moved to official Azure Cache for Redis Documentation. The new location is https://docs.microsoft.com/azure/azure-cache-for-redis/cache-troubleshoot-client
Please update your bookmarks.
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 TypeExtensions | |
{ | |
/// <summary> | |
/// Determine whether a type is simple (String, Decimal, DateTime, etc) | |
/// or complex (i.e. custom class with public properties and methods). | |
/// </summary> | |
/// <see cref="http://stackoverflow.com/questions/2442534/how-to-test-if-type-is-primitive"/> | |
public static bool IsSimpleType( | |
this Type type) | |
{ |