Skip to content

Instantly share code, notes, and snippets.

@patrickhuber
patrickhuber / gll_shift.py
Created Nov 16, 2017 — forked from cheery/gll_shift.py
GLL Recognizer
View gll_shift.py
class Cell(object):
def __init__(self, L):
self.L = L
self.edges = set()
self.redus = set()
class Chart(object):
def __init__(self):
self.cont = []
self.visit = set()
@patrickhuber
patrickhuber / Clear-Tfscache.ps1
Created Nov 18, 2015 — forked from anonymous/Clear-Tfscache.ps1
clears the tfs cache for visual studio
View Clear-Tfscache.ps1
$ErrorActionPreference = "Stop"
$directory = [io.path]::combine($env:LOCALAPPDATA, "microsoft", "team foundation")
foreach($versionDirectory in get-childitem $directory)
{
$cacheDirectory = Join-Path $versionDirectory.FullName "Cache"
$items = Get-ChildItem $cacheDirectory
foreach($item in $items)
{
Remove-Item -Recurse -Force $item.FullName
}