Saturday links: ClojureBridge Survey
Friday night links:
Make an account at http://www.codewars.com .... its an easy to use interface that makes it easy to get started and write tests. | |
Easy one | |
http://www.codewars.com/kata/square-every-digit | |
Little bit harder | |
http://www.codewars.com/kata/sum-of-digits-slash-digital-root |
Saturday links: ClojureBridge Survey
Friday night links:
require 'minitest/autorun' | |
# Expectations: http://bfts.rubyforge.org/minitest/MiniTest/Expectations.html | |
# Help create test cases: http://www.cleavebooks.co.uk/scol/calnumba.htm | |
class Converter | |
end | |
describe Converter do | |
before do |
(function( $ ){ | |
$.fn.blank = function() { | |
return $(this).val() == "" | |
}; | |
})( jQuery ); | |
Usage | |
if ($("#old_password").blank()) { | |
console.log("old passworld is blank"); |
class Breadcrumb | |
Crumb = Struct.new(:name, :link) | |
attr_reader :crumbs | |
def initialize(name = "Home", link = "/") | |
@crumbs = [] | |
self.add(name, link) | |
end |
<html> | |
<head> | |
<title>sample</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> | |
<style type="text/css"> | |
#gallery { | |
display: none; | |
position: absolute; | |
top: 10; | |
left: 30; |