Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add old nerdtree snippets

  • Loading branch information...
commit 522e5caef50e7ff711cbb2ecd03a4655442f7de2 0 parents
@scrooloose scrooloose authored
Showing with 745 additions and 0 deletions.
  1. +1 −0  _/date/date + time.snippet
  2. +1 −0  _/date/date.snippet
  3. +1 −0  _/lorem.snippet
  4. +1 −0  _/modeline.snippet
  5. +29 −0 ant/skel/basic.snippet
  6. +3 −0  eruby-rails/conf.snippet
  7. +1 −0  eruby-rails/cs.snippet
  8. +1 −0  eruby-rails/end.snippet
  9. +3 −0  eruby-rails/ff.snippet
  10. +1 −0  eruby-rails/ffcb.snippet
  11. +5 −0 eruby-rails/ffe.snippet
  12. +1 −0  eruby-rails/ffff.snippet
  13. +1 −0  eruby-rails/ffhf.snippet
  14. +1 −0  eruby-rails/ffl.snippet
  15. +1 −0  eruby-rails/ffpf.snippet
  16. +1 −0  eruby-rails/ffrb.snippet
  17. +1 −0  eruby-rails/ffs.snippet
  18. +1 −0  eruby-rails/ffta.snippet
  19. +1 −0  eruby-rails/fftf.snippet
  20. +3 −0  eruby-rails/fields.snippet
  21. +7 −0 eruby-rails/for.snippet
  22. +3 −0  eruby-rails/ft.snippet
  23. +1 −0  eruby-rails/it.snippet
  24. +1 −0  eruby-rails/jit.snippet
  25. +1 −0  eruby-rails/jsit.snippet
  26. +1 −0  eruby-rails/lia.snippet
  27. +1 −0  eruby-rails/liai.snippet
  28. +1 −0  eruby-rails/lic.snippet
  29. +1 −0  eruby-rails/lica.snippet
  30. +1 −0  eruby-rails/licai.snippet
  31. +1 −0  eruby-rails/lim.snippet
  32. +1 −0  eruby-rails/linp.snippet
  33. +1 −0  eruby-rails/linpp.snippet
  34. +1 −0  eruby-rails/lip.snippet
  35. +1 −0  eruby-rails/lipp.snippet
  36. +1 −0  eruby-rails/lt.snippet
  37. +1 −0  eruby-rails/ofcfs.snippet
  38. +1 −0  eruby-rails/rf.snippet
  39. +1 −0  eruby-rails/rp.snippet
  40. +1 −0  eruby-rails/rt.snippet
  41. +1 −0  eruby-rails/slt.snippet
  42. +1 −0  eruby-rails/sslt.snippet
  43. +1 −0  eruby-rails/st.snippet
  44. +3 −0  eruby/if.snippet
  45. +5 −0 eruby/ife.snippet
  46. +3 −0  eruby/unless.snippet
  47. +5 −0 eruby/unlesse.snippet
  48. +1 −0  html/base.snippet
  49. +3 −0  html/body.snippet
  50. +3 −0  html/div.snippet
  51. +1 −0  html/doctype.snippet
  52. +5 −0 html/form.snippet
  53. +1 −0  html/h1.snippet
  54. +5 −0 html/head.snippet
  55. +1 −0  html/href.snippet
  56. +1 −0  html/ifie.snippet
  57. +1 −0  html/img.snippet
  58. +1 −0  html/input.snippet
  59. +2 −0  html/inputl.snippet
  60. +1 −0  html/label.snippet
  61. +1 −0  html/link.snippet
  62. +1 −0  html/mailto.snippet
  63. +1 −0  html/meta.snippet
  64. +1 −0  html/option.snippet
  65. +1 −0  html/script/include_script.snippet
  66. +5 −0 html/script/inline_script.snippet
  67. +5 −0 html/select.snippet
  68. +12 −0 html/skel/basic.snippet
  69. +14 −0 html/skel/basic_with_meta.snippet
  70. +1 −0  html/span.snippet
  71. +3 −0  html/style.snippet
  72. +3 −0  html/table/basic.snippet
  73. +9 −0 html/table/hardcore.snippet
  74. +1 −0  html/textarea.snippet
  75. +9 −0 java/class/basic+constructor+main.snippet
  76. +6 −0 java/class/basic+constructor.snippet
  77. +14 −0 java/class/basic.snippet
  78. +3 −0  java/for.snippet
  79. +11 −0 java/gs.snippet
  80. +3 −0  java/if.snippet
  81. +5 −0 java/ife.snippet
  82. +1 −0  java/log.snippet
  83. +3 −0  java/m.snippet
  84. +1 −0  javascript-jquery/add.snippet
  85. +1 −0  javascript-jquery/addClass.snippet
  86. +1 −0  javascript-jquery/after.snippet
  87. +18 −0 javascript-jquery/ajax.snippet
  88. +4 −0 javascript-jquery/ajaxerror.snippet
  89. +3 −0  javascript-jquery/ajaxget.snippet
  90. +3 −0  javascript-jquery/ajaxgetif.snippet
  91. +5 −0 javascript-jquery/ajaxpost.snippet
  92. +4 −0 javascript-jquery/ajaxsend.snippet
  93. +18 −0 javascript-jquery/ajaxsetup.snippet
  94. +4 −0 javascript-jquery/ajaxstart.snippet
  95. +4 −0 javascript-jquery/ajaxstop.snippet
  96. +4 −0 javascript-jquery/ajaxsuccess.snippet
  97. +1 −0  javascript-jquery/animate.snippet
  98. +1 −0  javascript-jquery/append.snippet
  99. +1 −0  javascript-jquery/appendTo.snippet
  100. +1 −0  javascript-jquery/attr.snippet
  101. +1 −0  javascript-jquery/attrm.snippet
  102. +1 −0  javascript-jquery/before.snippet
  103. +3 −0  javascript-jquery/bind.snippet
  104. +3 −0  javascript-jquery/blur.snippet
  105. +3 −0  javascript-jquery/change.snippet
  106. +1 −0  javascript-jquery/children.snippet
  107. +3 −0  javascript-jquery/click.snippet
  108. +1 −0  javascript-jquery/clone.snippet
  109. +1 −0  javascript-jquery/contains.snippet
  110. +1 −0  javascript-jquery/css.snippet
  111. +1 −0  javascript-jquery/cssm.snippet
  112. +3 −0  javascript-jquery/dblclick.snippet
  113. +3 −0  javascript-jquery/each.snippet
  114. +1 −0  javascript-jquery/el.snippet
  115. +1 −0  javascript-jquery/eltrim.snippet
  116. +1 −0  javascript-jquery/end.snippet
  117. +3 −0  javascript-jquery/error.snippet
  118. +1 −0  javascript-jquery/fadein.snippet
  119. +3 −0  javascript-jquery/fadeinc.snippet
  120. +1 −0  javascript-jquery/fadeout.snippet
  121. +3 −0  javascript-jquery/fadeoutc.snippet
  122. +1 −0  javascript-jquery/fadeto.snippet
  123. +3 −0  javascript-jquery/fadetoc.snippet
  124. +1 −0  javascript-jquery/filter.snippet
  125. +1 −0  javascript-jquery/find.snippet
  126. +3 −0  javascript-jquery/focus.snippet
  127. +1 −0  javascript-jquery/get.snippet
  128. +5 −0 javascript-jquery/getjson.snippet
  129. +3 −0  javascript-jquery/getscript.snippet
  130. +1 −0  javascript-jquery/height.snippet
  131. +1 −0  javascript-jquery/hide.snippet
  132. +3 −0  javascript-jquery/hidec.snippet
  133. +5 −0 javascript-jquery/hover.snippet
  134. +1 −0  javascript-jquery/html.snippet
  135. +1 −0  javascript-jquery/insertAfter.snippet
  136. +1 −0  javascript-jquery/insertBefore.snippet
  137. +1 −0  javascript-jquery/is.snippet
  138. +3 −0  javascript-jquery/load.snippet
  139. +3 −0  javascript-jquery/loadf.snippet
  140. +3 −0  javascript-jquery/loadif.snippet
  141. +3 −0  javascript-jquery/mdown.snippet
  142. +3 −0  javascript-jquery/mmove.snippet
  143. +3 −0  javascript-jquery/mout.snippet
  144. +3 −0  javascript-jquery/mover.snippet
  145. +3 −0  javascript-jquery/mup.snippet
  146. +1 −0  javascript-jquery/next.snippet
  147. +1 −0  javascript-jquery/not.snippet
  148. +3 −0  javascript-jquery/one.snippet
  149. +1 −0  javascript-jquery/parent.snippet
  150. +1 −0  javascript-jquery/parents.snippet
  151. +1 −0  javascript-jquery/prepend.snippet
  152. +1 −0  javascript-jquery/prependto.snippet
  153. +1 −0  javascript-jquery/prev.snippet
  154. +3 −0  javascript-jquery/ready.snippet
  155. +1 −0  javascript-jquery/remove.snippet
  156. +1 −0  javascript-jquery/removeattr.snippet
  157. +1 −0  javascript-jquery/removeclass.snippet
  158. +3 −0  javascript-jquery/reset.snippet
  159. +3 −0  javascript-jquery/resize.snippet
  160. +3 −0  javascript-jquery/scroll.snippet
  161. +1 −0  javascript-jquery/sdown.snippet
  162. +3 −0  javascript-jquery/sdownc.snippet
  163. +3 −0  javascript-jquery/sdupc.snippet
  164. +3 −0  javascript-jquery/select.snippet
  165. +1 −0  javascript-jquery/show.snippet
  166. +3 −0  javascript-jquery/showc.snippet
  167. +1 −0  javascript-jquery/sib.snippet
  168. +1 −0  javascript-jquery/size.snippet
  169. +1 −0  javascript-jquery/stoggle.snippet
  170. +3 −0  javascript-jquery/submit.snippet
  171. +1 −0  javascript-jquery/sup.snippet
  172. +1 −0  javascript-jquery/text.snippet
  173. +1 −0  javascript-jquery/this.snippet
  174. +6 −0 javascript-jquery/tog.snippet
  175. +1 −0  javascript-jquery/togclass.snippet
  176. +1 −0  javascript-jquery/togsh.snippet
  177. +1 −0  javascript-jquery/trig.snippet
  178. +1 −0  javascript-jquery/unbind.snippet
  179. +2 −0  javascript-jquery/val.snippet
  180. +1 −0  javascript-jquery/width.snippet
  181. +1 −0  javascript-jquery/wrap.snippet
  182. +1 −0  javascript/anon.snippet
  183. +3 −0  javascript/for.snippet
  184. +3 −0  javascript/fun.snippet
  185. +1 −0  javascript/if.snippet
  186. +5 −0 javascript/ife.snippet
  187. +3 −0  javascript/met.snippet
  188. +3 −0  javascript/proto.snippet
  189. +1 −0  javascript/timeout.snippet
  190. +9 −0 php/case.snippet
  191. +6 −0 php/class.snippet
  192. +3 −0  php/for.snippet
  193. +3 −0  php/foreach.snippet
  194. +3 −0  php/foreachk.snippet
  195. +4 −0 php/func.snippet
  196. +3 −0  php/function.snippet
  197. +1 −0  php/get.snippet
  198. +3 −0  php/if.snippet
  199. +5 −0 php/ife.snippet
  200. +1 −0  php/iff.snippet
  201. +1 −0  php/inc.snippet
  202. +1 −0  php/log.snippet
  203. +3 −0  php/php.snippet
  204. +1 −0  php/post.snippet
  205. +1 −0  php/req.snippet
  206. +1 −0  php/request.snippet
  207. +1 −0  php/session.snippet
  208. +1 −0  php/var.snippet
  209. +3 −0  php/while.snippet
  210. +2 −0  python/class.snippet
  211. +2 −0  python/def.snippet
  212. +3 −0  python/for.snippet
  213. +2 −0  python/from.snippet
  214. +3 −0  python/get.snippet
  215. +2 −0  python/ifmain.snippet
  216. +2 −0  python/import.snippet
  217. +2 −0  python/init.snippet
  218. +1 −0  python/set.snippet
  219. +4 −0 python/try.snippet
  220. +11 −0 readme.txt
  221. +1 −0  ruby-factorygirl/fac.snippet
  222. +1 −0  ruby-factorygirl/facb.snippet
  223. +4 −0 ruby-factorygirl/facd.snippet
  224. +1 −0  ruby-factorygirl/facn.snippet
  225. +4 −0 ruby-factorygirl/facs.snippet
  226. +1 −0  ruby-rails-rjs/hide.snippet
  227. +1 −0  ruby-rails-rjs/ins.snippet
  228. +1 −0  ruby-rails-rjs/rep.snippet
  229. +1 −0  ruby-rails-rjs/reph.snippet
  230. +1 −0  ruby-rails-rjs/show.snippet
  231. +1 −0  ruby-rails-rjs/tog.snippet
  232. +1 −0  ruby-rails-rjs/vis.snippet
  233. +1 −0  ruby-rails/art.snippet
  234. +1 −0  ruby-rails/artnp.snippet
  235. +1 −0  ruby-rails/artnpp.snippet
  236. +1 −0  ruby-rails/artp.snippet
  237. +1 −0  ruby-rails/artpp.snippet
  238. +3 −0  ruby-rails/asd.snippet
  239. +3 −0  ruby-rails/asnd.snippet
  240. +1 −0  ruby-rails/asre.snippet
  241. +1 −0  ruby-rails/asrj.snippet
  242. +1 −0  ruby-rails/ass.snippet
  243. +1 −0  ruby-rails/bt.snippet
  244. +1 −0  ruby-rails/crw.snippet
  245. +14 −0 ruby-rails/defcreate.snippet
  246. +9 −0 ruby-rails/defdestroy.snippet
  247. +3 −0  ruby-rails/defedit.snippet
  248. +8 −0 ruby-rails/defindex.snippet
  249. +8 −0 ruby-rails/defnew.snippet
  250. +8 −0 ruby-rails/defshow.snippet
  251. +14 −0 ruby-rails/defupdate.snippet
  252. +1 −0  ruby-rails/fina.snippet
  253. +1 −0  ruby-rails/finf.snippet
  254. +1 −0  ruby-rails/fini.snippet
  255. +1 −0  ruby-rails/finl.snippet
  256. +1 −0  ruby-rails/flash.snippet
  257. +1 −0  ruby-rails/habtm.snippet
  258. +1 −0  ruby-rails/hm.snippet
  259. +1 −0  ruby-rails/hmd.snippet
  260. +1 −0  ruby-rails/hmt.snippet
  261. +1 −0  ruby-rails/ho.snippet
  262. +1 −0  ruby-rails/ist.snippet
  263. +1 −0  ruby-rails/log.snippet
  264. +1 −0  ruby-rails/logd.snippet
  265. +1 −0  ruby-rails/loge.snippet
  266. +1 −0  ruby-rails/logf.snippet
  267. +1 −0  ruby-rails/logi.snippet
  268. +1 −0  ruby-rails/logw.snippet
  269. +1 −0  ruby-rails/mac.snippet
  270. +1 −0  ruby-rails/mapc.snippet
  271. +1 −0  ruby-rails/mapca.snippet
  272. +1 −0  ruby-rails/mapr.snippet
  273. +1 −0  ruby-rails/maprs.snippet
  274. +3 −0  ruby-rails/mapwo.snippet
  275. +2 −0  ruby-rails/mccc.snippet
  276. +1 −0  ruby-rails/mcol.snippet
  277. +3 −0  ruby-rails/mct.snippet
  278. +9 −0 ruby-rails/migration.snippet
  279. +1 −0  ruby-rails/mp.snippet
  280. +1 −0  ruby-rails/mrmc.snippet
  281. +1 −0  ruby-rails/mrnc.snippet
  282. +1 −0  ruby-rails/mrw.snippet
  283. +1 −0  ruby-rails/nc.snippet
  284. +1 −0  ruby-rails/ncl.snippet
  285. +1 −0  ruby-rails/pa.snippet
  286. +1 −0  ruby-rails/ra.snippet
  287. +1 −0  ruby-rails/ral.snippet
  288. +3 −0  ruby-rails/rest.snippet
  289. +1 −0  ruby-rails/rf.snippet
  290. +1 −0  ruby-rails/rfu.snippet
  291. +1 −0  ruby-rails/ri.snippet
  292. +1 −0  ruby-rails/ril.snippet
  293. +1 −0  ruby-rails/rit.snippet
  294. +1 −0  ruby-rails/rl.snippet
  295. +1 −0  ruby-rails/rn.snippet
  296. +1 −0  ruby-rails/rns.snippet
  297. +1 −0  ruby-rails/rp.snippet
  298. +1 −0  ruby-rails/rpc.snippet
  299. +1 −0  ruby-rails/rpl.snippet
  300. +1 −0  ruby-rails/rpo.snippet
