Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
NapoleonWils0n / email_link.html
Created October 31, 2012 01:27
html: email link
@NapoleonWils0n
NapoleonWils0n / iphone_dial.html
Created October 31, 2012 01:25
html: iphone dial phone number
<a href="tel:02081231234" target="_self">Number here</a>
@NapoleonWils0n
NapoleonWils0n / rss_link.html
Created October 31, 2012 01:29
html: rss link
@NapoleonWils0n
NapoleonWils0n / skype_link.html
Created October 31, 2012 01:30
html: skype link
@NapoleonWils0n
NapoleonWils0n / auto_copyrightyear.php
Created November 1, 2012 02:37
php: auto copyright year
&copy; <?php echo date("Y") ?>
@NapoleonWils0n
NapoleonWils0n / phpinfo.php
Created November 1, 2012 02:39
php: phpinfo
<?php phpinfo() ?>
@NapoleonWils0n
NapoleonWils0n / clearfix_all_browsers.css
Created November 1, 2012 20:24
css: clearfix all browsers
/* =Clearfix (all browsers)--------------------------------*/.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}/* IE6 */ * html .clearfix {height: 1%;}/* IE7 */*:first-child+html .clearfix {min-height: 1px;}
@NapoleonWils0n
NapoleonWils0n / absolute_center_image_3.css
Created November 1, 2012 20:22
css: absolute center image 3
img {
position: absolute;
top: 50%;
left: 50%;
width: 500px;
height: 500px;
margin-top: -250px; /* Half the height */
margin-left: -250px; /* Half the width */
}
@NapoleonWils0n
NapoleonWils0n / glass effect.css
Created November 1, 2012 20:29
css: glass effect
/* glass */
#poster:after {
content: -webkit-gradient(linear,left top, right top,
from(rgba(255,255,255,0.2)),
to(rgba(255,255,255,0.2)),
color-stop(0.5, rgba(255,255,255,0.5)),
color-stop(0.6, rgba(255,255,255,0.1)),
color-stop(0.605, rgba(255,255,255,0.1)));
@NapoleonWils0n
NapoleonWils0n / clearing_div.css
Created November 1, 2012 20:25
css: clearing div
.clearing {clear:both; height:0; overflow:hidden; margin:-1px 0 0 0;}