This file contains hidden or 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
<#@ template debug="false" hostspecific="false" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<#@ output extension=".cs" #> | |
<# | |
var namespace_name = "YOUR_NAMESPACE_HERE"; | |
var extension_class_name = "EXTENSION_CLASS_NAME_GOES_HERE"; |
This file contains hidden or 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
C:\Users\dalpert>powercfg -devicequery wake_armed | |
Intel(R) Centrino(R) Ultimate-N 6300 AGN | |
Intel(R) 82579LM Gigabit Network Connection | |
C:\Users\dalpert>powercfg -devicedisablewake "Intel(R) Centrino(R) Ultimate-N 6300 AGN" | |
C:\Users\dalpert>powercfg -devicequery wake_armed | |
Intel(R) 82579LM Gigabit Network Connection | |
C:\Users\dalpert>powercfg -devicedisablewake "Intel(R) 82579LM Gigabit Network Connection" |
This file contains hidden or 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"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir> | |
<NugetExe>$(MSBuildThisFileDirectory)tools\NuGet\NuGet.exe</NugetExe> | |
</PropertyGroup> | |
<ItemGroup> | |
<Solutions Include="$(SolutionDir)**\*.sln" /> |
This file contains hidden or 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"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<SolutionDir>.</SolutionDir> | |
</PropertyGroup> | |
<!-- This targets file sets a handful of nuget-related properties. --> | |
<Import Project=".nuget/NuGet.targets"/> |
This file contains hidden or 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
// ==UserScript== | |
// @name PrettyWebtime | |
// @namespace http://spinthemoose.com/ | |
// @version 0.6 | |
// @description tries to make webtime more usable | |
// @match https://*.replicon.com/* | |
// @copyright 2013+, David Alpert | |
// ==/UserScript== | |
function PrettyWebtime() { |
This file contains hidden or 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
PS C:\users\davida\dev\marv.git\src\Marv> cpack | |
Calling 'C:\Chocolatey\chocolateyInstall\nuget.exe pack -NoPackageAnalysis'. | |
Attempting to build package from 'Marv.csproj'. | |
Packing files from 'C:\users\davida\dev\marv.git\src\Marv\bin\Debug'. | |
Using 'Marv.nuspec' for metadata. | |
Found packages.config. Using packages listed as dependencies | |
Successfully created package 'C:\users\davida\dev\marv.git\src\Marv\marv.0.2.1.0.nupkg'. | |
Reading environment variables from registry. Please wait... Done. |
This file contains hidden or 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
PS C:\users\davida\dev\marv.git\src\Marv> C:\Chocolatey\chocolateyInstall\NuGet.exe update -self | |
Checking for updates from https://nuget.org/api/v2/. | |
Currently running NuGet.exe 2.1.0. | |
Updating NuGet.exe to 2.7.3. | |
Update successful. |
This file contains hidden or 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
PS C:\dev\marv.git\src\Marv> cpack | |
Calling 'C:\Chocolatey\chocolateyInstall\nuget.exe pack -NoPackageAnalysis'. | |
Attempting to build package from 'Marv.csproj'. | |
Packing files from 'C:\dev\marv.git\src\Marv\bin\Debug'. | |
Using 'Marv.nuspec' for metadata. | |
The 'minClientVersion' attribute is not declared. | |
Reading environment variables from registry. Please wait... Done. |
This file contains hidden or 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 StringExtensions | |
{ | |
/// <summary> | |
/// Converts the string representation of <paramref name="src"/> to a human-readable format. | |
/// </summary> | |
/// <example>"SomeEnumValue" becomes "Some Enum Value"</example> | |
/// <example>"Some_Class_Name" becomes "Some Class Name"</example> | |
/// <param name="src">the raw input to humanize</param> | |
/// <param name="casingStyle"> | |
/// An optional <see cref="CasingStyle"/> lets you control how the string is rewritten. |
This file contains hidden or 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
//Given | |
public class EchoModule : NancyModule | |
{ | |
public EchoModule() | |
{ | |
Get["/form"] = ctx => | |
{ | |
return @" | |
<html> | |
<head><title>form</title></head> |