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
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports System.Diagnostics | |
Imports System.Collections.Generic | |
' Comment the following line if you're running the macro in Visual Studio .NET 2003. | |
Imports Microsoft.VisualStudio.CommandBars | |
Class CommandBarRecursion |
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
if(GetMediaState() == State_Running && !m_fAudioOnly) | |
{ | |
UINT fSaverActive = 0; | |
if(SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0, (PVOID)&fSaverActive, 0)) | |
{ | |
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, 0, SPIF_SENDWININICHANGE); // this might not be needed at all... | |
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, fSaverActive, 0, SPIF_SENDWININICHANGE); | |
} | |
fSaverActive = 0; |
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
MSDeploy.run \ | |
:tool => configatron.tools.msdeploy, | |
:log_file => configatron.deployment.logfile, | |
:verb => :sync, | |
:allowUntrusted => true, | |
:source => Dictionary[:dirPath, configatron.dir.for_deployment.to_absolute.escape], | |
:dest => remote_for(role).merge({ | |
# For now, we always deploy the full package. | |
:dirPath => configatron.deployment.root | |
}), |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Magnum.CommandLineParser; | |
using Magnum.Monads.Parser; | |
using SearchQueryParser; | |
namespace ParserCombinator |
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
#!/bin/sh | |
function set_pattern() | |
{ | |
case $1 in | |
add) | |
local r='^.M' | |
local c='git add --' | |
;; | |
new) |
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
#!/usr/bin/env ruby | |
USAGE = <<EOH | |
Usage: git-quick [add|new|rm|checkout|head] index [, index, ...] | |
Where index is the line number in the output of `git status`, starting at 1. | |
The index starts at 1 for each of the "changes to be committed", | |
"changed but not updated" and "untracked files" sections. | |
EOH |
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
<CodeStyleSettings> | |
<Naming2> | |
<UserRule Inspect="True" Prefix="" Suffix="" Style="Aa_bb" StaticnessKind="Static, Instance" AccessRight="Public" Description="MSpec contexts"> | |
<ElementKinds> | |
<Kind Name="Machine.Specifications_Context" /> | |
</ElementKinds> | |
</UserRule> | |
<UserRule Inspect="True" Prefix="" Suffix="" Style="aa_bb" StaticnessKind="Instance" AccessRight="Private, Protected, ProtectedInternal, Internal, Public" Description="MSpec supporting fields"> | |
<ElementKinds> | |
<Kind Name="Machine.Specifications_Behavior" /> |
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
# Lines that start with '#' are comments. | |
bin | |
Bin | |
obj | |
*.bak | |
*.*scc | |
*.suo | |
*.xsx | |
*.xss |
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
using System.Web; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Lifestyle; | |
namespace FubuMVC.Container.Castle.ForIoC | |
{ | |
public class HybridLifestyleManager : AbstractLifestyleManager | |
{ | |
readonly PerThreadLifestyleManager _perThread; |
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
agross@AXL /scratch | |
$ mkdir foo | |
agross@AXL /scratch | |
$ cd foo && git init | |
Initialized empty Git repository in /scratch/foo/.git/ | |
agross@AXL /scratch/foo @master^ | |
$ touch a && git add --all && git commit -m "a" | |
[master (root-commit) 41ab6cf] a |