Skip to content

Instantly share code, notes, and snippets.

@begedin
begedin / gist:5200602
Created March 19, 2013 22:10
HTML structure for basic full screen layout
<body>
<header></header>
<section>
<div class="column-left"></div>
<div></div>
<div class="column-right"></div>
</section>
<footer></footer>
</body>
@begedin
begedin / ProgrammingHowTo Full Screen Layout.css
Created March 19, 2013 22:21
Full screen layout in CSS, fixed header and footer
header, footer {
position: fixed;
width: 100%;
background-color: black;
}
header {
top: 0;
height: 50px;
}
@begedin
begedin / ProgrammingHowTo Full Screen Section.css
Created March 19, 2013 22:23
full screen layout in CSS, fixed middle section
section {
position: fixed;
width: 100%;
top: 50px;
bottom: 100px;
}
@begedin
begedin / ProgrammingHowTo - HTML Full Screen Section.html
Last active December 15, 2015 04:19
Full screen HTML layout in CSS, section with columns
<section>
<div class="column-left"></div>
<div></div>
<div class="column-right"></div>
</section>
@begedin
begedin / ProgrammingHowTo - CSS Full Screen Sidebars.css
Created March 19, 2013 22:25
full screen HTML layout in CSS, the final CSS for columns
.column-left, .column-right {
position: absolute;
height: 100%;
background-color: bisque;
width: 200px;
}
.column-left {
left: 0px;
}
.column-right {
@begedin
begedin / Close All Pings Safely.sql
Created April 21, 2013 17:27
How to disable Pingback and Trackback Spam on Wordpress - SAFER METHOD
UPDATE wp_posts SET ping_status='closed'
WHERE post_status = 'publish'
AND post_type = 'post';
UPDATE wp_posts SET ping_status='closed'
WHERE post_status = 'publish'
AND post_type = 'page';
@begedin
begedin / Close All Pings.sql
Created April 21, 2013 18:40
How to stop pingback and trackback spam on Wordpress - LESS AFE
UPDATE wp_posts SET ping_status='closed'
@begedin
begedin / GridView.html
Last active December 17, 2015 01:59
Typical ASP.NET GridVIew Control Creation
<asp:GridView
ID="gvMyGridID" runat="server"
DataSourceID="myDataSource"
AutoGenerateColumns="False"
GridLines="None"
AllowPaging="true"
CssClass="myGridClass"
PagerStyle-CssClass="myPagerClass"
AlternatingRowStyle-CssClass="myAltRowClass">
@begedin
begedin / GridView.css
Last active January 30, 2024 17:25
Styling for an ASP.NET GridView
.myGridClass {
width: 100%;
/*this will be the color of the odd row*/
background-color: #fff;
margin: 5px 0 10px 0;
border: solid 1px #525252;
border-collapse:collapse;
}
/*data elements*/
@begedin
begedin / Using Interop and Diagnostic.cs
Created May 7, 2013 14:22
Including InteropServices and Diagnostics
using System.Runtime.InteropServices;
using System.Diagnostics;