Skip to content

Instantly share code, notes, and snippets.

View nateluzod's full-sized avatar
🎯
Focusing

Nate Luzod nateluzod

🎯
Focusing
View GitHub Profile
@nateluzod
nateluzod / ie7-indentfix.css
Created May 22, 2011 16:50
Fixing text indent for submits on IE7
input[type=submit] {
text-indent: -9999px;
display: block;
line-height: 0;
font-size: 0;
}
@nateluzod
nateluzod / killsvn.sh
Created May 22, 2011 16:51
Remove any and all traces of SVN
find . -name .svn -exec rm -rf {} \;
@nateluzod
nateluzod / scrollToTop.js
Created May 31, 2011 19:37
jQuery scroll to page top
$.fn.scrollToTop = function(){
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
}
@nateluzod
nateluzod / countries.html
Created June 21, 2011 02:55
HTML List of Countries
<select name="Country">
<option value="" selected="selected">Select Country</option>
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
@nateluzod
nateluzod / gist:1037154
Created June 21, 2011 02:56
HTML list of American states
<select name="state" id="state">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
@nateluzod
nateluzod / gist:1037289
Created June 21, 2011 05:14
HTML list of Canadian provinces
<select name="province" id="province">
<option value="AB">Alberta</option>
<option value="BC">British Columbia</option>
<option value="MB">Manitoba</option>
<option value="NB">New Brunswick</option>
<option value="NL">Newfoundland and Labrador</option>
<option value="NS">Nova Scotia</option>
<option value="NT">Northwest Territories</option>
<option value="NU">Nunavut</option>
<option value="ON">Ontario</option>
@nateluzod
nateluzod / supportPlaceholder.js
Created June 25, 2011 21:23
Placeholder support for older browsers
$.fn.supportPlaceholder = function(){
if(!Modernizr.input.placeholder) {
// Populate field with placeholder text
var placeholderText = $(this).attr("placeholder");
$(this).val(placeholderText).css({"color" : "#999"});
// Clear text if they focus
$(this).focus(function(){
$(this).val("").css({"color" : "#333"})
@nateluzod
nateluzod / coda-slider.less
Created June 27, 2011 01:17
Coda Slider CSS refactored into LESS format
.coda-slider-wrapper {
padding: 20px 0;
clear: both;
overflow: auto;
.coda-nav {
ul {
clear: both;
display: block;
margin: auto;
@nateluzod
nateluzod / zebrafy.js
Created July 6, 2011 21:17
Zebra stripe a table or a list.
$.fn.zebrafy = function(){
if($(this).get(0) != null){
var $im_a = $(this).get(0).tagName.toLowerCase();
var $stripe_element;
if($im_a == "table") {
$stripe_element = "tr"
} else {
$stripe_element = "li"
};
@nateluzod
nateluzod / gist:2657041
Created May 11, 2012 01:56
Run Jetty on alternate port
mvn -D jetty.port=9999 jetty:run