Removed final newline from snippet files.

This commit is contained in:
Joao Tavora 2011-10-13 14:34:13 +01:00
parent 6c84d6c428
commit d3086586be
229 changed files with 229 additions and 232 deletions

View File

@ -1,3 +1,3 @@
#name : FILE *fp = fopen(..., ...); #name : FILE *fp = fopen(..., ...);
# -- # --
FILE *${fp} = fopen(${"file"}, "${r}"); FILE *${fp} = fopen(${"file"}, "${r}");

View File

@ -1,3 +1,3 @@
#name : #include "..." #name : #include "..."
# -- # --
#include "$1" #include "$1"

View File

@ -1,3 +1,3 @@
#name : #include <...> #name : #include <...>
# -- # --
#include <$1> #include <$1>

View File

@ -4,4 +4,4 @@ int main(int argc, char *argv[])
{ {
$0 $0
return 0; return 0;
} }

View File

@ -4,4 +4,4 @@
/// <summary> /// <summary>
/// $3 /// $3
/// </summary> /// </summary>
private $1 $2; private $1 $2;

View File

@ -18,4 +18,4 @@ public $1 $2
set { set {
this.$2 = value; this.$2 = value;
} }
} }

View File

@ -18,4 +18,4 @@ public ${1:Type} ${2:Name}
set { set {
this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value; this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
} }
} }

View File

@ -18,4 +18,4 @@ ${5:public} class ${1:Name}
{ {
} }
#endregion #endregion
} }

View File

@ -3,4 +3,4 @@
# -- # --
/// <summary> /// <summary>
/// $1 /// $1
/// </summary> /// </summary>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <param name="..."> ... </param> #name : /// <param name="..."> ... </param>
# -- # --
/// <param name="$1">$2</param> /// <param name="$1">$2</param>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <param name="..."> ... </param> #name : /// <param name="..."> ... </param>
# -- # --
/// <returns>$1</returns> /// <returns>$1</returns>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <exception cref="..."> ... </exception> #name : /// <exception cref="..."> ... </exception>
# -- # --
/// <exception cref="$1">$2</exception> /// <exception cref="$1">$2</exception>

View File

@ -7,4 +7,4 @@
${1:public} ${2:void} ${3:MethodName}($4) ${1:public} ${2:void} ${3:MethodName}($4)
{ {
$0 $0
} }

View File

@ -4,4 +4,4 @@
namespace $1 namespace $1
{ {
$0 $0
} }

View File

@ -13,4 +13,4 @@ $1 $2 $3
set { set {
this.$4 = value; this.$4 = value;
} }
} }

View File

@ -3,4 +3,4 @@
# -- # --
#region $1 #region $1
$0 $0
#endregion #endregion

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using ...; #name : using ...;
# -- # --
using $1; using $1;

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using System; #name : using System;
# -- # --
using System; using System;

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> #contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using System....; #name : using System....;
# -- # --
using System.$1; using System.$1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : clear: ... #name : clear: ...
# -- # --
clear: $1; clear: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : display: block #name : display: block
# -- # --
display: block; display: block;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : display: inline #name : display: inline
# -- # --
display: inline; display: inline;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : display: none #name : display: none
# -- # --
display: none; display: none;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : font-family: ... #name : font-family: ...
# -- # --
font-family: $1; font-family: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : font-size: ... #name : font-size: ...
# -- # --
font-size: ${12px}; font-size: ${12px};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-bottom: ... #name : margin-bottom: ...
# -- # --
margin-bottom: $1; margin-bottom: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-left: ... #name : margin-left: ...
# -- # --
margin-left: $1; margin-left: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin: ... #name : margin: ...
# -- # --
margin: $1; margin: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin top right bottom left #name : margin top right bottom left
# -- # --
margin: ${top} ${right} ${bottom} ${left}; margin: ${top} ${right} ${bottom} ${left};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-right: ... #name : margin-right: ...
# -- # --
margin-right: $1; margin-right: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-top: ... #name : margin-top: ...
# -- # --
margin-top: $1; margin-top: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-bottom: ... #name : padding-bottom: ...
# -- # --
padding-bottom: $1; padding-bottom: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-left: ... #name : padding-left: ...
# -- # --
padding-left: $1; padding-left: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding: ... #name : padding: ...
# -- # --
padding: $1; padding: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding: top right bottom left #name : padding: top right bottom left
# -- # --
padding: ${top} ${right} ${bottom} ${left}; padding: ${top} ${right} ${bottom} ${left};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-right: ... #name : padding-right: ...
# -- # --
padding-right: $1; padding-right: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com> #contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-top: ... #name : padding-top: ...
# -- # --
padding-top: $1; padding-top: $1;