Sorry, we could not display the entire diff because too many files (496) changed.
1  _/date/date + time.snippet
@@ -0,0 +1 @@
+\<c-r>=strftime("%Y-%m-%d %H:%M:%S")\<cr><++>
1  _/date/date.snippet
@@ -0,0 +1 @@
+\<c-r>=strftime("%Y-%m-%d")\<cr><++>
1  _/lorem.snippet
@@ -0,0 +1 @@
+Lorem ipsum dolor sit amet, consectetur magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum<++>\<c-o>:normal! gqq\<CR>
1  _/modeline.snippet
@@ -0,0 +1 @@
+\<c-r>=Snippet_Modeline()\<cr>
29 ant/skel/basic.snippet
@@ -0,0 +1,29 @@
+<project name="PROJECT NAME" default="dist" basedir=".">
+ <description>
+ </description>
+
+ <!-- set global properties for this build -->
+ <property name="src" location="src"/>
+ <property name="build" location="build"/>
+ <property name="dist" location="dist"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ </target>
+
+ <target name="compile" depends="init" description="compile the source " >
+ <javac srcdir="${src}" destdir="${build}"/>
+ </target>
+
+ <target name="dist" depends="compile" description="generate the distribution" >
+ <mkdir dir="${dist}/lib"/>
+ <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
3  eruby-rails/conf.snippet
@@ -0,0 +1,3 @@
+<% content_for :<+yield_label_in_layout+> do -%>
+ <++>
+<% end -%>
1  eruby-rails/cs.snippet
@@ -0,0 +1 @@
+<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
1  eruby-rails/end.snippet
@@ -0,0 +1 @@
+<% end -%>
3  eruby-rails/ff.snippet
@@ -0,0 +1,3 @@
+<% form_for @<+model+> do |f| -%>
+ <++>
+<% end -%>
1  eruby-rails/ffcb.snippet
@@ -0,0 +1 @@
+<%= f.check_box :<+attribute+> %>
5 eruby-rails/ffe.snippet
@@ -0,0 +1,5 @@
+<% error_messages_for :<+model+> -%>
+
+<% form_for @<+model+> do |f| -%>
+ <++>
+<% end -%>
1  eruby-rails/ffff.snippet
@@ -0,0 +1 @@
+<%= f.file_field :<+attribute+> %>
1  eruby-rails/ffhf.snippet
@@ -0,0 +1 @@
+<%= f.hidden_field :<+attribute+> %>
1  eruby-rails/ffl.snippet
@@ -0,0 +1 @@
+<%= f.label :<+attribute+><+, '<+attribute+>'+> %>
1  eruby-rails/ffpf.snippet
@@ -0,0 +1 @@
+<%= f.password_field :<+attribute+> %>
1  eruby-rails/ffrb.snippet
@@ -0,0 +1 @@
+<%= f.radio_button :<+attribute+>, :<+tag_value+> %>
1  eruby-rails/ffs.snippet
@@ -0,0 +1 @@
+<%= f.submit "<+Submit+>"<+, :disable_with => '<+Submitting+>'+> %>
1  eruby-rails/ffta.snippet
@@ -0,0 +1 @@
+<%= f.text_area :<+attribute+> %>
1  eruby-rails/fftf.snippet
@@ -0,0 +1 @@
+<%= f.text_field :<+attribute+> %>
3  eruby-rails/fields.snippet
@@ -0,0 +1,3 @@
+<% fields_for :<+model+>, @<+model+> do |<+f+>| -%>
+ <++>
+<% end -%>
7 eruby-rails/for.snippet
@@ -0,0 +1,7 @@
+<% if !<+list+>.blank? -%>
+ <% for <+item+> in <+list+> -%>
+ <++>
+ <% end -%>
+<% else -%>
+ <++>
+<% end -%>
3  eruby-rails/ft.snippet
@@ -0,0 +1,3 @@
+<% form_tag(<+:action => "<+update+>"+><+, {:<+class+> => "<+form+>"}+>) do -%>
+ <++>
+<% end -%>
1  eruby-rails/it.snippet
@@ -0,0 +1 @@
+<%= image_tag "<++>" %>
1  eruby-rails/jit.snippet
@@ -0,0 +1 @@
+<%= javascript_include_tag <+:all+><+, :cache => <+true+>+> %>
1  eruby-rails/jsit.snippet
@@ -0,0 +1 @@
+<%= javascript_include_tag "<++>" %>
1  eruby-rails/lia.snippet
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :action => "<+index+>" %>
1  eruby-rails/liai.snippet
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
1  eruby-rails/lic.snippet
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>" %>
1  eruby-rails/lica.snippet
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>", :action => "<+index+>" %>
1  eruby-rails/licai.snippet
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
1  eruby-rails/lim.snippet
@@ -0,0 +1 @@
+<%= link_to <+model+>.<+name+>, <+<+model+>_path(<+model+>)+> %>
1  eruby-rails/linp.snippet
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>, <+@+><+child+>)+> %>
1  eruby-rails/linpp.snippet
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>)+> %>
1  eruby-rails/lip.snippet
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+model+>_path(<+@+><+instance+>)+> %>
1  eruby-rails/lipp.snippet
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+model+>s_path+> %>
1  eruby-rails/lt.snippet
@@ -0,0 +1 @@
+<%= link_to "<++>", <+dest+> %>
1  eruby-rails/ofcfs.snippet
@@ -0,0 +1 @@
+<%= options_from_collection_for_select <+collection+>, <+value_method+>, <+text_method+><+, <+[selected_value]+>+> %>
1  eruby-rails/rf.snippet
@@ -0,0 +1 @@
+<%= render :file => "<+file+>"<++> %>
1  eruby-rails/rp.snippet
@@ -0,0 +1 @@
+<%= render :partial => "<+file+>"<++> %>
1  eruby-rails/rt.snippet
@@ -0,0 +1 @@
+<%= render :template => "<+file+>"<++> %>
1  eruby-rails/slt.snippet
@@ -0,0 +1 @@
+<%= stylesheet_link_tag <+:all+><+, :cache => <+true+>+> %>
1  eruby-rails/sslt.snippet
@@ -0,0 +1 @@
+<%= stylesheet_link_tag "<++>" %>
1  eruby-rails/st.snippet
@@ -0,0 +1 @@
+<%= submit_tag "<+Save changes+>"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+> %>
3  eruby/if.snippet
@@ -0,0 +1,3 @@
+<% if <++> %>
+ <++>
+<% end %>
5 eruby/ife.snippet
@@ -0,0 +1,5 @@
+<% if <++> %>
+ <++>
+<% else %>
+ <++>
+<% end %>
3  eruby/unless.snippet
@@ -0,0 +1,3 @@
+<% unless <++> %>
+ <++>
+<% end %>
5 eruby/unlesse.snippet
@@ -0,0 +1,5 @@
+<% if <++> %>
+ <++>
+<% else %>
+ <++>
+<% end %>
1  html/base.snippet
@@ -0,0 +1 @@
+<base href="<++>"<+ target="<++>"+>/>
3  html/body.snippet
@@ -0,0 +1,3 @@
+<body<+ id="<+id+>"<+ onload="<++>"+>+>>
+ <++>
+</body>
3  html/div.snippet
@@ -0,0 +1,3 @@
+<div<+ id="<+name+>"+>>
+ <++>
+</div>
1  html/doctype.snippet
@@ -0,0 +1 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><++>
5 html/form.snippet
@@ -0,0 +1,5 @@
+<form action="<+action+>" method="<+post+>" accept-charset="utf-8">
+ <++>
+
+ <p><input type="submit" value="Continue &rarr;"/></p>
+</form>
1  html/h1.snippet
@@ -0,0 +1 @@
+<h1<+ id="<+id+>"+>><++></h1>
5 html/head.snippet
@@ -0,0 +1,5 @@
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+ <title><+Page Title+></title>
+ <++>
+</head>
1  html/href.snippet
@@ -0,0 +1 @@
+<a href="<++>"><++></a>
1  html/ifie.snippet
@@ -0,0 +1 @@
+<!--[if IE]><++><![endif]--><++>
1  html/img.snippet
@@ -0,0 +1 @@
+<img src="<++>"<++> />
1  html/input.snippet
@@ -0,0 +1 @@
+<input type="text" name="<++>" <+value="<++>"+> <+size="<++>"+> <+maxlength="<++>"+> />
2  html/inputl.snippet
@@ -0,0 +1,2 @@
+<label for="<+input+>"><++></label>
+<input type="<+text/submit/hidden/button+>" name="<+name+>" value="<+value+>"<+ id="<+id+>"+>/>
1  html/label.snippet
@@ -0,0 +1 @@
+<label for="<+id+>"><+label_text+></label>
1  html/link.snippet
@@ -0,0 +1 @@
+<link rel="<+stylesheet+>" href="<+/stylesheets/<+default+>.css+>" type="text/css" media="<+screen+>" title="<+no title+>" charset="<+utf-8+>"/>
1  html/mailto.snippet
@@ -0,0 +1 @@
+<a href="mailto:<+email+><+?subject=<+feedback+>+>"><+email me+></a>
1  html/meta.snippet
@@ -0,0 +1 @@
+<meta name="<+name+>" content="<+content+>"/>
1  html/option.snippet
@@ -0,0 +1 @@
+<option<+ value="<+option+>"+>><+value+></option>
1  html/script/include_script.snippet
@@ -0,0 +1 @@
+<script src="<+url+>" type="text/javascript"<+ charset="<+utf-8+>"+>></script>
5 html/script/inline_script.snippet
@@ -0,0 +1,5 @@
+<script type="text/javascript" language="javascript" charset="utf-8">
+//<![CDATA[
+<++>
+//]]>
+</script>
5 html/select.snippet
@@ -0,0 +1,5 @@
+<select name="<+some_name+>" id="<+id+>"<+<+ multiple+><+ onchange="<++>"+><+ size="<+1+>"+>+>>
+ <option<+ value="<+option1+>"+>><+value1+></option>
+ <option<+ value="<+option2+>"+>><+value2+></option>
+ <++>
+</select>
12 html/skel/basic.snippet
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
+Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Page Title</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ </head>
+
+ <body>
+ </body>
+</html>
14 html/skel/basic_with_meta.snippet
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
+Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Page Title</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta name="keywords" content=""/>
+ <meta name="description" content=""/>
+ </head>
+
+ <body>
+ </body>
+</html>
1  html/span.snippet
@@ -0,0 +1 @@
+<span class="<++>"><++></span>
3  html/style.snippet
@@ -0,0 +1,3 @@
+<style type="text/css" media="screen">
+ <++>
+</style>
3  html/table/basic.snippet
@@ -0,0 +1,3 @@
+<table class="<++>">
+ <++>
+</table>
9 html/table/hardcore.snippet
@@ -0,0 +1,9 @@
+<table<+ width="<+100%+>" border="<+0+>" cellspacing="<+0+>" cellpadding="<+5+>"<++>+>>
+ <tr>
+ <th><++></th>
+ </tr>
+
+ <tr>
+ <td></td>
+ </tr>
+</table>
1  html/textarea.snippet
@@ -0,0 +1 @@
+<textarea name="<+Name+>" rows="<+8+>" cols="<+40+>"><++></textarea>
9 java/class/basic+constructor+main.snippet
@@ -0,0 +1,9 @@
+<+public+> class <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+><++> {
+
+ public <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+>(<++>) {
+ }
+
+ public static void main(String args[]) {
+ }
+
+}
6 java/class/basic+constructor.snippet
@@ -0,0 +1,6 @@
+<+public+> class <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+><++> {
+
+ public <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+>(<++>) {
+ }
+
+}
14 java/class/basic.snippet
@@ -0,0 +1,14 @@
+/**
+ * @author Sune Simonsen
+ * class \<c-r>=NS_prompt('snip_classname', 'class name', '')\<cr>
+ * TODO: comment
+ */
+public class \<c-r>=snip_classname\<cr> {
+
+ /**
+ * Constructor for \<c-r>=snip_classname\<cr>
+ */
+ public \<c-r>=snip_classname\<cr>(){
+ }
+
+}
3  java/for.snippet
@@ -0,0 +1,3 @@
+for(<+int i=0+>; <+condition+>; <+i+++>){
+ <++>
+}
11 java/gs.snippet
@@ -0,0 +1,11 @@
+//getter for \<c-r>=NS_prompt("snip_varname", "Variable name (eg fooBar)", "")\<cr>
+public \<c-r>=Snippet_JavaInstanceVarType(snip_varname)\<cr> get\<c-r>=NS_camelcase(snip_varname)\<cr>() {
+ return \<c-r>=snip_varname\<cr>;
+}
+
+//setter for \<c-r>=snip_varname\<cr>
+public void set\<c-r>=NS_camelcase(snip_varname)\<cr>(\<c-r>=Snippet_JavaInstanceVarType(snip_varname)\<cr> \<c-r>=snip_varname\<cr>) {
+ this.\<c-r>=snip_varname\<cr> = \<c-r>=snip_varname\<cr>;
+}
+
+<++>
3  java/if.snippet
@@ -0,0 +1,3 @@
+if(<++>){
+ <++>
+}
5 java/ife.snippet
@@ -0,0 +1,5 @@
+if(<++>){
+ <++>
+}else{
+ <++>
+}
1  java/log.snippet
@@ -0,0 +1 @@
+System.<+out+>.println(<++>);
3  java/m.snippet
@@ -0,0 +1,3 @@
+<+public+> <+void+> <+methodName+>(<++>) {
+ <++>
+}
1  javascript-jquery/add.snippet
@@ -0,0 +1 @@
+<+obj+>.add('<+selector expression+>')<++>
1  javascript-jquery/addClass.snippet
@@ -0,0 +1 @@
+<+obj+>.addClass('<+class name+>')<++>
1  javascript-jquery/after.snippet
@@ -0,0 +1 @@
+<+obj+>.after('<+Some text <b>and bold!</b>+>')<++>
18 javascript-jquery/ajax.snippet
@@ -0,0 +1,18 @@
+$.ajax({
+ url: "<+mydomain.com/url+>",
+ type: "<+POST+>",
+ dataType: "<+xml/html/script/json+>",
+ data: $.param( $("<+Element or Expression+>") ),
+
+ complete: function() {
+ <+//called when complete+>
+ },
+
+ success: function() {
+ <+//called when successful+>
+ },
+
+ error: function() {
+ <+//called when there is an error+>
+ },
+});
4 javascript-jquery/ajaxerror.snippet
@@ -0,0 +1,4 @@
+.ajaxError(function(<+request, settings+>) {
+ <+//stuff to do when an AJAX call returns an error+>;
+});
+<++>
3  javascript-jquery/ajaxget.snippet
@@ -0,0 +1,3 @@
+$.get('<+/test/ajax-test.xml+>', function(xml){
+ <+alert( ("title",xml).text() ) //optional stuff to do after get;+>
+});
3  javascript-jquery/ajaxgetif.snippet
@@ -0,0 +1,3 @@
+$.getIfModified('<+/test/test.cgi+>', function(data){
+ <+alert( "Data loaded: " + data ) //optional stuff to do after get;+>
+});
5 javascript-jquery/ajaxpost.snippet
@@ -0,0 +1,5 @@
+$.post('<+/path/to/file.cgi+>',{
+ <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
+ function(){
+ <+//stuff to do after event occurs;+>
+});
4 javascript-jquery/ajaxsend.snippet
@@ -0,0 +1,4 @@
+.ajaxSend(function(<+request, settings+>) {
+ <+//stuff to do when an AJAX call returns an error+>;
+});
+<++>
18 javascript-jquery/ajaxsetup.snippet
@@ -0,0 +1,18 @@
+$.ajaxSetup({
+ url: "<+mydomain.com/url+>",
+ type: "<+POST+>",
+ dataType: "<+xml/html/script/json+>",
+ data: $.param( $("<+Element or Expression+>") ),
+
+ complete: function() {
+ <+//called when complete+>
+ },
+
+ success: function() {
+ <+//called when successful+>
+ },
+
+ error: function() {
+ <+//called when there is an error+>
+ },
+});
4 javascript-jquery/ajaxstart.snippet
@@ -0,0 +1,4 @@
+$.ajaxStart(function() {
+ <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
+});
+<++>
4 javascript-jquery/ajaxstop.snippet
@@ -0,0 +1,4 @@
+$.ajaxStop(function() {
+ <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
+});
+<++>
4 javascript-jquery/ajaxsuccess.snippet
@@ -0,0 +1,4 @@
+$.ajaxSuccess(function() {
+ <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
+});
+<++>
1  javascript-jquery/animate.snippet
@@ -0,0 +1 @@
+<+obj+>.animate({<+param1: value1, param2: value2+>}, <+speed+>)<++>
1  javascript-jquery/append.snippet
@@ -0,0 +1 @@
+<+obj+>.append('<+Some text <b>and bold!</b>+>')<++>
1  javascript-jquery/appendTo.snippet
@@ -0,0 +1 @@
+<+obj+>.appendTo('<+selector expression+>')<++>
1  javascript-jquery/attr.snippet
@@ -0,0 +1 @@
+<+obj+>.attr('<+attribute+>', '<+value+>')<++>
1  javascript-jquery/attrm.snippet
@@ -0,0 +1 @@
+<+obj+>.attr({'<+attr1+>': '<+value1+>', '<+attr2+>': '<+value2+>'})<++>
1  javascript-jquery/before.snippet
@@ -0,0 +1 @@
+<+obj+>.before('<+Some text <b>and bold!</b>+>')<++>
3  javascript-jquery/bind.snippet
@@ -0,0 +1,3 @@
+<+obj+>.bind('<+event name+>', function(<+event+>) {
+ <+// Act on the event+>
+});
3  javascript-jquery/blur.snippet
@@ -0,0 +1,3 @@
+<+obj+>.blur(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/change.snippet
@@ -0,0 +1,3 @@
+<+obj+>.change(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/children.snippet
@@ -0,0 +1 @@
+<+obj+>.children('<+selector expression+>')<++>
3  javascript-jquery/click.snippet
@@ -0,0 +1,3 @@
+<+obj+>.click(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/clone.snippet
@@ -0,0 +1 @@
+<+obj+>.clone()<++>
1  javascript-jquery/contains.snippet
@@ -0,0 +1 @@
+<+obj+>.contains('<+text to find+>')<++>
1  javascript-jquery/css.snippet
@@ -0,0 +1 @@
+<+obj+>.css('<+attribute+>', '<+value+>')<++>
1  javascript-jquery/cssm.snippet
@@ -0,0 +1 @@
+<+obj+>.css({<+attribute1+>: '<+value1+>', <+attribute2+>: '<+value2+>'})<++>
3  javascript-jquery/dblclick.snippet
@@ -0,0 +1,3 @@
+<+obj+>.dblclick(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/each.snippet
@@ -0,0 +1,3 @@
+<+obj+>.each(function(index) {
+ <+this.innerHTML = this + " is the element, " + index + " is the position";+>
+});
1  javascript-jquery/el.snippet
@@ -0,0 +1 @@
+$('<++>')<++>
1  javascript-jquery/eltrim.snippet
@@ -0,0 +1 @@
+$.trim('<+string+>')<++>
1  javascript-jquery/end.snippet
@@ -0,0 +1 @@
+<+obj+>.end()<++>
3  javascript-jquery/error.snippet
@@ -0,0 +1,3 @@
+<+obj+>.error(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/fadein.snippet
@@ -0,0 +1 @@
+<+obj+>.fadeIn('<+slow/400/fast+>')<++>
3  javascript-jquery/fadeinc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.fadeIn('slow/400/fast', function() {
+ <+//Stuff to do *after* the animation takes place+>;
+});
1  javascript-jquery/fadeout.snippet
@@ -0,0 +1 @@
+<+obj+>.fadeOut('<+slow/400/fast+>')<++>
3  javascript-jquery/fadeoutc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.fadeOut('slow/400/fast', function() {
+ <+//Stuff to do *after* the animation takes place+>;
+});
1  javascript-jquery/fadeto.snippet
@@ -0,0 +1 @@
+<+obj+>.fadeTo('<+slow/400/fast+>', <+0.5+>)<++>
3  javascript-jquery/fadetoc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.fadeTo('slow/400/fast', <+0.5+>, function() {
+ <+//Stuff to do *after* the animation takes place+>;
+});
1  javascript-jquery/filter.snippet
@@ -0,0 +1 @@
+<+obj+>.filter('<+selector expression+>')<++>
1  javascript-jquery/find.snippet
@@ -0,0 +1 @@
+<+obj+>.find('<+selector expression+>')<++>
3  javascript-jquery/focus.snippet
@@ -0,0 +1,3 @@
+<+obj+>.focus(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/get.snippet
@@ -0,0 +1 @@
+<+obj+>.get(<+element index+>)<++>
5 javascript-jquery/getjson.snippet
@@ -0,0 +1,5 @@
+$.getJSON('<+/path/to/file.cgi+>',{
+ <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
+ function(json){
+ <+//stuff to do after event occurs;+>
+});
3  javascript-jquery/getscript.snippet
@@ -0,0 +1,3 @@
+$.getScript('<+somescript.js+>', function(){
+ <+//optional stuff to do after getScript;+>
+});
1  javascript-jquery/height.snippet
@@ -0,0 +1 @@
+<+obj+>.height(<+integer+>)<++>
1  javascript-jquery/hide.snippet
@@ -0,0 +1 @@
+<+obj+>.hide('<+slow/400/fast+>')<++>
3  javascript-jquery/hidec.snippet
@@ -0,0 +1,3 @@
+<+obj+>.hide('<+slow/400/fast+>', function() {
+ <+//Stuff to do *after* the animation takes place+>
+});
5 javascript-jquery/hover.snippet
@@ -0,0 +1,5 @@
+<+obj+>.hover(function() {
+ <+// Stuff to do when the mouse enters the element;+>
+}, function() {
+ <+// Stuff to do when the mouse leaves the element;+>
+});<++>
1  javascript-jquery/html.snippet
@@ -0,0 +1 @@
+<+obj+>.html('<+Some text <b>and bold!</b>+>')<++>
1  javascript-jquery/insertAfter.snippet
@@ -0,0 +1 @@
+<+obj+>.insertAfter('<+selector expression+>')<++>
1  javascript-jquery/insertBefore.snippet
@@ -0,0 +1 @@
+<+obj+>.insertBefore('<+selector expression+>')<++>
1  javascript-jquery/is.snippet
@@ -0,0 +1 @@
+<+obj+>.is('<+selector expression+>')<++>
3  javascript-jquery/load.snippet
@@ -0,0 +1,3 @@
+<+obj+>.load(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/loadf.snippet
@@ -0,0 +1,3 @@
+<+obj+>.load('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
+ <+// Stuff to do after the page is loaded+>
+});
3  javascript-jquery/loadif.snippet
@@ -0,0 +1,3 @@
+<+obj+>.loadIfModified('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
+ <+// Stuff to do after the page is loaded+>
+});
3  javascript-jquery/mdown.snippet
@@ -0,0 +1,3 @@
+<+obj+>.mousedown(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/mmove.snippet
@@ -0,0 +1,3 @@
+<+obj+>.mousemove(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/mout.snippet
@@ -0,0 +1,3 @@
+<+obj+>.mouseout(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/mover.snippet
@@ -0,0 +1,3 @@
+<+obj+>.mouseover(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/mup.snippet
@@ -0,0 +1,3 @@
+<+obj+>.mouseup(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/next.snippet
@@ -0,0 +1 @@
+<+obj+>.next('<+selector expression+>')<++>
1  javascript-jquery/not.snippet
@@ -0,0 +1 @@
+<+obj+>.not('<+selector expression+>')<++>
3  javascript-jquery/one.snippet
@@ -0,0 +1,3 @@
+<+obj+>.one('<+event name+>', function(<+event+>) {
+ <+// Act on the event once+>
+});
1  javascript-jquery/parent.snippet
@@ -0,0 +1 @@
+<+obj+>.parent('<+selector expression+>')<++>
1  javascript-jquery/parents.snippet
@@ -0,0 +1 @@
+<+obj+>.parents('<+selector expression+>')<++>
1  javascript-jquery/prepend.snippet
@@ -0,0 +1 @@
+<+obj+>.prepend('<+Some text <b>and bold!</b>+>')<++>
1  javascript-jquery/prependto.snippet
@@ -0,0 +1 @@
+<+obj+>.prependTo('<+selector expression+>')<++>
1  javascript-jquery/prev.snippet
@@ -0,0 +1 @@
+<+obj+>.prev('<+selector expression+>')<++>
3  javascript-jquery/ready.snippet
@@ -0,0 +1,3 @@
+$(document).ready(function() {
+ <+// Stuff to do as soon as the DOM is ready;+>
+});
1  javascript-jquery/remove.snippet
@@ -0,0 +1 @@
+<+obj+>.remove()<++>
1  javascript-jquery/removeattr.snippet
@@ -0,0 +1 @@
+<+obj+>.removeAttr('<+attribute name+>')<++>
1  javascript-jquery/removeclass.snippet
@@ -0,0 +1 @@
+<+obj+>.removeClass('<+class name+>')<++>
3  javascript-jquery/reset.snippet
@@ -0,0 +1,3 @@
+<+obj+>.reset(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/resize.snippet
@@ -0,0 +1,3 @@
+<+obj+>.resize(function() {
+ <+// Act on the event+>
+});
3  javascript-jquery/scroll.snippet
@@ -0,0 +1,3 @@
+<+obj+>.scroll(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/sdown.snippet
@@ -0,0 +1 @@
+<+obj+>.slideDown('<+slow/400/fast+>')<++>
3  javascript-jquery/sdownc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.slideDown('<+slow/400/fast+>', function() {
+ <+//Stuff to do *after* the animation takes place+>;
+});
3  javascript-jquery/sdupc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.slideUp('<+slow/400/fast+>', function() {
+ <+//Stuff to do *after* the animation takes place+>;
+});
3  javascript-jquery/select.snippet
@@ -0,0 +1,3 @@
+<+obj+>.select(function() {
+ <+// Act on the event+>
+});
1  javascript-jquery/show.snippet
@@ -0,0 +1 @@
+<+obj+>.show('<+slow/400/fast+>')<++>
3  javascript-jquery/showc.snippet
@@ -0,0 +1,3 @@
+<+obj+>.show('<+slow/400/fast+>', function() {
+ <+//Stuff to do *after* the animation takes place+>
+});
1  javascript-jquery/sib.snippet
@@ -0,0 +1 @@
+<+obj+>.siblings('<+selector expression+>')<++>
1  javascript-jquery/size.snippet
@@ -0,0 +1 @@
+<+obj+>.size()<++>
1  javascript-jquery/stoggle.snippet
@@ -0,0 +1 @@
+<+obj+>.slideToggle('<+slow/400/fast+>')<++>
3  javascript-jquery/submit.snippet
@@ -0,0 +1,3 @@
+<+obj+>.submit(function() {
+ <+// Act on the event once+>
+});
1  javascript-jquery/sup.snippet
@@ -0,0 +1 @@
+<+obj+>.slideUp('<+slow/400/fast+>')<++>
1  javascript-jquery/text.snippet
@@ -0,0 +1 @@
+<+obj+>.text(<+'some text'+>)<++>
1  javascript-jquery/this.snippet
@@ -0,0 +1 @@
+$(this)<++>
6 javascript-jquery/tog.snippet
@@ -0,0 +1,6 @@
+<+obj+>.toggle(function() {
+ <+// Stuff to do every *odd* time the element is clicked;+>
+}, function() {
+ <+// Stuff to do every *even* time the element is clicked;+>
+});
+<++>
1  javascript-jquery/togclass.snippet
@@ -0,0 +1 @@
+<+obj+>.toggleClass('<+class name+>')<++>
1  javascript-jquery/togsh.snippet
@@ -0,0 +1 @@
+<+obj+>.toggle('<+slow/400/fast+>')<++>
1  javascript-jquery/trig.snippet
@@ -0,0 +1 @@
+<+obj+>.trigger('<+event name+>')<++>
1  javascript-jquery/unbind.snippet
@@ -0,0 +1 @@
+<+obj+>.unbind('<+event name+>')<++>
2  javascript-jquery/val.snippet
@@ -0,0 +1,2 @@
+<+obj+>.val('<+text+>')<++>
+
1  javascript-jquery/width.snippet
@@ -0,0 +1 @@
+<+obj+>.width(<+integer+>)<++>
1  javascript-jquery/wrap.snippet
@@ -0,0 +1 @@
+<+obj+>.wrap('<+&lt;div class="extra-wrapper"&gt;&lt;/div&gt;+>')<++>
1  javascript/anon.snippet
@@ -0,0 +1 @@
+function(<++>) { <++> };
3  javascript/for.snippet
@@ -0,0 +1,3 @@
+for (var <+i+>=0; <+i+> < <+<+Things+>.length+>; <+i+>++) {
+ <+<+Things+>[<+i+>]+>
+};
3  javascript/fun.snippet
@@ -0,0 +1,3 @@
+function <+function_name+> (<+argument+>) {
+ <+// body+>
+}
1  javascript/if.snippet
@@ -0,0 +1 @@
+if (<+true+>) { <++> };
5 javascript/ife.snippet
@@ -0,0 +1,5 @@
+if (<+true+>) {
+ <++>
+} else {
+ <++>
+};
3  javascript/met.snippet
@@ -0,0 +1,3 @@
+<+method_name+>: function(<+attribute+>){
+ <++>
+}<+, +>
3  javascript/proto.snippet
@@ -0,0 +1,3 @@
+<+class_name+>.prototype.<+method_name+> = function(<+first_argument+>) {
+ <+// body+>
+};
1  javascript/timeout.snippet
@@ -0,0 +1 @@
+setTimeout(function() { <++> }, <+10+>);
9 php/case.snippet
@@ -0,0 +1,9 @@
+case '<++>':{
+
+ <++>
+ break;
+
+ default:
+ <++>
+ break;
+}
6 php/class.snippet
@@ -0,0 +1,6 @@
+class <+\<c-r>=Snippet_PHPClassNameFromFilename()\<CR>+> {
+
+ function __construct(<++>) {
+ <++>
+ }
+}
3  php/for.snippet
@@ -0,0 +1,3 @@
+for ($<+i+>=<++>; $<+i+> < <++>; $<+i+>++) {
+ <++>
+}
3  php/foreach.snippet
@@ -0,0 +1,3 @@
+foreach (<++> as $<+value+>) {
+ <++>
+}
3  php/foreachk.snippet
@@ -0,0 +1,3 @@
+foreach (<++> as $<+key+> => $<+value+>) {
+ <++>
+}
4 php/func.snippet
@@ -0,0 +1,4 @@
+function <+name+>(<++>) {
+ <++>
+}
+
3  php/function.snippet
@@ -0,0 +1,3 @@
+<+public+> function <+name+>(<++>) {
+ <++>
+}
1  php/get.snippet
@@ -0,0 +1 @@
+$_GET['<++>']
3  php/if.snippet
@@ -0,0 +1,3 @@
+if (<++>) {
+ <++>
+}
5 php/ife.snippet
@@ -0,0 +1,5 @@
+if (<++>) {
+ <++>
+} else {
+ <++>
+}
1  php/iff.snippet
@@ -0,0 +1 @@
+$<+result+> = (<++>) ? <++> : <++>;
1  php/inc.snippet
@@ -0,0 +1 @@
+include_once('<++>');
1  php/log.snippet
@@ -0,0 +1 @@
+error_log(var_export(<++>, true));
3  php/php.snippet
@@ -0,0 +1,3 @@
+<?php
+ <++>
+?>
1  php/post.snippet
@@ -0,0 +1 @@
+$_POST['<++>']
1  php/req.snippet
@@ -0,0 +1 @@
+require_once('<++>');
1  php/request.snippet
@@ -0,0 +1 @@
+$_REQUEST['<++>']
1  php/session.snippet
@@ -0,0 +1 @@
+$_SESSION['<++>']
1  php/var.snippet
@@ -0,0 +1 @@
+var_export(<++>);
3  php/while.snippet
@@ -0,0 +1,3 @@
+while (<++>) {
+ <++>
+}
2  python/class.snippet
@@ -0,0 +1,2 @@
+class <+\<c-r>=Snippet_PythonClassNameFromFilename()\<CR>+>(<+data+>):
+<++>
2  python/def.snippet
@@ -0,0 +1,2 @@
+def <+name+>(<+data+>):
+<++>
3  python/for.snippet
@@ -0,0 +1,3 @@
+for <+var+> in <+type+>:
+<+pass+>
+<++>
2  python/from.snippet
@@ -0,0 +1,2 @@
+from <+module+> import <+name+>
+<++>
3  python/get.snippet
@@ -0,0 +1,3 @@
+def get_<+name+>(self):
+return self._<+name+>
+<++>
2  python/ifmain.snippet
@@ -0,0 +1,2 @@
+if __name__ == '__main__':
+<++>
2  python/import.snippet
@@ -0,0 +1,2 @@
+import <+module+>
+<++>
2  python/init.snippet
@@ -0,0 +1,2 @@
+def __init__(self, <+args+>):
+<++>
1  python/set.snippet
@@ -0,0 +1 @@
+def set_<+name+>(self, <+value+>):
4 python/try.snippet
@@ -0,0 +1,4 @@
+try:
+<++>
+except <+Exception+>
+<++>
11 readme.txt
@@ -0,0 +1,11 @@
+This repo contains a collection of snippets to use with the NERD snippets
+plugin (http://github.com/scrooloose/nerdsnippets).
+
+It contains:
+* my personal snippets
+* all the rails related snippets converted from textmate by Fabio Akita (http://github.com/akitaonrails)
+* a bunch of python and php snippets by Gavin Gilmour (http://github.com/gaving)
+
+support_functions.vim contains functions that are called from some of the
+snippets. This file should be sourced somewhere like your vimrc or the same
+place you do the rest of your snippet setup.
1  ruby-factorygirl/fac.snippet
@@ -0,0 +1 @@
+Factory(:<+factory_name+><+, <++>+>)<++>
1  ruby-factorygirl/facb.snippet
@@ -0,0 +1 @@
+Factory.build(:<+factory_name+><+, <++>+>)<++>
4 ruby-factorygirl/facd.snippet
@@ -0,0 +1,4 @@
+Factory.define(:<+model+>) do |<+m+>|
+ <++>
+end
+<++>
1  ruby-factorygirl/facn.snippet
@@ -0,0 +1 @@
+Factory.next(:<+sequence-name+>)<++>
4 ruby-factorygirl/facs.snippet
@@ -0,0 +1,4 @@
+Factory.sequence :<+sequence-name+> do |<+m+>|
+ <++>
+end
+<++>
1  ruby-rails-rjs/hide.snippet
@@ -0,0 +1 @@
+page.hide <+"<+id(s)+>"+>
1  ruby-rails-rjs/ins.snippet
@@ -0,0 +1 @@
+page.insert_html :<+top+>, <+"<+id+>"+>, :<+partial => "<+template+>"+>
1  ruby-rails-rjs/rep.snippet
@@ -0,0 +1 @@
+page.replace <+"<+id+>"+>, :<+partial => "<+template+>"+>
1  ruby-rails-rjs/reph.snippet
@@ -0,0 +1 @@
+page.replace_html <+"<+id+>"+>, :<+partial => "<+template+>"+>
1  ruby-rails-rjs/show.snippet
@@ -0,0 +1 @@
+page.show <+"<+id(s)+>"+>
1  ruby-rails-rjs/tog.snippet
@@ -0,0 +1 @@
+page.toggle <+"<+id(s)+>"+>
1  ruby-rails-rjs/vis.snippet
@@ -0,0 +1 @@
+page.visual_effect :<+toggle_slide+>, <+"<+DOM ID+>"+>
1  ruby-rails/art.snippet
@@ -0,0 +1 @@
+assert_redirected_to <+:action => "<+index+>"+>
1  ruby-rails/artnp.snippet
@@ -0,0 +1 @@
+assert_redirected_to <+<+parent+>_<+child+>_path(<+@<+parent+>+>, <+@<+child+>+>)+>
1  ruby-rails/artnpp.snippet
@@ -0,0 +1 @@
+assert_redirected_to <+<+parent+>_<+child+>_path(<+@<+parent+>+>)+>
1  ruby-rails/artp.snippet
@@ -0,0 +1 @@
+assert_redirected_to <+<+model+>_path(<+@<+model+>+>)+>
1  ruby-rails/artpp.snippet
@@ -0,0 +1 @@
+assert_redirected_to <+<+model+>s_path+>
3  ruby-rails/asd.snippet
@@ -0,0 +1,3 @@
+assert_difference "<+Model+>.<+count+>", <+Model+> do
+ <++>
+end
3  ruby-rails/asnd.snippet
@@ -0,0 +1,3 @@
+assert_no_difference "<+Model+>.<+count+>" do
+ <++>
+end
1  ruby-rails/asre.snippet
@@ -0,0 +1 @@
+assert_response :<+success+>, @response.body<++>
1  ruby-rails/asrj.snippet
@@ -0,0 +1 @@
+assert_rjs :<+replace+>, <+"<+dom id+>"+>
1  ruby-rails/ass.snippet
@@ -0,0 +1 @@
+assert_select '<+path+>'<+, :<+text+> => <+'<+inner_html+>'+>+> <+do<++>+>
1  ruby-rails/bt.snippet
@@ -0,0 +1 @@
+belongs_to :<+association_name+><+, :class_name => "<+Object+>", :foreign_key => "<+<+object+>_id+>"+>
1  ruby-rails/crw.snippet
@@ -0,0 +1 @@
+cattr_accessor :<+attr_names+>
14 ruby-rails/defcreate.snippet
@@ -0,0 +1,14 @@
+def create
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.new(params[:\<c-r>=NS_underscore(snippet_classname)\<cr>])
+
+ respond_to do |wants|
+ if @\<c-r>=NS_underscore(snippet_classname)\<cr>.save
+ flash[:notice] = '\<c-r>=snippet_classname\<cr> was successfully created.'
+ wants.html { redirect_to(@\<c-r>=NS_underscore(snippet_classname)\<cr>) }
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr>, :status => :created, :location => @\<c-r>=NS_underscore(snippet_classname)\<cr> }
+ else
+ wants.html { render :action => "new" }
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr>.errors, :status => :unprocessable_entity }
+ end
+ end
+end
9 ruby-rails/defdestroy.snippet
@@ -0,0 +1,9 @@
+def destroy
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.find(params[:id])
+ @\<c-r>=NS_underscore(snippet_classname)\<cr>.destroy
+
+ respond_to do |wants|
+ wants.html { redirect_to(\<c-r>=NS_underscore(snippet_classname)\<cr>s_url) }
+ wants.xml { head :ok }
+ end
+end
3  ruby-rails/defedit.snippet
@@ -0,0 +1,3 @@
+def edit
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.find(params[:id])
+end
8 ruby-rails/defindex.snippet
@@ -0,0 +1,8 @@
+def index
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.all
+
+ respond_to do |wants|
+ wants.html # index.html.erb
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr>s }
+ end
+end
8 ruby-rails/defnew.snippet
@@ -0,0 +1,8 @@
+def new
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.new
+
+ respond_to do |wants|
+ wants.html # new.html.erb
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr> }
+ end
+end
8 ruby-rails/defshow.snippet
@@ -0,0 +1,8 @@
+def show
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.find(params[:id])
+
+ respond_to do |wants|
+ wants.html # show.html.erb
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr> }
+ end
+end
14 ruby-rails/defupdate.snippet
@@ -0,0 +1,14 @@
+def update
+ @\<c-r>=NS_underscore(NS_prompt("snippet_classname", "Model ClassName", ""))\<cr> = \<c-r>=snippet_classname\<cr>.find(params[:id])
+
+ respond_to do |wants|
+ if @\<c-r>=NS_underscore(snippet_classname)\<cr>.update_attributes(params[:\<c-r>=NS_underscore(snippet_classname)\<cr>])
+ flash[:notice] = '\<c-r>=snippet_classname\<cr> was successfully updated.'
+ wants.html { redirect_to(@\<c-r>=NS_underscore(snippet_classname)\<cr>) }
+ wants.xml { head :ok }
+ else
+ wants.html { render :action => "edit" }
+ wants.xml { render :xml => @\<c-r>=NS_underscore(snippet_classname)\<cr>.errors, :status => :unprocessable_entity }
+ end
+ end
+end
1  ruby-rails/fina.snippet
@@ -0,0 +1 @@
+find(:all<+, :conditions => ['<+<+field+> = ?+>', <+true+>]+>)
1  ruby-rails/finf.snippet
@@ -0,0 +1 @@
+find(:first<+, :conditions => ['<+<+field+> = ?+>', <+true+>]+>)
1  ruby-rails/fini.snippet
@@ -0,0 +1 @@
+find(<+id+>)
1  ruby-rails/finl.snippet
@@ -0,0 +1 @@
+find(:last<+, :conditions => ['<+<+field+> = ?+>', <+true+>]+>)
1  ruby-rails/flash.snippet
@@ -0,0 +1 @@
+flash[:<+notice+>] = "<++>"
1  ruby-rails/habtm.snippet
@@ -0,0 +1 @@
+has_and_belongs_to_many :<+object+><+, :join_table => "<+table_name+>", :foreign_key => "<+<++>_id+>"+>
1  ruby-rails/hm.snippet
@@ -0,0 +1 @@
+has_many :<+object+>s<+, :class_name => "<+object+>", :foreign_key => "<+reference+>_id"+>
1  ruby-rails/hmd.snippet
@@ -0,0 +1 @@
+has_many :<+object+>s<+, :class_name => "<+object+>", :foreign_key => "<+reference+>_id"+>, :dependent => :destroy<++>
1  ruby-rails/hmt.snippet
@@ -0,0 +1 @@
+has_many :<+association_name+>, :through => :<+join_association+><+, :source => '<++>'+>
1  ruby-rails/ho.snippet
@@ -0,0 +1 @@
+has_one :<+object+><+, :class_name => "<+Class+>", :foreign_key => "<+<++>_id+>"+>
1  ruby-rails/ist.snippet
@@ -0,0 +1 @@
+<%= image_submit_tag("<+agree.png+>"<+<+, :id => "<+id+>"+><+, :name => "<+name+>"+><+, :class => "<+class+>"+><+, :disabled => <+false+>+>+>) %>
1  ruby-rails/log.snippet
@@ -0,0 +1 @@
+RAILS_DEFAULT_LOGGER.<+debug+> <++>
1  ruby-rails/logd.snippet
@@ -0,0 +1 @@
+logger.debug { "<+message+>" }<++>
1  ruby-rails/loge.snippet
@@ -0,0 +1 @@
+logger.error { "<+message+>" }<++>
1  ruby-rails/logf.snippet
@@ -0,0 +1 @@
+logger.fatal { "<+message+>" }<++>
1  ruby-rails/logi.snippet
@@ -0,0 +1 @@
+logger.info { "<+message+>" }<++>
1  ruby-rails/logw.snippet
@@ -0,0 +1 @@
+logger.warn { "<+message+>" }<++>
1  ruby-rails/mac.snippet
@@ -0,0 +1 @@
+add_column :<+table+>, :<+column+>, :<+type+>
1  ruby-rails/mapc.snippet
@@ -0,0 +1 @@
+<+map+>.<+connect+> '<+controller/:action/:id+>'
1  ruby-rails/mapca.snippet
@@ -0,0 +1 @@
+<+map+>.catch_all "*<+anything+>", :controller => "<+default+>", :action => "<+error+>"
1  ruby-rails/mapr.snippet
@@ -0,0 +1 @@
+<+map+>.resource :<+resource+>
1  ruby-rails/maprs.snippet
@@ -0,0 +1 @@
+<+map+>.resources :<+resource+>
3  ruby-rails/mapwo.snippet
@@ -0,0 +1,3 @@
+<+map+>.with_options :<+controller+> => '<+thing+>' do |<+thing+>|
+ <++>
+end
2  ruby-rails/mccc.snippet
@@ -0,0 +1,2 @@
+t.column :<+title+>, :<+string+>
+mccc<++>
1  ruby-rails/mcol.snippet
@@ -0,0 +1 @@
+remove_column :<+table+>, :<+column+>
3  ruby-rails/mct.snippet
@@ -0,0 +1,3 @@
+create_table :<+table_name+> do |t|
+ t.column :<+name+>, :<+type+>
+end
9 ruby-rails/migration.snippet
@@ -0,0 +1,9 @@
+class \<c-r>=Snippet_MigrationNameFromFilename()\<cr> < ActiveRecord::Migration
+ def self.up
+ <++>
+ end
+
+ def self.down
+ <++>
+ end
+end
1  ruby-rails/mp.snippet
@@ -0,0 +1 @@
+map(&:<+id+>)
1  ruby-rails/mrmc.snippet
@@ -0,0 +1 @@
+remove_column :<+table+>, :<+column+>
1  ruby-rails/mrnc.snippet
@@ -0,0 +1 @@
+rename_column :<+table+>, :<+old+>, :<+new+>
1  ruby-rails/mrw.snippet
@@ -0,0 +1 @@
+mattr_accessor :<+attr_names+>
1  ruby-rails/nc.snippet
@@ -0,0 +1 @@
+named_scope :<+name+><+, :joins => :<+table+>+>, :conditions => <+['<+<+field+> = ?+>', <+true+>]+>
1  ruby-rails/ncl.snippet
@@ -0,0 +1 @@
+named_scope :<+name+>, lambda { |<+param+>| { :conditions => <+['<+<+field+> = ?+>', <+param+>]+> } }
1  ruby-rails/pa.snippet
@@ -0,0 +1 @@
+params[:<+id+>]<++>
1  ruby-rails/ra.snippet
@@ -0,0 +1 @@
+render :action => "<+action+>"
1  ruby-rails/ral.snippet
@@ -0,0 +1 @@
+render :action => "<+action+>", :layout => "<+layoutname+>"
3  ruby-rails/rest.snippet
@@ -0,0 +1,3 @@
+respond_to do |wants|
+ wants.<+html+> <+{ <++> }+>
+end
1  ruby-rails/rf.snippet
@@ -0,0 +1 @@
+render :file => "<+filepath+>"
1  ruby-rails/rfu.snippet
@@ -0,0 +1 @@
+render :file => "<+filepath+>", :use_full_path => <+false+>
1  ruby-rails/ri.snippet
@@ -0,0 +1 @@
+render :inline => "<+<%= 'hello' %>+>"
1  ruby-rails/ril.snippet
@@ -0,0 +1 @@
+render :inline => "<+<%= 'hello' %>+>", :locals => { <+:name+> => "<+value+>"<++> }
1  ruby-rails/rit.snippet
@@ -0,0 +1 @@
+render :inline => "<+<%= 'hello' %>+>", :type => <+:rxml+>
1  ruby-rails/rl.snippet
@@ -0,0 +1 @@
+render :layout => "<+layoutname+>"
1  ruby-rails/rn.snippet
@@ -0,0 +1 @@
+render :nothing => <+true+>
1  ruby-rails/rns.snippet
@@ -0,0 +1 @@
+render :nothing => <+true+>, :status => <+401+>
1  ruby-rails/rp.snippet
@@ -0,0 +1 @@
+render :partial => "<+item+>"
1  ruby-rails/rpc.snippet
@@ -0,0 +1 @@
+render :partial => "<+item+>", :collection => <+@<+item+>s+>
1  ruby-rails/rpl.snippet
@@ -0,0 +1 @@
+render :partial => "<+item+>", :locals => { :<+item+> => <+@<+item+>+><++> }
1  ruby-rails/rpo.snippet
@@ -0,0 +1 @@
+render :partial => "<+item+>", :object => <+@<+item+>+>
Please sign in to comment.
Something went wrong with that request. Please try again.