This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Aug 21 10:01:33 -0700 2008 | [samuraicoder] |
| |
Commands/ | Sat Nov 29 17:11:08 -0800 2008 | [samuraicoder] |
| |
README.markdown | Fri Nov 14 18:41:28 -0800 2008 | [samuraicoder] |
| |
Snippets/ | Sat Nov 29 20:40:21 -0800 2008 | [samuraicoder] |
| |
info.plist | Sat Nov 29 17:00:15 -0800 2008 | [samuraicoder] |
README.markdown
Samurai Coder TextMate Bundle
These are the snippets and commands I use. Most of them are simple snippets. These may help get you started with making/customizing your bundles.
Install
Git users
-
git clone git://github.com/samuraicoder/samuraicoder-tmbundle.git ~/Library/Application\ Support/TextMate/Bundles/samuraicoder.tmbundle -
Reload the bundles from “Bundles” → “Bundle Editor” → “Reload Bundle”
Non-Git users
- Use “Download” feature in GitHub. Rename the folder to “samuraicoder.tmbundle”.
Update
- Use “Update samuraicoder bundle” inside the bundle. Only available for users who used Git for installation.
Snippets and Commands
These are some of the snippets and commands. Not everything is covered.
HTML
- Use
divi,divc,divicordivcito makedivtag pair with a closing comment. - Just press
faviconandtabkey. It generates links to favicon. - Some sample microformats snippets are added. Play with them.
CSS
- Some useful and stolen snippets.
Ruby
- Either using
magormagic, you can insert a magic comment for Ruby 1.9 files. - I can’t spell
yieldcorrectly, so I assigned ⌃-Y for that. No more typos. - Supports
cheat,roodiandrubydoctest
Ruby on Rails
PHP
- Type
debugand hittabkey. It works in PHP or HTML. Useful for debug print.
Git
- Make a
.gitignorefile and inside the file typegitignoreand press ⇥. A basic ignore rule will be added.
HAML and SASS
- After making a
application.html.hamlinapp/view/layouts, you can insert my HAML template usinghamltab trigger. - Added filters support.
- Google Analytics code snippet for HAML. Use
googlefor tab trigger - Visit HAML and SAAS documentation using commands.
Perl
- Perl Cheatsheet is available from ⌃-H.
Names
- Type
scriptyand press ⇥ yiledsscript.aculo.us. - Type
dhhand press ⇥ yileds the name of our father.