View File

@ -2,5 +2,4 @@
#name: autoload #name: autoload
#key: autoload #key: autoload
# -- # --
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) (autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)

View File

@ -3,5 +3,4 @@
#key: bounds-of-thing-at-point #key: bounds-of-thing-at-point
#key: botap #key: botap
# -- # --
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... (bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...

View File

@ -3,4 +3,4 @@
#key: buffer-substring-no-properties #key: buffer-substring-no-properties
#key: bsnp #key: bsnp
# -- # --
(buffer-substring-no-properties START$0 END) (buffer-substring-no-properties START$0 END)

View File

@ -3,4 +3,4 @@
#key: buffer-substring #key: buffer-substring
#key: bs #key: bs
# -- # --
(buffer-substring START$0 END) (buffer-substring START$0 END)

View File

@ -2,4 +2,4 @@
#name: format #name: format
#key: format #key: format
# -- # --
(format "$0" &optional OBJECTS) (format "$0" &optional OBJECTS)

View File

@ -2,4 +2,4 @@
#name: format #name: format
#key: format #key: format
# -- # --
(format "$0" &optional OBJECTS) (format "$0" &optional OBJECTS)

View File

@ -3,4 +3,4 @@
#key: replace-regexp-in-string #key: replace-regexp-in-string
#key: rris #key: rris
# -- # --
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) (replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)

View File

@ -2,4 +2,4 @@
#name: substring #name: substring
#key: substring #key: substring
# -- # --
(substring STRING$0 FROM &optional TO) (substring STRING$0 FROM &optional TO)

View File

@ -3,5 +3,4 @@
#key: thing-at-point #key: thing-at-point
#key: tap #key: tap
# -- # --
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... (thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...

View File

@ -13,4 +13,4 @@
(mapc 'myProcessFile (dired-get-marked-files)) (mapc 'myProcessFile (dired-get-marked-files))
) )
;; to use it, type M-x dired-myProcessFile ;; to use it, type M-x dired-myProcessFile

View File

@ -14,4 +14,4 @@
;; ... do something here ;; ... do something here
;; (write-file fpath) ;; write back to the file ;; (write-file fpath) ;; write back to the file
(kill-buffer " myTemp"))) (kill-buffer " myTemp")))

View File

@ -14,4 +14,4 @@ This works on the current region."
(goto-char (point-min)) (goto-char (point-min))
(while (search-forward ">" nil t) (replace-match "&gt;" nil t)) (while (search-forward ">" nil t) (replace-match "&gt;" nil t))
) )
) )

View File

@ -1,4 +1,4 @@
#contributor: Xah Lee (XahLee.org) #contributor: Xah Lee (XahLee.org)
#name: grab buffer substring #name: grab buffer substring
# -- # --
(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) (setq $0 (buffer-substring-no-properties myStartPos myEndPos))

View File

@ -1,4 +1,4 @@
#contributor: Xah Lee (XahLee.org) #contributor: Xah Lee (XahLee.org)
#name: grab word under cursor #name: grab word under cursor
# -- # --
(setq $0 (thing-at-point 'symbol)) (setq $0 (thing-at-point 'symbol))

View File

@ -3,4 +3,4 @@
# -- # --
;; apply a function to all files in a dir ;; apply a function to all files in a dir
(require 'find-lisp) (require 'find-lisp)
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) (mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))

View File

@ -24,4 +24,4 @@
(insert "newText") ; insert your new text (insert "newText") ; insert your new text
) )
) )

View File

@ -1,4 +1,4 @@
#name : after ... -> #name : after ... ->
# -- # --
after after
$1 -> $0 $1 -> $0

View File

@ -2,4 +2,4 @@
# -- # --
begin begin
$0 $0
end end

View File

@ -1,4 +1,4 @@
#name : -behaviour(...). #name : -behaviour(...).
# -- # --
-behaviour(${1:gen_server}). -behaviour(${1:gen_server}).
$0 $0

View File

@ -2,4 +2,4 @@
# -- # --
case $1 of case $1 of
$0 $0
end end

View File

@ -1,4 +1,4 @@
#name : -compile(...). #name : -compile(...).
# -- # --
-compile([${1:export_all}]). -compile([${1:export_all}]).
$0 $0

View File

@ -1,4 +1,4 @@
#name : -define(...,...). #name : -define(...,...).
# -- # --
-define($1,$2). -define($1,$2).
$0 $0

View File

@ -2,4 +2,4 @@
#contributor : hitesh <hitesh.jasani@gmail.com> #contributor : hitesh <hitesh.jasani@gmail.com>
# -- # --
-export([${1:start/0}]). -export([${1:start/0}]).
$0 $0

