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
[TestMethod] | |
public async Task MyAsyncTest() | |
{ | |
var result = await SomeLongRunningOperation(); | |
Assert.IsTrue( result ); | |
} |
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
# Config stuff | |
$pythonExe = "C:\Python\Python32\python.exe" | |
$html2Text = "C:\dev\github\html2text\html2text.py" | |
# Load in the category map file | |
$catMap = @{} | |
$catFile = [xml] (get-content categories.xml) | |
$catFile.categories.category | % { $catMap[$_.id] = $_."#text" } | |
# Builds Jekyll YAML Front Matter 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
diff --git a/lib/albino.rb b/lib/albino.rb | |
index 387c8e9..b77d55e 100644 | |
--- a/lib/albino.rb | |
+++ b/lib/albino.rb | |
@@ -1,4 +1,5 @@ | |
require 'posix-spawn' | |
+require 'rbconfig' | |
## | |
# Wrapper for the Pygments command line tool, pygmentize. |
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
# Let's add alternative extensions; again, just in case | |
# blah blah | |
if FFI::Platform.windows? | |
# Do this after trying to add alternative extensions, | |
# since windows install has a python27.a and can cause | |
# troble. | |
# | |
# Some Windows python installers install the DLL in the python directory | |
# others install in the Windows system directory. So we should search both. |
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
<# | |
.SYNOPSIS | |
Generate-VsSettings creates a .vssetting file using the Solarized | |
color pallette created by Ethan Schoonover. | |
.DESCRIPTION | |
The Solarized palette was designed by Ethan Schoonover for maximum readability | |
and contrast. The color choices were chosen based on the highlighting colors | |
listed in the canonical Vim implementation. For more information see | |
http://ethanschoonover.com/solarized |
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
$str = "some long assed string you want to convert" | |
$str.ToCharArray() | % { "&#{0};" -f [Convert]::ToInt32($_) } | Join-String | clip |
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
param( | |
[string] $rootFolder = ".", | |
[string] $filter = "*.*" | |
) | |
$path = resolve-path $rootFolder -errorAction Stop | |
write-host "Monitoring $path for changes" | |
$fsw = new-object System.IO.FileSystemWatcher $path, $filter | |
$fsw.IncludeSubdirectories = $true |
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 SystemUnderTest | |
{ | |
public Task<string> LongRunningOperation() | |
{ | |
return Task.Run(() => | |
{ | |
Thread.Sleep(2000); // Simulate the long operation | |
return "Hello there"; | |
}); | |
} |
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
#!/bin/bash | |
# Source: http://sickbeard.com/forums/viewtopic.php?f=8&t=3945#p19232 | |
SICKBEARD_CONFIG=/var/pvr/sickbeard/config.ini | |
ECHO=/bin/echo | |
GREP=/bin/grep | |
AWK=/usr/bin/awk | |
MKTEMP=/bin/mktemp |
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
// PrintrBot Play ToolBelt | |
// 12/6/2016 Dataman, [email protected] | |
// Rev 1.7 | |
$fn=32; | |
union() { | |
radius = 5; |