Permalink
Browse files

add old nerdtree snippets

  • Loading branch information...
0 parents commit 522e5caef50e7ff711cbb2ecd03a4655442f7de2 @scrooloose scrooloose committed Feb 18, 2009
Showing 496 changed files with 1,230 additions and 0 deletions.
@@ -0,0 +1 @@
+\<c-r>=strftime("%Y-%m-%d %H:%M:%S")\<cr><++>
@@ -0,0 +1 @@
+\<c-r>=strftime("%Y-%m-%d")\<cr><++>
@@ -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>
@@ -0,0 +1 @@
+\<c-r>=Snippet_Modeline()\<cr>
@@ -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>
@@ -0,0 +1,3 @@
+<% content_for :<+yield_label_in_layout+> do -%>
+ <++>
+<% end -%>
@@ -0,0 +1 @@
+<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
@@ -0,0 +1 @@
+<% end -%>
@@ -0,0 +1,3 @@
+<% form_for @<+model+> do |f| -%>
+ <++>
+<% end -%>
@@ -0,0 +1 @@
+<%= f.check_box :<+attribute+> %>
@@ -0,0 +1,5 @@
+<% error_messages_for :<+model+> -%>
+
+<% form_for @<+model+> do |f| -%>
+ <++>
+<% end -%>
@@ -0,0 +1 @@
+<%= f.file_field :<+attribute+> %>
@@ -0,0 +1 @@
+<%= f.hidden_field :<+attribute+> %>
@@ -0,0 +1 @@
+<%= f.label :<+attribute+><+, '<+attribute+>'+> %>
@@ -0,0 +1 @@
+<%= f.password_field :<+attribute+> %>
@@ -0,0 +1 @@
+<%= f.radio_button :<+attribute+>, :<+tag_value+> %>
@@ -0,0 +1 @@
+<%= f.submit "<+Submit+>"<+, :disable_with => '<+Submitting+>'+> %>
@@ -0,0 +1 @@
+<%= f.text_area :<+attribute+> %>
@@ -0,0 +1 @@
+<%= f.text_field :<+attribute+> %>
@@ -0,0 +1,3 @@
+<% fields_for :<+model+>, @<+model+> do |<+f+>| -%>
+ <++>
+<% end -%>
@@ -0,0 +1,7 @@
+<% if !<+list+>.blank? -%>
+ <% for <+item+> in <+list+> -%>
+ <++>
+ <% end -%>
+<% else -%>
+ <++>
+<% end -%>
@@ -0,0 +1,3 @@
+<% form_tag(<+:action => "<+update+>"+><+, {:<+class+> => "<+form+>"}+>) do -%>
+ <++>
+<% end -%>
@@ -0,0 +1 @@
+<%= image_tag "<++>" %>
@@ -0,0 +1 @@
+<%= javascript_include_tag <+:all+><+, :cache => <+true+>+> %>
@@ -0,0 +1 @@
+<%= javascript_include_tag "<++>" %>
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :action => "<+index+>" %>
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>" %>
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>", :action => "<+index+>" %>
@@ -0,0 +1 @@
+<%= link_to "<+link text+>", :controller => "<+items+>", :action => "<+edit+>", :id => <+@<+item+>+> %>
@@ -0,0 +1 @@
+<%= link_to <+model+>.<+name+>, <+<+model+>_path(<+model+>)+> %>
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>, <+@+><+child+>)+> %>
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>)+> %>
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+model+>_path(<+@+><+instance+>)+> %>
@@ -0,0 +1 @@
+<%= link_to <+"<+link text+>"+>, <+<+model+>s_path+> %>
@@ -0,0 +1 @@
+<%= link_to "<++>", <+dest+> %>
@@ -0,0 +1 @@
+<%= options_from_collection_for_select <+collection+>, <+value_method+>, <+text_method+><+, <+[selected_value]+>+> %>
@@ -0,0 +1 @@
+<%= render :file => "<+file+>"<++> %>
@@ -0,0 +1 @@
+<%= render :partial => "<+file+>"<++> %>
@@ -0,0 +1 @@
+<%= render :template => "<+file+>"<++> %>
@@ -0,0 +1 @@
+<%= stylesheet_link_tag <+:all+><+, :cache => <+true+>+> %>
@@ -0,0 +1 @@
+<%= stylesheet_link_tag "<++>" %>
@@ -0,0 +1 @@
+<%= submit_tag "<+Save changes+>"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+> %>
@@ -0,0 +1,3 @@
+<% if <++> %>
+ <++>
+<% end %>
@@ -0,0 +1,5 @@
+<% if <++> %>
+ <++>
+<% else %>
+ <++>
+<% end %>
@@ -0,0 +1,3 @@
+<% unless <++> %>
+ <++>
+<% end %>
@@ -0,0 +1,5 @@
+<% if <++> %>
+ <++>
+<% else %>
+ <++>
+<% end %>
@@ -0,0 +1 @@
+<base href="<++>"<+ target="<++>"+>/>
@@ -0,0 +1,3 @@
+<body<+ id="<+id+>"<+ onload="<++>"+>+>>
+ <++>
+</body>
@@ -0,0 +1,3 @@
+<div<+ id="<+name+>"+>>
+ <++>
+</div>
@@ -0,0 +1 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><++>
@@ -0,0 +1,5 @@
+<form action="<+action+>" method="<+post+>" accept-charset="utf-8">
+ <++>
+
+ <p><input type="submit" value="Continue &rarr;"/></p>
+</form>
@@ -0,0 +1 @@
+<h1<+ id="<+id+>"+>><++></h1>
@@ -0,0 +1,5 @@
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+ <title><+Page Title+></title>
+ <++>
+</head>
@@ -0,0 +1 @@
+<a href="<++>"><++></a>
@@ -0,0 +1 @@
+<!--[if IE]><++><![endif]--><++>
@@ -0,0 +1 @@
+<img src="<++>"<++> />
@@ -0,0 +1 @@
+<input type="text" name="<++>" <+value="<++>"+> <+size="<++>"+> <+maxlength="<++>"+> />
@@ -0,0 +1,2 @@
+<label for="<+input+>"><++></label>
+<input type="<+text/submit/hidden/button+>" name="<+name+>" value="<+value+>"<+ id="<+id+>"+>/>
@@ -0,0 +1 @@
+<label for="<+id+>"><+label_text+></label>
@@ -0,0 +1 @@
+<link rel="<+stylesheet+>" href="<+/stylesheets/<+default+>.css+>" type="text/css" media="<+screen+>" title="<+no title+>" charset="<+utf-8+>"/>
@@ -0,0 +1 @@
+<a href="mailto:<+email+><+?subject=<+feedback+>+>"><+email me+></a>
@@ -0,0 +1 @@
+<meta name="<+name+>" content="<+content+>"/>
@@ -0,0 +1 @@
+<option<+ value="<+option+>"+>><+value+></option>
@@ -0,0 +1 @@
+<script src="<+url+>" type="text/javascript"<+ charset="<+utf-8+>"+>></script>
@@ -0,0 +1,5 @@
+<script type="text/javascript" language="javascript" charset="utf-8">
+//<![CDATA[
+<++>
+//]]>
+</script>
@@ -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>
@@ -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>
@@ -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>
@@ -0,0 +1 @@
+<span class="<++>"><++></span>
@@ -0,0 +1,3 @@
+<style type="text/css" media="screen">
+ <++>
+</style>
@@ -0,0 +1,3 @@
+<table class="<++>">
+ <++>
+</table>
@@ -0,0 +1,9 @@
+<table<+ width="<+100%+>" border="<+0+>" cellspacing="<+0+>" cellpadding="<+5+>"<++>+>>
+ <tr>
+ <th><++></th>
+ </tr>
+
+ <tr>
+ <td></td>
+ </tr>
+</table>
@@ -0,0 +1 @@
+<textarea name="<+Name+>" rows="<+8+>" cols="<+40+>"><++></textarea>
@@ -0,0 +1,9 @@
+<+public+> class <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+><++> {
+
+ public <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+>(<++>) {
+ }
+
+ public static void main(String args[]) {
+ }
+
+}
@@ -0,0 +1,6 @@
+<+public+> class <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+><++> {
+
+ public <+\<C-R>=Snippet_JavaClassNameFromFilename()\<CR>+>(<++>) {
+ }
+
+}
@@ -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>(){
+ }
+
+}
@@ -0,0 +1,3 @@
+for(<+int i=0+>; <+condition+>; <+i+++>){
+ <++>
+}
@@ -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>;
+}
+
+<++>
@@ -0,0 +1,3 @@
+if(<++>){
+ <++>
+}
@@ -0,0 +1,5 @@
+if(<++>){
+ <++>
+}else{
+ <++>
+}
@@ -0,0 +1 @@
+System.<+out+>.println(<++>);
@@ -0,0 +1,3 @@
+<+public+> <+void+> <+methodName+>(<++>) {
+ <++>
+}
@@ -0,0 +1 @@
+<+obj+>.add('<+selector expression+>')<++>
@@ -0,0 +1 @@
+<+obj+>.addClass('<+class name+>')<++>
@@ -0,0 +1 @@
+<+obj+>.after('<+Some text <b>and bold!</b>+>')<++>
@@ -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+>
+ },
+});
@@ -0,0 +1,4 @@
+.ajaxError(function(<+request, settings+>) {
+ <+//stuff to do when an AJAX call returns an error+>;
+});
+<++>
@@ -0,0 +1,3 @@
+$.get('<+/test/ajax-test.xml+>', function(xml){
+ <+alert( ("title",xml).text() ) //optional stuff to do after get;+>
+});
@@ -0,0 +1,3 @@
+$.getIfModified('<+/test/test.cgi+>', function(data){
+ <+alert( "Data loaded: " + data ) //optional stuff to do after get;+>
+});
@@ -0,0 +1,5 @@
+$.post('<+/path/to/file.cgi+>',{
+ <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
+ function(){
+ <+//stuff to do after event occurs;+>
+});
@@ -0,0 +1,4 @@
+.ajaxSend(function(<+request, settings+>) {
+ <+//stuff to do when an AJAX call returns an error+>;
+});
+<++>
Oops, something went wrong.

0 comments on commit 522e5ca

Please sign in to comment.