Skip to content

Instantly share code, notes, and snippets.

View michaelmcshinsky's full-sized avatar

Michael McShinsky michaelmcshinsky

View GitHub Profile
@michaelmcshinsky
michaelmcshinsky / remove_node_modules_recursively.ps1
Created July 12, 2020 23:49 — forked from SynCap/remove_node_modules_recursively.ps1
Remove `node_modules` folders in Windows in all subfolders recursively with PowerShell to avoid exceeding path max_length
<#
Note: Eliminate `-WhatIf` parameter to get action be actually done
Note: PS with version prior to 4.0 can't delete non-empty folders
#>
Get-ChildItem -Path "." -Include "node_modules" -Recurse -File:$false | Remove-Item -Recurse -Force -WhatIf
@michaelmcshinsky
michaelmcshinsky / education-dropdown.html
Created December 30, 2019 13:32 — forked from ag14spirit/education-dropdown.html
Form education drop down list
<fieldset>
<legend>Education</legend>
<select class="form-control dropdown" id="education" name="education">
<option value="" selected="selected" disabled="disabled">-- select one --</option>
<option value="No formal education">No formal education</option>
<option value="Primary education">Primary education</option>
<option value="Secondary education">Secondary education or high school</option>
<option value="GED">GED</option>
<option value="Vocational qualification">Vocational qualification</option>
<option value="Bachelor's degree">Bachelor's degree</option>
@michaelmcshinsky
michaelmcshinsky / countries.json
Last active December 12, 2019 20:46 — forked from keeguon/countries.json
A list of countries in JSON
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{
@michaelmcshinsky
michaelmcshinsky / states-array.json
Last active December 12, 2019 21:05 — forked from mshafrir/states_hash.json
US states in JSON form
[
{
"name": "Alabama",
"abbreviation": "AL"
},
{
"name": "Alaska",
"abbreviation": "AK"
},
{
@michaelmcshinsky
michaelmcshinsky / 0_reuse_code.js
Created July 10, 2014 14:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console