This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| find . -name ".svn" -type d -exec rm -rf {} ";" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| Dir['**/*.rb'].each do |f| | |
| File.open(f, 'r+') do |io| | |
| buf = io.readlines | |
| unless /coding:/ =~ buf[0] | |
| io.rewind | |
| buf.unshift "# -*- coding: utf-8 -*-\n\n" | |
| io.write buf.join |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! RubyNewHashSyntax() | |
| :%s/:\(\w\+\) =>/\1:/ge | |
| endfunction | |
| command! RubyNewHashSyntax :call RubyNewHashSyntax() |
NewerOlder