Skip to content

Instantly share code, notes, and snippets.

@bunkat
bunkat / index.html
Last active September 29, 2024 02:37
Swimlane Chart using d3.js
<!--
The MIT License (MIT)
Copyright (c) 2013 [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@sukeerthiadiga
sukeerthiadiga / gist:1026599
Created June 15, 2011 06:39
Renames all *.rhtml views to .html.erb, .rjs to .js.rjs, .rxml to .xml.builder and .haml
namespace 'views' do
desc 'Renames all *.rhtml views to .html.erb, .rjs to .js.rjs, .rxml to .xml.builder, and .haml to .html.haml'
task 'rename' do
Dir.glob('app/views/**/*.rhtml').each do |file|
puts `git mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
end
Dir.glob('app/views/**/[^_]*.rxml').each do |file|
puts `git mv #{file} #{file.gsub(/\.rxml$/, '.xml.builder')}`
end