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
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="twitter:card" content="summary"> | |
<meta property="og:title" content="{TITLE}" /> | |
<meta property="og:description" content="{DESCRIPTION}" /> | |
<meta property="og:url" content="@Url.AppUrl()" /> | |
<meta property="og:image" content="@Url.AppUrl()/Content/images/ogpimage.png" /><!-- The size of ogpimage.png is 120px x 120px. --> | |
<meta name="keywords" content="{KEYWORDS}" /> | |
<meta name="description" content="{DESCRIPTION}" /> |
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
import webbrowser | |
import SimpleHTTPServer | |
import thread | |
import time | |
import urllib | |
from zipfile import ZipFile | |
import os | |
tagname = "1.0" | |
zipname = "markdown-presenter-" + tagname + ".zip" |
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
@powershell -nop -ex unrestricted -c "iex ((new-object net.webclient).DownloadString('http://goo.gl/2JUSZU'))" |
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 ExceptionLoggerTraceRedirector : ExceptionLogger | |
{ | |
public override void Log(ExceptionLoggerContext context) | |
{ | |
var logtext = new StringBuilder(); | |
logtext.AppendLine($"Request: {context.Request}").AppendLine(); | |
logtext.AppendLine($"Exception: {context.Exception}"); | |
Trace.TraceError(logtext.ToString()); | |
} | |
} |
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
# LICENSE - [The Unlicense](http://unlicense.org/UNLICENSE) | |
cd (Split-Path ( & { $myInvocation.ScriptName } ) -Parent) | |
$now = [DateTime]::Now | |
for ($counter = 1; ; $counter++) { | |
$dirName = "{0:yyyy-MM-dd}-{1:D3}" -f $now, $counter | |
if (-not (Test-Path $dirName)) { | |
md $dirName > $null | |
break; | |
} |
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
# Enable .ps1 file in "New" items on Windows Explorer folder context menu. | |
# LICENSE - [The Unlicense](http://unlicense.org/UNLICENSE) | |
New-PSDrive -name HKCR -PSProvider Registry -root HKEY_CLASSES_ROOT | |
New-Item HKCR:\.ps1\ShellNew | |
New-ItemProperty HKCR:\.ps1\ShellNew NullFile -propertyType String |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<link href="style.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div class="demo"> | |
<div class="text1">This is Text1.</div> | |
<div class="text2">This is Text2.</div> |
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
document.write('(under construction...)'); |
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
if (args.Length == 2 && args[1] == "-f") | |
{ | |
sha1(File.ReadAllBytes(args[2])); | |
} | |
else if (args.Length == 1) | |
{ | |
sha1(Encoding.ASCII.GetBytes(args[1])); | |
} | |
else if (args.Length == 0) | |
{ |