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
Option Explicit | |
Function FileDelete(Filename As String) As String | |
Dim fso As New FileSystemObject | |
On Error Resume Next | |
Err.Clear | |
Call fso.DeleteFile(Filename) | |
On Error GoTo 0 | |
If Err.Number <> 0 Then |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace System.Linq | |
{ | |
public class KeyEqualityComparer<T> : IEqualityComparer<T> | |
{ | |
private readonly Func<T, T, bool> comparer; |
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
/// <summary> | |
/// COM running object table utility class | |
/// </summary> | |
public static class ROTHelper | |
{ | |
public static IDictionary<string, object> GetActiveObjects(string MonikerFilter) | |
{ | |
var ret = new Dictionary<string, object>(); | |
IRunningObjectTable pprot; |
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
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
SET TGT=%1 | |
SET TGT=%TGT:"=% | |
IF "%TGT%"=="" SET TGT=* | |
takeown /f "%TGT%" /R /D Y > nul | |
icacls "%TGT%" /reset /t /q | |
icacls "%TGT%" /grant %USERNAME%:F /t /q | |
attrib -r -h -s "%TGT%" /s /l /d |
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.Text; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.IO; | |
namespace TheBestAppEver | |
{ | |
/// <summary> | |
/// The type of <see cref="ListDiffAction{S,D}"/>. |
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
struct FileNode | |
{ | |
public string Name; | |
public bool IsDirectory; | |
public Exception Error; | |
public bool HasError { get { return this.Error!=null; } } | |
} | |
void Main() |
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
/* | |
jquery.draghover.js | |
Emulates draghover event by tracking | |
dragenter / dragleave events of element + children. | |
https://gist.github.com/gists/3794126 | |
http://stackoverflow.com/a/10310815/4196 |
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
# Personal files | |
*.user | |
#dev.config | |
#connections.config | |
# Build results | |
[Dd]ebug/ | |
[Rr]elease/ | |
[Bb]in/ | |
[Oo]bj/ |
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 | |
set -e | |
set -o pipefail | |
VERBOSE= | |
MAX_TIME_SECONDS= | |
function usage { | |
cat <<EOF |
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
@for /f %%i in ('php -r "echo realpath(__DIR__);"') do pushd %%i |
OlderNewer