Skip to content

Instantly share code, notes, and snippets.

View rickclare's full-sized avatar

Rick Clare rickclare

View GitHub Profile
@rickclare
rickclare / keybase.md
Created March 14, 2017 08:55
Keybase proof

Keybase proof

I hereby claim:

  • I am rickclare on github.
  • I am rickclare (https://keybase.io/rickclare) on keybase.
  • I have a public key ASC9uq6jRLKF11JQj4OFi_EIe_hDsf5RkQET364PYLUYkQo

To claim this, I am signing this object:

showVolume = ($el, volume) ->
return unless $el.length > 0
height =
if volume < -45 # vary between -45 and -20
'0px'
else if volume > -20
'100%'
else
Math.floor((volume + 100) * 100 / 25 - 220) + '%'
@rickclare
rickclare / gist:3705700
Created September 12, 2012 10:04
Rounding Example
if res > 1
# round to nearest 0.5L
res = ( Math.round(res*2)/2 ).toFixed(1)
else
# round to nearest 0.05L
res = ( Math.round(res*20)/20 ).toFixed(2)
end
@rickclare
rickclare / funds.html
Created February 3, 2012 09:56
Use of dl, dt, dd
<dl>
<dt>
What do each of the goal icons do?
</dt>
<dd>
Nothing actually. The icons represent the most popular savings goals that we've come across, and so choosing one simply acts as a handy way to identify one from another. In the future, we'll be adding baked-in calculators specific to each type of goal.
</dd>
<dt>
What if I don't have a specific goal?
</dt>