Skip to content

Instantly share code, notes, and snippets.

View shaan360's full-sized avatar
๐Ÿ™‚
Coding in peace

Shaan M Khan shaan360

๐Ÿ™‚
Coding in peace
View GitHub Profile
<a class="bub" href="http://twitter.com/akashnimare">
<i>Twitter</i>
<span>Follow me <br /> on twitter</span>
</a>
<a class="bub" href="http://www.facebook.com/iaMrich22"
style="margin-left:160px;background-color:#3B5998;">
<i>Facebook</i>
<span>Be Friend <br /> on facebook</span>
</a>
<div id="wrapper"> <!-- this is only for demo -->
<h1>A simple float clearing demo</h1>
<h2>Problem</h2>
<p><strong>1. Borders and backgrounds misbehaving when applied to an element that contains a float/s</strong></p>
<div class="demo">
<div class="grid">
<img src="http://farm4.staticflickr.com/3298/3577042795_4ae17f1a3c_n.jpg" alt="" title="">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea amet commodo consequat.</p>
<div class="msft-logo">Microsoft</div>
@shaan360
shaan360 / index.html
Created September 6, 2012 13:51
A Clean, Simple, CSS Ribbon.
<div id="ribbon">
<span id="content">Hello There</span>
</div>
@pamelafox
pamelafox / view.html
Created August 21, 2012 14:30
Google Maps AutoComplete for Profile Location Field
<div class="control-group">
<label class="control-label">Location</label>
<div class="controls">
<input name="location" type="text" placeholder="City, State, Country" value="">
<input name="location_city" type="hidden" value="">
<input name="location_state" type="hidden" value="">
<input name="location_country" type="hidden" value="">
<input name="location_lat" type="hidden">
<input name="location_lng" type="hidden">
</div>
@dstroot
dstroot / install_postgresql.sh
Created June 13, 2012 00:26
Install PostgreSQL on Amazon AMI
#!/bin/bash
###############################################
# To use:
# https://raw.github.com/gist/2776351/???
# chmod 777 install_postgresql.sh
# ./install_postgresql.sh
###############################################
echo "*****************************************"
echo " Installing PostgreSQL"
echo "*****************************************"