Code Buckets

Buckets of code

Dealing with invalid js characters in VS Code

Even though mental stability is core personal principle that is rarely violated, here is something that was driving me mad recently. The Problem I was using VS Code do write a demo AngularJS application and I kept getting this error…

Better Numeric Range Input with ASP.NET MVC, HTML5 and JQuery

The Sin I recently wrote this horrible code to generate a drop down box to select any number from 1 to 12. Html.DropDownList(“ddlClockHours”, new List<SelectListItem> { new SelectListItem {Text = 1.ToString(), Value = 1.ToString()}, new SelectListItem {Text = 2.ToString(), Value…