Skip to content

Instantly share code, notes, and snippets.

View jwdunne's full-sized avatar

James W Dunne jwdunne

View GitHub Profile
@jwdunne
jwdunne / gist:1052049
Created June 28, 2011 20:05
isWithdrawable method
/**
* Determines if the given amount is withdrawable which is defined as:
* amount must be more than or equal to zero.
* amount must be less than or equal to balance
* @author James W. Dunne
*/
public boolean isWithdrawable(double amount) {
if (amount < 0 || amount > balance) {
return false
}
@jwdunne
jwdunne / css-dropdowns.html
Created June 28, 2011 19:54
CSS Dropdowns
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>test</title>
<style type="text/css" media="screen">
.subnav {
padding-left: 0;
margin-left: 0;
}