Skip to content

Instantly share code, notes, and snippets.

@widged
widged / d3lib.md
Created October 4, 2013 03:29
d3 libraries

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@blairio
blairio / heroku.rake
Created September 3, 2013 20:08
Rake tasks for cutting a branch and deploying to a Heroku target. This works best when you have the Heroku Labs "preboot" feature enabled. Primarily, this is for deploys that do not have migrations. Migration deploys is still a work in progress and depends on the contents of the migration. (See http://pedro.herokuapp.com/past/2011/7/13/rails_mig…
def migrate_db(remote)
# sh %{heroku maintenance:on --remote #{remote}} || fail
sh %{heroku run --remote #{remote} bundle exec rake db:migrate} || fail
# sh %{heroku maintenance:off --remote #{remote}} || fail
end
def zero_deploy(environment, remote, branch)
original_path = pwd
deploy_name = "#{environment}_#{Time.now.strftime("%Y-%m-%d-%H-%M")}"
puts "-> bundle exec rake deploy:monitor[#{deploy_name}]"