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
colorscheme ir_dark | |
if has("gui_macvim") | |
set fuoptions=maxvert,maxhorz | |
set guifont=Monaco:h14 | |
set guioptions-=T | |
set stal=2 | |
end | |
set anti |
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
function Get-HomeLocation { | |
# Using 'Run as administrator' does not set $Home, so try other variables as well | |
if ($variable:Home) { | |
$variable:Home | |
} elseif ($env:Home) { | |
$env:Home | |
} elseif ($env:UserProfile) { | |
$env:UserProfile | |
} else { | |
$null |
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
DECLARE @mark CHAR(32) = replace(newid(), '-', ''); | |
DECLARE @trans INT = @@TRANCOUNT; | |
IF @trans = 0 | |
BEGIN TRANSACTION @mark; | |
ELSE | |
SAVE TRANSACTION @mark; | |
BEGIN TRY | |
-- do work here |
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
<Target Name="TypeScriptCleanOldOutput" DependsOnTargets="PreComputeCompileTypeScript" AfterTargets="Clean;Build" Condition=" '$(TypeScriptOutDir)' != '' "> | |
<!-- | |
Assumes the TypeScriptOutDir only contains generated code. | |
If a TypeScript file is deleted from the project the old js file | |
will remain in the output folder. | |
Find JS files in the output folder that were not generated by | |
TypeScript and delete them. | |
--> |
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.Data; | |
using NHibernate; | |
using NHibernate.SqlTypes; | |
using NHibernate.UserTypes; | |
using NodaTime; | |
[Serializable] | |
public class InstantType : IUserType | |
{ |
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.IO; | |
using System.Threading; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
class Program | |
{ | |
const string exe = "Server.exe"; | |
const string config = exe + ".config"; |
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
from docutils import nodes, core, io | |
from docutils.parsers.rst import Directive | |
def setup(app): | |
app.add_directive('test', TestDirective) | |
return {'version': '0.1'} | |
class TestDirective(Directive): | |
def run(self): | |
table = nodes.table(cols=2) |