Skip to content

Instantly share code, notes, and snippets.

IntPtr hWnd = IntPtr.Zero;
Process currentProcess = Process.GetCurrentProcess();
Process[] processes = Process.GetProcessesByName(currentProcess.ProcessName);
foreach (Process process in processes)
{
// Get the first instance that is not this instance, has the
// same process name and was started from the same file name
// and location.
// Also check that the process has a valid
using System;
using System.Runtime.InteropServices;
using System.Threading;
using EnvDTE;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DteTestClassNamespace
{
[TestClass]
public class DteTestClass
// Adapted from http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
namespace Utilities
{
public struct HashCode
{
private readonly int hashCode;
private HashCode(int hashCode)
{
this.hashCode = hashCode;
tfpt unshelve /migrate /source:"$/VendorGraph/VendorGraph_v2.7" /target:"$/VendorGraph/FeatureBranches/Luis" "Luis"
Option Explicit
Dim objWMIService, objProcess, colProcess, fileSystemObject, shell
Dim strComputer, strList, folder, f
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
for /d /r . %%d in (bin,obj,csx,App_Data,packages) do @if exist "%%d" rd /s/q "%%d"
4th Street
4th St
Alana Way
Alana Way, California, USA
Alta Vista Terrace
Alta Vista Terrace, Fremont, CA 94539, USA
Alvord Street
asking for a cab
calling for a cab
can i find
can i find a cab
/* "can I get" is extremely common but feels dangerous even with all the two letter words in - "can I get top cuts" */
can i get a cab
can i have a cab
can i please get a cab
can i please have
can i please have a cab
Text
EscapeSF
1AM
Gagosian
FraenkelLAB
ArtSeed
sfclayworks
Arthaus
Goforaloop
Venezia
AAA
About
Access
ACRE
ACT
Acts
Adapt
Adjust
Affinity