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
{"lastUpload":"2018-12-01T21:15:43.026Z","extensionVersion":"v3.2.2"} |
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"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*|node()"/> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="/*"> | |
<xsl:copy> |
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
// Working C# equivalent | |
public static string GetMD5Working(string input) | |
{ | |
MD5 md5 = MD5.Create(); | |
byte[] hash = md5.ComputeHash(Encoding.UTF8.GetBytes(input)); | |
StringBuilder sb = new StringBuilder(); | |
for (int j = 0; j < hash.Length; j++) | |
{ | |
sb.Append(hash[j].ToString("X2")); |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using StackExchange.Redis; | |
using ZeroFormatter; | |
namespace ConsoleApplication2 |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using StackExchange.Redis; | |
using ZeroFormatter; | |
namespace ConsoleApplication2 |
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.Data; | |
using System.Linq; | |
using System.Net; | |
using System.Net.NetworkInformation; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MySql.Data.MySqlClient; |
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
var posX, posY; | |
$(document).mousemove(function(e) { | |
posX = e.clientX; | |
posY = e.clientY; | |
}); |
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
/* | |
This is the solution that I use in my projects for dynamic colors. | |
Don't know where I got it. | |
ColorLuminance("#69c", 0); // returns "#6699cc" | |
ColorLuminance("6699CC", 0.2); // "#7ab8f5" - 20% lighter | |
ColorLuminance("69C", -0.5); // "#334d66" - 50% darker | |
ColorLuminance("000", 1); // "#000000" - true black cannot be made lighter! | |
Real life example: |
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
/* | |
Serkan Berksoy May 2015 | |
Create a list of tagnames that consist handlebars mustache template | |
CompileTemplates method gathers all templates and compiles them. Also stores them for rebind | |
Also it hides them before first binding so there is no flicker and tags being shown on screen | |
example usage: | |
handleBarsHelper.compileTemplates(); | |
handleBarsHelper.elements.tagName1.html(handleBarsHelper.templates.tagName1( |
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
// usage logTrace("name", val1, "name2", val2); | |
function logTrace() | |
{ | |
var result = "TRACE : "; // you may add milliseconds here | |
for(var i = 0; i < arguments.length; i++) | |
{ | |
if(i > 0) | |
{ | |
result += " - "; |
NewerOlder