Skip to content

Instantly share code, notes, and snippets.

View domenu's full-sized avatar

Dominique domenu

View GitHub Profile
@domenu
domenu / gist:246374c61f137a7e78865aefdac82b0b
Created December 18, 2018 14:46
Remove all folders with a specific name recursively on Windows
To see which folders will be deleted:
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"
And then to actually delete them, just run this:
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rd /q /s "%d"
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 28, 2024 23:01
Essential JavaScript Links
public static class HtmlExtensions
{
public static IHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression,
Dictionary<string, IEnumerable<SelectListItem>> selectList)
{
/*
* <select name="tmodel">
* <optgroup label="Items">
* <option value="item">Item</option>
* </select>