Browse files

fixing merge issues on .gitignore

  • Loading branch information...
2 parents e97f291 + b2809b2 commit a0b9ad9de007aaa87931e3274dd46471cd7dc5fe @akitaonrails committed Jun 10, 2011
Showing with 829 additions and 1 deletion.
  1. +13 −1 .gitignore
  2. +76 −0 Rakefile
  3. +1 −0 _/date/date + time.snippet
  4. +1 −0 _/date/date.snippet
  5. +3 −0 _/fold.snippet
  6. +4 −0 _/lorem.snippet
  7. +1 −0 _/modeline.snippet
  8. +7 −0 c/cl.snippet
  9. +3 −0 c/def.snippet
  10. +3 −0 c/do.snippet
  11. +3 −0 c/el.snippet
  12. +3 −0 c/for.snippet
  13. +3 −0 c/forr.snippet
  14. +1 −0 c/fpf.snippet
  15. +4 −0 c/fun.snippet
  16. +3 −0 c/if.snippet
  17. +1 −0 c/inc/inc.snippet
  18. +1 −0 c/inc/inc_global.snippet
  19. +5 −0 c/main.snippet
  20. +1 −0 c/map.snippet
  21. +3 −0 c/ns.snippet
  22. +6 −0 c/once.snippet
  23. +1 −0 c/pr.snippet
  24. +7 −0 c/readfile.snippet
  25. +3 −0 c/st.snippet
  26. +1 −0 c/t.snippet
  27. +1 −0 c/td.snippet
  28. +3 −0 c/tds.snippet
  29. +1 −0 c/vector.snippet
  30. +3 −0 c/wh.snippet
  31. +1 −0 css/!.snippet
  32. +3 −0 css/#.snippet
  33. +3 −0 css/cl.snippet
  34. +3 −0 css/tag.snippet
  35. +1 −0 css/url.snippet
  36. +1 −0 cucumber/a.snippet
  37. +2 −0 cucumber/b.snippet
  38. +2 −0 cucumber/e.snippet
  39. +2 −0 cucumber/f.snippet
  40. +5 −0 cucumber/feat.snippet
  41. +5 −0 cucumber/feature.snippet
  42. +1 −0 cucumber/g.snippet
  43. +1 −0 cucumber/s.snippet
  44. +3 −0 cucumber/scen/scenario_with_js.snippet
  45. +3 −0 cucumber/scen/scenario_without_js.snippet
  46. +1 −0 cucumber/so.snippet
  47. +25 −0 cucumber/steps
  48. +1 −0 cucumber/t.snippet
  49. +1 −0 cucumber/w.snippet
  50. +3 −0 eruby-rails/conf.snippet
  51. +1 −0 eruby-rails/cs.snippet
  52. +1 −0 eruby-rails/ct.snippet
  53. +3 −0 eruby-rails/ff.snippet
  54. +1 −0 eruby-rails/ffcb.snippet
  55. +4 −0 eruby-rails/ffe.snippet
  56. +1 −0 eruby-rails/ffff.snippet
  57. +1 −0 eruby-rails/ffhf.snippet
  58. +1 −0 eruby-rails/ffl.snippet
  59. +1 −0 eruby-rails/ffpf.snippet
  60. +1 −0 eruby-rails/ffrb.snippet
  61. +1 −0 eruby-rails/ffs.snippet
  62. +1 −0 eruby-rails/ffta.snippet
  63. +1 −0 eruby-rails/fftf.snippet
  64. +3 −0 eruby-rails/fields.snippet
  65. +3 −0 eruby-rails/for.snippet
  66. +3 −0 eruby-rails/ft.snippet
  67. +1 −0 eruby-rails/i18.snippet
  68. +1 −0 eruby-rails/it.snippet
  69. +1 −0 eruby-rails/jit.snippet
  70. +1 −0 eruby-rails/jsit.snippet
  71. +1 −0 eruby-rails/lia.snippet
  72. +1 −0 eruby-rails/liai.snippet
  73. +1 −0 eruby-rails/lic.snippet
  74. +1 −0 eruby-rails/lica.snippet
  75. +1 −0 eruby-rails/licai.snippet
  76. +1 −0 eruby-rails/lim.snippet
  77. +1 −0 eruby-rails/linp.snippet
  78. +1 −0 eruby-rails/linpp.snippet
  79. +1 −0 eruby-rails/lip.snippet
  80. +1 −0 eruby-rails/lipp.snippet
  81. +1 −0 eruby-rails/lt.snippet
  82. +1 −0 eruby-rails/ltr.snippet
  83. +1 −0 eruby-rails/ofcfs.snippet
  84. +1 −0 eruby-rails/rf.snippet
  85. +1 −0 eruby-rails/rp.snippet
  86. +1 −0 eruby-rails/rt.snippet
  87. +1 −0 eruby-rails/sbtr.snippet
  88. +1 −0 eruby-rails/slt.snippet
  89. +1 −0 eruby-rails/sslt.snippet
  90. +1 −0 eruby-rails/st.snippet
  91. +1 −0 eruby/%.snippet
  92. +1 −0 eruby/%=.snippet
  93. +1 −0 eruby/e.snippet
  94. +1 −0 eruby/else.snippet
  95. +1 −0 eruby/end.snippet
  96. +1 −0 eruby/er.snippet
  97. +3 −0 eruby/if.snippet
  98. +4 −0 eruby/ife.snippet
  99. +1 −0 eruby/pe.snippet
  100. +1 −0 eruby/pr.snippet
  101. +3 −0 eruby/unless.snippet
  102. +1 −0 grails/bt.snippet
  103. +3 −0 grails/crit.snippet
  104. +1 −0 grails/fall.snippet
  105. +1 −0 grails/find.snippet
  106. +1 −0 grails/hm.snippet
  107. +1 −0 grails/ho.snippet
  108. +3 −0 grails/mconfig.snippet
  109. +1 −0 grails/mdomain.snippet
  110. +1 −0 grails/mp.snippet
  111. +4 −0 grails/mserv.snippet
  112. +1 −0 grails/red.snippet
  113. +1 −0 grails/render.snippet
  114. +4 −0 grails/tag.snippet
  115. +3 −0 grails/test.snippet
  116. +3 −0 groovy/class.snippet
  117. +3 −0 groovy/cls.snippet
  118. +3 −0 groovy/each.snippet
  119. +3 −0 groovy/if.snippet
  120. +3 −0 gsp/geach.snippet
  121. +3 −0 gsp/gform.snippet
  122. +4 −0 gsp/gherr.snippet
  123. +3 −0 gsp/gif.snippet
  124. +1 −0 gsp/ginput.snippet
  125. +1 −0 gsp/gjs.snippet
  126. +3 −0 gsp/glink.snippet
  127. +1 −0 gsp/gsel.snippet
  128. +1 −0 gsp/gsubmit.snippet
  129. +1 −0 gsp/gtemplate.snippet
  130. +9 −0 gsp/skel/layout.snippet
  131. +3 −0 haml/conf.snippet
  132. +1 −0 haml/cs.snippet
  133. +2 −0 haml/ff.snippet
  134. +1 −0 haml/ffcb.snippet
  135. +3 −0 haml/ffe.snippet
  136. +1 −0 haml/ffff.snippet
  137. +1 −0 haml/ffhf.snippet
  138. +1 −0 haml/ffl.snippet
  139. +1 −0 haml/ffpf.snippet
  140. +1 −0 haml/ffrb.snippet
  141. +1 −0 haml/ffs.snippet
  142. +1 −0 haml/ffta.snippet
  143. +1 −0 haml/fftf.snippet
  144. +2 −0 haml/fields.snippet
  145. +2 −0 haml/for.snippet
  146. +2 −0 haml/ft.snippet
  147. +2 −0 haml/if.snippet
  148. +3 −0 haml/ife.snippet
  149. +1 −0 haml/it.snippet
  150. +1 −0 haml/jit.snippet
  151. +1 −0 haml/jsit.snippet
  152. +1 −0 haml/lia.snippet
  153. +1 −0 haml/liai.snippet
  154. +1 −0 haml/lic.snippet
  155. +1 −0 haml/lica.snippet
  156. +1 −0 haml/licai.snippet
  157. +1 −0 haml/lim.snippet
  158. +1 −0 haml/linp.snippet
  159. +1 −0 haml/linpp.snippet
  160. +1 −0 haml/lip.snippet
  161. +1 −0 haml/lipp.snippet
  162. +1 −0 haml/lt.snippet
  163. +1 −0 haml/ofcfs.snippet
  164. +1 −0 haml/rf.snippet
  165. +1 −0 haml/rp.snippet
  166. +1 −0 haml/rt.snippet
  167. +1 −0 haml/slt.snippet
  168. +1 −0 haml/sslt.snippet
  169. +1 −0 haml/st.snippet
  170. +3 −0 haml/unless.snippet
  171. +1 −0 html/ah.snippet
  172. +1 −0 html/base.snippet
  173. +3 −0 html/body.snippet
  174. +1 −0 html/css.snippet
  175. +3 −0 html/divc.snippet
  176. +3 −0 html/divi.snippet
  177. +2 −0 html/doctype/HTML 4.01 Strict.snippet
  178. +2 −0 html/doctype/HTML 4.01 Transitional.snippet
  179. +2 −0 html/doctype/HTML 5.snippet
  180. +2 −0 html/doctype/XHTML 1.0 Frameset.snippet
  181. +2 −0 html/doctype/XHTML 1.0 Strict.snippet
  182. +2 −0 html/doctype/XHTML 1.0 Transitional.snippet
  183. +2 −0 html/doctype/XHTML 1.1.snippet
  184. +5 −0 html/form.snippet
  185. +1 −0 html/h1.snippet
  186. +1 −0 html/h2.snippet
  187. +1 −0 html/h3.snippet
  188. +5 −0 html/head.snippet
  189. +1 −0 html/ifie.snippet
  190. +1 −0 html/img.snippet
  191. +1 −0 html/input.snippet
  192. +2 −0 html/inputl.snippet
  193. +1 −0 html/label.snippet
  194. +1 −0 html/li.snippet
  195. +1 −0 html/link.snippet
  196. +1 −0 html/mailto.snippet
  197. +1 −0 html/meta.snippet
  198. +1 −0 html/option.snippet
  199. +3 −0 html/p.snippet
  200. +1 −0 html/script/include_script.snippet
  201. +5 −0 html/script/inline_script.snippet
  202. +3 −0 html/select.snippet
  203. +13 −0 html/skel/basic.snippet
  204. +15 −0 html/skel/basic_with_meta.snippet
  205. +28 −0 html/skel/html5.snippet
  206. +1 −0 html/span.snippet
  207. +3 −0 html/style.snippet
  208. +3 −0 html/t.snippet
  209. +3 −0 html/table/basic.snippet
  210. +9 −0 html/table/hardcore.snippet
  211. +1 −0 html/td.snippet
  212. +1 −0 html/textarea.snippet
  213. +1 −0 html/th.snippet
  214. +1 −0 html/ti.snippet
  215. +3 −0 html/tr.snippet
  216. +1 −0 html/tt.snippet
  217. +3 −0 html/ul.snippet
  218. +17 −0 java/class/basic+constructor+main.snippet
  219. +14 −0 java/class/basic+constructor.snippet
  220. +14 −0 java/class/basic.snippet
  221. +3 −0 java/for.snippet
  222. +9 −0 java/gs.snippet
  223. +3 −0 java/if.snippet
  224. +4 −0 java/ife.snippet
  225. +1 −0 java/log.snippet
  226. +8 −0 java/m.snippet
  227. +1 −0 javascript-jquery/add.snippet
  228. +1 −0 javascript-jquery/addClass.snippet
  229. +1 −0 javascript-jquery/after.snippet
  230. +18 −0 javascript-jquery/ajax.snippet
  231. +4 −0 javascript-jquery/ajaxerror.snippet
  232. +3 −0 javascript-jquery/ajaxget.snippet
  233. +3 −0 javascript-jquery/ajaxgetif.snippet
  234. +5 −0 javascript-jquery/ajaxpost.snippet
  235. +4 −0 javascript-jquery/ajaxsend.snippet
  236. +18 −0 javascript-jquery/ajaxsetup.snippet
  237. +4 −0 javascript-jquery/ajaxstart.snippet
  238. +4 −0 javascript-jquery/ajaxstop.snippet
  239. +4 −0 javascript-jquery/ajaxsuccess.snippet
  240. +1 −0 javascript-jquery/animate.snippet
  241. +1 −0 javascript-jquery/append.snippet
  242. +1 −0 javascript-jquery/appendTo.snippet
  243. +1 −0 javascript-jquery/attr.snippet
  244. +1 −0 javascript-jquery/attrm.snippet
  245. +1 −0 javascript-jquery/before.snippet
  246. +3 −0 javascript-jquery/bind.snippet
  247. +3 −0 javascript-jquery/blur.snippet
  248. +3 −0 javascript-jquery/change.snippet
  249. +1 −0 javascript-jquery/children.snippet
  250. +3 −0 javascript-jquery/click.snippet
  251. +1 −0 javascript-jquery/clone.snippet
  252. +1 −0 javascript-jquery/contains.snippet
  253. +1 −0 javascript-jquery/css.snippet
  254. +1 −0 javascript-jquery/cssm.snippet
  255. +3 −0 javascript-jquery/dblclick.snippet
  256. +3 −0 javascript-jquery/each.snippet
  257. +1 −0 javascript-jquery/el.snippet
  258. +1 −0 javascript-jquery/eltrim.snippet
  259. +1 −0 javascript-jquery/end.snippet
  260. +3 −0 javascript-jquery/error.snippet
  261. +1 −0 javascript-jquery/fadein.snippet
  262. +3 −0 javascript-jquery/fadeinc.snippet
  263. +1 −0 javascript-jquery/fadeout.snippet
  264. +3 −0 javascript-jquery/fadeoutc.snippet
  265. +1 −0 javascript-jquery/fadeto.snippet
  266. +3 −0 javascript-jquery/fadetoc.snippet
  267. +1 −0 javascript-jquery/filter.snippet
  268. +1 −0 javascript-jquery/find.snippet
  269. +3 −0 javascript-jquery/focus.snippet
  270. +1 −0 javascript-jquery/get.snippet
  271. +5 −0 javascript-jquery/getjson.snippet
  272. +3 −0 javascript-jquery/getscript.snippet
  273. +1 −0 javascript-jquery/height.snippet
  274. +1 −0 javascript-jquery/hide.snippet
  275. +3 −0 javascript-jquery/hidec.snippet
  276. +5 −0 javascript-jquery/hover.snippet
  277. +1 −0 javascript-jquery/html.snippet
  278. +1 −0 javascript-jquery/insertAfter.snippet
  279. +1 −0 javascript-jquery/insertBefore.snippet
  280. +1 −0 javascript-jquery/is.snippet
  281. +1 −0 javascript-jquery/jj.snippet
  282. +3 −0 javascript-jquery/load.snippet
  283. +3 −0 javascript-jquery/loadf.snippet
  284. +3 −0 javascript-jquery/loadif.snippet
  285. +3 −0 javascript-jquery/mdown.snippet
  286. +3 −0 javascript-jquery/mmove.snippet
  287. +3 −0 javascript-jquery/mout.snippet
  288. +3 −0 javascript-jquery/mover.snippet
  289. +3 −0 javascript-jquery/mup.snippet
  290. +1 −0 javascript-jquery/next.snippet
  291. +1 −0 javascript-jquery/not.snippet
  292. +3 −0 javascript-jquery/one.snippet
  293. +1 −0 javascript-jquery/parent.snippet
  294. +1 −0 javascript-jquery/parents.snippet
  295. +1 −0 javascript-jquery/prepend.snippet
  296. +1 −0 javascript-jquery/prependto.snippet
  297. +1 −0 javascript-jquery/prev.snippet
  298. +3 −0 javascript-jquery/ready.snippet
  299. +1 −0 javascript-jquery/remove.snippet
  300. +1 −0 javascript-jquery/removeattr.snippet
