Skip to content

Instantly share code, notes, and snippets.

View lukas-shawford's full-sized avatar

Lukas Shawford lukas-shawford

View GitHub Profile
@lukas-shawford
lukas-shawford / DataTableToHTML
Last active February 11, 2019 19:10
VB.NET: Convert DataTable to HTML table
'
' An elegant way of converting a DataTable into an HTML table using VB.NET.
'
' This uses a feature of VB.NET called XML Literals:
' http://msdn.microsoft.com/en-us/library/bb384629.aspx
'
' This allows you to write HTML/XML directly in the code, and use ASP.NET-style
' interpolation tags to include LINQ expressions in the body.
'
' A couple notes:
@lukas-shawford
lukas-shawford / autoGrowInput.js
Created January 19, 2014 22:22
Auto Expanding/Grow input directive for AngularJS This is the single-line <input> analogue of this gist: https://gist.github.com/thomseddon/4703968 Original jQuery implementation here: http://jsbin.com/ahaxe
/*
* Auto-expanding textbox directive for single-line <input> controls.
*
* This is adapted from: https://gist.github.com/thomseddon/4703968
*
* See the above link for auto-growing multiline <textarea> controls, a similar but slightly
* different objective.
*
* The original, pure jQuery (and non-AngularJS) version of this can be found here:
* http://jsbin.com/ahaxe