View File

@ -1,3 +1,3 @@
#name : fun (...) -> ... end #name : fun (...) -> ... end
# -- # --
fun ($1) -> $0 end fun ($1) -> $0 end

View File

@ -3,4 +3,4 @@
if if
$1 -> $2; $1 -> $2;
true -> $0 true -> $0
end end

View File

@ -2,4 +2,4 @@
# -- # --
-ifdef($1). -ifdef($1).
$0 $0
-endif. -endif.

View File

@ -2,4 +2,4 @@
# -- # --
-ifndef($1). -ifndef($1).
$0 $0
-endif. -endif.

View File

@ -2,4 +2,4 @@
#contributor : hitesh <hitesh.jasani@gmail.com> #contributor : hitesh <hitesh.jasani@gmail.com>
# -- # --
-import(${1:lists}, [${2:map/2, sum/1}]). -import(${1:lists}, [${2:map/2, sum/1}]).
$0 $0

View File

@ -1,4 +1,4 @@
#name : -include("..."). #name : -include("...").
# -- # --
-include("$1"). -include("$1").
$0 $0

View File

@ -1,4 +1,4 @@
#name : -include_lib("..."). #name : -include_lib("...").
# -- # --
-include_lib("$1"). -include_lib("$1").
$0 $0

View File

@ -5,4 +5,4 @@ ${1:loop}($2) ->
${3:_} -> ${3:_} ->
$1($2) $1($2)
end. end.
$0 $0

View File

@ -3,4 +3,4 @@
# -- # --
-module(${1:`(file-name-nondirectory -module(${1:`(file-name-nondirectory
(file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
$0 $0

View File

@ -2,4 +2,4 @@
# -- # --
receive receive
$1 -> $0 $1 -> $0
end end

View File

@ -3,4 +3,4 @@
receive receive
after after
$1 -> $0 $1 -> $0
end end

View File

@ -1,4 +1,4 @@
#name : -record(...,{...}). #name : -record(...,{...}).
# -- # --
-record($1,{$2}). -record($1,{$2}).
$0 $0

View File

@ -4,4 +4,4 @@ try $1 of
$0 $0
catch catch
after after
end end

View File

@ -1,4 +1,4 @@
#name : -undef(...). #name : -undef(...).
# -- # --
-undef($1). -undef($1).
$0 $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : automatic #name : automatic
# -- # --
automatic $0 automatic $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : block data #name : block data
# -- # --
block data $0 block data $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : continue #name : continue
# -- # --
continue $0 continue $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : character #name : character
# -- # --
character $0 character $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : complex #name : complex
# -- # --
complex $0 complex $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : double complex #name : double complex
# -- # --
double complex $0 double complex $0

View File

@ -3,4 +3,4 @@
# -- # --
do while (${1:condition}) do while (${1:condition})
$0 $0
end do end do

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : double precision #name : double precision
# -- # --
double precision $0 double precision $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : equivalence #name : equivalence
# -- # --
equivalence $0 equivalence $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit byte #name : implicit byte
# -- # --
implicit byte $0 implicit byte $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit complex #name : implicit complex
# -- # --
implicit complex $0 implicit complex $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit character #name : implicit character
# -- # --
implicit character $0 implicit character $0

View File

@ -3,4 +3,4 @@
# -- # --
if ( ${1:condition} ) then if ( ${1:condition} ) then
$0 $0
end if end if

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit integer #name : implicit integer
# -- # --
implicit integer $0 implicit integer $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit logical #name : implicit logical
# -- # --
implicit logical $0 implicit logical $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit none #name : implicit none
# -- # --
implicit none implicit none

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : include #name : include
# -- # --
include $0 include $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : intrinsic #name : intrinsic
# -- # --
intrinsic $0 intrinsic $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : implicit real #name : implicit real
# -- # --
implicit real $0 implicit real $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : logical #name : logical
# -- # --
logical $0 logical $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : parameter #name : parameter
# -- # --
parameter $0 parameter $0

View File

@ -3,4 +3,4 @@
# -- # --
program ${1:name} program ${1:name}
$0 $0
end program ${1:name} end program ${1:name}

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : read (*,*) #name : read (*,*)
# -- # --
read (${1:*},${2:*}) $0 read (${1:*},${2:*}) $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : structure #name : structure
# -- # --
structure $0 structure $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : subroutine #name : subroutine
# -- # --
subroutine $0 subroutine $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name> #contributor: Li Zhu <http://www.zhuli.name>
#name : write (*,*) #name : write (*,*)
# -- # --
write (${1:*},${2:*}) $0 write (${1:*},${2:*}) $0

Some files were not shown because too many files have changed in this diff Show More