Skip to content

Instantly share code, notes, and snippets.

View davidhenley's full-sized avatar

David Henley davidhenley

  • Best Brands Inc.
  • Nashville, TN
View GitHub Profile
@livimonte
livimonte / box-min-height-100.html
Last active March 28, 2022 23:30
Take 100% height of inner div with min-height in the container. Crossbrowser, only html and css.
<!DOCTYPE html>
<head>
<style>
.main {
overflow:hidden;
border:#000 1px solid;
width:450px;
position: relative;
min-height: 50px;
@bdcravens
bdcravens / add-timestamps.sql
Created December 19, 2012 21:32
SQL Server - add createdAt and updatedAt columns, automatically updates
ALTER TABLE myTable
add createdAt datetime
CONSTRAINT DF_myTable_createdat DEFAULT GETDATE()
ALTER TABLE myTable
add updatedAt datetime
CONSTRAINT DF_myTable_updatedAt DEFAULT GETDATE()
go