Sorry, we could not display the entire diff because too many files (751) changed.
View
14 .gitignore
@@ -1,7 +1,19 @@
-.DS_Store
tags
*~
*.sw*
.VimballRecord
.netrwhist
bundle/vim-peepopen
+.DS_Store
+*.log
+*.tmp
+*.swp
+*.old
+*.bkp
+*.zip
+*.rar
+*.arj
+*.[t]gz
+*.[t]bz2
+tmp/
+log/
View
76 Rakefile
@@ -0,0 +1,76 @@
+#require 'fileutils'
+#include FileUtils
+require 'rake'
+
+# The install task was stolen from RyanB
+# http://github.com/ryanb/dotfiles
+
+desc "install the snippets into user's vim directory @home"
+task :install => ["snippets_dir:find"] do
+ replace_all = false
+ Dir['*'].each do |file|
+ next if %w[Rakefile].include? file
+
+ if File.exist?(File.join(@snippets_dir, "#{file}"))
+ if replace_all
+ replace_file(file)
+ else
+ print "overwrite #{File.join(@snippets_dir, file)}? [ynaq] "
+ case $stdin.gets.chomp
+ when 'a'
+ replace_all = true
+ replace_file(file)
+ when 'y'
+ replace_file(file)
+ when 'q'
+ exit
+ else
+ puts File.join(@snippets_dir, "#{file}")
+ end
+ end
+ else
+ link_file(file)
+ end
+ end
+end
+
+def replace_file(file)
+ link_file(file)
+end
+
+def link_file(file)
+ puts "linking #{path_to(file)}"
+ ln_s File.join(FileUtils.pwd,file), path_to(file), :force => true
+end
+
+def path_to(file)
+ File.join(@snippets_dir, "#{file}")
+end
+
+
+namespace :snippets_dir do
+ desc "Sets @snippets_dir dependent on which OS You run"
+ task :find do
+ @snippets_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin32/ ? "vimfiles" : ".vim", "snippets")
+ end
+
+ desc "Purge the contents of the vim snippets directory"
+ task :purge => ["snippets_dir:find"] do
+ rm_rf @snippets_dir, :verbose => true if File.directory? @snippets_dir
+ mkdir @snippets_dir, :verbose => true
+ end
+end
+
+desc "Copy the snippets directories into ~/.vim/snippets"
+task :deploy_local => ["snippets_dir:purge"] do
+ Dir.foreach(".") do |f|
+ cp_r f, @snippets_dir, :verbose => true if File.directory?(f) && f =~ /^[^\.]/
+ end
+ cp "support_functions.vim", @snippets_dir, :verbose => true
+end
+
+desc "Alias for purge"
+task :purge => ["snippets_dir:purge"]
+
+desc "Alias for default task run easy 'rake'"
+task :default => :install
View
1 _/date/date + time.snippet
@@ -0,0 +1 @@
+`strftime("%Y-%m-%d %H:%M:%S")`
View
1 _/date/date.snippet
@@ -0,0 +1 @@
+`strftime("%Y-%m-%d")`
View
3 _/fold.snippet
@@ -0,0 +1,3 @@
+# {{{ ${1:description}
+${2}
+# }}}
View
4 _/lorem.snippet
@@ -0,0 +1,4 @@
+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${1}
View
1 _/modeline.snippet
@@ -0,0 +1 @@
+`Snippet_Modeline()`
View
7 c/cl.snippet
@@ -0,0 +1,7 @@
+class ${1:`Filename('$1_t', 'name')`} {
+ public:
+ $1 (${2:arguments});
+ virtual ~$1 ();
+ private:
+ ${3:/* data */}
+};
View
3 c/def.snippet
@@ -0,0 +1,3 @@
+#ifndef $1
+#define ${1:SYMBOL} ${2:value}
+#endif${3}
View
3 c/do.snippet
@@ -0,0 +1,3 @@
+do {
+ ${2:/* code */}
+} while (${1:/* condition */});
View
3 c/el.snippet
@@ -0,0 +1,3 @@
+else {
+ ${1}
+}
View
3 c/for.snippet
@@ -0,0 +1,3 @@
+for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
+ ${4:/* code */}
+}
View
3 c/forr.snippet
@@ -0,0 +1,3 @@
+for (${1:i} = 0; ${2:$1 < 5}; $1${3:++}) {
+ ${4:/* code */}
+}
View
1 c/fpf.snippet
@@ -0,0 +1 @@
+fprintf(${1:stderr}, "${2:%s}\n"${3});${4}
View
4 c/fun.snippet
@@ -0,0 +1,4 @@
+${1:void} ${2:function_name} (${3})
+{
+ ${4:/* code */}
+}
View
3 c/if.snippet
@@ -0,0 +1,3 @@
+if (${1:/* condition */}) {
+ ${2:/* code */}
+}
View
1 c/inc/inc.snippet
@@ -0,0 +1 @@
+#include "${1:`Filename("$1.h")`}"${2}
View
1 c/inc/inc_global.snippet
@@ -0,0 +1 @@
+#include <${1:stdio}.h>${2}
View
5 c/main.snippet
@@ -0,0 +1,5 @@
+int main (int argc, char const* argv[])
+{
+ ${1:/* code */}
+ return 0;
+}
View
1 c/map.snippet
@@ -0,0 +1 @@
+std::map<${1:key}, ${2:value}> map${3};
View
3 c/ns.snippet
@@ -0,0 +1,3 @@
+namespace ${1:`Filename('', 'my')`} {
+ ${2}
+} /* $1 */
View
6 c/once.snippet
@@ -0,0 +1,6 @@
+#ifndef ${1:`toupper(Filename('', 'UNTITLED').'_'.system("/usr/bin/ruby -e 'print (rand * 2821109907455).round.to_s(36)'"))`}
+#define $1
+
+${2}
+
+#endif /* end of include guard: $1 */
View
1 c/pr.snippet
@@ -0,0 +1 @@
+printf("${1:%s}\n"${2});${3}
View
7 c/readfile.snippet
@@ -0,0 +1,7 @@
+std::vector<char> v;
+if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) {
+ char buf[1024];
+ while (size_t len = fread(buf, 1, sizeof(buf), $2))
+ v.insert(v.end(), buf, buf + len);
+ fclose($2);
+}${3}
View
3 c/st.snippet
@@ -0,0 +1,3 @@
+struct ${1:`Filename('$1_t', 'name')`} {
+ ${2:/* data */}
+}${3: /* optional variable list */};${4}
View
1 c/t.snippet
@@ -0,0 +1 @@
+${1:/* condition */} ? ${2:a} : ${3:b}'
View
1 c/td.snippet
@@ -0,0 +1 @@
+typedef ${1:int} ${2:MyCustomType};
View
3 c/tds.snippet
@@ -0,0 +1,3 @@
+typedef struct {
+ ${2:/* data */}
+} ${1:`Filename('$1_t', 'name')`};
View
1 c/vector.snippet
@@ -0,0 +1 @@
+std::vector<${1:char}> v${2};
View
3 c/wh.snippet
@@ -0,0 +1,3 @@
+while (${1:/* condition */}) {
+ ${2:/* code */}
+}
View
1 css/!.snippet
@@ -0,0 +1 @@
+!important
View
3 css/#.snippet
@@ -0,0 +1,3 @@
+#${1:id} {
+ ${2}
+}
View
3 css/cl.snippet
@@ -0,0 +1,3 @@
+.${1:class} {
+ ${2:color: pink;}
+}
View
3 css/tag.snippet
@@ -0,0 +1,3 @@
+${1:tag} {
+ ${2:color: pink;}
+}
View
1 css/url.snippet
@@ -0,0 +1 @@
+url('${1:../images/}${2}')${3}
View
1 cucumber/a.snippet
@@ -0,0 +1 @@
+And
View
2 cucumber/b.snippet
@@ -0,0 +1,2 @@
+Background:
+ ${1}
View
2 cucumber/e.snippet
@@ -0,0 +1,2 @@
+Examples:
+
View
2 cucumber/f.snippet
@@ -0,0 +1,2 @@
+Feature: ${1:name}
+ ${2}
View
5 cucumber/feat.snippet
@@ -0,0 +1,5 @@
+Feature: ${1:[feature name eg. "Manage some thing ..."]}
+ In order to ${2:[goal]}
+ As a ${3:[stakeholder]}
+ I want ${4:[behavior]}
+
View
5 cucumber/feature.snippet
@@ -0,0 +1,5 @@
+Feature: ${1:[feature name eg. "Manage some thing ..."]}
+ In order to ${2:[goal]}
+ As a ${3:[stakeholder]}
+ I want ${4:[behavior]}
+
View
1 cucumber/g.snippet
@@ -0,0 +1 @@
+Given
View
1 cucumber/s.snippet
@@ -0,0 +1 @@
+Scenario:
View
3 cucumber/scen/scenario_with_js.snippet
@@ -0,0 +1,3 @@
+@culerity
+Scenario: ${1:Delete customers}
+ ${2:Given the following customers:}
View
3 cucumber/scen/scenario_without_js.snippet
@@ -0,0 +1,3 @@
+Scenario: ${1:Register new customers}
+ ${2:Given I am on the new customers page
+ And I press "Create"}
View
1 cucumber/so.snippet
@@ -0,0 +1 @@
+Scenario Outline:
View
25 cucumber/steps
@@ -0,0 +1,25 @@
+ Given I am on [page_name]
+
+ When I go to [page_name]
+ When I press "[button]"
+ When I follow "[link]"
+ When I fill in "[field]" with "[value]"
+ When I select "[value]" from "[field]"
+ When I select "[time]" as the date and time
+ When I select "[datetime]" as the "[datetime_label]" date and time
+ When I select "[time]" as the time
+ When I select "[time]" as the "[time_label]" time
+ When I select "[date]" as the date
+ When I select "[date]" as the "[date_label]" date
+ When I check "[field]"
+ When I uncheck "[field]"
+ When I choose "[field]"
+ When I attach the file at "[path]" to "[field]"
+
+ Then I should see "[text]"
+ Then I should not see "[text]"
+ Then the "[field]" field should contain "[value]"
+ Then the "[field]" field should not contain "[value]"
+ Then the "[label]" checkbox should be checked
+ Then I should be on [page_name]
+
View
1 cucumber/t.snippet
@@ -0,0 +1 @@
+Then
View
1 cucumber/w.snippet
@@ -0,0 +1 @@
+When
View
3 eruby-rails/conf.snippet
@@ -0,0 +1,3 @@
+<% content_for :${1:yield_label_in_layout} do %>
+ ${2}
+<% end %>
View
1 eruby-rails/cs.snippet
@@ -0,0 +1 @@
+<%= collection_select ${1:object}, ${2:method}, ${3:collection}, ${4:value_method}, ${5:text_method}${6:, options} %>${7}
View
1 eruby-rails/ct.snippet
@@ -0,0 +1 @@
+<%= content_tag '${1:DIV}', ${2:content}${3:, options} %>
View
3 eruby-rails/ff.snippet
@@ -0,0 +1,3 @@
+<%= form_for @${1:model} do |f| %>
+ ${2}
+<% end %>
View
1 eruby-rails/ffcb.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.check_box :${2:attribute} %>
View
4 eruby-rails/ffe.snippet
@@ -0,0 +1,4 @@
+<%= form_for @${2:model} do |f| %>
+ <%= f.error_messages %>
+ ${3}
+<% end %>
View
1 eruby-rails/ffff.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.file_field :${2:attribute} %>
View
1 eruby-rails/ffhf.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.hidden_field :${2:attribute} %>
View
1 eruby-rails/ffl.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.label :${2:attribute}, '${3:$2}' %>
View
1 eruby-rails/ffpf.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.password_field :${2:attribute} %>
View
1 eruby-rails/ffrb.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %>
View
1 eruby-rails/ffs.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.submit "${2:submit}" %>
View
1 eruby-rails/ffta.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.text_area :${2:attribute} %>
View
1 eruby-rails/fftf.snippet
@@ -0,0 +1 @@
+<%= ${1:f}.text_field :${2:attribute} %>
View
3 eruby-rails/fields.snippet
@@ -0,0 +1,3 @@
+<% fields_for :${1:model}, @$1 do |${2:f}| %>
+ ${3}
+<% end %>
View
3 eruby-rails/for.snippet
@@ -0,0 +1,3 @@
+<% for ${2:item} in ${1:list} %>
+ ${3}
+<% end %>
View
3 eruby-rails/ft.snippet
@@ -0,0 +1,3 @@
+<%= form_tag(${1:'url'}) do %>
+ ${2}
+<% end %>
View
1 eruby-rails/i18.snippet
@@ -0,0 +1 @@
+I18n.t('${1:type.key}')${2}
View
1 eruby-rails/it.snippet
@@ -0,0 +1 @@
+<%= image_tag "${1}"${2} %>
View
1 eruby-rails/jit.snippet
@@ -0,0 +1 @@
+<%= javascript_include_tag ${1::all}, :cache => ${2:true} %>
View
1 eruby-rails/jsit.snippet
@@ -0,0 +1 @@
+<%= javascript_include_tag "${1}" %>
View
1 eruby-rails/lia.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", :action => "${2:index}" %>
View
1 eruby-rails/liai.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", :action => "${2:edit}", :id => @${3:item} %>
View
1 eruby-rails/lic.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", :controller => "${2:items}" %>
View
1 eruby-rails/lica.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}" %>
View
1 eruby-rails/licai.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:edit}", :id => @${4:item} %>
View
1 eruby-rails/lim.snippet
@@ -0,0 +1 @@
+<%= link_to ${1:model}.${2:name}, ${3:$1_path($1)} %>
View
1 eruby-rails/linp.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2, @$3) %>
View
1 eruby-rails/linpp.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2) %>
View
1 eruby-rails/lip.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", ${2:model}_path(@${3:instance}) %>
View
1 eruby-rails/lipp.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:link text}", ${2:model}s_path %>
View
1 eruby-rails/lt.snippet
@@ -0,0 +1 @@
+<%= link_to "${1:name}", ${2:dest} %>
View
1 eruby-rails/ltr.snippet
@@ -0,0 +1 @@
+<%= link_to_remote "${1:name}", ${2:options} %>
View
1 eruby-rails/ofcfs.snippet
@@ -0,0 +1 @@
+<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:selected_value} %>
View
1 eruby-rails/rf.snippet
@@ -0,0 +1 @@
+<%= render :file => "${1:file}"${2} %>
View
1 eruby-rails/rp.snippet
@@ -0,0 +1 @@
+<%= render :partial => "${1:file}"${2} %>
View
1 eruby-rails/rt.snippet
@@ -0,0 +1 @@
+<%= render :template => "${1:file}"${2} %>
View
1 eruby-rails/sbtr.snippet
@@ -0,0 +1 @@
+<%= submit_to_remote ${1:name}, ${2:value} %>
View
1 eruby-rails/slt.snippet
@@ -0,0 +1 @@
+<%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %>
View
1 eruby-rails/sslt.snippet
@@ -0,0 +1 @@
+<%= stylesheet_link_tag "${1}" %>
View
1 eruby-rails/st.snippet
@@ -0,0 +1 @@
+<%= submit_tag "${1:Save changes}" %>
View
1 eruby/%.snippet
@@ -0,0 +1 @@
+<% ${1} %>
View
1 eruby/%=.snippet
@@ -0,0 +1 @@
+<%= ${1} %>
View
1 eruby/e.snippet
@@ -0,0 +1 @@
+<%= ${1} %>
View
1 eruby/else.snippet
@@ -0,0 +1 @@
+<% else %>
View
1 eruby/end.snippet
@@ -0,0 +1 @@
+<% end %>
View
1 eruby/er.snippet
@@ -0,0 +1 @@
+<% ${1} %>
View
3 eruby/if.snippet
@@ -0,0 +1,3 @@
+<% if ${1:condition} %>
+ ${2}
+<% end %>
View
4 eruby/ife.snippet
@@ -0,0 +1,4 @@
+<% if ${1} %>
+ ${2}
+<% else %>
+<% end %>
View
1 eruby/pe.snippet
@@ -0,0 +1 @@
+<%= ${1} %>
View
1 eruby/pr.snippet
@@ -0,0 +1 @@
+<% ${1} %>
View
3 eruby/unless.snippet
@@ -0,0 +1,3 @@
+<% unless ${1} %>
+ ${2}
+<% end %>
View
1 grails/bt.snippet
@@ -0,0 +1 @@
+static belongsTo = [${1:varName:} ${2:DomainName}]
View
3 grails/crit.snippet
@@ -0,0 +1,3 @@
+def ${1:varName} = ${2:domainName}.withCriteria {
+ ${3}
+}
View
1 grails/fall.snippet
@@ -0,0 +1 @@
+${1:domainName}.findAll${2:Attribute}(${3:value})${4}
View
1 grails/find.snippet
@@ -0,0 +1 @@
+${1:domainName}.findBy${2:Attribute}(${3:value})${4}
View
1 grails/hm.snippet
@@ -0,0 +1 @@
+static hasMany = [${1:listName}: ${2:DomainName}]
View
1 grails/ho.snippet
@@ -0,0 +1 @@
+static hasOne = [${1:attrName:} ${2:DomainName}]
View
3 grails/mconfig.snippet
@@ -0,0 +1,3 @@
+mockConfig """
+ ${1}
+"""
View
1 grails/mdomain.snippet
@@ -0,0 +1 @@
+mockDomain(${1:DomainClass},[${2:objList}])${3}
View
1 grails/mp.snippet
@@ -0,0 +1 @@
+mockParams.${1:varName} = '${2:value}'${3}
View
4 grails/mserv.snippet
@@ -0,0 +1,4 @@
+def service = mockForm(${1:serviceName})
+service.demand.${2:methodName}(1..${3:1}) { ${4:params ->}
+ ${5}
+}
View
1 grails/red.snippet
@@ -0,0 +1 @@
+redirect controller:${1:controllerName}, action:${2:actionName} params:[${3:params}]
View
1 grails/render.snippet
@@ -0,0 +1 @@
+render view:"${1:viewName}", model:[${2:modelMap}]
View
4 grails/tag.snippet
@@ -0,0 +1,4 @@
+def ${1:tagName} = { attr, body ->
+ out << ${2}
+
+}
View
3 grails/test.snippet
@@ -0,0 +1,3 @@
+public void test${1:Name}() {
+ ${2}
+}
View
3 groovy/class.snippet
@@ -0,0 +1,3 @@
+class ${1:className} {
+ ${2}
+}
View
3 groovy/cls.snippet
@@ -0,0 +1,3 @@
+def ${1:closureName} = { ${2: param ->}
+ ${3}
+}
View
3 groovy/each.snippet
@@ -0,0 +1,3 @@
+${1:listName}.each { ${2: varName ->}
+ ${3}
+}
View
3 groovy/if.snippet
@@ -0,0 +1,3 @@
+if( ${1:exp} ) {
+ ${2}
+}
View
3 gsp/geach.snippet
@@ -0,0 +1,3 @@
+<g:each in="${1:list}" var="${2:varName}">
+ ${3}
+</g:each>
View
3 gsp/gform.snippet
@@ -0,0 +1,3 @@
+ <g:form action="${1:actionName}" method="${2:post}" >
+ ${3}
+</g:form>
View
4 gsp/gherr.snippet
@@ -0,0 +1,4 @@
+<g:hasErrors bean="${1:modelName}">
+ ${2}
+</g:hasErrors>
+
View
3 gsp/gif.snippet
@@ -0,0 +1,3 @@
+<g:if test="${1:condition}">
+ ${2}
+</g:if>
View
1 gsp/ginput.snippet
@@ -0,0 +1 @@
+<g:textField name="${1:fieldName}" value="${2:value}" />
View
1 gsp/gjs.snippet
@@ -0,0 +1 @@
+<g:javascript ${1:src/library}="${2:jsName}" />
View
3 gsp/glink.snippet
@@ -0,0 +1,3 @@
+<g:link controller="${1:controller}" action="${2:action}" id="${3:id}">
+ ${4}
+</g:link>
View
1 gsp/gsel.snippet
@@ -0,0 +1 @@
+<g:select name="${1:name}" from="${2:list}" value="${3:value}" />${4}
View
1 gsp/gsubmit.snippet
@@ -0,0 +1 @@
+<g:submitButton name="${1:name}" value="${2:value}" />${5}
View
1 gsp/gtemplate.snippet
@@ -0,0 +1 @@
+<g:render template="${1:templatePath}" model="[${2:modelMap}]" />${3}
View
9 gsp/skel/layout.snippet
@@ -0,0 +1,9 @@
+<html>
+ <head>
+ <g:layoutHead />
+ </head>
+ <body>
+ <g:layoutBody />
+ </body>
+</html>
+
View
3 haml/conf.snippet
@@ -0,0 +1,3 @@
+- content_for :${1:yield_label_in_layout} do
+ ${2}
+
View
1 haml/cs.snippet
@@ -0,0 +1 @@
+= collection_select :${1:object}, :${2:method}, :${3:collection}, :${4:value_method}, :${5:text_method} ${6:, [options]} ${7:, [html_options]}
View
2 haml/ff.snippet
@@ -0,0 +1,2 @@
+= form_for @${1:model} do |f|
+ ${2}
View
1 haml/ffcb.snippet
@@ -0,0 +1 @@
+= ${1:f}.check_box :${2:attribute}
View
3 haml/ffe.snippet
@@ -0,0 +1,3 @@
+= form_for @${1:model} do |f|
+ = f.error_messages
+ ${2}
View
1 haml/ffff.snippet
@@ -0,0 +1 @@
+= ${1:f}.file_field :${2:attribute}
View
1 haml/ffhf.snippet
@@ -0,0 +1 @@
+= ${1:f}.hidden_field :${2:attribute}
View
1 haml/ffl.snippet
@@ -0,0 +1 @@
+= ${1:f}.label :${2:attribute}
View
1 haml/ffpf.snippet
@@ -0,0 +1 @@
+= ${1:f}.password_field :${2:attribute}
View
1 haml/ffrb.snippet
@@ -0,0 +1 @@
+= ${1:f}.radio_button :${2:attribute}, :${3:tag_value}
View
1 haml/ffs.snippet
@@ -0,0 +1 @@
+= ${1:f}.submit "${2:Submit}"
View
1 haml/ffta.snippet
@@ -0,0 +1 @@
+= ${1:f}.text_area :${2:attribute}
View
1 haml/fftf.snippet
@@ -0,0 +1 @@
+= ${1:f}.text_field :${2:attribute}
View
2 haml/fields.snippet
@@ -0,0 +1,2 @@
+- fields_for :${1:model}, @$1 do |${2:f}|
+ ${3}
View
2 haml/for.snippet
@@ -0,0 +1,2 @@
+- for ${1:item} in ${2:items}
+ ${3}
View
2 haml/ft.snippet
@@ -0,0 +1,2 @@
+= form_tag(:action => "${1:update}") do
+ ${2}
View
2 haml/if.snippet
@@ -0,0 +1,2 @@
+- if ${1}
+ ${2}
View
3 haml/ife.snippet
@@ -0,0 +1,3 @@
+- if ${1}
+ ${2}
+- else
View
1 haml/it.snippet
@@ -0,0 +1 @@
+= image_tag "${1}"
View
1 haml/jit.snippet
@@ -0,0 +1 @@
+= javascript_include_tag ${1::all}, :cache => ${2:true}
View
1 haml/jsit.snippet
@@ -0,0 +1 @@
+= javascript_include_tag "${1}"
View
1 haml/lia.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", :action => "${2:index}"
View
1 haml/liai.snippet
@@ -0,0 +1 @@
+= link_to "${1:link_text}", :action => "${2:edit}", :id => ${3:@item}
View
1 haml/lic.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", :controller => "${2:items}"
View
1 haml/lica.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}"
View
1 haml/licai.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item}
View
1 haml/lim.snippet
@@ -0,0 +1 @@
+= link_to ${1:model}.${2:name}, $1_path($1)
View
1 haml/linp.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2, @$3)
View
1 haml/linpp.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2)
View
1 haml/lip.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", ${2:model}_path(${3:@instance})
View
1 haml/lipp.snippet
@@ -0,0 +1 @@
+= link_to "${1:link text}", ${2:model}s_path
View
1 haml/lt.snippet
@@ -0,0 +1 @@
+= link_to "${1}", ${2:dest}
View
1 haml/ofcfs.snippet
@@ -0,0 +1 @@
+= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:[selected_value]}
View
1 haml/rf.snippet
@@ -0,0 +1 @@
+= render :file => "${1:file}"${2}
View
1 haml/rp.snippet
@@ -0,0 +1 @@
+= render :partial => "${1:file}"${2}
View
1 haml/rt.snippet
@@ -0,0 +1 @@
+= render :template => "${1:file}"${2}
View
1 haml/slt.snippet
@@ -0,0 +1 @@
+= stylesheet_link_tag ${1::all}, :cache => ${2:true}
View
1 haml/sslt.snippet
@@ -0,0 +1 @@
+= stylesheet_link_tag "${1}"
View
1 haml/st.snippet
@@ -0,0 +1 @@
+= submit_tag "${1:Save changes}"
View
3 haml/unless.snippet
@@ -0,0 +1,3 @@
+- unless ${1}
+ ${2}
+
View
1 html/ah.snippet
@@ -0,0 +1 @@
+<a href="${1:#}">${2}</a>${3}
View
1 html/base.snippet
@@ -0,0 +1 @@
+<base href="<++>"<+ target="<++>"+>/>
View
3 html/body.snippet
@@ -0,0 +1,3 @@
+<body id="${1}">
+ ${2}
+</body>
View
1 html/css.snippet
@@ -0,0 +1 @@
+<link rel="${1:stylesheet}" href="${2:/css/master.css}" type="text/css" media="${3:screen}" charset="utf-8">${4}
View
3 html/divc.snippet
@@ -0,0 +1,3 @@
+<div class="${1}">
+ ${2}
+</div>
View
3 html/divi.snippet
@@ -0,0 +1,3 @@
+<div id="${1}">
+ ${2}
+</div>
View
2 html/doctype/HTML 4.01 Strict.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""
+"http://www.w3.org/TR/html4/strict.dtd">
View
2 html/doctype/HTML 4.01 Transitional.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""
+"http://www.w3.org/TR/html4/loose.dtd">
View
2 html/doctype/HTML 5.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE HTML>
+
View
2 html/doctype/XHTML 1.0 Frameset.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
View
2 html/doctype/XHTML 1.0 Strict.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
View
2 html/doctype/XHTML 1.0 Transitional.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
View
2 html/doctype/XHTML 1.1.snippet
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
View
5 html/form.snippet
@@ -0,0 +1,5 @@
+<form action="${1:action}" method="${2:post}" accept-charset="utf-8">
+ ${3}
+
+ <p><input type="submit" value="Continue &rarr;"/></p>
+</form>
View
1 html/h1.snippet
@@ -0,0 +1 @@
+<h1 id="${1}">${2}</h1>
View
1 html/h2.snippet
@@ -0,0 +1 @@
+<h2 id="${1:heading}">${2:$1}</h2>
View
1 html/h3.snippet
@@ -0,0 +1 @@
+<h3 id="${1:heading}">${2:$1}</h3>
View
5 html/head.snippet
@@ -0,0 +1,5 @@
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+ <title>${1:Page Title}</title>
+ ${2}
+</head>
View
1 html/ifie.snippet
@@ -0,0 +1 @@
+<!--[if IE ${1:6}]>${2}<![endif]-->${3}
View
1 html/img.snippet
@@ -0,0 +1 @@
+<img src="${1}"${2} />
View
1 html/input.snippet
@@ -0,0 +1 @@
+<input type="${1:text/submit/hidden/button}" name="${2}" value="${3:value}" id="${4:$2}"/>${5}
View
2 html/inputl.snippet
@@ -0,0 +1,2 @@
+<label for="${1:input_id}">${2}</label>
+<input type="${3:text/submit/hidden/button}" name="${4:$1}" value="${5:value}" id="${6:$1}"/>${7}
View
1 html/label.snippet
@@ -0,0 +1 @@
+<label for="${1:id}">${2:label_text}</label>
View
1 html/li.snippet
@@ -0,0 +1 @@
+<li>${1}</li>
View
1 html/link.snippet
@@ -0,0 +1 @@
+<link rel="${1:stylesheet}" href="${2:path-to-stylesheet}.css" type="text/css" media="${3:screen}" charset="${4:utf-8}"/>${5}
View
1 html/mailto.snippet
@@ -0,0 +1 @@
+<a href="mailto:<+email+><+?subject=<+feedback+>+>"><+email me+></a>
View
1 html/meta.snippet
@@ -0,0 +1 @@
+<meta name="${1:name}" content="${2:content}"/>
View
1 html/option.snippet
@@ -0,0 +1 @@
+<option value="${1}">${2}</option>
View
3 html/p.snippet
@@ -0,0 +1,3 @@
+<p>
+ ${1}
+</p>
View
1 html/script/include_script.snippet
@@ -0,0 +1 @@
+<script src="${1:url}" type="text/javascript" charset="utf-8"></script>${2}
View
5 html/script/inline_script.snippet
@@ -0,0 +1,5 @@
+<script type="text/javascript" language="javascript" charset="utf-8">
+//<![CDATA[
+ ${1}
+//]]>
+</script>${2}
View
3 html/select.snippet
@@ -0,0 +1,3 @@
+<select name="${1}" id="${2}">
+ ${3}
+</select>
View
13 html/skel/basic.snippet
@@ -0,0 +1,13 @@
+<!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>${1:Page Title}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ </head>
+
+ <body>
+ ${2}
+ </body>
+</html>
View
15 html/skel/basic_with_meta.snippet
@@ -0,0 +1,15 @@
+<!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>${1: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>
+ ${2}
+ </body>
+</html>
View
28 html/skel/html5.snippet
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="pt-BR">
+ <head>
+ <title>${1:Page Title}</title>
+
+ <meta charset="utf-8">
+ <meta name="keywords" content=""/>
+ <meta name="description" content=""/>
+
+ <link rel="stylesheet" href="css/style.css" media="screen" charset="utf-8">
+ <link rel="shortcut icon" href="favicon.ico">
+
+ <!--[if IE]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+
+ <body>
+ <header>
+ </header>
+
+ <section id="main">
+ </section>
+
+ <footer>
+ </footer>
+ </body>
+</html>
View
1 html/span.snippet
@@ -0,0 +1 @@
+<span class="${1:name}">${2}</span>
View
3 html/style.snippet
@@ -0,0 +1,3 @@
+<style type="text/css" media="screen">
+ ${1}
+</style>
View
3 html/t.snippet
@@ -0,0 +1,3 @@
+<${1:div}${2}>
+ ${3}
+</$1>
View
3 html/table/basic.snippet
@@ -0,0 +1,3 @@
+<table class="${1}">
+ ${2}
+</table>
View
9 html/table/hardcore.snippet
@@ -0,0 +1,9 @@
+<table>
+ <tr>
+ <th>${1}</th>
+ </tr>
+
+ <tr>
+ <td></td>
+ </tr>
+</table>
View
1 html/td.snippet
@@ -0,0 +1 @@
+<td>${1}</td>
View
1 html/textarea.snippet
@@ -0,0 +1 @@
+<textarea name="${1:Name}" rows="${2:8}" cols="${2:40}">${3}</textarea>
View
1 html/th.snippet
@@ -0,0 +1 @@
+<th>${1}</th>
View
1 html/ti.snippet
@@ -0,0 +1 @@
+<${1:span}${2}>${3}</$1>
View
3 html/tr.snippet
@@ -0,0 +1,3 @@
+<tr>
+ ${1}
+</tr>
View
1 html/tt.snippet
@@ -0,0 +1 @@
+<tt>${1}</tt>${2}
View
3 html/ul.snippet
@@ -0,0 +1,3 @@
+<ul>
+ ${1}
+</ul>
View
17 java/class/basic+constructor+main.snippet
@@ -0,0 +1,17 @@
+/**
+ * class $2
+ * @author ${4:`g:snips_author`}
+ */
+${1:public} class ${2:`Snippet_JavaClassNameFromFilename()`}${3} {
+
+ /**
+ * Constructor for $2
+ */
+ public $2(${4}) {
+ ${5}
+ }
+
+ public static void main(String args[]) {
+ }
+
+}
View
14 java/class/basic+constructor.snippet
@@ -0,0 +1,14 @@
+/**
+ * class $2
+ * @author ${4:`g:snips_author`}
+ */
+${1:public} class ${2:`Snippet_JavaClassNameFromFilename()`}${3} {
+
+ /**
+ * Constructor for $2
+ */
+ public $2(${5}){
+ ${6}
+ }
+
+}
View
14 java/class/basic.snippet
@@ -0,0 +1,14 @@
+/**
+ * class $2
+ * @author ${4:`g:snips_author`}
+ */
+${1:public} class ${2:`Snippet_JavaClassNameFromFilename()`}${3} {
+
+ /**
+ * Constructor for $2
+ */
+ public $2(${5}){
+ ${6}
+ }
+
+}
View
3 java/for.snippet
@@ -0,0 +1,3 @@
+for(${1:int i=0}; ${2:condition}; ${3:i++}){
+ ${4}
+}
View
9 java/gs.snippet
@@ -0,0 +1,9 @@
+//getter for $3
+public ${2:variable_type} get${1:VariableName}() {
+ return ${3:variableName};
+}
+
+//setter for $3
+public void set$1($2 $3) {
+ this.$3 = $3;
+}${4}
View
3 java/if.snippet
@@ -0,0 +1,3 @@
+if(${1}){
+ ${2}
+}
View
4 java/ife.snippet
@@ -0,0 +1,4 @@
+if(${1}){
+ ${2}
+}else{
+}
View
1 java/log.snippet
@@ -0,0 +1 @@
+System.${1:out}.println(${2});
View
8 java/m.snippet
@@ -0,0 +1,8 @@
+/**
+ * ${7:Method Description}
+ * ${5}
+ * @return ${6}
+ */
+${1:public} ${2:void} ${3:methodName}(${4}) {
+ ${8}
+}
View
1 javascript-jquery/add.snippet
@@ -0,0 +1 @@
+${1:obj}.add('${2:selector expression}')${3}
View
1 javascript-jquery/addClass.snippet
@@ -0,0 +1 @@
+${1:obj}.addClass('${2:class name}')${3}
View
1 javascript-jquery/after.snippet
@@ -0,0 +1 @@
+${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}
View
18 javascript-jquery/ajax.snippet
@@ -0,0 +1,18 @@
+$.ajax({
+ url: "${1:mydomain.com/url}",
+ type: "${2:POST}",
+ dataType: "${3:xml/html/script/json}",
+ data: $.param( $("${4:Element or Expression}") ),
+
+ complete: function() {
+ ${5://called when complete}
+ },
+
+ success: function() {
+ ${6://called when successful}
+ },
+
+ error: function() {
+ ${7://called when there is an error}
+ },
+});
View
4 javascript-jquery/ajaxerror.snippet
@@ -0,0 +1,4 @@
+.ajaxError(function(${1:request, settings}) {
+ ${2://stuff to do when an AJAX call returns an error};
+});
+${3}
View
3 javascript-jquery/ajaxget.snippet
@@ -0,0 +1,3 @@
+$.get('${1:/test/ajax-test.xml}', function(xml){
+ ${2:alert( ("title",xml).text() ) //optional stuff to do after get;}
+});
View
3 javascript-jquery/ajaxgetif.snippet
@@ -0,0 +1,3 @@
+$.getIfModified('${1:/test/test.cgi}', function(data){
+ ${2:alert( "Data loaded: " + data ) //optional stuff to do after get;}
+});
View
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;+>
+});
View
4 javascript-jquery/ajaxsend.snippet
@@ -0,0 +1,4 @@
+.ajaxSend(function(${1:request, settings}) {
+ ${2://stuff to do when an AJAX call returns an error};
+});
+${3}
View
18 javascript-jquery/ajaxsetup.snippet
@@ -0,0 +1,18 @@
+$.ajaxSetup({
+ url: "${1:mydomain.com/url}",
+ type: "${2:POST}",
+ dataType: "${3:xml/html/script/json}",
+ data: $.param( $("${4:Element or Expression}") ),
+
+ complete: function() {
+ ${5://called when complete}
+ },
+
+ success: function() {
+ ${6://called when successful}
+ },
+
+ error: function() {
+ ${7://called when there is an error}
+ },
+});
View
4 javascript-jquery/ajaxstart.snippet
@@ -0,0 +1,4 @@
+$.ajaxStart(function() {
+ ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
+});
+${2}
View
4 javascript-jquery/ajaxstop.snippet
@@ -0,0 +1,4 @@
+$.ajaxStop(function() {
+ ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
+});
+${2}
View
4 javascript-jquery/ajaxsuccess.snippet
@@ -0,0 +1,4 @@
+$.ajaxSuccess(function() {
+ ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
+});
+${2}
View
1 javascript-jquery/animate.snippet
@@ -0,0 +1 @@
+${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}
View
1 javascript-jquery/append.snippet
@@ -0,0 +1 @@
+${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}
View
1 javascript-jquery/appendTo.snippet
@@ -0,0 +1 @@
+${1:obj}.appendTo('${2:selector expression}')${3}
View
1 javascript-jquery/attr.snippet
@@ -0,0 +1 @@
+${1:obj}.attr('${2:attribute}', '${3:value}')${4}
View
1 javascript-jquery/attrm.snippet
@@ -0,0 +1 @@
+${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}
View
1 javascript-jquery/before.snippet
@@ -0,0 +1 @@
+${1:obj}.before('${2:Some text <b>and bold!<