def check_url(url)
return true if /^(?:(?:https\:\/\/))|(?:(?:http\:\/\/))/.match(url)
return false
end
| /* Checkbox Hack */ | |
| input[type=checkbox] { | |
| position: absolute; | |
| top: -9999px; | |
| left: -9999px; | |
| } | |
| label { | |
| -webkit-appearance: push-button; | |
| -moz-appearance: button; |
This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:
| # encoding: UTF-8 | |
| namespace :brazil do | |
| desc "Load brazilian states for spree store" | |
| task :states => :environment do | |
| brazil = Country.find :first, :conditions => {:name => "Brazil"} | |
| states = <<STATES | |
| AC,Acre | |
| AL,Alagoas | |
| AP,Amapá | |
| AM,Amazonas |