Does Textmate have a shortcut for hash? i.e. => it's such a pain to type!

  1. Does textmate have a shortcut for hash? i.e. => it's such a pain to type!

  2. What about smart snippets where you can create a code block with replacement variables, and it cycles through the replacement variables to quickly modify the code template?

Any good links on using textmate with rails to code faster? tips/tricks etc.


We have an alternative hash syntax in Ruby 1.9:

  # old way that still works in Ruby 1.9
  my_hash = { :a => 'apple', :b => 'banana' }

  # new way
  my_hash = { a: 'apple', b: 'banana' }

Since this is being voted up, I'm adding Josiah Kiehl's comment

Note that you can't do anything but symbol keys with this method. ie: {someobject => 'value', 'string' => 'value', 123 => 'value'}

Need Your Help

In Android Market , how frequently developers can/should update their apk files?

android upgrade apk google-play

What are the best practices on updating the apk files in the Android Market ? Is it ok to publish a new version as soon as i fix a minor glitch or should i consolidate a few bugs (if those or minor...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.