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
Get-AppxPackage | Remove-AppxPackage |
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 Strike.IE; | |
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Linq; | |
namespace TrainingKitPackager | |
{ | |
class Program |
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
md.PrepareImage = delegate(MarkdownDeep.HtmlTag tag, bool TitledImage) | |
{ | |
//Compress PNG | |
string relPath = tag.attributes["src"].Replace('/', '\\').Replace("?raw=true", ""); | |
string path = Path.Combine(file.DirectoryName, relPath); | |
Console.WriteLine("\tProcessing image: {0}", path); | |
System.Drawing.Bitmap img = (Bitmap)Bitmap.FromFile(path); | |
var quant = new nQuant.WuQuantizer(); | |
var ms = new MemoryStream(); |
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
<h2>Testing custom link renderer with Marked.js</h2> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<textarea class="form-control" id=input rows="30"> | |
Enter Markdown here. This should append /readme.htm to any relative link to a path (not a document). | |
* [Self anchor link](#do-not-change-me) | |
* [Another doc anchor](/chocolate/#change-me) | |
* [Another doc with path](/chocolate/cake.htm) | |
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
//Source: Last comment at http://lozanotek.com/blog/archive/2007/07/22/Using_The_Windows_Live_Writer_API_To_Retrieve_Your_Blog_Password.aspx | |
using System; | |
using Microsoft.Win32; | |
// Add a ref to C:\Program Files\Windows Live\Writer\WindowsLive.Writer.BlogClient.dll | |
using WindowsLive.Writer.BlogClient; | |
// Add a ref to C:\Program Files\Windows Live\Writer\WindowsLive.Writer.CoreServices.dll | |
using WindowsLive.Writer.CoreServices.Settings; | |
using WindowsLive.Writer.CoreServices; |
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.Diagnostics; | |
using System.Net; | |
namespace ConsoleApplication1 { | |
internal class Program { | |
private const int COUNT = 20; | |
private static void Main() { | |
var urls = new[] { |
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.IO; | |
using System.Reflection; | |
using System.Web.Mvc; | |
using Mono.CSharp; | |
using System; | |
namespace DynamicModelCompilation.Controllers | |
{ | |
public class HomeController : Controller | |
{ |
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 CurrentTimeGetter | |
{ | |
private volatile Holder _holder; | |
const String rfc1123Pattern = "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"; | |
public string GetCurrentTimeAsString() | |
{ | |
DateTime now = DateTime.UtcNow; | |
Holder currentHolder = _holder; |
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
<?php | |
/** | |
* RSS2 Feed Template for displaying RSS2 Posts feed. | |
* | |
* @package WordPress | |
*/ | |
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); | |
$more = 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
if not "%*" =="" SET args = "-argumentlist \"%*\" | |
powershell -command "start-process -filepath \"..\lib\sublimetext2.2.0.2165\tools\sublime_text.exe\" %args%" |
OlderNewer