pax_global_header00006660000000000000000000000064125243656240014523gustar00rootroot0000000000000052 comment=5ea70554e07c7c303be7b1e9de7ac9cd2d86f947 yasnippet-snippets-0~git20150512/000077500000000000000000000000001252436562400166255ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/.gitignore000066400000000000000000000000351252436562400206130ustar00rootroot00000000000000**/.yas-compiled-snippets.el yasnippet-snippets-0~git20150512/.nosearch000066400000000000000000000000011252436562400204170ustar00rootroot00000000000000 yasnippet-snippets-0~git20150512/CONTRIBUTORS.txt000066400000000000000000000001671252436562400213270ustar00rootroot00000000000000Please add here your name in alphabetical order (first name) if you contributed with - Andrea Crotti - James Ferguson yasnippet-snippets-0~git20150512/LICENSE000066400000000000000000000017771252436562400176460ustar00rootroot00000000000000Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. yasnippet-snippets-0~git20150512/README.md000066400000000000000000000036471252436562400201160ustar00rootroot00000000000000# Yasnippet official snippet collections [![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) This repository contains the official snippets for [yasnippet](http://github.com/capitaomorte/yasnippet), as you can see from the git submodules link. # How to install There are two options, if you have checked out *yasnippet* already, the only thing you need to do is to run *git submodule update --init* and it will checkout automatically this repository, at the last version it was synchronized too. Otherwise if you want the latest and greatest snippets collection proceed as follows: 1. clone this repository 2. add to your .emacs the following - (add-to-list 'yas/root-directory "$DIRECTORY_WHERE_YOU_CLONED") - (yas/initialize) 3. M-x yas/reload-all to activate them # Contributing This repository has now become the default snippets repository (as a submodule) in yasnippet. So if you have any useful snippets for any language or framework please feel free to contribute. To study the current snippets I suggest to use M-x yas/describe-tables which will gave a table representation of all the snippets available in the current mode. # Guidelines Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system. # Various notes ## HTML snippets Until September 1st 2014 there were a lot of HTML snippets in the repository, which were sometimes useful but I came to the conclusion that yasnippet was not the right fool for them, so they were removed in this pull request: https://github.com/AndreaCrotti/yasnippet-snippets/pull/49 To everyone writing a lot of HTML I suggest using [emmet mode](https://github.com/smihica/emmet-mode) instead, which is a much more powerful mode for writing HTML tags. yasnippet-snippets-0~git20150512/antlr-mode/000077500000000000000000000000001252436562400206675ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/antlr-mode/project000066400000000000000000000002121252436562400222530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: project # key: proj # -- $0 yasnippet-snippets-0~git20150512/antlr-mode/property000066400000000000000000000001551252436562400224770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: property # key: prop # -- $0yasnippet-snippets-0~git20150512/antlr-mode/target000066400000000000000000000001661252436562400221030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: target # key: target # -- $0 yasnippet-snippets-0~git20150512/applescript-mode/000077500000000000000000000000001252436562400220755ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/applescript-mode/.yas-parents000066400000000000000000000000111252436562400243340ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20150512/c++-mode/000077500000000000000000000000001252436562400201175ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/c++-mode/.yas-parents000066400000000000000000000000101252436562400223550ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20150512/c++-mode/assert000066400000000000000000000001021252436562400213340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # -- assert($0);yasnippet-snippets-0~git20150512/c++-mode/beginend000066400000000000000000000001371252436562400216160ustar00rootroot00000000000000# -*- mode: snippet -*- # name : v.begin(), v.end() # key: beginend # -- ${1:v}.begin(), $1.endyasnippet-snippets-0~git20150512/c++-mode/boost_require000066400000000000000000000001601252436562400227210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: boost_require # key: req # group: boost # -- BOOST_REQUIRE( ${1:condition} ); $0yasnippet-snippets-0~git20150512/c++-mode/cerr000066400000000000000000000001011252436562400207650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cerr # key: err # -- cerr << $0; yasnippet-snippets-0~git20150512/c++-mode/cin000066400000000000000000000000761252436562400206160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cin # key: cin # -- cin >> $0;yasnippet-snippets-0~git20150512/c++-mode/class000066400000000000000000000002731252436562400211510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # -- class ${1:Name} { public: ${1:$(yas/substr yas-text "[^: ]*")}(); ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();} }; $0yasnippet-snippets-0~git20150512/c++-mode/const_[]000066400000000000000000000001701252436562400216150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: const_[] # key: c[ # -- const ${1:Type}& operator[](${2:int index}) const { $0 }yasnippet-snippets-0~git20150512/c++-mode/constructor000066400000000000000000000001651252436562400224310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: constructor # key: ct # -- ${1:Class}::$1(${2:args}) ${3: : ${4:init}} { $0 }yasnippet-snippets-0~git20150512/c++-mode/cout000066400000000000000000000004061252436562400210140ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: York Zhao # name: cout # key: cout # -- `(progn (save-excursion) (goto-char (point-min)) (unless (re-search-forward "^using\\s-+namespace std;" nil 'no-errer) "std::")) `cout << $0${1: << '${2:\n}'};yasnippet-snippets-0~git20150512/c++-mode/cpp000066400000000000000000000002111252436562400206160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cpp # key: cpp # -- #include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h"yasnippet-snippets-0~git20150512/c++-mode/cstd000066400000000000000000000001101252436562400207670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cstd # key: cstd # -- #include yasnippet-snippets-0~git20150512/c++-mode/d+=000066400000000000000000000001361252436562400204350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d+= # key: d+= # -- ${1:MyClass}& operator+=(${2:const $1 &});yasnippet-snippets-0~git20150512/c++-mode/d_operator000066400000000000000000000001761252436562400222040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator<< # key: << # -- friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);yasnippet-snippets-0~git20150512/c++-mode/d_operator[]000066400000000000000000000001411252436562400224640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator[] # key: [ # -- ${1:Type}& operator[](${2:int index});yasnippet-snippets-0~git20150512/c++-mode/d_operator[]_const000066400000000000000000000001641252436562400236770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator[]_const # key: c[ # -- const ${1:Type}& operator[](${2:int index}) const;yasnippet-snippets-0~git20150512/c++-mode/d_operator_istream000066400000000000000000000001761252436562400237300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator>> # key: >> # -- friend std::istream& operator>>(std::istream&, const ${1:Class}&);yasnippet-snippets-0~git20150512/c++-mode/d_operator_ostream000066400000000000000000000001761252436562400237360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator<< # key: << # -- friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);yasnippet-snippets-0~git20150512/c++-mode/delete000066400000000000000000000001121252436562400212760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: delete # key: dl # -- delete ${1:pointer};yasnippet-snippets-0~git20150512/c++-mode/delete[]000066400000000000000000000001131252436562400215670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: delete[] # key: dla # -- delete[] ${1:arr};yasnippet-snippets-0~git20150512/c++-mode/doc000066400000000000000000000001011252436562400205770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: doc # -- /** * $0 */yasnippet-snippets-0~git20150512/c++-mode/dynamic_casting000066400000000000000000000001471252436562400232000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dynamic_casting # key: cast # -- check_and_cast<${1:Type} *>(${2:msg});yasnippet-snippets-0~git20150512/c++-mode/enum000066400000000000000000000001131252436562400210010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: enum # key: enum # -- enum ${1:NAME}{ $0 };yasnippet-snippets-0~git20150512/c++-mode/fixture000066400000000000000000000002151252436562400215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixture # key: fixt # -- BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} ) $0 BOOST_AUTO_TEST_SUITE_END()yasnippet-snippets-0~git20150512/c++-mode/fori000066400000000000000000000002011252436562400207720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fori # key: fori # -- for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) { $0 }yasnippet-snippets-0~git20150512/c++-mode/friend000066400000000000000000000001001252436562400213000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: friend # key: fr # -- friend $0;yasnippet-snippets-0~git20150512/c++-mode/fun_declaration000066400000000000000000000001501252436562400231730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun_declaration # key: f # -- ${1:type} ${2:name}(${3:args})${4: const};yasnippet-snippets-0~git20150512/c++-mode/function000066400000000000000000000001731252436562400216700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: f # -- ${1:type} ${2:Class}::${3:name}(${4:args})${5: const} { $0 }yasnippet-snippets-0~git20150512/c++-mode/gtest000066400000000000000000000001411252436562400211640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: gtest # key: gtest # group: testing # -- #include yasnippet-snippets-0~git20150512/c++-mode/ignore000066400000000000000000000002021252436562400213170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ignore # key: ignore # -- ${1:std::}cin.ignore(std::numeric_limits::max(), '\n');yasnippet-snippets-0~git20150512/c++-mode/inline000066400000000000000000000000771252436562400213240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inline # key: il # -- inline $0yasnippet-snippets-0~git20150512/c++-mode/io000066400000000000000000000001051252436562400204450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: io # key: io # -- #include yasnippet-snippets-0~git20150512/c++-mode/iterator000066400000000000000000000001521252436562400216710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iterator # key: iter # -- ${1:std::}${2:vector}::iterator ${3:iter}; yasnippet-snippets-0~git20150512/c++-mode/map000066400000000000000000000001241252436562400206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: map # key: map # -- std::map<${1:type1}$0> ${2:var};yasnippet-snippets-0~git20150512/c++-mode/module000066400000000000000000000001501252436562400213230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- class ${1:Class} : public cSimpleModule { $0 }yasnippet-snippets-0~git20150512/c++-mode/namespace000066400000000000000000000001741252436562400220000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: namespace # key: ns # -- namespace ${1:Namespace} { `yas/selected-text` } // $1yasnippet-snippets-0~git20150512/c++-mode/ns000066400000000000000000000000571252436562400204640ustar00rootroot00000000000000#name : namespace ... # key: ns # -- namespace yasnippet-snippets-0~git20150512/c++-mode/operator!=000066400000000000000000000002561252436562400220360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator!= # key: != # group: operator overloading # -- bool ${1:MyClass}::operator!=(const $1 &other) const { return !(*this == other); }yasnippet-snippets-0~git20150512/c++-mode/operator+000066400000000000000000000003041252436562400217450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator+ # key: + # group: operator overloading # -- ${1:MyClass} $1::operator+(const $1 &other) { $1 result = *this; result += other; return result; }yasnippet-snippets-0~git20150512/c++-mode/operator+=000066400000000000000000000002411252436562400220420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator+= # key: += # group: operator overloading # -- ${1:MyClass}& $1::operator+=(${2:const $1 &rhs}) { $0 return *this; }yasnippet-snippets-0~git20150512/c++-mode/operator=000066400000000000000000000004171252436562400217740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator= # key: = # where this is a reference to myself # group: operator overloading # -- ${1:MyClass}& $1::operator=(const $1 &rhs) { // Check for self-assignment! if (this == &rhs) return *this; $0 return *this; }yasnippet-snippets-0~git20150512/c++-mode/operator==000066400000000000000000000002301252436562400220620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator== # key: == # group: operator overloading # -- bool ${1:MyClass}::operator==(const $1 &other) const { $0 }yasnippet-snippets-0~git20150512/c++-mode/operator[]000066400000000000000000000002141252436562400221620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator[] # key: [] # group: operator overloading # -- ${1:Type}& operator[](${2:int index}) { $0 }yasnippet-snippets-0~git20150512/c++-mode/operator_istream000066400000000000000000000002711252436562400234210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator>> # key: >> # group: operator overloading # -- std::istream& operator>>(std::istream& is, const ${1:Class}& ${2:c}) { $0 return is; }yasnippet-snippets-0~git20150512/c++-mode/operator_ostream000066400000000000000000000003001252436562400234200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator<< # key: << # group: operator overloading # -- std::ostream& operator<<(std::ostream& os, const ${1:Class}& ${2:c}) { $0 return os; }yasnippet-snippets-0~git20150512/c++-mode/ostream000066400000000000000000000001111252436562400215050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ostream # key: os # -- #include yasnippet-snippets-0~git20150512/c++-mode/pack000066400000000000000000000001431252436562400207560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pack # key: pack # -- void cNetCommBuffer::pack(${1:type}) { } $0yasnippet-snippets-0~git20150512/c++-mode/private000066400000000000000000000001121252436562400215060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: private # key: pr # -- private: $0yasnippet-snippets-0~git20150512/c++-mode/protected000066400000000000000000000001161252436562400220310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: protected # key: pt # -- protected: $0yasnippet-snippets-0~git20150512/c++-mode/public000066400000000000000000000001101252436562400213100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: public # key: pb # -- public: $0yasnippet-snippets-0~git20150512/c++-mode/sstream000066400000000000000000000001131252436562400215130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: # key: ss # -- #include yasnippet-snippets-0~git20150512/c++-mode/std000066400000000000000000000001101252436562400206240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: std # key: std # -- using namespace std;yasnippet-snippets-0~git20150512/c++-mode/std_colon000066400000000000000000000000741252436562400220270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: std:: # key: st # -- std::$0yasnippet-snippets-0~git20150512/c++-mode/str000066400000000000000000000001051252436562400206460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: str # key: str # -- #include yasnippet-snippets-0~git20150512/c++-mode/template000066400000000000000000000001751252436562400216600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: template # key: temp # -- template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}> $0yasnippet-snippets-0~git20150512/c++-mode/test case000066400000000000000000000001771252436562400217220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test case # key: tc # group: testing # -- BOOST_AUTO_TEST_CASE( ${1:test_case} ) { $0 }yasnippet-snippets-0~git20150512/c++-mode/test_main000066400000000000000000000003011252436562400220170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test_main # key: test_main # group: testing # -- int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }yasnippet-snippets-0~git20150512/c++-mode/test_suite000066400000000000000000000002251252436562400222310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test_suite # key: ts # group: testing # -- BOOST_AUTO_TEST_SUITE( ${1:test_suite1} ) $0 BOOST_AUTO_TEST_SUITE_END()yasnippet-snippets-0~git20150512/c++-mode/this000066400000000000000000000000701252436562400210060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: this # key: th # -- thisyasnippet-snippets-0~git20150512/c++-mode/throw000066400000000000000000000001171252436562400212040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: throw # key: throw # -- throw ${1:MyError}($0);yasnippet-snippets-0~git20150512/c++-mode/try000066400000000000000000000002301252436562400206530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # a bit too intrusive now still, not always I want to do this # -- try { $0 } catch (${1:type}) { } yasnippet-snippets-0~git20150512/c++-mode/tryw000066400000000000000000000002051252436562400210440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tryw # key: tryw # -- try { `(or yas/selected-text (car kill-ring))` } catch ${1:Exception} { } yasnippet-snippets-0~git20150512/c++-mode/using000066400000000000000000000001111252436562400211600ustar00rootroot00000000000000#name : using namespace ... # key: using # -- using namespace ${std}; $0yasnippet-snippets-0~git20150512/c++-mode/vector000066400000000000000000000001561252436562400213460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vector # key: vec # -- std::vector<${1:Class}> ${2:var}${3:(${4:10}, $1($5))};yasnippet-snippets-0~git20150512/c-mode/000077500000000000000000000000001252436562400177715ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/c-mode/.yas-parents000066400000000000000000000000101252436562400222270ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20150512/c-mode/assert000066400000000000000000000001151252436562400212120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # -- #include $0yasnippet-snippets-0~git20150512/c-mode/compile000066400000000000000000000001771252436562400213510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: compile # key: compile # -- // -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-yasnippet-snippets-0~git20150512/c-mode/define000066400000000000000000000000771252436562400211520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: define # key: d # -- #define $0yasnippet-snippets-0~git20150512/c-mode/fopen000066400000000000000000000001351252436562400210220ustar00rootroot00000000000000#name : FILE *fp = fopen(..., ...); # key: fopen # -- FILE *${fp} = fopen(${"file"}, "${r}");yasnippet-snippets-0~git20150512/c-mode/malloc000066400000000000000000000001361252436562400211630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: malloc # key: malloc # -- malloc(sizeof($1)${2: * ${3:3}}); $0yasnippet-snippets-0~git20150512/c-mode/packed000066400000000000000000000001271252436562400211430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: packed # key: packed # -- __attribute__((__packed__))$0yasnippet-snippets-0~git20150512/c-mode/printf000066400000000000000000000001371252436562400212170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: pr # -- printf("${1:format string}"${2: ,a0,a1});yasnippet-snippets-0~git20150512/c-mode/stdio000066400000000000000000000001071252436562400210340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stdio # key: io # -- #include yasnippet-snippets-0~git20150512/c-mode/stdlib000066400000000000000000000001131252436562400211700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stdlib # key: std # -- #include yasnippet-snippets-0~git20150512/c-mode/string000066400000000000000000000001121252436562400212140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: string # key: str # -- #include yasnippet-snippets-0~git20150512/c-mode/union000066400000000000000000000001371252436562400210450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: union # key: union # -- typedef union { $0 } ${1:name};yasnippet-snippets-0~git20150512/c-mode/unistd000066400000000000000000000001121252436562400212140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unistd # key: uni # -- #include yasnippet-snippets-0~git20150512/cc-mode/000077500000000000000000000000001252436562400201345ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/cc-mode/case000066400000000000000000000003201252436562400207650ustar00rootroot00000000000000# -*- mode: snippet -*- # name : case : {...} # key: case # -- `(indent-region (- (point) 20) (+ (point) 20) nil)`case ${2:constexpr}:${3: \{} $0 break; ${3:$(if (string-match "\{" yas-text) "\}" "")}yasnippet-snippets-0~git20150512/cc-mode/do000066400000000000000000000001231252436562400204550ustar00rootroot00000000000000#name : do { ... } while (...) # key: do # -- do { $0 } while (${1:condition});yasnippet-snippets-0~git20150512/cc-mode/else000066400000000000000000000001231252436562400210030ustar00rootroot00000000000000# -*- mode: snippet -*- # name : else { ... } # key: else # -- else${1: { $0 }}yasnippet-snippets-0~git20150512/cc-mode/fopen000066400000000000000000000001651252436562400211700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: FILE *fp = fopen(..., ...); # key: fopen # -- FILE *${fp} = fopen(${"file"}, "${r}");yasnippet-snippets-0~git20150512/cc-mode/for000066400000000000000000000001461252436562400206460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:i = 0}; ${2:i < N}; ${3:i++}) { $0 } yasnippet-snippets-0~git20150512/cc-mode/for_n000066400000000000000000000002241252436562400211600ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: York Zhao # name: for_n # key: forn # -- for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) { $0 } yasnippet-snippets-0~git20150512/cc-mode/if000066400000000000000000000001441252436562400204540ustar00rootroot00000000000000# -*- mode: snippet -*- # name : if (...) { ... } # key: if # -- if (${1:condition}) ${2:{ $0 }}yasnippet-snippets-0~git20150512/cc-mode/ifdef000066400000000000000000000001331252436562400211310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifdef # key: ifdef # -- #ifdef ${1:MACRO} $0 #endif // $1yasnippet-snippets-0~git20150512/cc-mode/inc000066400000000000000000000001171252436562400206270ustar00rootroot00000000000000# -*- mode: snippet -*- # name : #include <...> # key : inc # -- #include <$1>yasnippet-snippets-0~git20150512/cc-mode/inc.1000066400000000000000000000001171252436562400207660ustar00rootroot00000000000000# -*- mode: snippet -*- # name : #include "..." # key : inc # -- #include "$1"yasnippet-snippets-0~git20150512/cc-mode/main000066400000000000000000000001651252436562400210050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- int main(${1:int argc, char *argv[]}) { $0 return 0; } yasnippet-snippets-0~git20150512/cc-mode/math000066400000000000000000000001121252436562400210020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: math # key: math # -- #include $0yasnippet-snippets-0~git20150512/cc-mode/once000066400000000000000000000002721252436562400210040ustar00rootroot00000000000000#name : #ifndef XXX; #define XXX; #endif # key: once # -- #ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H} #define $1 $0 #endif /* $1 */yasnippet-snippets-0~git20150512/cc-mode/printf000066400000000000000000000002601252436562400213570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: printf # -- printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);") }$2${1:$(if (string-match "%" yas-text) "\);" "")}yasnippet-snippets-0~git20150512/cc-mode/struct000066400000000000000000000001121252436562400213750ustar00rootroot00000000000000#name : struct ... { ... } # key: struct # -- struct ${1:name} { $0 };yasnippet-snippets-0~git20150512/cc-mode/switch000066400000000000000000000003461252436562400213630ustar00rootroot00000000000000# -*- mode: snippet -*- # name : switch (...) { case : ... default: ...} # key: switch # -- switch (${1:expr}) { case ${2:constexpr}:${3: \{} $0 break; ${3:$(if (string-match "\{" yas-text) "\}\n" "")}default: break; }yasnippet-snippets-0~git20150512/cc-mode/ternary000066400000000000000000000001321252436562400215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ternary # key: ? # -- (${1:cond}) ? ${2:then} : ${3:else};yasnippet-snippets-0~git20150512/cc-mode/typedef000066400000000000000000000001311252436562400215120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: typedef # key: typedef # -- typedef ${1:type} ${2:alias};yasnippet-snippets-0~git20150512/cc-mode/while000066400000000000000000000001331252436562400211640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: while # -- while (${1:condition}) { $0 }yasnippet-snippets-0~git20150512/chef-mode/000077500000000000000000000000001252436562400204545ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/chef-mode/action000066400000000000000000000001161252436562400216520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: action # key: action # -- action: ${0:nothing}yasnippet-snippets-0~git20150512/chef-mode/bash000066400000000000000000000003331252436562400213130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: bash # key: bash # -- bash "${1:install something}" do user "${2:root}" cwd "${3:/tmp}" creates "${4:maybe}" code <<-EOH STATUS=0 $0 || STATUS=1 exit $STATUS EOH endyasnippet-snippets-0~git20150512/chef-mode/cookbook_file000066400000000000000000000003041252436562400232010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cookbook_file # key: cookbook_file # -- cookbook_file "${1:/tmp/file}" do owner "${2:root}" group "${3:root}" mode "${4:0644}" source "${5:my-filename}" endyasnippet-snippets-0~git20150512/chef-mode/cron000066400000000000000000000002131252436562400213340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cron # key: cron # -- cron "${1:name}" do hour "${2:5}" minute "${3:0}" command "${4:/bin/true}" endyasnippet-snippets-0~git20150512/chef-mode/cronf000066400000000000000000000004561252436562400215130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cronf # key: cronf # -- cron "${1:name}" do hour "${2:*}" minute "${3:*}" day "${4:*}" weekday "${6:*}" command "${7:/bin/true}" user "${8:root}" mailto "${9:root@example.com}" path "${10:/bin:/usr/bin}" home "${11:/tmp}" shell "${12:/bin/bash}" end yasnippet-snippets-0~git20150512/chef-mode/deploy000066400000000000000000000011221252436562400216670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: deploy # key: deploy # -- deploy "/my/deploy/dir" do repo "git@github.com/whoami/provideroject" revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234" user "deploy_ninja" enable_submodules true migrate true migration_command "rake db:migrate" environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo" shallow_clone true action :deploy # or :rollback restart_command "touch tmp/restart.txt" git_ssh_wrapper "wrap-ssh4git.sh" scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion end yasnippet-snippets-0~git20150512/chef-mode/directory000066400000000000000000000002331252436562400224010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: directory # key: directory # -- directory "${1:name}" do owner "root" group "root" mode "0755" action :create end yasnippet-snippets-0~git20150512/chef-mode/directoryf000066400000000000000000000003411252436562400225470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: directoryf # key: directoryf # -- directory "${1:name}" do owner "$create{2:root}" group "${3:root}" mode "${4:0755}" path "${5:name}" recursive ${6:false} action :${7:create} end yasnippet-snippets-0~git20150512/chef-mode/env000066400000000000000000000001511252436562400211640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: env # key: env # -- env "${1:RAILS_ENV}" do value "${2:production}" endyasnippet-snippets-0~git20150512/chef-mode/execute000066400000000000000000000002421252436562400220370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: execute # key: execute # -- execute "${1:name}" do command "${2:ls -la}" creates "${3:/tmp/something}" action :${4:run} endyasnippet-snippets-0~git20150512/chef-mode/executef000066400000000000000000000005661252436562400222160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: executef # key: executef # -- execute "${1:name}" do command "${2:ls -la}" creates "$ls{3:/tmp/something}" cwd "${4:/tmp}" environment ({${5:'HOME' => '/home/myhome'}}) user "${6:root}" group "${7:root}" path "${8:['/opt/bin','/opt/sbin']}" timeout ${9:3600} returns ${10:0} umask "${11:022}umask" action :${12:run} endyasnippet-snippets-0~git20150512/chef-mode/file000066400000000000000000000002131252436562400213120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: file # key: file # -- file "${1:name}" do owner "root" group "root" mode "0644" action :create endyasnippet-snippets-0~git20150512/chef-mode/filef000066400000000000000000000003421252436562400214630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: filef # key: filef # -- file "${1:name}" do path "${3:path}" backup ${4:5} owner "${5:root}" group "${6:root}" mode "${7:0644}" content "${8:content here}" action :${2:create} endyasnippet-snippets-0~git20150512/chef-mode/git000066400000000000000000000003641252436562400211650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: git # key: git # -- git "${1:/home/user/deployment}" do repository "${2:git@github.com:gitsite/deploymentployment.git}" reference "${3:master}" user "${4:user}" group "${5:templateest}" action :sync endyasnippet-snippets-0~git20150512/chef-mode/group000066400000000000000000000002231252436562400215300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: group # key: group # -- group "${1:name}" do gid ${2:999} members [${3:'paco','vicente'}] action :create endyasnippet-snippets-0~git20150512/chef-mode/http_request000066400000000000000000000002261252436562400231260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: http_request # key: http_request # -- http_request "${1:some message}" do url "${2:http://example.com/check_in}" endyasnippet-snippets-0~git20150512/chef-mode/http_requestp000066400000000000000000000003761252436562400233140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: http_requestp # key: http_requestp # -- http_request "${1:posting data}" do action :post url "${2:http://example.com/check_in}" message ${3::some => "data"} headers (${4:\{"AUTHORIZATION" => authorization\}}) endyasnippet-snippets-0~git20150512/chef-mode/ignore_failure000066400000000000000000000001421252436562400233660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ignore_failure # key: ignore_failure # -- ignore_failure ${0:true}yasnippet-snippets-0~git20150512/chef-mode/inc000066400000000000000000000001311252436562400211430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inc # key: inc # -- include_recipe "${1:example::recipe}"yasnippet-snippets-0~git20150512/chef-mode/link000066400000000000000000000001541252436562400213340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: link # key: link # -- link "${1:/tmp/passwd}" do to "${2:/etc/passwd}" endyasnippet-snippets-0~git20150512/chef-mode/linkf000066400000000000000000000002611252436562400215010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: linkf # key: linkf # -- link "${1:/tmp/passwd}" do to "${2:/etc/passwd}" link_type :${3:symbolic} owner "${4:root}" group "${5:root}" endyasnippet-snippets-0~git20150512/chef-mode/log000066400000000000000000000001511252436562400211550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: log # key: log # -- log ("${1:your string to log}") { level :${2:debug} }yasnippet-snippets-0~git20150512/chef-mode/machine000066400000000000000000000002601252436562400220010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: machine # key: machine # -- machine "${1:name}" do role '${2:web}' recipe '${3:web}' chef_environment '${4:_default}' converge true end yasnippet-snippets-0~git20150512/chef-mode/meta000066400000000000000000000005131252436562400213240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: meta # key: meta # -- maintainer "${1:YOUR_COMPANY_NAME}" maintainer_email "${2:YOUR_EMAIL}" license "${3:All rights reserved}" description "${4:Installs/Configures example}" long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) version "${5:0.0.1}"yasnippet-snippets-0~git20150512/chef-mode/not_if000066400000000000000000000001071252436562400216530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: not_if # key: not_if # -- not_if "${1}"yasnippet-snippets-0~git20150512/chef-mode/notifies000066400000000000000000000001571252436562400222220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: notifies # key: notifies # -- notifies :${1:restart}, "${2:service}[${3:name}]"yasnippet-snippets-0~git20150512/chef-mode/only_if000066400000000000000000000001121252436562400220300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: only_if # key: only_if # -- only_if "${1}"yasnippet-snippets-0~git20150512/chef-mode/pac000066400000000000000000000001741252436562400211440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pac # key: pac # -- package "${1:name}" do action :${2:install} version "${3:1.0-1}" endyasnippet-snippets-0~git20150512/chef-mode/pak000066400000000000000000000001741252436562400211540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pak # key: pak # -- package "${1:name}" do action :${2:install} version "${3:1.0-1}" endyasnippet-snippets-0~git20150512/chef-mode/provider000066400000000000000000000001551252436562400222320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: provider # key: provider # -- provider Chef::Provider::${0:Package::Rubygems}yasnippet-snippets-0~git20150512/chef-mode/python000066400000000000000000000002401252436562400217140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: python # key: python # -- python "${1:install something}" do user "${2:root}" cwd "${3:/tmp}" code <<-EOH $0 EOH endyasnippet-snippets-0~git20150512/chef-mode/remote_file000066400000000000000000000003751252436562400226760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remote_file # key: remote_file # -- remote_file "${1:/tmp/remote_file}" do owner "${2:root}" group "${3:root}" mode "${4:0644}" source "${5:http://www.example.com/remote_file}" checksum "${6:sha256checksum}" endyasnippet-snippets-0~git20150512/chef-mode/retries000066400000000000000000000001351252436562400220530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: retries # key: retries # -- retries ${1:1} retry_delay ${2:2}yasnippet-snippets-0~git20150512/chef-mode/role000066400000000000000000000003531252436562400213410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: role # key: role # -- name "${1:role name}" description "${2:Description for the role}" env_run_lists "${3:role name}" => [ ] run_list "" default_attributes( ${4::attribute => "example"} ) yasnippet-snippets-0~git20150512/chef-mode/ruby000066400000000000000000000002571252436562400213640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ruby # key: ruby # -- ruby_block "${1:reload client config}" do block do ${0:Chef::Config.from_file("/Chefetc/chef/client.rb")} end endyasnippet-snippets-0~git20150512/chef-mode/script000066400000000000000000000003641252436562400217060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: script # key: script # -- script "${1:do something}" do interpreter "bash" user "${2:root}" cwd "${3:/tmp}" creates "${4:maybe}" code <<-EOH STATUS=0 $0 || STATUS=1 exit $STATUS EOH end yasnippet-snippets-0~git20150512/chef-mode/service000066400000000000000000000003111252436562400220320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: service # key: service # -- service "${1:name}" do supports :status => ${2:true}, :restart => ${3:true}, :truereload => ${4:true} action ${5:[ :enable, :start ]} endyasnippet-snippets-0~git20150512/chef-mode/servicep000066400000000000000000000003401252436562400222140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: servicep # key: servicep # -- service "${1:name}" do pattern "${2:pattern}" supports :status => ${3:true}, :restart => ${4:true}, :reload => ${5:true} action ${6:[ :enable, :start ]} endyasnippet-snippets-0~git20150512/chef-mode/subscribes000066400000000000000000000001661252436562400225460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subscribes # key: subscribes # -- subscribes :${1:restart}, "${2:template}[${3:name}]"yasnippet-snippets-0~git20150512/chef-mode/supports000066400000000000000000000002131252436562400222720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: supports # key: supports # -- supports :status => :${1:true}, :restart => :${2:true}, :reload => :${3:true}yasnippet-snippets-0~git20150512/chef-mode/template000066400000000000000000000002411252436562400222070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: template # key: template # -- template "${1:name}" do source "${2:source}.erb" owner "root" group "root" mode "0644" end yasnippet-snippets-0~git20150512/chef-mode/templatev000066400000000000000000000003431252436562400224000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: templatev # key: templatev # -- template "${1:name}" do source "${2:source}.erb" owner "root" group "root" node "0644" variables( ${3::config_var => node[:configs][:config_var]} ) end yasnippet-snippets-0~git20150512/chef-mode/user000066400000000000000000000004701252436562400213560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: user # key: user # -- user "${1:random}" do action :create comment "${2:Random User}" uid ${3:1000} gid "${4:users}" home "${5:/home/random}" shell "${6:/bin/zsh}" password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}" supports :manage_home =>manage_home true end yasnippet-snippets-0~git20150512/cider-repl-mode000077700000000000000000000000001252436562400240232clojure-modeustar00rootroot00000000000000yasnippet-snippets-0~git20150512/clojure-mode/000077500000000000000000000000001252436562400212125ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/clojure-mode/.yas-parents000066400000000000000000000000121252436562400234520ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20150512/clojure-mode/bench000066400000000000000000000001371252436562400222150ustar00rootroot00000000000000# name: bench # key: bench # -- (dotimes [_ 5 ]$> (time (dotimes [i 1000000]$> $0$> )))$>yasnippet-snippets-0~git20150512/clojure-mode/bp000066400000000000000000000000551252436562400215360ustar00rootroot00000000000000# name: bp # key: bp # -- (swank.core/break) yasnippet-snippets-0~git20150512/clojure-mode/def000066400000000000000000000000451252436562400216720ustar00rootroot00000000000000# name: def # key: def # -- (def $0) yasnippet-snippets-0~git20150512/clojure-mode/defm000066400000000000000000000001111252436562400220410ustar00rootroot00000000000000# name: defmacro # key: defm # -- (defmacro $1 "$2"$> [$3]$> $0)$> yasnippet-snippets-0~git20150512/clojure-mode/defn000066400000000000000000000001011252436562400220410ustar00rootroot00000000000000# name: defn # key: defn # -- (defn $1 "$2"$> [$3]$> $0)$> yasnippet-snippets-0~git20150512/clojure-mode/defr000066400000000000000000000001221252436562400220500ustar00rootroot00000000000000# name: defrecord # key: defr # -- (defrecord ^{"$1"}$> $2$> [$3]$> $0)$> yasnippet-snippets-0~git20150512/clojure-mode/deft000066400000000000000000000001151252436562400220540ustar00rootroot00000000000000# name: deftype # key: deft # -- (deftype ^{"$1"}$> $2$> [$3]$> $0)$>yasnippet-snippets-0~git20150512/clojure-mode/doseq000066400000000000000000000000711252436562400222460ustar00rootroot00000000000000# name: doseq # key: doseq # -- (doseq [$1 $2] $3)$> $0yasnippet-snippets-0~git20150512/clojure-mode/fn000066400000000000000000000000531252436562400215360ustar00rootroot00000000000000# name: fn # key: fn # -- (fn [$1] $0)$> yasnippet-snippets-0~git20150512/clojure-mode/for000066400000000000000000000000611252436562400217200ustar00rootroot00000000000000# name: for # key: for # -- (for [$1 $2] $3)$> yasnippet-snippets-0~git20150512/clojure-mode/if000066400000000000000000000001131252436562400215260ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: if # key: if # -- (if $1 $2$> $3)$> $0 yasnippet-snippets-0~git20150512/clojure-mode/ifl000066400000000000000000000001161252436562400217050ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: ifl # key: ifl # -- (if-let [$1 $2] $3)$> $0yasnippet-snippets-0~git20150512/clojure-mode/import000066400000000000000000000000621252436562400224450ustar00rootroot00000000000000# name: import # key: import # -- (:import ($1))$>yasnippet-snippets-0~git20150512/clojure-mode/is000066400000000000000000000001011252436562400215400ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: is # key: is # -- (is (= $1 $2)) yasnippet-snippets-0~git20150512/clojure-mode/let000066400000000000000000000001161252436562400217170ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: let # key: let # -- (let [$1 $2]$> $3)$> $0 yasnippet-snippets-0~git20150512/clojure-mode/map000066400000000000000000000000771252436562400217160ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: map # key: map # -- (map $1 $2)yasnippet-snippets-0~git20150512/clojure-mode/map.lambda000066400000000000000000000001131252436562400231240ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: map lambda # key: map # -- (map #($1) $2)$>yasnippet-snippets-0~git20150512/clojure-mode/mdoc000066400000000000000000000001021252436562400220500ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: mdoc # key: mdoc # -- ^{:doc "$1"}yasnippet-snippets-0~git20150512/clojure-mode/ns000066400000000000000000000010611252436562400215530ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: ns # key: ns # -- (ns `(flet ((try-src-prefix (path src-pfx) (let ((parts (split-string path src-pfx))) (if (= 2 (length parts)) (second parts) nil)))) (let* ((p (buffer-file-name)) (p2 (first (remove-if-not '(lambda (x) x) (mapcar '(lambda (pfx) (try-src-prefix p pfx)) '("/src/cljs/" "/src/clj/" "/src/"))))) (p3 (file-name-sans-extension p2)) (p4 (mapconcat '(lambda (x) x) (split-string p3 "/") "."))) (replace-regexp-in-string "_" "-" p4)))`)yasnippet-snippets-0~git20150512/clojure-mode/opts000066400000000000000000000001021252436562400221130ustar00rootroot00000000000000# key: opts # name: opts # -- {:keys [$1]$> :or {$2}$> :as $3}$>yasnippet-snippets-0~git20150512/clojure-mode/pr000066400000000000000000000000751252436562400215600ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: pr # key: pr # -- (prn $1) $0yasnippet-snippets-0~git20150512/clojure-mode/print000066400000000000000000000001071252436562400222670ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: print # key: print # -- (println $1) $0yasnippet-snippets-0~git20150512/clojure-mode/reduce000066400000000000000000000001311252436562400223770ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: reduce # key: reduce # -- (reduce ${1:(fn [p n] $0)} $2) yasnippet-snippets-0~git20150512/clojure-mode/require000066400000000000000000000000741252436562400226120ustar00rootroot00000000000000# name: require # key: require # -- (:require [$1 :as $2])$>yasnippet-snippets-0~git20150512/clojure-mode/test000066400000000000000000000001021252436562400221050ustar00rootroot00000000000000# name: test # key: test # -- (deftest $1 (is (= $2))$> $0)$> yasnippet-snippets-0~git20150512/clojure-mode/try000066400000000000000000000001101252436562400217430ustar00rootroot00000000000000# name: try # key: try # -- (try $1$> (catch ${2:Exception} e$> $3$>))$>yasnippet-snippets-0~git20150512/clojure-mode/use000066400000000000000000000000651252436562400217320ustar00rootroot00000000000000# name: use # key: use # -- (:use [$1 :refer [$2]])$>yasnippet-snippets-0~git20150512/clojure-mode/when000066400000000000000000000001201252436562400220670ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: when # key: when # -- (when $1 $2)$> $0$> yasnippet-snippets-0~git20150512/clojure-mode/whenl000066400000000000000000000001301252436562400222440ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: whenl # key: whenl # -- (when-let [$1 $2] $3)$> $0$>yasnippet-snippets-0~git20150512/cmake-mode/000077500000000000000000000000001252436562400206275ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/cmake-mode/add_executable000066400000000000000000000001741252436562400235050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add_executable # key: exe # -- add_executable($1 ${2:main.cpp}) target_link_libraries($1 $3)yasnippet-snippets-0~git20150512/cmake-mode/add_library000066400000000000000000000001671252436562400230320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add_library # key: lib # -- add_library($1 ${2:class.cpp}) target_link_libraries($1 $3)yasnippet-snippets-0~git20150512/cmake-mode/cmake_minimum_required000066400000000000000000000001571252436562400252700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cmake_minimum_required # key: min # -- cmake_minimum_required(VERSION ${1:2.6})yasnippet-snippets-0~git20150512/cmake-mode/foreach000066400000000000000000000001611252436562400221570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: foreach # key: for # -- foreach(${1:item} \${${2:array}}) $0 endforeach()yasnippet-snippets-0~git20150512/cmake-mode/function000066400000000000000000000001471252436562400224010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- function (${1:name}) $0 endfunction()yasnippet-snippets-0~git20150512/cmake-mode/if000066400000000000000000000001151252436562400211450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if(${1:cond}) $0 endif()yasnippet-snippets-0~git20150512/cmake-mode/ifelse000066400000000000000000000001611252436562400220170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifelse # key: if # -- if(${1:cond}) $2 else(${3:cond}) $0 endif()yasnippet-snippets-0~git20150512/cmake-mode/include000066400000000000000000000000751252436562400221770ustar00rootroot00000000000000# type: command # key: inc # name: include # -- include ($0) yasnippet-snippets-0~git20150512/cmake-mode/macro000066400000000000000000000001361252436562400216530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: macro # key: macro # -- macro(${1:name}${2: args}) endmacro()yasnippet-snippets-0~git20150512/cmake-mode/message000066400000000000000000000001211252436562400221700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: message # key: msg # -- message(${1:STATUS }"$0")yasnippet-snippets-0~git20150512/cmake-mode/option000066400000000000000000000001441252436562400220610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: option # key: opt # -- option (${1:OPT} "${2:docstring}" ${3:value})yasnippet-snippets-0~git20150512/cmake-mode/project000066400000000000000000000001051252436562400222140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: project # key: proj # -- project ($0)yasnippet-snippets-0~git20150512/cmake-mode/set000066400000000000000000000001141252436562400213410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: set # key: set # -- set(${1:var} ${2:value})yasnippet-snippets-0~git20150512/conf-unix-mode/000077500000000000000000000000001252436562400214555ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/conf-unix-mode/.yas-parents000066400000000000000000000000111252436562400237140ustar00rootroot00000000000000text-modeyasnippet-snippets-0~git20150512/conf-unix-mode/section000066400000000000000000000001731252436562400230450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # section for xorg.conf # -- Section "${1:Device}" $0 EndSectionyasnippet-snippets-0~git20150512/cperl-mode/000077500000000000000000000000001252436562400206545ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/cperl-mode/.yas-parents000066400000000000000000000000121252436562400231140ustar00rootroot00000000000000perl-mode yasnippet-snippets-0~git20150512/cpp-omnet-mode/000077500000000000000000000000001252436562400214515ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/cpp-omnet-mode/EV000066400000000000000000000001101252436562400216760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: EV # key: ev # -- EV << "${1:string}"$0;yasnippet-snippets-0~git20150512/cpp-omnet-mode/emit_signal000066400000000000000000000001351252436562400236660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: emit_signal # key: emit # -- emit(${1:signal_id}, ${2:long});yasnippet-snippets-0~git20150512/cpp-omnet-mode/intuniform000066400000000000000000000001301252436562400235600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: intuniform # key: intuni # -- intuniform(${1:0}, ${2:1})yasnippet-snippets-0~git20150512/cpp-omnet-mode/math000066400000000000000000000001061252436562400223220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: math # key: math # -- #include yasnippet-snippets-0~git20150512/cpp-omnet-mode/nan000066400000000000000000000001011252436562400221400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nan # key: nan # -- isnan(${1:x})yasnippet-snippets-0~git20150512/cpp-omnet-mode/omnet000066400000000000000000000001141252436562400225120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: omnet # key: omnet # -- #include yasnippet-snippets-0~git20150512/cpp-omnet-mode/parameter_omnetpp000066400000000000000000000001351252436562400251150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parameter_omnetpp # key: par # -- ${1:var} = par("${2:par}");yasnippet-snippets-0~git20150512/cpp-omnet-mode/scheduleAt000066400000000000000000000001501252436562400234510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: scheduleAt # key: sched # -- scheduleAt(simTime()+${1:1.0}, ${2:event});yasnippet-snippets-0~git20150512/cpp-omnet-mode/uniform000066400000000000000000000001461252436562400230540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uniform # key: uni # uniform distribution # -- uniform(${1:0}, ${2:1})yasnippet-snippets-0~git20150512/csharp-mode/000077500000000000000000000000001252436562400210275ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/csharp-mode/.yas-parents000066400000000000000000000000101252436562400232650ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20150512/csharp-mode/attrib000066400000000000000000000002531252436562400222370ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : private attribute ....; # key: attrib # -- /// /// $3 /// private $1 $2;yasnippet-snippets-0~git20150512/csharp-mode/attrib.1000066400000000000000000000005501252436562400223760ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : private attribute ....; public property ... ... { ... } # key: attrib # -- /// /// $3 /// private $1 $2; /// /// $4 /// /// $5 public $1 $2 { get { return this.$2; } set { this.$2 = value; } }yasnippet-snippets-0~git20150512/csharp-mode/attrib.2000066400000000000000000000014171252436562400224020ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : private _attribute ....; public Property ... ... { ... } # key: attrib # -- /// /// $3 /// private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; /// /// ${3:Description} /// /// $1 public ${1:Type} ${2:Name} { get { return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; } set { this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value; } }yasnippet-snippets-0~git20150512/csharp-mode/class000066400000000000000000000006121252436562400220560ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : class ... { ... } # key: class # -- ${5:public} class ${1:Name} { #region Ctor & Destructor /// /// ${3:Standard Constructor} /// public $1($2) { } /// /// ${4:Default Destructor} /// public ~$1() { } #endregion }yasnippet-snippets-0~git20150512/csharp-mode/comment000066400000000000000000000002421252436562400224120ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// /// $1 /// yasnippet-snippets-0~git20150512/csharp-mode/comment.1000066400000000000000000000002451252436562400225540ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $2yasnippet-snippets-0~git20150512/csharp-mode/comment.2000066400000000000000000000002371252436562400225560ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $1yasnippet-snippets-0~git20150512/csharp-mode/comment.3000066400000000000000000000002651252436562400225600ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $2yasnippet-snippets-0~git20150512/csharp-mode/method000066400000000000000000000005171252436562400222350ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : public void Method { ... } # key: method # -- /// /// ${5:Description} /// ${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// " yas-text ""))} ${1:public} ${2:void} ${3:MethodName}($4) { $0 }yasnippet-snippets-0~git20150512/csharp-mode/namespace000066400000000000000000000002141252436562400227030ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : namespace .. { ... } # key: namespace # -- namespace $1 { $0 }yasnippet-snippets-0~git20150512/csharp-mode/prop000066400000000000000000000004171252436562400217340ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : property ... ... { ... } # key: prop # -- /// /// $5 /// /// $6 $1 $2 $3 { get { return this.$4; } set { this.$4 = value; } }yasnippet-snippets-0~git20150512/csharp-mode/region000066400000000000000000000002201252436562400222270ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : #region ... #endregion # key: region # -- #region $1 $0 #endregionyasnippet-snippets-0~git20150512/csharp-mode/using000066400000000000000000000001641252436562400221000ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using ...; # key: using # -- using $1;yasnippet-snippets-0~git20150512/csharp-mode/using.1000066400000000000000000000001731252436562400222370ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using System; # key: using # -- using System;yasnippet-snippets-0~git20150512/csharp-mode/using.2000066400000000000000000000002021252436562400222310ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using System....; # key: using # -- using System.$1;yasnippet-snippets-0~git20150512/css-mode/000077500000000000000000000000001252436562400203375ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/css-mode/bg000066400000000000000000000000771252436562400206560ustar00rootroot00000000000000#name : background-color: ... # -- background-color: #${1:DDD};yasnippet-snippets-0~git20150512/css-mode/bg.1000066400000000000000000000000751252436562400210130ustar00rootroot00000000000000#name : background-image: ... # -- background-image: url($1);yasnippet-snippets-0~git20150512/css-mode/bor000066400000000000000000000001131252436562400210370ustar00rootroot00000000000000#name : border size style color # -- border: ${1:1px} ${2:solid} #${3:999};yasnippet-snippets-0~git20150512/css-mode/cl000066400000000000000000000001221252436562400206530ustar00rootroot00000000000000#contributor : rejeep #name : clear: ... # -- clear: $1; yasnippet-snippets-0~git20150512/css-mode/disp.block000066400000000000000000000001331252436562400223070ustar00rootroot00000000000000#contributor : rejeep #name : display: block # -- display: block; yasnippet-snippets-0~git20150512/css-mode/disp.inline000066400000000000000000000001351252436562400224750ustar00rootroot00000000000000#contributor : rejeep #name : display: inline # -- display: inline; yasnippet-snippets-0~git20150512/css-mode/disp.none000066400000000000000000000001311252436562400221520ustar00rootroot00000000000000#contributor : rejeep #name : display: none # -- display: none; yasnippet-snippets-0~git20150512/css-mode/ff000066400000000000000000000001361252436562400206550ustar00rootroot00000000000000#contributor : rejeep #name : font-family: ... # -- font-family: $1; yasnippet-snippets-0~git20150512/css-mode/fs000066400000000000000000000001371252436562400206730ustar00rootroot00000000000000#contributor : rejeep #name : font-size: ... # -- font-size: ${12px}; yasnippet-snippets-0~git20150512/css-mode/mar.bottom000066400000000000000000000001421252436562400223410ustar00rootroot00000000000000#contributor : rejeep #name : margin-bottom: ... # -- margin-bottom: $1; yasnippet-snippets-0~git20150512/css-mode/mar.left000066400000000000000000000001361252436562400217720ustar00rootroot00000000000000#contributor : rejeep #name : margin-left: ... # -- margin-left: $1; yasnippet-snippets-0~git20150512/css-mode/mar.mar000066400000000000000000000001241252436562400216140ustar00rootroot00000000000000#contributor : rejeep #name : margin: ... # -- margin: $1; yasnippet-snippets-0~git20150512/css-mode/mar.margin000066400000000000000000000002041252436562400223110ustar00rootroot00000000000000#contributor : rejeep #name : margin top right bottom left # -- margin: ${top} ${right} ${bottom} ${left}; yasnippet-snippets-0~git20150512/css-mode/mar.right000066400000000000000000000001401252436562400221500ustar00rootroot00000000000000#contributor : rejeep #name : margin-right: ... # -- margin-right: $1; yasnippet-snippets-0~git20150512/css-mode/mar.top000066400000000000000000000001341252436562400216400ustar00rootroot00000000000000#contributor : rejeep #name : margin-top: ... # -- margin-top: $1; yasnippet-snippets-0~git20150512/css-mode/pad.bottom000066400000000000000000000001441252436562400223300ustar00rootroot00000000000000#contributor : rejeep #name : padding-bottom: ... # -- padding-bottom: $1; yasnippet-snippets-0~git20150512/css-mode/pad.left000066400000000000000000000001401252436562400217520ustar00rootroot00000000000000#contributor : rejeep #name : padding-left: ... # -- padding-left: $1; yasnippet-snippets-0~git20150512/css-mode/pad.pad000066400000000000000000000001261252436562400215700ustar00rootroot00000000000000#contributor : rejeep #name : padding: ... # -- padding: $1; yasnippet-snippets-0~git20150512/css-mode/pad.padding000066400000000000000000000002071252436562400224320ustar00rootroot00000000000000#contributor : rejeep #name : padding: top right bottom left # -- padding: ${top} ${right} ${bottom} ${left}; yasnippet-snippets-0~git20150512/css-mode/pad.right000066400000000000000000000001421252436562400221370ustar00rootroot00000000000000#contributor : rejeep #name : padding-right: ... # -- padding-right: $1; yasnippet-snippets-0~git20150512/css-mode/pad.top000066400000000000000000000001361252436562400216270ustar00rootroot00000000000000#contributor : rejeep #name : padding-top: ... # -- padding-top: $1; yasnippet-snippets-0~git20150512/css-mode/v000066400000000000000000000002271252436562400205300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: -vendor-prefix # contributor: Prateek Saxena # key: -v # -- $1: $2; -webkit-$1: $2; -moz-$1: $2; -ms-$1: $2; -o-$1: $2;yasnippet-snippets-0~git20150512/elixir-mode/000077500000000000000000000000001252436562400210435ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/elixir-mode/.yas-parents000066400000000000000000000000121252436562400233030ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20150512/elixir-mode/case000066400000000000000000000001121252436562400216730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: case # key: case # -- case $1 do $0 end yasnippet-snippets-0~git20150512/elixir-mode/cond000066400000000000000000000001071252436562400217070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cond # key: cond # -- cond do $0 end yasnippet-snippets-0~git20150512/elixir-mode/def000066400000000000000000000001401252436562400215170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- def ${1:method}${2:(${3:args})} do $0 end yasnippet-snippets-0~git20150512/elixir-mode/defmacro000066400000000000000000000001251252436562400225440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmacro # key: defmacro # -- defmacro $1 do $0 end yasnippet-snippets-0~git20150512/elixir-mode/defmacrop000066400000000000000000000001301252436562400227200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmacrop # key: defmacrop # -- defmacrop $1 do $0 end yasnippet-snippets-0~git20150512/elixir-mode/defmodule000066400000000000000000000001301252436562400227240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmodule # key: defmodule # -- defmodule $1 do $0 end yasnippet-snippets-0~git20150512/elixir-mode/defp000066400000000000000000000001111252436562400216750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defp # key: defp # -- defp $1 do $0 end yasnippet-snippets-0~git20150512/elixir-mode/doc000066400000000000000000000001041252436562400215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: doc # -- @doc """ $0 """ yasnippet-snippets-0~git20150512/elixir-mode/mdoc000066400000000000000000000001211252436562400217020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moduledoc # key: mdoc # -- @moduledoc """ $0 """ yasnippet-snippets-0~git20150512/emacs-lisp-mode/000077500000000000000000000000001252436562400216045ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/emacs-lisp-mode/.read_me000066400000000000000000000004731252436562400232050ustar00rootroot00000000000000-*- coding: utf-8 -*- Originally started by Xah Lee (xahlee.org) on 2009-02-22 Released under GPL 3. Feel free to add missing ones or modify existing ones to improve. Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future.yasnippet-snippets-0~git20150512/emacs-lisp-mode/add-hook000077500000000000000000000001521252436562400232160ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: add-hook #key: add-hook #key: ah # -- (add-hook HOOK$0 FUNCTION)yasnippet-snippets-0~git20150512/emacs-lisp-mode/and000077500000000000000000000001151252436562400222710ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: and #key: and #key: a # -- (and $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/append000077500000000000000000000001171252436562400230000ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: append #key: append # -- (append $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/apply000077500000000000000000000001141252436562400226530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: apply #key: apply # -- (apply $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/aref000077500000000000000000000001231252436562400224430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: aref #key: aref # -- (aref ARRAY$0 INDEX)yasnippet-snippets-0~git20150512/emacs-lisp-mode/aset000077500000000000000000000001301252436562400224600ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: aset #key: aset # -- (aset ARRAY$0 IDX NEWELT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/assq000077500000000000000000000001201252436562400224720ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: assq #key: assq # -- (assq KEY$0 LIST)yasnippet-snippets-0~git20150512/emacs-lisp-mode/autoload000077500000000000000000000002171252436562400233420ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: autoload #key: autoload # -- (autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/backward-char000077500000000000000000000001541252436562400242230ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: backward-char #key: backward-char #key: bc # -- (backward-char $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/beginning-of-line000077500000000000000000000001661252436562400250240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: beginning-of-line #key: beginning-of-line #key: bol # -- (beginning-of-line)yasnippet-snippets-0~git20150512/emacs-lisp-mode/bounds-of-thing-at-point000077500000000000000000000003571252436562400262730ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: bounds-of-thing-at-point #key: bounds-of-thing-at-point #key: botap # -- (bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...yasnippet-snippets-0~git20150512/emacs-lisp-mode/buffer-file-name000077500000000000000000000001631252436562400246360ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-file-name #key: buffer-file-name #key: bfn # -- (buffer-file-name)yasnippet-snippets-0~git20150512/emacs-lisp-mode/buffer-modified-p000077500000000000000000000001711252436562400250150ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-modified-p #key: buffer-modified-p #key: bmp # -- (buffer-modified-p $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/buffer-substring000077500000000000000000000001761252436562400250250ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-substring #key: buffer-substring #key: bs # -- (buffer-substring START$0 END)yasnippet-snippets-0~git20150512/emacs-lisp-mode/buffer-substring-no-properties000077500000000000000000000002521252436562400276240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-substring-no-properties #key: buffer-substring-no-properties #key: bsnp # -- (buffer-substring-no-properties START$0 END)yasnippet-snippets-0~git20150512/emacs-lisp-mode/car000077500000000000000000000001051252436562400222730ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: car #key: car # -- (car $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/cdr000077500000000000000000000001051252436562400222760ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cdr #key: cdr # -- (cdr $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/concat000077500000000000000000000001161252436562400227770ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: concat #key: concat # -- (concat $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/cond000077500000000000000000000001521252436562400224530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cond #key: cond # -- (cond (CONDITION$0 BODY) (CONDITION BODY) )yasnippet-snippets-0~git20150512/emacs-lisp-mode/condition-case000077500000000000000000000001601252436562400244260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: condition-case #key: condition-case #key: cc # -- (condition-case $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/cons000077500000000000000000000001101252436562400224640ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cons #key: cons # -- (cons $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/consp000077500000000000000000000001141252436562400226500ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: consp #key: consp # -- (consp $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/copy-directory000077500000000000000000000002231252436562400245030ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: copy-directory #key: copy-directory #key: cd # -- (copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/copy-file000077500000000000000000000002461252436562400234230ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: copy-file #key: copy-file #key: cf # -- (copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)yasnippet-snippets-0~git20150512/emacs-lisp-mode/current-buffer000077500000000000000000000001541252436562400244630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: current-buffer #key: current-buffer #key: cb # -- (current-buffer)yasnippet-snippets-0~git20150512/emacs-lisp-mode/custom-autoload000077500000000000000000000002151252436562400246500ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: custom-autoload #key: custom-autoload #key: ca # -- (custom-autoload$0 SYMBOL LOAD &optional NOSET)yasnippet-snippets-0~git20150512/emacs-lisp-mode/defalias000077500000000000000000000001731252436562400233030ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defalias #key: defalias # -- (defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)yasnippet-snippets-0~git20150512/emacs-lisp-mode/defcustom000077500000000000000000000001621252436562400235220ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defcustom #key: defcustom # -- (defcustom $0 VALUE "DOC" &optional ARGS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/define-key000077500000000000000000000002031252436562400235450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: define-key #key: define-key #key: dk # -- (define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)yasnippet-snippets-0~git20150512/emacs-lisp-mode/defsubst000077500000000000000000000001251252436562400233470ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defsubst #key: defsubst # -- (defsubst $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/defun000066400000000000000000000001651252436562400226320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defun # key: def # -- (defun ${1:fun} (${2:args}) ${3:(interactive${4: "P"})} $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/defvar000077500000000000000000000001251252436562400227770ustar00rootroot00000000000000#name: defvar #key: defvar # -- (defvar $0 &optional ${1:initvalue} "${2:docstring}")yasnippet-snippets-0~git20150512/emacs-lisp-mode/delete-char000077500000000000000000000001461252436562400237100ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-char #key: delete-char #key: dc # -- (delete-char $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/delete-directory000077500000000000000000000002111252436562400247700ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-directory #key: delete-directory #key: dd # -- (delete-directory $0 &optional RECURSIVE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/delete-file000077500000000000000000000001461252436562400237120ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-file #key: delete-file #key: df # -- (delete-file $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/delete-region000077500000000000000000000001551252436562400242560ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-region #key: delete-region #key: dr # -- (delete-region $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/directory-files000077500000000000000000000002161252436562400246350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: directory-files #key: directory-files #key: df # -- (directory-files $0 &optional FULL MATCH NOSORT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/dired.process_marked000066400000000000000000000007071252436562400256220ustar00rootroot00000000000000#name : process marked files in dired #contributor : Xah Lee # -- ;; idiom for processing a list of files in dired's marked files ;; suppose myProcessFile is your function that takes a file path ;; and do some processing on the file (defun dired-myProcessFile () "apply myProcessFile function to marked files in dired." (interactive) (require 'dired) (mapc 'myProcessFile (dired-get-marked-files)) ) ;; to use it, type M-x dired-myProcessFile yasnippet-snippets-0~git20150512/emacs-lisp-mode/dolist000077500000000000000000000001171252436562400230270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: dolist #key: dolist # -- (dolist $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/end-of-line000077500000000000000000000001441252436562400236260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: end-of-line #key: end-of-line #key: eol # -- (end-of-line)yasnippet-snippets-0~git20150512/emacs-lisp-mode/eq000077500000000000000000000001021252436562400221300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: eq #key: eq # -- (eq $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/equal000077500000000000000000000001131252436562400226340ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: equal #key: equal # -- (equal $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/error000077500000000000000000000001341252436562400226610ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: error #key: error # -- (error "$0" &optional ARGS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/expand-file-name000077500000000000000000000001671252436562400246500ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: expand-file-name #key: expand-file-name #key: efn # -- (expand-file-name $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/f000077500000000000000000000001421252436562400217540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: format #key: format # -- (format "$0" &optional OBJECTS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/fboundp000077500000000000000000000001231252436562400231630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: fboundp #key: fboundp # -- (fboundp '$0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/file-name-directory000077500000000000000000000001771252436562400253760ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-directory #key: file-name-directory #key: fnd # -- (file-name-directory $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/file-name-extension000077500000000000000000000002201252436562400253730ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-extension #key: file-name-extension #key: fne # -- (file-name-extension $0 &optional PERIOD)yasnippet-snippets-0~git20150512/emacs-lisp-mode/file-name-nondirectory000077500000000000000000000002111252436562400260760ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-nondirectory #key: file-name-nondirectory #key: fnn # -- (file-name-nondirectory $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/file-name-sans-extension000077500000000000000000000002171252436562400263430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-sans-extension #key: file-name-sans-extension #key: fnse # -- (file-name-sans-extension $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/file-relative-name000077500000000000000000000001751252436562400252030ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-relative-name #key: file-relative-name #key: frn # -- (file-relative-name $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/file.process000066400000000000000000000011021252436562400241150ustar00rootroot00000000000000#name : a function that process a file #contributor : Xah Lee # -- (defun doThisFile (fpath) "Process the file at path FPATH ..." (let () ;; create temp buffer without undo record or font lock. (more efficient) ;; first space in temp buff name is necessary (set-buffer (get-buffer-create " myTemp")) (insert-file-contents fpath nil nil nil t) ;; process it ... ;; (goto-char 0) ; move to begining of file's content (in case it was open) ;; ... do something here ;; (write-file fpath) ;; write back to the file (kill-buffer " myTemp"))) yasnippet-snippets-0~git20150512/emacs-lisp-mode/file.read-lines000066400000000000000000000005431252436562400244720ustar00rootroot00000000000000#name : read lines of a file #contributor : Xah Lee # -- (defun read-lines (filePath) "Return a list of lines in FILEPATH." (with-temp-buffer (insert-file-contents filePath) (split-string (buffer-string) "\n" t)) ) ;; process all lines (mapc (lambda (aLine) (message aLine) ; do your stuff here ) (read-lines "inputFilePath") )yasnippet-snippets-0~git20150512/emacs-lisp-mode/find-file000077500000000000000000000001411252436562400233630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: find-file #key: find-file #key: ff # -- (find-file $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/find-replace000066400000000000000000000010761252436562400240640ustar00rootroot00000000000000#name : find and replace on region #contributor : Xah Lee # -- (defun replace-html-chars-region (start end) "Replace “<” to “<” and other chars in HTML. This works on the current region." (interactive "r") (save-restriction (narrow-to-region start end) (goto-char (point-min)) (while (search-forward "&" nil t) (replace-match "&" nil t)) (goto-char (point-min)) (while (search-forward "<" nil t) (replace-match "<" nil t)) (goto-char (point-min)) (while (search-forward ">" nil t) (replace-match ">" nil t)) ) ) yasnippet-snippets-0~git20150512/emacs-lisp-mode/format000077500000000000000000000001421252436562400230170ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: format #key: format # -- (format "$0" &optional OBJECTS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/forward-char000077500000000000000000000001511252436562400241060ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: forward-char #key: forward-char #key: fc # -- (forward-char $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/forward-line000077500000000000000000000001521252436562400241210ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: forward-line #key: forward-line #key: fl # -- (forward-line $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/funcall000077500000000000000000000001211252436562400231500ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: funcall #key: funcall # -- (funcall $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/function000077500000000000000000000001251252436562400233550ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: function #key: function # -- (function $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/get000077500000000000000000000001241252436562400223060ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: get #key: get # -- (get SYMBOL$0 PROPNAME)yasnippet-snippets-0~git20150512/emacs-lisp-mode/global-set-key000077500000000000000000000002031252436562400243440ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: global-set-key #key: global-set-key #key: gsk # -- (global-set-key (kbd "C-$0") 'COMMAND)yasnippet-snippets-0~git20150512/emacs-lisp-mode/goto-char000077500000000000000000000001401252436562400234100ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: goto-char #key: goto-char #key: gc # -- (goto-char $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/grabstring000066400000000000000000000001711252436562400236700ustar00rootroot00000000000000#name : grab buffer substring #contributor : Xah Lee # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) yasnippet-snippets-0~git20150512/emacs-lisp-mode/grabthing000066400000000000000000000001361252436562400234740ustar00rootroot00000000000000#name : grab word under cursor #contributor : Xah Lee # -- (setq $0 (thing-at-point 'symbol)) yasnippet-snippets-0~git20150512/emacs-lisp-mode/hash000066400000000000000000000001221252436562400224450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hash # key: hash # -- make-hash-table ${1:options}yasnippet-snippets-0~git20150512/emacs-lisp-mode/if000077500000000000000000000001021252436562400221210ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: if #key: if # -- (if $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/insert000077500000000000000000000001261252436562400230350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: insert #key: insert #key: i # -- (insert $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/insert-file-contents000077500000000000000000000002421252436562400256040ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: insert-file-contents #key: insert-file-contents #key: ifc # -- (insert-file-contents $0 &optional VISIT BEG END REPLACE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/interactive000077500000000000000000000001321252436562400240430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: interactive #key: interactive # -- (interactive)yasnippet-snippets-0~git20150512/emacs-lisp-mode/kbd000077500000000000000000000001071252436562400222700ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: kbd #key: kbd # -- (kbd "$0")yasnippet-snippets-0~git20150512/emacs-lisp-mode/kill-buffer000077500000000000000000000001461252436562400237350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: kill-buffer #key: kill-buffer #key: kb # -- (kill-buffer $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/lambda000077500000000000000000000001571252436562400227550ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: lambda #key: lambda # -- (lambda ($0) "DOCSTRING" (interactive) BODY)yasnippet-snippets-0~git20150512/emacs-lisp-mode/length000077500000000000000000000001161252436562400230110ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: length #key: length # -- (length $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/let000077500000000000000000000001251252436562400223140ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: let #key: let #key: l # -- (let ($1 ) $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/line-beginning-position000077500000000000000000000002101252436562400262520ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: line-beginning-position #key: line-beginning-position #key: lbp # -- (line-beginning-position)yasnippet-snippets-0~git20150512/emacs-lisp-mode/line-end-position000077500000000000000000000001661252436562400250720ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: line-end-position #key: line-end-position #key: lep # -- (line-end-position)yasnippet-snippets-0~git20150512/emacs-lisp-mode/list000077500000000000000000000001101252436562400224750ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: list #key: list # -- (list $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/looking-at000077500000000000000000000001431252436562400235740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: looking-at #key: looking-at #key: la # -- (looking-at $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/make-directory000077500000000000000000000002011252436562400244420ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: make-directory #key: make-directory #key: md # -- (make-directory $0 &optional PARENTS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/make-local-variable000077500000000000000000000001771252436562400253270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: make-local-variable #key: make-local-variable #key: mlv # -- (make-local-variable $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/mapc000077500000000000000000000001221252436562400224450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: mapc #key: mapc # -- (mapc '$0 SEQUENCE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/mapcar000077500000000000000000000001171252436562400227740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: mapcar #key: mapcar # -- (mapcar $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/match-beginning000077500000000000000000000001631252436562400245640ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-beginning #key: match-beginning #key: mb # -- (match-beginning N$0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/match-end000077500000000000000000000001411252436562400233660ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-end #key: match-end #key: me # -- (match-end N$0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/match-string000077500000000000000000000001521252436562400241300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-string #key: match-string #key: ms # -- (match-string $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/memq000077500000000000000000000001201252436562400224620ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: memq #key: memq # -- (memq ELT$0 LIST)yasnippet-snippets-0~git20150512/emacs-lisp-mode/message000077500000000000000000000001661252436562400231610ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: message #key: message #key: m # -- (message "FORMATSTRING$0" &optional ARGS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/minor_mode000066400000000000000000000007231252436562400236610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: minor_mode # key: minor # -- (defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}" "call ($1-install-mode) again if this is changed") (defvar $1-mode nil) (make-variable-buffer-local '$1-mode) (put '$1-mode 'permanent-local t) (defun $1-mode (&optional arg) "$0" (interactive "P") (setq $1-mode (if (null arg) (not $1-mode) (> (prefix-numeric-value arg) 0))) (force-mode-line-update)) (provide '$1-mode)yasnippet-snippets-0~git20150512/emacs-lisp-mode/not000077500000000000000000000001161252436562400223300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: not #key: not #key: n # -- (not $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/nth000077500000000000000000000001131252436562400223160ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: nth #key: nth # -- (nth N$0 LIST)yasnippet-snippets-0~git20150512/emacs-lisp-mode/null000077500000000000000000000001101252436562400224740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: null #key: null # -- (null $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/number-to-string000077500000000000000000000001661252436562400247510ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: number-to-string #key: number-to-string #key: nts # -- (number-to-string $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/or000077500000000000000000000001131252436562400221450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: or #key: or #key: o # -- (or $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/point000077500000000000000000000001201252436562400226540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point #key: point #key: p # -- (point)yasnippet-snippets-0~git20150512/emacs-lisp-mode/point-max000077500000000000000000000001241252436562400234430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point-max #key: point-max # -- (point-max)yasnippet-snippets-0~git20150512/emacs-lisp-mode/point-min000077500000000000000000000001351252436562400234430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point-min #key: point-min #key: pm # -- (point-min)yasnippet-snippets-0~git20150512/emacs-lisp-mode/princ000077500000000000000000000001131252436562400226400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: princ #key: princ # -- (princ $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/print000077500000000000000000000001131252436562400226610ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: print #key: print # -- (print $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/progn000077500000000000000000000001131252436562400226520ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: progn #key: progn # -- (progn $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/push000077500000000000000000000001111252436562400225020ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: push #key: push # -- (push $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/put000077500000000000000000000001241252436562400223370ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: put #key: put # -- (put $0 PROPNAME VALUE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/re-search-backward000077500000000000000000000002401252436562400251530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: re-search-backward #key: re-search-backward #key: rsb # -- (re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/re-search-forward000077500000000000000000000002351252436562400250450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: re-search-forward #key: re-search-forward #key: rsf # -- (re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/region-active-p000077500000000000000000000001601252436562400245200ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-active-p #key: region-active-p #key: rap # -- (region-active-p)yasnippet-snippets-0~git20150512/emacs-lisp-mode/region-beginning000077500000000000000000000001621252436562400247520ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-beginning #key: region-beginning #key: rb # -- (region-beginning)yasnippet-snippets-0~git20150512/emacs-lisp-mode/region-end000077500000000000000000000001401252436562400235540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-end #key: region-end #key: re # -- (region-end)yasnippet-snippets-0~git20150512/emacs-lisp-mode/rename-file000077500000000000000000000002211252436562400237110ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: rename-file #key: rename-file #key: rf # -- (rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/repeat000077500000000000000000000001171252436562400230110ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: repeat #key: repeat # -- (repeat $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/replace-regexp000077500000000000000000000002351252436562400244350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: replace-regexp #key: replace-regexp #key: rr # -- (replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END)yasnippet-snippets-0~git20150512/emacs-lisp-mode/replace-regexp-in-string000077500000000000000000000003111252436562400263400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: replace-regexp-in-string #key: replace-regexp-in-string #key: rris # -- (replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)yasnippet-snippets-0~git20150512/emacs-lisp-mode/require000077500000000000000000000001221252436562400232010ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: require #key: require # -- (require $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/save-buffer000077500000000000000000000001461252436562400237400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: save-buffer #key: save-buffer #key: sb # -- (save-buffer $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/save-excursion000077500000000000000000000001571252436562400245100ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: save-excursion #key: save-excursion #key: se # -- (save-excursion $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/search-backward000077500000000000000000000002221252436562400245470ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: search-backward #key: search-backward #key: sb # -- (search-backward "$0" &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/search-backward-regexp000077500000000000000000000002501252436562400260400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: search-backward-regexp #key: search-backward-regexp #key: sbr # -- (search-backward-regexp "$0" &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/search-forward000077500000000000000000000002171252436562400244410ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: search-forward #key: search-forward #key: sf # -- (search-forward "$0" &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/search-forward-regexp000077500000000000000000000002451252436562400257320ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: search-forward-regexp #key: search-forward-regexp #key: sfr # -- (search-forward-regexp "$0" &optional BOUND NOERROR COUNT)yasnippet-snippets-0~git20150512/emacs-lisp-mode/set000077500000000000000000000001061252436562400223220ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set #key: set # -- (set $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/set-buffer000077500000000000000000000001441252436562400235730ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-buffer #key: set-buffer #key: sb # -- (set-buffer $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/set-file-modes000077500000000000000000000001651252436562400243510ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-file-modes #key: set-file-modes #key: sfm # -- (set-file-modes $0 MODE)yasnippet-snippets-0~git20150512/emacs-lisp-mode/set-mark000077500000000000000000000001351252436562400232540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-mark #key: set-mark #key: sm # -- (set-mark $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/setq000077500000000000000000000001211252436562400225000ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: setq #key: setq #key: s # -- (setq $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/skip-chars-backward000077500000000000000000000002171252436562400253520ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: skip-chars-backward #key: skip-chars-backward #key: scb # -- (skip-chars-backward "$0" &optional LIM)yasnippet-snippets-0~git20150512/emacs-lisp-mode/skip-chars-forward000077500000000000000000000002141252436562400252350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: skip-chars-forward #key: skip-chars-forward #key: scf # -- (skip-chars-forward "$0" &optional LIM)yasnippet-snippets-0~git20150512/emacs-lisp-mode/split-string000077500000000000000000000002111252436562400241630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: split-string #key: split-string #key: ss # -- (split-string $0 &optional SEPARATORS OMIT-NULLS)yasnippet-snippets-0~git20150512/emacs-lisp-mode/string000077500000000000000000000001171252436562400230370ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string #key: string # -- (string $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/string-match000077500000000000000000000002121252436562400241250ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string-match #key: string-match #key: sm # -- (string-match "REGEXP$0" "STRING" &optional START)yasnippet-snippets-0~git20150512/emacs-lisp-mode/string-to-number000077500000000000000000000001701252436562400247440ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string-to-number #key: string-to-number #key: stn # -- (string-to-number "$0")yasnippet-snippets-0~git20150512/emacs-lisp-mode/string=000077500000000000000000000001221252436562400231300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string= #key: string= # -- (string= $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/stringp000077500000000000000000000001211252436562400232120ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: stringp #key: stringp # -- (stringp $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/substring000077500000000000000000000001571252436562400235550ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: substring #key: substring # -- (substring STRING$0 FROM &optional TO)yasnippet-snippets-0~git20150512/emacs-lisp-mode/thing-at-point000077500000000000000000000003171252436562400243750ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: thing-at-point #key: thing-at-point #key: tap # -- (thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...yasnippet-snippets-0~git20150512/emacs-lisp-mode/traverse_dir000066400000000000000000000002771252436562400242260ustar00rootroot00000000000000#name : traversing a directory #contributor : Xah Lee # -- ;; apply a function to all files in a dir (require 'find-lisp) (mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) yasnippet-snippets-0~git20150512/emacs-lisp-mode/unless000077500000000000000000000001161252436562400230410ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: unless #key: unless # -- (unless $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/vector000077500000000000000000000001261252436562400230330ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: vector #key: vector #key: v # -- (vector $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/when000077500000000000000000000001101252436562400224630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: when #key: when # -- (when $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/while000077500000000000000000000001131252436562400226350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: while #key: while # -- (while $0)yasnippet-snippets-0~git20150512/emacs-lisp-mode/widget-get000077500000000000000000000001441252436562400235710ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: widget-get #key: widget-get #key: wg # -- (widget-get $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/with-current-buffer000077500000000000000000000002001252436562400254240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: with-current-buffer #key: with-current-buffer #key: wcb # -- (with-current-buffer $0 )yasnippet-snippets-0~git20150512/emacs-lisp-mode/word-or-region000066400000000000000000000016511252436562400244040ustar00rootroot00000000000000#name : Command that works on region or word #contributor : Xah Lee # -- ;; example of a command that works on current word or text selection (defun down-case-word-or-region () "Lower case the current word or text selection." (interactive) (let (pos1 pos2 meat) (if (and transient-mark-mode mark-active) (setq pos1 (region-beginning) pos2 (region-end)) (setq pos1 (car (bounds-of-thing-at-point 'symbol)) pos2 (cdr (bounds-of-thing-at-point 'symbol)))) ; now, pos1 and pos2 are the starting and ending positions ; of the current word, or current text selection if exists ;; put your code here. $0 ;; Some example of things you might want to do (downcase-region pos1 pos2) ; example of a func that takes region as args (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. (delete-region pos1 pos2) ; get rid of it (insert "newText") ; insert your new text ) ) yasnippet-snippets-0~git20150512/emacs-lisp-mode/word_regexp000066400000000000000000000001151252436562400240510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: word_regexp # key: < # -- "\\_<${1:word}\\_>"yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-dired.process_marked000077500000000000000000000007401252436562400260670ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: process marked files in dired # key: x-dired # -- ;; idiom for processing a list of files in dired's marked files ;; suppose myProcessFile is your function that takes a file path ;; and do some processing on the file (defun dired-myProcessFile () "apply myProcessFile function to marked files in dired." (interactive) (require 'dired) (mapc 'myProcessFile (dired-get-marked-files)) ) ;; to use it, type M-x dired-myProcessFileyasnippet-snippets-0~git20150512/emacs-lisp-mode/x-file.process000077500000000000000000000011321252436562400243700ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: a function that process a file # key: x-file # -- (defun doThisFile (fpath) "Process the file at path FPATH ..." (let () ;; create temp buffer without undo record or font lock. (more efficient) ;; first space in temp buff name is necessary (set-buffer (get-buffer-create " myTemp")) (insert-file-contents fpath nil nil nil t) ;; process it ... ;; (goto-char 0) ; move to begining of file's content (in case it was open) ;; ... do something here ;; (write-file fpath) ;; write back to the file (kill-buffer " myTemp")))yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-file.read-lines000077500000000000000000000005741252436562400247460ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: read lines of a file # key: x-file # -- (defun read-lines (filePath) "Return a list of lines in FILEPATH." (with-temp-buffer (insert-file-contents filePath) (split-string (buffer-string) "\n" t)) ) ;; process all lines (mapc (lambda (aLine) (message aLine) ; do your stuff here ) (read-lines "inputFilePath") )yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-find-replace000077500000000000000000000011361252436562400243310ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: find and replace on region # key: x-find-replace # -- (defun replace-html-chars-region (start end) "Replace “<” to “<” and other chars in HTML. This works on the current region." (interactive "r") (save-restriction (narrow-to-region start end) (goto-char (point-min)) (while (search-forward "&" nil t) (replace-match "&" nil t)) (goto-char (point-min)) (while (search-forward "<" nil t) (replace-match "<" nil t)) (goto-char (point-min)) (while (search-forward ">" nil t) (replace-match ">" nil t)) ) )yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-grabstring000077500000000000000000000002271252436562400241420ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: grab buffer substring # key: x-grabstring # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos))yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-grabthing000077500000000000000000000001731252436562400237450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: grab word under cursor # key: x-grabthing # -- (setq $0 (thing-at-point 'symbol))yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-traverse_dir000077500000000000000000000003371252436562400244730ustar00rootroot00000000000000#name: traversing a directory #contributor: Xah Lee (XahLee.org) # key: x-traverse_dir # -- ;; apply a function to all files in a dir (require 'find-lisp) (mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))yasnippet-snippets-0~git20150512/emacs-lisp-mode/x-word-or-region000077500000000000000000000017131252436562400246530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: Command that works on region or word # key: x-word-or-region # -- ;; example of a command that works on current word or text selection (defun down-case-word-or-region () "Lower case the current word or text selection." (interactive) (let (pos1 pos2 meat) (if (and transient-mark-mode mark-active) (setq pos1 (region-beginning) pos2 (region-end)) (setq pos1 (car (bounds-of-thing-at-point 'symbol)) pos2 (cdr (bounds-of-thing-at-point 'symbol)))) ; now, pos1 and pos2 are the starting and ending positions ; of the current word, or current text selection if exists ;; put your code here. $0 ;; Some example of things you might want to do (downcase-region pos1 pos2) ; example of a func that takes region as args (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. (delete-region pos1 pos2) ; get rid of it (insert "newText") ; insert your new text ) )yasnippet-snippets-0~git20150512/emacs-lisp-mode/y-or-n-p000077500000000000000000000001531252436562400231070ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: y-or-n-p #key: y-or-n-p #key: yonp # -- (yes-or-no-p "PROMPT$0 ")yasnippet-snippets-0~git20150512/emacs-lisp-mode/yes-or-no-p000077500000000000000000000001461252436562400236200ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: yes-or-no-p #key: yes-or-no-p # -- (yes-or-no-p "PROMPT$0 ")yasnippet-snippets-0~git20150512/enh-ruby-mode000077700000000000000000000000001252436562400230442ruby-modeustar00rootroot00000000000000yasnippet-snippets-0~git20150512/ensime-mode000077700000000000000000000000001252436562400226752scala-modeustar00rootroot00000000000000yasnippet-snippets-0~git20150512/erc-mode/000077500000000000000000000000001252436562400203205ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/erc-mode/blist000066400000000000000000000000721252436562400213570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: blist # key: b # -- blist yasnippet-snippets-0~git20150512/erc-mode/help000066400000000000000000000000721252436562400211720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: help # key: h # -- help $0yasnippet-snippets-0~git20150512/erlang-mode/000077500000000000000000000000001252436562400210175ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/erlang-mode/after000066400000000000000000000000551252436562400220430ustar00rootroot00000000000000#name : after ... -> # -- after $1 -> $0 yasnippet-snippets-0~git20150512/erlang-mode/begin000066400000000000000000000000541252436562400220250ustar00rootroot00000000000000#name : begin ... end # -- begin $0 end yasnippet-snippets-0~git20150512/erlang-mode/beh000066400000000000000000000000761252436562400215030ustar00rootroot00000000000000#name : -behaviour(...). # -- -behaviour(${1:gen_server}). $0 yasnippet-snippets-0~git20150512/erlang-mode/case000066400000000000000000000000671252436562400216600ustar00rootroot00000000000000#name : case ... of ... end # -- case $1 of $0 end yasnippet-snippets-0~git20150512/erlang-mode/compile000066400000000000000000000000741252436562400223730ustar00rootroot00000000000000#name : -compile(...). # -- -compile([${1:export_all}]). $0 yasnippet-snippets-0~git20150512/erlang-mode/def000066400000000000000000000000621252436562400214760ustar00rootroot00000000000000#name : -define(...,...). # -- -define($1,$2). $0 yasnippet-snippets-0~git20150512/erlang-mode/exp000066400000000000000000000001461252436562400215370ustar00rootroot00000000000000#name : -export([]). #contributor : hitesh # -- -export([${1:start/0}]). $0 yasnippet-snippets-0~git20150512/erlang-mode/fun000066400000000000000000000000651252436562400215330ustar00rootroot00000000000000#name : fun (...) -> ... end # -- fun ($1) -> $0 end yasnippet-snippets-0~git20150512/erlang-mode/if000066400000000000000000000001211252436562400213320ustar00rootroot00000000000000#name : if ... -> ... ; true -> ... end # -- if $1 -> $2; true -> $0 end yasnippet-snippets-0~git20150512/erlang-mode/ifdef000066400000000000000000000000751252436562400220210ustar00rootroot00000000000000#name : -ifdef(...). ... -endif. # -- -ifdef($1). $0 -endif. yasnippet-snippets-0~git20150512/erlang-mode/ifndef000066400000000000000000000000771252436562400222010ustar00rootroot00000000000000#name : -ifndef(...). ... -endif. # -- -ifndef($1). $0 -endif. yasnippet-snippets-0~git20150512/erlang-mode/imp000066400000000000000000000001671252436562400215330ustar00rootroot00000000000000#name : -import([]). #contributor : hitesh # -- -import(${1:lists}, [${2:map/2, sum/1}]). $0 yasnippet-snippets-0~git20150512/erlang-mode/inc000066400000000000000000000000611252436562400215100ustar00rootroot00000000000000#name : -include("..."). # -- -include("$1"). $0 yasnippet-snippets-0~git20150512/erlang-mode/inc.lib000066400000000000000000000000711252436562400222560ustar00rootroot00000000000000#name : -include_lib("..."). # -- -include_lib("$1"). $0 yasnippet-snippets-0~git20150512/erlang-mode/loop000066400000000000000000000001661252436562400217160ustar00rootroot00000000000000#name : loop(...) -> receive _ -> loop(...) end. # -- ${1:loop}($2) -> receive ${3:_} -> $1($2) end. $0 yasnippet-snippets-0~git20150512/erlang-mode/mod000066400000000000000000000003041252436562400215160ustar00rootroot00000000000000#name : -module(). #contributor : hitesh # -- -module(${1:`(file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). $0 yasnippet-snippets-0~git20150512/erlang-mode/rcv000066400000000000000000000000751252436562400215360ustar00rootroot00000000000000#name : receive ... -> ... end # -- receive $1 -> $0 end yasnippet-snippets-0~git20150512/erlang-mode/rcv.after000066400000000000000000000001111252436562400226250ustar00rootroot00000000000000#name : receive after ... -> ... end # -- receive after $1 -> $0 end yasnippet-snippets-0~git20150512/erlang-mode/rec000066400000000000000000000000661252436562400215150ustar00rootroot00000000000000#name : -record(...,{...}). # -- -record($1,{$2}). $0 yasnippet-snippets-0~git20150512/erlang-mode/try000066400000000000000000000001151252436562400215550ustar00rootroot00000000000000#name : try ... of ... catch after end # -- try $1 of $0 catch after end yasnippet-snippets-0~git20150512/erlang-mode/undef000066400000000000000000000000511252436562400220370ustar00rootroot00000000000000#name : -undef(...). # -- -undef($1). $0 yasnippet-snippets-0~git20150512/f90-mode/000077500000000000000000000000001252436562400201455ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/f90-mode/au000066400000000000000000000001221252436562400204700ustar00rootroot00000000000000#contributor: Li Zhu #name : automatic # -- automatic $0 yasnippet-snippets-0~git20150512/f90-mode/bd000066400000000000000000000001231252436562400204510ustar00rootroot00000000000000#contributor: Li Zhu #name : block data # -- block data $0 yasnippet-snippets-0~git20150512/f90-mode/c000066400000000000000000000001171252436562400203110ustar00rootroot00000000000000#contributor: Li Zhu #name : continue # -- continue $0 yasnippet-snippets-0~git20150512/f90-mode/ch000066400000000000000000000001211252436562400204540ustar00rootroot00000000000000#contributor: Li Zhu #name : character # -- character $0 yasnippet-snippets-0~git20150512/f90-mode/cx000066400000000000000000000001151252436562400204770ustar00rootroot00000000000000#contributor: Li Zhu #name : complex # -- complex $0 yasnippet-snippets-0~git20150512/f90-mode/dc000066400000000000000000000001331252436562400204530ustar00rootroot00000000000000#contributor: Li Zhu #name : double complex # -- double complex $0 yasnippet-snippets-0~git20150512/f90-mode/do000066400000000000000000000002111252436562400204640ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: do ... end do ... # key: do # -- do $1 $0 end do yasnippet-snippets-0~git20150512/f90-mode/dp000066400000000000000000000001371252436562400204740ustar00rootroot00000000000000#contributor: Li Zhu #name : double precision # -- double precision $0 yasnippet-snippets-0~git20150512/f90-mode/eq000066400000000000000000000001251252436562400204730ustar00rootroot00000000000000#contributor: Li Zhu #name : equivalence # -- equivalence $0 yasnippet-snippets-0~git20150512/f90-mode/forall000066400000000000000000000002361252436562400213500ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: forall ... end forall ... # key: forall # -- forall ($1) $0 end forallyasnippet-snippets-0~git20150512/f90-mode/function000066400000000000000000000003561252436562400217210ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: function ... end function ... # key: function # -- function ${1:name} (${2:arg}) ${3:real} :: $1 ${4:real, intent(in)} :: $2 $0 end function $1 yasnippet-snippets-0~git20150512/f90-mode/ib000066400000000000000000000001311252436562400204550ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit byte # -- implicit byte $0 yasnippet-snippets-0~git20150512/f90-mode/ic000066400000000000000000000001371252436562400204640ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit complex # -- implicit complex $0 yasnippet-snippets-0~git20150512/f90-mode/ich000066400000000000000000000001431252436562400206310ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit character # -- implicit character $0 yasnippet-snippets-0~git20150512/f90-mode/if000066400000000000000000000001611252436562400204640ustar00rootroot00000000000000#contributor: Li Zhu #name : if then end if # -- if ( ${1:condition} ) then $0 end if yasnippet-snippets-0~git20150512/f90-mode/ii000066400000000000000000000001401252436562400204640ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit integer # -- implicit integer $0 yasnippet-snippets-0~git20150512/f90-mode/il000066400000000000000000000001371252436562400204750ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit logical # -- implicit logical $0 yasnippet-snippets-0~git20150512/f90-mode/in000066400000000000000000000001261252436562400204750ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit none # -- implicit none yasnippet-snippets-0~git20150512/f90-mode/inc000066400000000000000000000001151252436562400206360ustar00rootroot00000000000000#contributor: Li Zhu #name : include # -- include $0 yasnippet-snippets-0~git20150512/f90-mode/intr000066400000000000000000000001211252436562400210360ustar00rootroot00000000000000#contributor: Li Zhu #name : intrinsic # -- intrinsic $0 yasnippet-snippets-0~git20150512/f90-mode/ir000066400000000000000000000001311252436562400204750ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit real # -- implicit real $0 yasnippet-snippets-0~git20150512/f90-mode/l000066400000000000000000000001151252436562400203200ustar00rootroot00000000000000#contributor: Li Zhu #name : logical # -- logical $0 yasnippet-snippets-0~git20150512/f90-mode/module000066400000000000000000000002631252436562400213560ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: module ... end module ... # key: module # -- module ${1:name} contains $0 end module $1 yasnippet-snippets-0~git20150512/f90-mode/pa000066400000000000000000000001211252436562400204620ustar00rootroot00000000000000#contributor: Li Zhu #name : parameter # -- parameter $0 yasnippet-snippets-0~git20150512/f90-mode/pr000066400000000000000000000002761252436562400205160ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: program ... end program ... # key: pr # -- program ${1:name} ${2:implicit none} $0 end program $1 yasnippet-snippets-0~git20150512/f90-mode/program000066400000000000000000000002761252436562400215440ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: program .. end program # key: program # -- program ${1:name} ${2:implicit none} $0 end program $1 yasnippet-snippets-0~git20150512/f90-mode/puref000066400000000000000000000003711252436562400212120ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: pure function ... end function ... # key: pure func # -- pure function ${1:name} (${2:arg}) ${3:real} :: $1 ${4:real, intent(in)} :: $2 $0 end function $1 yasnippet-snippets-0~git20150512/f90-mode/purefunc000066400000000000000000000003701252436562400217170ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: pure function .. end function # key: pure function # -- pure function ${1:name} (${2:arg}) ${3:real} :: $1 ${4:real, intent(in)} :: $2 $0 end function $1 yasnippet-snippets-0~git20150512/f90-mode/pures000066400000000000000000000003571252436562400212330ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: pure subroutine .. end subroutine # key: pure subroutine # -- pure subroutine ${1:name} (${2:arg}) ${3:real, intent(in) :: $2} $0 end subroutine $1 yasnippet-snippets-0~git20150512/f90-mode/puresub000066400000000000000000000003551252436562400215600ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: pure subroutine ... end subroutine ... # key: pure sub # -- pure subroutine ${1:name} (${2:arg}) ${3:real, intent(in) :: $2} $0 end subroutine $1 yasnippet-snippets-0~git20150512/f90-mode/re000066400000000000000000000001351252436562400204750ustar00rootroot00000000000000#contributor: Li Zhu #name : read (*,*) # -- read (${1:*},${2:*}) $0 yasnippet-snippets-0~git20150512/f90-mode/st000066400000000000000000000001211252436562400205100ustar00rootroot00000000000000#contributor: Li Zhu #name : structure # -- structure $0 yasnippet-snippets-0~git20150512/f90-mode/su000066400000000000000000000003351252436562400205200ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: subroutine ... end subroutine ... # key: su # -- subroutine ${1:name} (${2:arg}) ${3:real, intent(in) :: $2} $0 end subroutine $1 yasnippet-snippets-0~git20150512/f90-mode/subroutine000066400000000000000000000003401252436562400222640ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: subroutine .. end subroutine # key: subroutine # -- subroutine ${1:name} (${2:arg}) ${3:real, intent(in) :: $2} $0 end subroutine $1 yasnippet-snippets-0~git20150512/f90-mode/until000066400000000000000000000002521252436562400212220ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: until ... end until ... # key: until # -- do $0 if (${1:condition}) exit end do yasnippet-snippets-0~git20150512/f90-mode/where000066400000000000000000000002471252436562400212050ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: where ... end where ... # key: where # -- where (${1:condition}) $0 end where yasnippet-snippets-0~git20150512/f90-mode/while000066400000000000000000000002461252436562400212020ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: while ... end while ... # key: while # -- do while (${1:condition}) $0 end do yasnippet-snippets-0~git20150512/f90-mode/wr000066400000000000000000000001371252436562400205210ustar00rootroot00000000000000#contributor: Li Zhu #name : write (*,*) # -- write (${1:*},${2:*}) $0 yasnippet-snippets-0~git20150512/fundamental-mode/000077500000000000000000000000001252436562400220455ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/fundamental-mode/.yas-setup.el000066400000000000000000000004441252436562400244010ustar00rootroot00000000000000(defun ca-all-asscs (asslist query) "returns a list of all corresponding values (like rassoc)" (cond ((null asslist) nil) (t (if (equal (cdr (car asslist)) query) (cons (car (car asslist)) (ca-all-asscs (cdr asslist) query)) (ca-all-asscs (cdr asslist) query))))) yasnippet-snippets-0~git20150512/git-commit-mode/000077500000000000000000000000001252436562400216205ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/git-commit-mode/.yas-parents000066400000000000000000000000111252436562400240570ustar00rootroot00000000000000text-modeyasnippet-snippets-0~git20150512/git-commit-mode/fixes000066400000000000000000000001051252436562400226550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixes # key: fix # -- fixes #${1:100}yasnippet-snippets-0~git20150512/git-commit-mode/references000066400000000000000000000001171252436562400236630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: references # key: ref # -- references #${1:100}yasnippet-snippets-0~git20150512/go-mode/000077500000000000000000000000001252436562400201545ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/go-mode/benchmark000066400000000000000000000002331252436562400220270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: benchmark # key: bench # contributor : @atotto # -- func Benchmark$1(b *testing.B) { for i := 0; i < b.N; i++ { $0 } } yasnippet-snippets-0~git20150512/go-mode/const000066400000000000000000000001311252436562400212200ustar00rootroot00000000000000# -*- mode:snippet -*- # name: const # key: const # -- const ${1:name type} = ${2:val} $0yasnippet-snippets-0~git20150512/go-mode/const(000066400000000000000000000001421252436562400212720ustar00rootroot00000000000000# -*- mode:snippet -*- # name: const (...) # key: const # -- const ( ${1:name type} = ${2:val} )yasnippet-snippets-0~git20150512/go-mode/dd000066400000000000000000000001561252436562400204700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: debug fmt.Printf # key: dd # -- fmt.Printf("%+v\n", $1) // output for debug $0yasnippet-snippets-0~git20150512/go-mode/default000066400000000000000000000001031252436562400215150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: default # key: def # -- default: $0yasnippet-snippets-0~git20150512/go-mode/else000066400000000000000000000001021252436562400210200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: else # key: el # -- else { $0 }yasnippet-snippets-0~git20150512/go-mode/error000066400000000000000000000001431252436562400212260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: error # key: err # contributor : @atotto # -- if err != nil { $0 }yasnippet-snippets-0~git20150512/go-mode/example000066400000000000000000000001551252436562400215330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: example # key: example # contributor : @atotto # -- func Example$1() { $0 } yasnippet-snippets-0~git20150512/go-mode/for000066400000000000000000000001031252436562400206570ustar00rootroot00000000000000# -*- mode:snippet -*- # name: for # key: for # -- for $1 { $0 } yasnippet-snippets-0~git20150512/go-mode/forrange000066400000000000000000000002111252436562400216740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for range # key: range # contributor : @atotto # -- for ${3:key}, ${2:value} := range ${1:target} { $0 }yasnippet-snippets-0~git20150512/go-mode/func000066400000000000000000000001361252436562400210320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: func # key: func # -- // func ${1:name}(${2:args}) $3 { $0 }yasnippet-snippets-0~git20150512/go-mode/if000066400000000000000000000001001252436562400204640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if $1 { $0 }yasnippet-snippets-0~git20150512/go-mode/iferr000066400000000000000000000001211252436562400212000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if error # key: iferr # -- if err != $1 { $0 } yasnippet-snippets-0~git20150512/go-mode/import000066400000000000000000000001041252436562400214040ustar00rootroot00000000000000# -*- mode:snippet -*- # name: import # key: imp # -- import "$1" $0yasnippet-snippets-0~git20150512/go-mode/import(000066400000000000000000000001161252436562400214570ustar00rootroot00000000000000# -*- mode:snippet -*- # name: import (...) # key: imp # -- import ( "$0" ) yasnippet-snippets-0~git20150512/go-mode/lambda000066400000000000000000000001341252436562400213150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: lambda func # key: lambda # -- func(${1:args}) $2 { $0 }()yasnippet-snippets-0~git20150512/go-mode/main000066400000000000000000000001211252436562400210150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: func main() # key: main # -- func main() { $0 }yasnippet-snippets-0~git20150512/go-mode/map000066400000000000000000000001141252436562400206500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: map # key: map # -- map[${1:type}]${2:type} yasnippet-snippets-0~git20150512/go-mode/printf000066400000000000000000000001441252436562400214000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fmt.Printf(...) # key: pr # -- fmt.Printf("${1:%s}\n", ${2:args}) $0yasnippet-snippets-0~git20150512/go-mode/select000066400000000000000000000001171252436562400213550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: select # key: sel # -- select { case $1: $0 }yasnippet-snippets-0~git20150512/go-mode/switch000066400000000000000000000001211252436562400213720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: switch # key: sw # -- switch $1 { case $2: $0 }yasnippet-snippets-0~git20150512/go-mode/test000066400000000000000000000001561252436562400210600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test # key: at # contributor : @atotto # -- func Test$1(t *testing.T) { $0 } yasnippet-snippets-0~git20150512/go-mode/testmain000066400000000000000000000003521252436562400217230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: testmain # key: testmain # contributor : @atotto # -- func TestMain(m *testing.M) { setup() ret := m.Run() if ret == 0 { teardown() } os.Exit(ret) } func setup() { $1 } func teardown() { $2 }yasnippet-snippets-0~git20150512/go-mode/type000066400000000000000000000001111252436562400210510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type # key: type # -- type $1 $2 { $0 }yasnippet-snippets-0~git20150512/go-mode/var000066400000000000000000000001161252436562400206650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var # key: var # -- var ${1:name} ${2:type} $0yasnippet-snippets-0~git20150512/go-mode/var(000066400000000000000000000001271252436562400207370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var (...) # key: var # -- var ( ${1:name} ${2:type} )yasnippet-snippets-0~git20150512/groovy-mode/000077500000000000000000000000001252436562400210745ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/groovy-mode/.yas-parents000066400000000000000000000000111252436562400233330ustar00rootroot00000000000000java-modeyasnippet-snippets-0~git20150512/groovy-mode/class000066400000000000000000000001251252436562400221220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: class # -- class ${1:Class} { $0 }yasnippet-snippets-0~git20150512/groovy-mode/def000066400000000000000000000001311252436562400215500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- def ${1:method}(${2:args}) { $0 }yasnippet-snippets-0~git20150512/groovy-mode/dict000066400000000000000000000001331252436562400217370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dict # key: dict # -- ${1:dict} = [${2:key} : ${3:value}$0]yasnippet-snippets-0~git20150512/groovy-mode/for000066400000000000000000000001331252436562400216020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:var} in ${2:iter}) { $0 } yasnippet-snippets-0~git20150512/groovy-mode/println000066400000000000000000000001171252436562400225040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: println # key: pr # -- println ${1:"string"} $0yasnippet-snippets-0~git20150512/groovy-mode/times000066400000000000000000000001531252436562400221370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: times # key: times # -- ${1:10}.times { $0 } .yasnippet-snippets-0~git20150512/haskell-mode/000077500000000000000000000000001252436562400211725ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/haskell-mode/case000066400000000000000000000002101252436562400220210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: case # key: case # -- case ${1:var} of ${2:cond} -> ${3:value} $0 otherwise -> ${4:other}yasnippet-snippets-0~git20150512/haskell-mode/data000066400000000000000000000001071252436562400220240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: data # key: da # -- data ${1:Type} = $2yasnippet-snippets-0~git20150512/haskell-mode/doc000066400000000000000000000000741252436562400216630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: d # -- {- $0 -}yasnippet-snippets-0~git20150512/haskell-mode/efix000066400000000000000000000001711252436562400220470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixme dummy # key: efix # expand-env: ((yas-indent-line 'fixed)) # -- (error "FIXME: $0")yasnippet-snippets-0~git20150512/haskell-mode/function000066400000000000000000000001501252436562400227360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- ${1:function-name} :: ${2:type} $1 ${3:arguments} $0yasnippet-snippets-0~git20150512/haskell-mode/functione000066400000000000000000000001701252436562400231050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fune # key: fune # -- ${1:function-name} :: ${2:type} $1 = $0error "Not implemented: $1"yasnippet-snippets-0~git20150512/haskell-mode/import000066400000000000000000000001741252436562400224310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: import # -- import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}}yasnippet-snippets-0~git20150512/haskell-mode/instance000066400000000000000000000001701252436562400227170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: instance # key: ins # -- instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where $0 yasnippet-snippets-0~git20150512/haskell-mode/main000066400000000000000000000002021252436562400220330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main function # key: main # expand-env: ((yas-indent-line 'fixed)) # -- main :: IO () main = do $0yasnippet-snippets-0~git20150512/haskell-mode/module000066400000000000000000000001221252436562400223750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:Module} where $0yasnippet-snippets-0~git20150512/haskell-mode/new class000066400000000000000000000001401252436562400227670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: new class # key: class # -- class ${1:Class Name} where $0yasnippet-snippets-0~git20150512/haskell-mode/pragma000066400000000000000000000001101252436562400223540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pragma # key: { # -- {-# ${1:PRAGMA} #-}yasnippet-snippets-0~git20150512/haskell-mode/print000066400000000000000000000000751252436562400222530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: print # key: pr # -- print $0yasnippet-snippets-0~git20150512/html-mode/000077500000000000000000000000001252436562400205135ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/html-mode/.yas-parents000066400000000000000000000000121252436562400227530ustar00rootroot00000000000000nxml-mode yasnippet-snippets-0~git20150512/html-mode/dd000066400000000000000000000001531252436562400210240ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$1
yasnippet-snippets-0~git20150512/html-mode/dl000066400000000000000000000001621252436562400210340ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$0
yasnippet-snippets-0~git20150512/html-mode/doctype000066400000000000000000000002161252436562400221040ustar00rootroot00000000000000#name : Doctype HTML 4.01 Strict #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/doctype.xhml1000066400000000000000000000002471252436562400231400ustar00rootroot00000000000000#name : DocType XHTML 1.0 frameset #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/doctype.xhtml1_1000066400000000000000000000002161252436562400235400ustar00rootroot00000000000000#name : DocType XHTML 1.1 #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/doctype.xhtml1_strict000066400000000000000000000002411252436562400247060ustar00rootroot00000000000000#name : DocType XHTML 1.0 Strict #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/doctype.xhtml1_transitional000066400000000000000000000002631252436562400261110ustar00rootroot00000000000000#name : DocType XHTML 1.0 Transitional #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/dt000066400000000000000000000001531252436562400210440ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$1
yasnippet-snippets-0~git20150512/html-mode/form000066400000000000000000000002501252436562400213760ustar00rootroot00000000000000#contributor : Jimmy Wu #name :
# --
$0
yasnippet-snippets-0~git20150512/html-mode/html000066400000000000000000000001531252436562400214010ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0 yasnippet-snippets-0~git20150512/html-mode/html.xmlns000066400000000000000000000002761252436562400225470ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0 yasnippet-snippets-0~git20150512/html-mode/link.stylesheet000066400000000000000000000002641252436562400235650ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20150512/html-mode/link.stylesheet-ie000066400000000000000000000003501252436562400241540ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20150512/html-mode/mailto000066400000000000000000000002011252436562400217140ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0yasnippet-snippets-0~git20150512/html-mode/meta000066400000000000000000000002511252436562400213620ustar00rootroot00000000000000#contributor : Jimmy Wu #group : meta #name : # -- yasnippet-snippets-0~git20150512/html-mode/meta.http-equiv000066400000000000000000000003131252436562400234660ustar00rootroot00000000000000#contributor : Jimmy Wu #name : #group : meta # -- yasnippet-snippets-0~git20150512/html-mode/script.javascript000066400000000000000000000002371252436562400241110ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20150512/html-mode/script.javascript-src000066400000000000000000000002471252436562400246770ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20150512/html-mode/textarea000066400000000000000000000002461252436562400222550ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20150512/html-mode/th000066400000000000000000000001551252436562400210520ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... #group : table # -- $2yasnippet-snippets-0~git20150512/java-mode/000077500000000000000000000000001252436562400204705ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/java-mode/apr_assert000066400000000000000000000001641252436562400225570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: apr_assert # key: apr_assert # -- if (Globals.useAssertions) { ${1:assert ..}; } yasnippet-snippets-0~git20150512/java-mode/assert000066400000000000000000000001511252436562400217110ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: assert # key: as # -- assert ${1:expression};yasnippet-snippets-0~git20150512/java-mode/assertEquals000066400000000000000000000002051252436562400230640ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: assertEquals # key: ae # group: test # -- Assert.assertEquals($1, $2); $0yasnippet-snippets-0~git20150512/java-mode/cls000066400000000000000000000001211252436562400211660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cls # key: cls # -- class ${1:Class} { $0 }yasnippet-snippets-0~git20150512/java-mode/constructor000066400000000000000000000002011252436562400227710ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: constructor # key: c # -- public ${1:Class} (${2:args}) { $0 }yasnippet-snippets-0~git20150512/java-mode/define test method000066400000000000000000000002341252436562400240450ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: define test method # key: dt # -- @Test public void test${1:Name}() throws Exception { $0 } yasnippet-snippets-0~git20150512/java-mode/doc000066400000000000000000000001201252436562400211510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: /* # -- /** * ${1:documentation} */yasnippet-snippets-0~git20150512/java-mode/equals000066400000000000000000000001531252436562400217040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: equals # key: eq # -- public boolean equals(${1:Class} other) { $0 }yasnippet-snippets-0~git20150512/java-mode/file_class000066400000000000000000000002741252436562400225220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: file_class # key: file # -- public class ${1:`(file-name-base (or (buffer-file-name) (buffer-name)))`} { $0 } yasnippet-snippets-0~git20150512/java-mode/for000066400000000000000000000001511252436562400211760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:int i = 0}; ${2:i < N}; ${3:i++}) { $0 }yasnippet-snippets-0~git20150512/java-mode/fori000066400000000000000000000001461252436562400213530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fori # key: fori # -- for (${1:Object el} : ${2:iterator}) { $0 } yasnippet-snippets-0~git20150512/java-mode/getter000066400000000000000000000002161252436562400217040ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: getter # key: g # -- public ${1:int} get${2:Field}() { return ${3:field}; }yasnippet-snippets-0~git20150512/java-mode/if000066400000000000000000000001171252436562400210100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20150512/java-mode/ife000066400000000000000000000001361252436562400211560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # -- if (${1:cond}) { $2 } else { $3 }yasnippet-snippets-0~git20150512/java-mode/import000066400000000000000000000001161252436562400217230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # -- import ${1:System.}; $0yasnippet-snippets-0~git20150512/java-mode/iterator000066400000000000000000000001621252436562400222430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iterator # key: iterator # -- public Iterator<${1:type}> iterator() { $0 } yasnippet-snippets-0~git20150512/java-mode/javadoc000066400000000000000000000001101252436562400220120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: javadoc # key: doc # -- /** * $0 * */yasnippet-snippets-0~git20150512/java-mode/lambda000066400000000000000000000001601252436562400216300ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: lambda # key: \ # -- (${1:args}) -> ${2:expression};yasnippet-snippets-0~git20150512/java-mode/main000066400000000000000000000001521252436562400213350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- public static void main(String[] args) { $0 }yasnippet-snippets-0~git20150512/java-mode/main_class000066400000000000000000000003351252436562400225250ustar00rootroot00000000000000# contributor: L. Guruprasad # name: main_class # key: main_class # -- class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))` { public static void main(String args[]) { $0 } }yasnippet-snippets-0~git20150512/java-mode/method000066400000000000000000000002161252436562400216720ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: method # key: m # -- ${1:public} ${2:void} ${3:name}(${4:args}) { $0 }yasnippet-snippets-0~git20150512/java-mode/new000066400000000000000000000001471252436562400212060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: new # key: new # -- ${1:Type} ${2:obj} = new ${3:Constr}(${4:args}); $0yasnippet-snippets-0~git20150512/java-mode/override000066400000000000000000000001371252436562400222330ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: override # key: o # -- @Override $0yasnippet-snippets-0~git20150512/java-mode/param000066400000000000000000000001201252436562400215040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: param # key: param # -- @param ${1:paramater} $0yasnippet-snippets-0~git20150512/java-mode/printf000066400000000000000000000001241252436562400217120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: printf # -- System.out.printf("$0%n");yasnippet-snippets-0~git20150512/java-mode/println000066400000000000000000000001321252436562400220750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: println # key: pr # -- System.out.println("${1:text}"); $0yasnippet-snippets-0~git20150512/java-mode/return000066400000000000000000000001321252436562400217260ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: return # key: r # -- return $0yasnippet-snippets-0~git20150512/java-mode/test000066400000000000000000000001461252436562400213730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test # key: test # -- @Test public void test_${1:Case}() { $0 }yasnippet-snippets-0~git20150512/java-mode/testClass000066400000000000000000000003301252436562400223540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: testClass # key: tc # -- import junit.framework.*; import junit.textui.*; public class Test${1:Class} extends TestCase { protected void setUp() { $0 } }yasnippet-snippets-0~git20150512/java-mode/this000066400000000000000000000001371252436562400213630ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: this # key: . # -- this.$1 = $1; $0yasnippet-snippets-0~git20150512/java-mode/toString000066400000000000000000000001411252436562400222200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: toString # key: toStr # -- public String toString() { $0 }yasnippet-snippets-0~git20150512/java-mode/try000066400000000000000000000002651252436562400212340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try { $0 } catch (${1:Throwable e}) { ${2:System.out.println("Error " + e.getMessage()); e.printStackTrace();} } yasnippet-snippets-0~git20150512/java-mode/value000066400000000000000000000001551252436562400215300ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: value # key: val # -- final ${1:int} ${2:n} = $0;yasnippet-snippets-0~git20150512/js-mode/000077500000000000000000000000001252436562400201635ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/js-mode/al000066400000000000000000000000651252436562400205030ustar00rootroot00000000000000# -*- mode: snippet -*- #name : alert # -- alert($0);yasnippet-snippets-0~git20150512/js-mode/class000066400000000000000000000001621252436562400212120ustar00rootroot00000000000000# -*- mode: snippet -*- #name : Class # -- var ${1:name} = new Class({ initialize: function($2) { $0 } });yasnippet-snippets-0~git20150512/js-mode/com000066400000000000000000000001051252436562400206600ustar00rootroot00000000000000# -*- mode: snippet -*- #name : comment (/* ... */) # -- /* * $0 */yasnippet-snippets-0~git20150512/js-mode/debugger000066400000000000000000000001361252436562400216720ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: debugger # key: dbg # -- debugger;yasnippet-snippets-0~git20150512/js-mode/each000066400000000000000000000001261252436562400210050ustar00rootroot00000000000000# -*- mode: snippet -*- #name : each # -- ${1:collection}.each(function($2) { $0 });yasnippet-snippets-0~git20150512/js-mode/el000066400000000000000000000000671252436562400205110ustar00rootroot00000000000000# -*- mode: snippet -*- #name : else # -- else { $0 }yasnippet-snippets-0~git20150512/js-mode/ev.add000066400000000000000000000001341252436562400212450ustar00rootroot00000000000000# -*- mode: snippet -*- #name : addEvent # -- addEvent('${1:event}', function($2) { $0 });yasnippet-snippets-0~git20150512/js-mode/ev.fire000066400000000000000000000000761252436562400214470ustar00rootroot00000000000000# -*- mode: snippet -*- #name : fireEvent # -- fireEvent('$0')yasnippet-snippets-0~git20150512/js-mode/for000066400000000000000000000001551252436562400206750ustar00rootroot00000000000000# -*- mode: snippet -*- #name : for # -- for(var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { $0 }yasnippet-snippets-0~git20150512/js-mode/function000066400000000000000000000001771252436562400217400ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: function # key: f # -- function ${1:name}(${2:arg}) { $0 }yasnippet-snippets-0~git20150512/js-mode/if000066400000000000000000000001041252436562400204770ustar00rootroot00000000000000# -*- mode: snippet -*- #name : if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20150512/js-mode/init000066400000000000000000000001221252436562400210440ustar00rootroot00000000000000# -*- mode: snippet -*- #name : Constructor # -- initialize: function($1) { $0 }yasnippet-snippets-0~git20150512/js-mode/log000066400000000000000000000001011252436562400206570ustar00rootroot00000000000000# -*- mode: snippet -*- #name : console.log # -- console.log($0);yasnippet-snippets-0~git20150512/js-mode/req.html000066400000000000000000000002701252436562400216370ustar00rootroot00000000000000# -*- mode: snippet -*- #name : html # -- new Request.HTML({ onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { $0 } }).${1:get}(${2:url});yasnippet-snippets-0~git20150512/js-mode/req.json000066400000000000000000000002231252436562400216420ustar00rootroot00000000000000# -*- mode: snippet -*- #name : json # -- new Request.JSON({ onSuccess: function(responseJSON, responseText) { $0 } }).${1:send}(${2:url});yasnippet-snippets-0~git20150512/js2-mode000077700000000000000000000000001252436562400214442js-modeustar00rootroot00000000000000yasnippet-snippets-0~git20150512/latex-mode/000077500000000000000000000000001252436562400206645ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/latex-mode/acronym000066400000000000000000000001621252436562400222560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: acronym # key: ac # -- \newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}}yasnippet-snippets-0~git20150512/latex-mode/alertblock000066400000000000000000000001541252436562400227310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: alertblock # key: al # -- \begin{alertblock}{$2} $0 \end{alertblock}yasnippet-snippets-0~git20150512/latex-mode/alg000066400000000000000000000001351252436562400213510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: alg # key: alg # -- \begin{algorithmic} $0 \end{algorithmic} yasnippet-snippets-0~git20150512/latex-mode/begin000066400000000000000000000001341252436562400216710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: begin # key: begin # -- \begin{${1:environment}} $0 \end{$1}yasnippet-snippets-0~git20150512/latex-mode/block000066400000000000000000000001351252436562400217000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: block # key: bl # -- \begin{block}{$1} $0 \end{block}yasnippet-snippets-0~git20150512/latex-mode/capgls000066400000000000000000000001021252436562400220510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: Gls # key: G # -- \Gls{${1:label}}yasnippet-snippets-0~git20150512/latex-mode/caption000066400000000000000000000001031252436562400222360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: caption # key: ca # -- \caption{$0}yasnippet-snippets-0~git20150512/latex-mode/cite000066400000000000000000000000771252436562400215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cite # key: c # -- \cite{$1} $0yasnippet-snippets-0~git20150512/latex-mode/code000066400000000000000000000001341252436562400215170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: code # key: code # -- \begin{lstlisting} $0 \end{lstlisting}yasnippet-snippets-0~git20150512/latex-mode/columns000066400000000000000000000003031252436562400222630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: columns # key: cols # -- \begin{columns} \begin{column}{.${1:5}\textwidth} $0 \end{column} \begin{column}{.${2:5}\textwidth} \end{column} \end{columns}yasnippet-snippets-0~git20150512/latex-mode/emph000066400000000000000000000000761252436562400215430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: emph # key: e # -- \emph{$1}$0yasnippet-snippets-0~git20150512/latex-mode/enumerate000066400000000000000000000001451252436562400225740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: enumerate # key: enum # -- \begin{enumerate} \item $0 \end{enumerate}yasnippet-snippets-0~git20150512/latex-mode/figure000066400000000000000000000003021252436562400220630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: figure # key: fig # -- \begin{figure}[ht] \centering \includegraphics[${1:options}]{figures/${2:path.pdf}} \caption{\label{fig:${3:label}} $0} \end{figure} yasnippet-snippets-0~git20150512/latex-mode/frac000066400000000000000000000001371252436562400215230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: frac # key: frac # -- \frac{${1:numerator}}{${2:denominator}}$0yasnippet-snippets-0~git20150512/latex-mode/frame000066400000000000000000000001771252436562400217060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: frame # key: fr # -- \begin{frame}${1:[$2]} ${3:\frametitle{$4}} $0 \end{frame}yasnippet-snippets-0~git20150512/latex-mode/gls000066400000000000000000000001021252436562400213650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: gls # key: g # -- \gls{${1:label}}yasnippet-snippets-0~git20150512/latex-mode/glspl000066400000000000000000000001071252436562400217260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: glspl # key: gp # -- \glspl{${1:label}}yasnippet-snippets-0~git20150512/latex-mode/if000066400000000000000000000001311252436562400212000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- \IF {$${1:cond}$} $0 \ELSE \ENDIF yasnippet-snippets-0~git20150512/latex-mode/includegraphics000066400000000000000000000001341252436562400237510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: includegraphics # key: ig # -- \includegraphics${1:[$2]}{$0}yasnippet-snippets-0~git20150512/latex-mode/item000066400000000000000000000000731252436562400215450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: item # key: - # -- \item $0yasnippet-snippets-0~git20150512/latex-mode/itemize000066400000000000000000000001351252436562400222540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: itemize # key: it # -- \begin{itemize} \item $0 \end{itemize}yasnippet-snippets-0~git20150512/latex-mode/label000066400000000000000000000001001252436562400216550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: label # key: lab # -- \label{$0}yasnippet-snippets-0~git20150512/latex-mode/listing000066400000000000000000000002341252436562400222570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: listing # key: lst # -- \begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}] $0 \end{lstlisting}yasnippet-snippets-0~git20150512/latex-mode/movie000066400000000000000000000005431252436562400217300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: movie # key: movie # -- \begin{center} \includemovie[ label=test, controls=false, text={\includegraphics[width=4in]{${1:image.pdf}}} ]{4in}{4in}{${2:video file}} \movieref[rate=3]{test}{Play Fast} \movieref[rate=1]{test}{Play Normal Speed} \movieref[rate=0.2]{test}{Play Slow} \movieref[resume]{test}{Pause/Resume} yasnippet-snippets-0~git20150512/latex-mode/newcommand000066400000000000000000000001441252436562400227360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: newcommand # key: cmd # -- \newcommand{\\${1:name}}${2:[${3:0}]}{$0}yasnippet-snippets-0~git20150512/latex-mode/newglossaryentry000066400000000000000000000002261252436562400242460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: newglossaryentry # key: gl # -- \newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}}yasnippet-snippets-0~git20150512/latex-mode/note000066400000000000000000000000751252436562400215560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: note # key: no # -- \note{$0}yasnippet-snippets-0~git20150512/latex-mode/python000066400000000000000000000002061252436562400221260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: python # key: py # -- \lstset{language=python} \begin[language=python]{lstlisting} $0 \end{lstlisting}yasnippet-snippets-0~git20150512/latex-mode/question000066400000000000000000000001041252436562400224510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: question # key: q # -- \question{$0}yasnippet-snippets-0~git20150512/latex-mode/section000066400000000000000000000001461252436562400222540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # -- \section{${1:name}} \label{sec:${2:label}} $0yasnippet-snippets-0~git20150512/latex-mode/subf000066400000000000000000000002421252436562400215440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subf # key: sf # -- \subfigure[${1:caption}]{ \label{fig:${2:label}} \includegraphics[width=.${3:3}\textwidth]{${4:path}}} $0yasnippet-snippets-0~git20150512/latex-mode/subfigure000066400000000000000000000004011252436562400225750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subfigure # key: subfig # -- \begin{figure}[ht] \centering \subfigure[$1] {\label{fig:${2:label}} \includegraphics[width=.${3:5}\textwidth]{${4:path}}} \caption{${5:caption}} \label{fig:${6:label}} \end{figure} yasnippet-snippets-0~git20150512/latex-mode/subsec000066400000000000000000000001531252436562400220720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subsec # key: sub # -- \subsection{${1:name}} \label{subsec:${2:label}} $0yasnippet-snippets-0~git20150512/latex-mode/textbf000066400000000000000000000001021252436562400220740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: textbf # key: b # -- \textbf{$1}$0yasnippet-snippets-0~git20150512/latex-mode/usepackage000066400000000000000000000001121252436562400227110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: usepackage # key: pkg # -- \usepackage{$0}yasnippet-snippets-0~git20150512/lisp-interaction-mode/000077500000000000000000000000001252436562400230335ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/lisp-interaction-mode/defun000066400000000000000000000001371252436562400240600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defun # key: defun # -- (defun ${1:fun} (${2:args}) $0 )yasnippet-snippets-0~git20150512/lisp-mode/000077500000000000000000000000001252436562400205165ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/lisp-mode/class000066400000000000000000000002141252436562400215430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # -- (defclass ${1:name} (${2:inherits}) (${4:slot}) (:documentation "${3:doc}")) $0 yasnippet-snippets-0~git20150512/lisp-mode/comment000066400000000000000000000001311252436562400220760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: comment # key: /* # -- #|${1:type the comment here}|# $0 yasnippet-snippets-0~git20150512/lisp-mode/defpackage000066400000000000000000000004001252436562400225050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defpackage # key: defp # -- (defpackage #:${1:name} (:nicknames #:${2:nick}) (:use #:cl #:closer-mop #:${3:package}) (:shadow :${4.symbol}) (:shadowing-import-from #:${5:package} #:${6:symbol}) (:export :$0)) yasnippet-snippets-0~git20150512/lisp-mode/do000066400000000000000000000003161252436562400210430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: do # -- (do ((${1:var1} ${2:init-form} ${3:step-form}) (${4:var2} ${5:init-form} ${6:step-form})) (${7:condition} ${8:return-value}) (${9:body})) $0 yasnippet-snippets-0~git20150512/lisp-mode/for000066400000000000000000000001561252436562400212310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: for # -- (dotimes (${1:var} ${2:count-form}) ${3:body}) $0 yasnippet-snippets-0~git20150512/lisp-mode/foreach000066400000000000000000000001571252436562400220530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: foreach # -- (dolist (${1:var} ${2:list-form}) ${3:body}) $0 yasnippet-snippets-0~git20150512/lisp-mode/format000066400000000000000000000001171252436562400217300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: format # key: print # -- (format t "~& $0 ~%") yasnippet-snippets-0~git20150512/lisp-mode/if000066400000000000000000000001471252436562400210410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- (when (${1:condition}) (${2:then-do-this})) $0 yasnippet-snippets-0~git20150512/lisp-mode/ifelse000066400000000000000000000002121252436562400217030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifelse (...) (...) (...) ... # key: ifelse # -- (if (${1:condition}) (${2:then}) (${3:else})) $0 yasnippet-snippets-0~git20150512/lisp-mode/ifnot000066400000000000000000000002031252436562400215530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifnot (...) (...) ... # key: ifnot # -- (unless (${1:condition}) (${2:then-do-this})) $0 yasnippet-snippets-0~git20150512/lisp-mode/slot000066400000000000000000000007561252436562400214320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: slot # key: slot # -- (${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")} :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified") ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")} :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed :writer set-${1:$(yas/substr yas-text "[^: ]*")} :type :allocation ${3::class :instance} :documentation "${2:about-slot}") $0 yasnippet-snippets-0~git20150512/lisp-mode/switch000066400000000000000000000002371252436562400217440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: switch # key: switch # -- (cond (${1:case1} (${2:do-this})) (${3:case2} (${4:do-this})) (t ${5:default})) $0 yasnippet-snippets-0~git20150512/lisp-mode/typecast000066400000000000000000000001351252436562400222740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: typecast # name: cast # -- (coerce ${1:object} ${2:type}) $0 yasnippet-snippets-0~git20150512/lua-mode/000077500000000000000000000000001252436562400203305ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/lua-mode/fun000066400000000000000000000001421252436562400210400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- function () ${1:return something} endyasnippet-snippets-0~git20150512/m4-mode/000077500000000000000000000000001252436562400200675ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/m4-mode/def000066400000000000000000000001331252436562400205450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- define(\`${1:macro}',\`${2:subst}'). $0yasnippet-snippets-0~git20150512/makefile-automake-mode/000077500000000000000000000000001252436562400231305ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/makefile-automake-mode/noinst_HEADERS000066400000000000000000000001251252436562400255160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: noinst_HEADERS # key: noinst # -- noinst_HEADERS = $0yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/000077500000000000000000000000001252436562400227305ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/PHONY000066400000000000000000000001021252436562400235410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: PHONY # key: phony # -- .PHONY: $0yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/echo000066400000000000000000000001251252436562400235670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: echo # key: echo # -- @echo ${1:"message to output"} yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/gen000066400000000000000000000002351252436562400234240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: gen # key: gen # possibly add some smart control over the list # -- all: ${1:targets} $0 clean: ${2:clean actions} yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/if000066400000000000000000000001231252436562400232450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- @if [ ${1:cond} ] then $0 fi yasnippet-snippets-0~git20150512/makefile-bsdmake-mode/var000066400000000000000000000000771252436562400234470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var # key: $ # -- $(${1:VAR})$0yasnippet-snippets-0~git20150512/makefile-gmake-mode/000077500000000000000000000000001252436562400224065ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/makefile-gmake-mode/patsubst000066400000000000000000000001361252436562400241760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: patsubst # key: ps # -- $(patsubst ${1:from},${2:to},${3:src})yasnippet-snippets-0~git20150512/makefile-gmake-mode/phony000066400000000000000000000001001252436562400234550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: phony # key: ph # -- .PHONY = $0yasnippet-snippets-0~git20150512/makefile-gmake-mode/wildcard000066400000000000000000000001061252436562400241170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: wildcard # key: wl # -- $(wildcard $0)yasnippet-snippets-0~git20150512/makefile-mode/000077500000000000000000000000001252436562400213245ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/makefile-mode/all000066400000000000000000000001031252436562400220110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: all # key: all # -- all: $0yasnippet-snippets-0~git20150512/malabar-mode/000077500000000000000000000000001252436562400211465ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/malabar-mode/variable000066400000000000000000000001521252436562400226540ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: variable # key: var # -- ${1:int} ${2:n} = $0;yasnippet-snippets-0~git20150512/markdown-mode/000077500000000000000000000000001252436562400213715ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/markdown-mode/+000066400000000000000000000001311252436562400214410ustar00rootroot00000000000000#name : Unordered List #contributor: Peng Deng # -- + ${1:Text} +$0 yasnippet-snippets-0~git20150512/markdown-mode/-000066400000000000000000000001311252436562400214430ustar00rootroot00000000000000#name : Unordered List #contributor: Peng Deng # -- - ${1:Text} -$0 yasnippet-snippets-0~git20150512/markdown-mode/_000066400000000000000000000001221252436562400215250ustar00rootroot00000000000000#name : Emphasis #contributor: Peng Deng # -- _${1:Text}_ $0 yasnippet-snippets-0~git20150512/markdown-mode/__000066400000000000000000000001221252436562400216640ustar00rootroot00000000000000#name : Strong #contributor: Peng Deng # -- **${1:Text}** $0 yasnippet-snippets-0~git20150512/markdown-mode/`000066400000000000000000000001271252436562400215330ustar00rootroot00000000000000#name : Inline Code #contributor: Peng Deng # -- \`${1:Code}\` $0 yasnippet-snippets-0~git20150512/markdown-mode/h1.1000066400000000000000000000001351252436562400217620ustar00rootroot00000000000000#name : Header 1 (#) #contributor: Peng Deng # -- # ${1:Header 1} # $0 yasnippet-snippets-0~git20150512/markdown-mode/h1.2000066400000000000000000000002111252436562400217560ustar00rootroot00000000000000#name : Header 1 (=) #contributor: Peng Deng # -- ${1:Header 1} ${1:$(make-string (string-width yas-text) ?\=)} $0 yasnippet-snippets-0~git20150512/markdown-mode/h2.1000066400000000000000000000001401252436562400217570ustar00rootroot00000000000000#name : Header 2 (##) #contributor: Peng Deng # -- ## ${1:Header 1} ## $0 yasnippet-snippets-0~git20150512/markdown-mode/h2.2000066400000000000000000000002111252436562400217570ustar00rootroot00000000000000#name : Header 2 (-) #contributor: Peng Deng # -- ${1:Header 2} ${1:$(make-string (string-width yas-text) ?\-)} $0 yasnippet-snippets-0~git20150512/markdown-mode/h3000066400000000000000000000001351252436562400216250ustar00rootroot00000000000000#name : Header 3 #contributor: Peng Deng # -- ### ${1:Header 3} ### $0 yasnippet-snippets-0~git20150512/markdown-mode/h4000066400000000000000000000001371252436562400216300ustar00rootroot00000000000000#name : Header 4 #contributor: Peng Deng # -- #### ${1:Header 4} #### $0 yasnippet-snippets-0~git20150512/markdown-mode/h5000066400000000000000000000001411252436562400216240ustar00rootroot00000000000000#name : Header 5 #contributor: Peng Deng # -- ##### ${1:Header 5} ##### $0 yasnippet-snippets-0~git20150512/markdown-mode/h6000066400000000000000000000001431252436562400216270ustar00rootroot00000000000000#name : Header 6 #contributor: Peng Deng # -- ###### ${1:Header 6} ###### $0 yasnippet-snippets-0~git20150512/markdown-mode/hr.1000066400000000000000000000001361252436562400220640ustar00rootroot00000000000000#name : Horizontal Rule (-) #contributor: Peng Deng # -- ---------- $0 yasnippet-snippets-0~git20150512/markdown-mode/hr.2000066400000000000000000000001331252436562400220620ustar00rootroot00000000000000#name : Horizontal Rule (*) #contributor: Peng Deng # -- ******* $0 yasnippet-snippets-0~git20150512/markdown-mode/img000066400000000000000000000001411252436562400220640ustar00rootroot00000000000000#name : Image #contributor: Peng Deng # -- ![${1:Alt Text}](${2:URL} $3) $0 yasnippet-snippets-0~git20150512/markdown-mode/link000066400000000000000000000001401252436562400222440ustar00rootroot00000000000000#name : Link #contributor: Peng Deng # -- [${1:Link Text}](${2:URL} $3) $0 yasnippet-snippets-0~git20150512/markdown-mode/ol000066400000000000000000000002271252436562400217270ustar00rootroot00000000000000#name : Ordered List #contributor: Peng Deng # -- ${1:1}. ${2:Text} ${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 yasnippet-snippets-0~git20150512/markdown-mode/rimg000066400000000000000000000001431252436562400222500ustar00rootroot00000000000000#name : Referenced Image #contributor: Peng Deng # -- ![${1:Alt Text}][$2] $0 yasnippet-snippets-0~git20150512/markdown-mode/rlb000066400000000000000000000001531252436562400220720ustar00rootroot00000000000000#name : Reference Label #contributor: Peng Deng # -- [${1:Reference}]: ${2:URL} $3 $0 yasnippet-snippets-0~git20150512/markdown-mode/rlink000066400000000000000000000001411252436562400224270ustar00rootroot00000000000000#name : Reference Link #contributor: Peng Deng # -- [${1:Link Text}][$2] $0 yasnippet-snippets-0~git20150512/markdown-mode/utf8000066400000000000000000000002201252436562400221740ustar00rootroot00000000000000# name: utf-8 encoding # key: utf8 # contributor: Thiago Perrotta # -- $0 yasnippet-snippets-0~git20150512/ned-mode/000077500000000000000000000000001252436562400203155ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/ned-mode/.yas-parents000066400000000000000000000000111252436562400225540ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20150512/ned-mode/chan000066400000000000000000000001631252436562400211510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: chan # key: chan # -- channel Channel extends ${1:ned.DelayChannel} { $0 } yasnippet-snippets-0~git20150512/ned-mode/connections000066400000000000000000000001621252436562400225610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: connections # key: conn # -- connections${1: allowunconnected}: $0yasnippet-snippets-0~git20150512/ned-mode/for000066400000000000000000000001451252436562400210260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:i}=${2:0}..${3:sizeof(port)-1} { $0 }yasnippet-snippets-0~git20150512/ned-mode/import000066400000000000000000000001171252436562400215510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # -- import ned.${1:Package};yasnippet-snippets-0~git20150512/ned-mode/network000066400000000000000000000002221252436562400217250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: network # key: net # -- network ${1:Name} { submodules: $2 connections: $3 }yasnippet-snippets-0~git20150512/ned-mode/simple000066400000000000000000000001661252436562400215340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: simple # key: simple # -- simple ${1:Component}${2: extends ${3:Component}} { $0 }yasnippet-snippets-0~git20150512/ned-mode/submodules000066400000000000000000000001141252436562400224160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: submodules # key: sub # -- submodules: $0yasnippet-snippets-0~git20150512/nesc-mode/000077500000000000000000000000001252436562400204775ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/nesc-mode/.yas-parents000066400000000000000000000000211252436562400227370ustar00rootroot00000000000000text-mode cc-modeyasnippet-snippets-0~git20150512/nesc-mode/TOSSIM000066400000000000000000000001321252436562400214340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: TOSSIM # key: tossim # -- #ifndef TOSSIM $0 #endifyasnippet-snippets-0~git20150512/nesc-mode/command000066400000000000000000000001401252436562400220330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: command # key: command # -- command ${1:void} ${2:naMe}($3) { }yasnippet-snippets-0~git20150512/nesc-mode/dbg000066400000000000000000000001531252436562400211550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dbg # key: dbg # -- dbg("${1:Module}", "${2:message}"${3:, ${4:var list}});yasnippet-snippets-0~git20150512/nesc-mode/event000066400000000000000000000001461252436562400215440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: event # key: event # -- event ${1:void} ${2:On.Event}($3) { $0 }yasnippet-snippets-0~git20150512/nesc-mode/ifdef000066400000000000000000000001431252436562400214750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifdef # key: ifdef # -- #ifdef ${1:Macro} $2 ${3:#else} $4 #endifyasnippet-snippets-0~git20150512/nesc-mode/interface000066400000000000000000000001431252436562400223600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: interface # key: int # -- interface ${1:Interface} { $0 }yasnippet-snippets-0~git20150512/nesc-mode/module000066400000000000000000000001771252436562400217140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:Module} { ${2:uses interface ${3:Packet}}; $0 }yasnippet-snippets-0~git20150512/nesc-mode/nx000066400000000000000000000001161252436562400210450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nx # key: nx # -- nx_uint${1:8}_t ${2:var}; $0yasnippet-snippets-0~git20150512/nesc-mode/provides000066400000000000000000000001401252436562400222500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: provides # key: provides # -- provides interface ${1:Interface};yasnippet-snippets-0~git20150512/nesc-mode/sim000066400000000000000000000001221252436562400212050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: sim # key: sim # -- #ifdef TOSSIM $0 #endifyasnippet-snippets-0~git20150512/nesc-mode/uint8_t000066400000000000000000000001131252436562400220070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uint8_t # key: u8 # -- uint8_t ${1:var}; $0yasnippet-snippets-0~git20150512/nesc-mode/uses000066400000000000000000000001521252436562400213770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uses # key: uses # -- uses interface ${1:Interface}${2: as ${3:alias}}; $0yasnippet-snippets-0~git20150512/nsis-mode/000077500000000000000000000000001252436562400205235ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/nsis-mode/.yas-parents000066400000000000000000000000111252436562400227620ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20150512/nsis-mode/define000066400000000000000000000001271252436562400217000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: define # key: def # -- !define ${1:CONSTANT} ${2:value}yasnippet-snippets-0~git20150512/nsis-mode/function000066400000000000000000000001431252436562400222710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- Function ${1:Name} $0 FunctionEndyasnippet-snippets-0~git20150512/nsis-mode/if000066400000000000000000000001551252436562400210450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- ${IF} ${1:cond} $0 ${ElseIf} ${2:else_cond} ${EndIf}yasnippet-snippets-0~git20150512/nsis-mode/include000066400000000000000000000001211252436562400220630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: include # key: inc # -- !include "${Library.nsh}"yasnippet-snippets-0~git20150512/nsis-mode/insert_macro000066400000000000000000000001351252436562400231320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: insert_macro # key: im # -- !insermacro ${1:Name} ${2:"args"}yasnippet-snippets-0~git20150512/nsis-mode/instdir000066400000000000000000000000761252436562400221250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: instdir # key: $ # -- $INSTDIRyasnippet-snippets-0~git20150512/nsis-mode/macro000066400000000000000000000001311252436562400215420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: macro # key: macro # -- !macro ${1:Name} UN $0 !macroendyasnippet-snippets-0~git20150512/nsis-mode/message000066400000000000000000000001251252436562400220700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: message # key: msg # -- MessageBox MB_OK "${1:hello}"yasnippet-snippets-0~git20150512/nsis-mode/outdir000066400000000000000000000000741252436562400217550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: outdir # key: $ # -- $OUTDIRyasnippet-snippets-0~git20150512/nsis-mode/outfile000066400000000000000000000001201252436562400221060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: outfile # key: out # -- outFile "${1:setup}.exe"yasnippet-snippets-0~git20150512/nsis-mode/section000066400000000000000000000001441252436562400221110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # -- Section "${1:Program}" $0 SectionEndyasnippet-snippets-0~git20150512/nxml-mode/000077500000000000000000000000001252436562400205255ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/nxml-mode/body000066400000000000000000000001571252436562400214100ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $0 yasnippet-snippets-0~git20150512/nxml-mode/br000066400000000000000000000001241252436562400210500ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
# --
yasnippet-snippets-0~git20150512/nxml-mode/doctype000066400000000000000000000003051252436562400221150ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.1 #group : meta # -- yasnippet-snippets-0~git20150512/nxml-mode/doctype_xhtml1_strict000066400000000000000000000003301252436562400250000ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.0 Strict #group : meta # -- yasnippet-snippets-0~git20150512/nxml-mode/doctype_xhtml1_transitional000066400000000000000000000003521252436562400262030ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.0 Transitional #group : meta # -- yasnippet-snippets-0~git20150512/nxml-mode/form000066400000000000000000000002331252436562400214110ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
# --
$0
yasnippet-snippets-0~git20150512/nxml-mode/href000066400000000000000000000001711252436562400213730ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... #key: a # -- $2yasnippet-snippets-0~git20150512/nxml-mode/html000066400000000000000000000003021252436562400214070ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $0 yasnippet-snippets-0~git20150512/nxml-mode/img000066400000000000000000000001741252436562400212260ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $2yasnippet-snippets-0~git20150512/nxml-mode/input000066400000000000000000000001751252436562400216120ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20150512/nxml-mode/link000066400000000000000000000002701252436562400214040ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20150512/nxml-mode/meta000066400000000000000000000002551252436562400214000ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : #group : meta # -- yasnippet-snippets-0~git20150512/nxml-mode/name000066400000000000000000000001531252436562400213670ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20150512/nxml-mode/quote000066400000000000000000000002051252436562400216020ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
...
# --
$1
yasnippet-snippets-0~git20150512/nxml-mode/style000066400000000000000000000002611252436562400216070ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20150512/nxml-mode/tag000066400000000000000000000001561252436562400212250ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... #key: t # -- <${1:tag}>$2$0yasnippet-snippets-0~git20150512/nxml-mode/tag_closing000066400000000000000000000001411252436562400227350ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : #key: t # -- <$1 $2 />$0yasnippet-snippets-0~git20150512/nxml-mode/tag_newline000066400000000000000000000001701252436562400227420ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : \n...\n #key: tn # -- <${1:tag}> $2 $0yasnippet-snippets-0~git20150512/octave-mode/000077500000000000000000000000001252436562400210305ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/octave-mode/for000066400000000000000000000001321252436562400215350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:var} = ${2:expr} $0 endforyasnippet-snippets-0~git20150512/octave-mode/function000066400000000000000000000002021252436562400225720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- function ${1:return_val} = ${2:fname}(${3:args}) $0 endfunctionyasnippet-snippets-0~git20150512/octave-mode/if000066400000000000000000000001471252436562400213530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if ${1:cond} $0 ${2:else ${3:other}} endifyasnippet-snippets-0~git20150512/org-mode/000077500000000000000000000000001252436562400203365ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/org-mode/code000066400000000000000000000001411252436562400211670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: code # key: code_ # -- #+begin_${1:lang} ${2:options} $0 #+end_$1yasnippet-snippets-0~git20150512/org-mode/dot000066400000000000000000000002541252436562400210500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dot # key: dot_ # -- #+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent $0 #+end_src [[file:$1]]yasnippet-snippets-0~git20150512/org-mode/elisp000066400000000000000000000001501252436562400213710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: elisp # key: elisp_ # -- #+begin_src emacs-lisp :tangle yes $0 #+end_srcyasnippet-snippets-0~git20150512/org-mode/embedded000066400000000000000000000001431252436562400220100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: embedded # key: emb_ # -- src_${1:lang}${2:[${3:where}]}{${4:code}}yasnippet-snippets-0~git20150512/org-mode/entry000066400000000000000000000002021252436562400214140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: entry # key: entry_ # -- #+begin_html --- layout: ${1:default} title: ${2:title} --- #+end_html $0yasnippet-snippets-0~git20150512/org-mode/figure000066400000000000000000000002061252436562400215400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: figure # key: fig_ # -- #+CAPTION: ${1:caption} #+ATTR_LaTeX: ${2:scale=0.75} #+LABEL: fig:${3:label} yasnippet-snippets-0~git20150512/org-mode/img000066400000000000000000000002171252436562400210350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: img # key: img_ # -- $2 $0yasnippet-snippets-0~git20150512/org-mode/latex000066400000000000000000000001251252436562400213740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: latex # key: latex_ # -- #+BEGIN_LaTeX $0 #+END_LaTeXyasnippet-snippets-0~git20150512/org-mode/matrix000066400000000000000000000003231252436562400215630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: matrix # key: matrix_ # possible improvement, compute the number of lines from the argument to array # -- \left \( \begin{array}{${1:ccc}} ${2:v1 & v2} \\ $0 \end{array} \right \)yasnippet-snippets-0~git20150512/org-mode/verse000066400000000000000000000001351252436562400214040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: verse # key: verse_ # -- #+begin_verse $0 #+end_verseyasnippet-snippets-0~git20150512/perl-mode/000077500000000000000000000000001252436562400205115ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/perl-mode/.yas-parents000066400000000000000000000000121252436562400227510ustar00rootroot00000000000000text-mode yasnippet-snippets-0~git20150512/perl-mode/eval000066400000000000000000000002121252436562400213560ustar00rootroot00000000000000# name: eval { ... } if ($@) { ... } # key: eval # -- eval { ${1:# do something risky...} }; if (\$@) { ${2:# handle failure...} }yasnippet-snippets-0~git20150512/perl-mode/for000066400000000000000000000001701252436562400212200ustar00rootroot00000000000000# name: for (...) { ... } # key: for # -- for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { ${3:# body...} }yasnippet-snippets-0~git20150512/perl-mode/fore000066400000000000000000000001451252436562400213670ustar00rootroot00000000000000# name: foreach ... { ... } # key: fore # -- foreach my \$${1:x} (@${2:array}) { ${3:# body...} }yasnippet-snippets-0~git20150512/perl-mode/if000066400000000000000000000000721252436562400210310ustar00rootroot00000000000000# name: if (...) { ... } # key: if # -- if ($1) { $0 }yasnippet-snippets-0~git20150512/perl-mode/ife000066400000000000000000000001301252436562400211710ustar00rootroot00000000000000# name: if (...) { ... } else { ... } # key: ife # -- if ($1) { $2 } else { $3 }yasnippet-snippets-0~git20150512/perl-mode/ifee000066400000000000000000000002011252436562400213350ustar00rootroot00000000000000# name: if, elsif, else ... # key: ifee # -- if ($1) { ${2:# body...} } elsif ($3) { ${4:# elsif...} } else { ${5:# else...} }yasnippet-snippets-0~git20150512/perl-mode/sub000066400000000000000000000001111252436562400212160ustar00rootroot00000000000000# name: sub ... { ... } # key: sub # -- sub ${1:function_name} { $0 }yasnippet-snippets-0~git20150512/perl-mode/unless000066400000000000000000000001061252436562400217420ustar00rootroot00000000000000# name: unless (...) { ... } # key: unless # -- unless ($1) { $0 }yasnippet-snippets-0~git20150512/perl-mode/while000066400000000000000000000001031252436562400215360ustar00rootroot00000000000000# name: while (...) { ... } # key: while # -- while ($1) { $0 }yasnippet-snippets-0~git20150512/perl-mode/xfore000066400000000000000000000001161252436562400215550ustar00rootroot00000000000000# name: ... foreach ... # key: xfore # -- ${1:expression} foreach @${2:array};yasnippet-snippets-0~git20150512/perl-mode/xif000066400000000000000000000001041252436562400212150ustar00rootroot00000000000000# name: ... if ... # key: xif # -- ${1:expression} if ${2:condition}yasnippet-snippets-0~git20150512/perl-mode/xunless000066400000000000000000000001201252436562400221260ustar00rootroot00000000000000# name: ... unless ... # key: xunless # -- ${1:expression} unless ${2:condition}yasnippet-snippets-0~git20150512/perl-mode/xwhile000066400000000000000000000001161252436562400217320ustar00rootroot00000000000000# name: ... while ... # key: xwhile # -- ${1:expression} while ${2:condition};yasnippet-snippets-0~git20150512/prog-mode/000077500000000000000000000000001252436562400205165ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/prog-mode/.yas-setup.el000066400000000000000000000001211252436562400230420ustar00rootroot00000000000000(defun yas-with-comment (str) (format "%s%s%s" comment-start str comment-end)) yasnippet-snippets-0~git20150512/prog-mode/fixme000066400000000000000000000001771252436562400215560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixme # key: fi # condition: (not (eq major-mode 'sh-mode)) # -- `(yas-with-comment "FIXME: ")`yasnippet-snippets-0~git20150512/prog-mode/todo000066400000000000000000000001201252436562400213770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: todo # key: t # -- `(yas-with-comment "TODO: ")`yasnippet-snippets-0~git20150512/prog-mode/xxx000066400000000000000000000001161252436562400212660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: xxx # key: x # -- `(yas-with-comment "XXX: ")`yasnippet-snippets-0~git20150512/python-mode/000077500000000000000000000000001252436562400210705ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/python-mode/.yas-parents000066400000000000000000000000121252436562400233300ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20150512/python-mode/.yas-setup.el000066400000000000000000000020541252436562400234230ustar00rootroot00000000000000(defun python-split-args (arg-string) "Split a python argument string into ((name, default)..) tuples" (mapcar (lambda (x) (split-string x "[[:blank:]]*=[[:blank:]]*" t)) (split-string arg-string "[[:blank:]]*,[[:blank:]]*" t))) (defun python-args-to-docstring () "return docstring format for the python arguments in yas-text" (let* ((indent (concat "\n" (make-string (current-column) 32))) (args (python-split-args yas-text)) (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) (formatted-args (mapconcat (lambda (x) (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) args indent))) (unless (string= formatted-args "") (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent)))) (add-hook 'python-mode-hook '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed))) yasnippet-snippets-0~git20150512/python-mode/__contains__000066400000000000000000000001701252436562400234230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __contains__ # key: cont # group: dunder methods # -- def __contains__(self, el): $0yasnippet-snippets-0~git20150512/python-mode/__enter__000066400000000000000000000001761252436562400227300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __enter__ # key: ent # group: dunder methods # -- def __enter__(self): $0 return selfyasnippet-snippets-0~git20150512/python-mode/__exit__000066400000000000000000000002021252436562400225520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __exit__ # key: ex # group: dunder methods # -- def __exit__(self, type, value, traceback): $0yasnippet-snippets-0~git20150512/python-mode/__getitem__000066400000000000000000000001751252436562400232500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __getitem__ # key: getit # group: dunder methods # -- def __getitem__(self, ${1:key}): $0yasnippet-snippets-0~git20150512/python-mode/__len__000066400000000000000000000001511252436562400223620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __len__ # key: len # group: dunder methods # -- def __len__(self): $0yasnippet-snippets-0~git20150512/python-mode/__new__000066400000000000000000000002541252436562400224010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __new__ # key: new # group: dunder methods # -- def __new__(mcs, name, bases, dict): $0 return type.__new__(mcs, name, bases, dict) yasnippet-snippets-0~git20150512/python-mode/__setitem__000066400000000000000000000002071252436562400232600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __setitem__ # key: setit # group: dunder methods # -- def __setitem__(self, ${1:key}, ${2:val}): $0yasnippet-snippets-0~git20150512/python-mode/all000066400000000000000000000001061252436562400215600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: all # key: a # -- __all__ = [ $0 ]yasnippet-snippets-0~git20150512/python-mode/arg000066400000000000000000000002021252436562400215560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: arg # key: arg # group: argparser # -- parser.add_argument('-$1', '--$2', $0) yasnippet-snippets-0~git20150512/python-mode/arg_positional000066400000000000000000000001711252436562400240240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: arg_positional # key: arg # group: argparser # -- parser.add_argument('${1:varname}', $0)yasnippet-snippets-0~git20150512/python-mode/ass000066400000000000000000000001211252436562400215730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # group: testing # -- assert $0yasnippet-snippets-0~git20150512/python-mode/assertEqual000066400000000000000000000001441252436562400233030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertEqual # key: ae # group: testing # -- self.assertEqual($1, $2)yasnippet-snippets-0~git20150512/python-mode/assertFalse000066400000000000000000000001401252436562400232620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertFalse # key: af # group: testing # -- self.assertFalse($0)yasnippet-snippets-0~git20150512/python-mode/assertIn000066400000000000000000000001631252436562400226030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertIn # key: ai # group: testing # -- self.assertIn(${1:member}, ${2:container})yasnippet-snippets-0~git20150512/python-mode/assertNotEqual000066400000000000000000000001531252436562400237640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertNotEqual # key: ane # group: testing # -- self.assertNotEqual($1, $2)yasnippet-snippets-0~git20150512/python-mode/assertNotIn000066400000000000000000000001701252436562400232620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assetNotIn # key: an # group: testing # -- self.assertNotIn(${1:member}, ${2:container})yasnippet-snippets-0~git20150512/python-mode/assertRaises000066400000000000000000000001701252436562400234610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertRaises # key: ar # group: testing # -- self.assertRaises(${1:Exception}, ${2:fun})yasnippet-snippets-0~git20150512/python-mode/assertRaises.with000066400000000000000000000001531252436562400244340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertRaises # key: ar # -- with self.assertRaises(${1:Exception}): $0 yasnippet-snippets-0~git20150512/python-mode/assertTrue000066400000000000000000000001361252436562400231540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertTrue # key: at # group: testing # -- self.assertTrue($0)yasnippet-snippets-0~git20150512/python-mode/celery_pdb000066400000000000000000000001711252436562400231220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: celery pdb # key: cdb # group: debug # -- from celery.contrib import rdb; rdb.set_trace()yasnippet-snippets-0~git20150512/python-mode/classmethod000066400000000000000000000001751252436562400233240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: classmethod # key: cm # group: object oriented # -- @classmethod def ${1:meth}(cls, $0): yasnippet-snippets-0~git20150512/python-mode/cls000066400000000000000000000001461252436562400215750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cls # key: cls # group: object oriented # -- class ${1:class}: $0 yasnippet-snippets-0~git20150512/python-mode/dec000066400000000000000000000003451252436562400215500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dec # key: dec # group : definitions # -- def ${1:decorator}(func): $2 def _$1(*args, **kwargs): $3 ret = func(*args, **kwargs) $4 return ret return _$1yasnippet-snippets-0~git20150512/python-mode/deftest000066400000000000000000000001551252436562400224520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: deftest # key: dt # group: testing # -- def test_${1:long_name}(self): $0yasnippet-snippets-0~git20150512/python-mode/django_test_class000066400000000000000000000002251252436562400245000ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: django_test_class # key: tcs # group: testing # -- class ${1:Model}Test(TestCase): $0yasnippet-snippets-0~git20150512/python-mode/doc000066400000000000000000000000731252436562400215600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: d # -- """$0 """yasnippet-snippets-0~git20150512/python-mode/doctest000066400000000000000000000001671252436562400224640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doctest # key: doc # group: testing # -- >>> ${1:function calls} ${2:desired output} $0yasnippet-snippets-0~git20150512/python-mode/eq000066400000000000000000000002051252436562400214150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __eq__ # key: eq # group: dunder methods # -- def __eq__(self, other): return self.$1 == other.$1yasnippet-snippets-0~git20150512/python-mode/for000066400000000000000000000001541252436562400216010ustar00rootroot00000000000000# name: for ... in ... : ... # key: for # group : control structure # -- for ${var} in ${collection}: $0yasnippet-snippets-0~git20150512/python-mode/from000066400000000000000000000001461252436562400217570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: from # key: from # group : general # -- from ${1:lib} import ${2:funs}yasnippet-snippets-0~git20150512/python-mode/function000066400000000000000000000001541252436562400226400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: f # group: definitions # -- def ${1:fun}(${2:args}): $0 yasnippet-snippets-0~git20150512/python-mode/function_docstring000066400000000000000000000002551252436562400247160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function_docstring # key: fd # group: definitions # -- def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20150512/python-mode/if000066400000000000000000000001431252436562400214070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # group : control structure # -- if ${1:cond}: $0 yasnippet-snippets-0~git20150512/python-mode/ife000066400000000000000000000001531252436562400215550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # group : control structure # -- if $1: $2 else: $0 yasnippet-snippets-0~git20150512/python-mode/ifmain000066400000000000000000000001411252436562400222520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifmain # key: ifm # -- if __name__ == '__main__': ${1:main()}yasnippet-snippets-0~git20150512/python-mode/import000066400000000000000000000001561252436562400223270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # group : general # -- import ${1:lib}${2: as ${3:alias}} $0yasnippet-snippets-0~git20150512/python-mode/init000066400000000000000000000002131252436562400217520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: init # key: init # group : definitions # -- def __init__(self${1:, args}): ${2:"${3:docstring}" }$0yasnippet-snippets-0~git20150512/python-mode/init_docstring000066400000000000000000000002551252436562400240340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: init_docstring # key: id # group : definitions # -- def __init__(self$1): \"\"\"$2 ${1:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20150512/python-mode/interact000066400000000000000000000001431252436562400226220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: interact # key: int # -- import code; code.interact(local=locals())yasnippet-snippets-0~git20150512/python-mode/ipdbdebug000066400000000000000000000002031252436562400227330ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: ipdb trace # key: itr # group: debug # -- import ipdb; ipdb.set_trace()yasnippet-snippets-0~git20150512/python-mode/iter000066400000000000000000000001761252436562400217620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __iter__ # key: iter # group: dunder methods # -- def __iter__(self): return ${1:iter($2)}yasnippet-snippets-0~git20150512/python-mode/lambda000066400000000000000000000001101252436562400222230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: lambda # key: lam # -- lambda ${1:x}: $0yasnippet-snippets-0~git20150512/python-mode/list000066400000000000000000000001521252436562400217640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list # key: li # group : definitions # -- [${1:el} for $1 in ${2:list}] $0yasnippet-snippets-0~git20150512/python-mode/logger_name000066400000000000000000000001441252436562400232710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: logger_name # key: ln # -- logger = logging.getLogger(${1:__name__})yasnippet-snippets-0~git20150512/python-mode/logging000066400000000000000000000002041252436562400224350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: logging # key: log # -- logger = logging.getLogger("${1:name}") logger.setLevel(logging.${2:level}) yasnippet-snippets-0~git20150512/python-mode/main000066400000000000000000000001101252436562400217270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- def main(): $0yasnippet-snippets-0~git20150512/python-mode/metaclass000066400000000000000000000001461252436562400227700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: metaclass # key: mt # group: object oriented # -- __metaclass__ = typeyasnippet-snippets-0~git20150512/python-mode/method000066400000000000000000000001641252436562400222740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: method # key: m # group: object oriented # -- def ${1:method}(self${2:, $3}): $0yasnippet-snippets-0~git20150512/python-mode/method_docstring000066400000000000000000000002631252436562400243500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: method_docstring # key: md # group: object oriented # -- def ${1:name}(self$2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20150512/python-mode/not_impl000066400000000000000000000001271252436562400226340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: not_impl # key: not_impl # -- raise NotImplementedErroryasnippet-snippets-0~git20150512/python-mode/np000066400000000000000000000001311252436562400214230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: np # key: np # group : general # -- import numpy as np $0yasnippet-snippets-0~git20150512/python-mode/parse_args000066400000000000000000000003031252436562400231350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parse_args # key: pargs # group: argparser # -- def parse_arguments(): parser = argparse.ArgumentParser(description='$1') $0 return parser.parse_args()yasnippet-snippets-0~git20150512/python-mode/parser000066400000000000000000000002001252436562400222770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parser # key: pars # group: argparser # -- parser = argparse.ArgumentParser(description='$1') $0yasnippet-snippets-0~git20150512/python-mode/pass000066400000000000000000000000701252436562400217560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pass # key: ps # -- passyasnippet-snippets-0~git20150512/python-mode/print000066400000000000000000000000751252436562400221510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: print # key: p # -- print($0)yasnippet-snippets-0~git20150512/python-mode/prop000066400000000000000000000004601252436562400217730ustar00rootroot00000000000000# contributor: Mads D. Kristensen # name: prop # -- def ${1:foo}(): doc = """${2:Doc string}""" def fget(self): return self._$1 def fset(self, value): self._$1 = value def fdel(self): del self._$1 return locals() $1 = property(**$1()) $0 yasnippet-snippets-0~git20150512/python-mode/reg000066400000000000000000000001571252436562400215730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: reg # key: reg # group : general # -- ${1:regexp} = re.compile(r"${2:expr}") $0yasnippet-snippets-0~git20150512/python-mode/repr000066400000000000000000000001541252436562400217630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __repr__ # key: repr # group: dunder methods # -- def __repr__(self): $0yasnippet-snippets-0~git20150512/python-mode/return000066400000000000000000000000761252436562400223350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: return # key: r # -- return $0yasnippet-snippets-0~git20150512/python-mode/script000066400000000000000000000002151252436562400223150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: script # key: script # -- #!/usr/bin/env python def main(): pass if __name__ == '__main__': main() yasnippet-snippets-0~git20150512/python-mode/self000066400000000000000000000001231252436562400217400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: self # key: . # group: object oriented # -- self.$0yasnippet-snippets-0~git20150512/python-mode/self_without_dot000066400000000000000000000001341252436562400243730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: self_without_dot # key: s # group: object oriented # -- selfyasnippet-snippets-0~git20150512/python-mode/selfassign000066400000000000000000000001371252436562400231520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: selfassign # key: sn # group: object oriented # -- self.$1 = $1yasnippet-snippets-0~git20150512/python-mode/setdef000066400000000000000000000001561252436562400222670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: setdef # key: setdef # -- ${1:var}.setdefault(${2:key}, []).append(${3:value})yasnippet-snippets-0~git20150512/python-mode/setup000066400000000000000000000003771252436562400221620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: setup # key: setup # group: distribute # -- from setuptools import setup package = '${1:name}' version = '${2:0.1}' setup(name=package, version=version, description="${3:description}", url='${4:url}'$0) yasnippet-snippets-0~git20150512/python-mode/size000066400000000000000000000001071252436562400217630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: size # key: size # -- sys.getsizeof($0)yasnippet-snippets-0~git20150512/python-mode/static000066400000000000000000000001271252436562400223020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: static # key: sm # -- @staticmethod def ${1:func}($0): yasnippet-snippets-0~git20150512/python-mode/str000066400000000000000000000001511252436562400216200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __str__ # key: str # group: dunder methods # -- def __str__(self): $0yasnippet-snippets-0~git20150512/python-mode/super000066400000000000000000000002751252436562400221550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: super # key: super # group: object oriented # -- super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1) $0yasnippet-snippets-0~git20150512/python-mode/test_class000066400000000000000000000002031252436562400231520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test_class # key: tcs # group : testing # -- class Test${1:toTest}(${2:unittest.TestCase}): $0 yasnippet-snippets-0~git20150512/python-mode/test_file000066400000000000000000000002601252436562400227670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test_file # key: tf # group : testing # -- import unittest ${1:from ${2:test_file} import *} $0 if __name__ == '__main__': unittest.main()yasnippet-snippets-0~git20150512/python-mode/trace000066400000000000000000000001371252436562400221120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: trace # key: tr # group: debug # -- import pdb; pdb.set_trace()yasnippet-snippets-0~git20150512/python-mode/try000066400000000000000000000001351252436562400216300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try: $1 except ${2:Exception}: $0yasnippet-snippets-0~git20150512/python-mode/tryelse000066400000000000000000000001421252436562400224770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tryelse # key: try # -- try: $1 except $2: $3 else: $0yasnippet-snippets-0~git20150512/python-mode/unicode000066400000000000000000000001601252436562400224360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __unicode__ # key: un # group: dunder methods # -- def __unicode__(self): $0yasnippet-snippets-0~git20150512/python-mode/utf8000066400000000000000000000001301252436562400216730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: utf-8 encoding # key: utf8 # -- # -*- coding: utf-8 -*- yasnippet-snippets-0~git20150512/python-mode/while000066400000000000000000000001471252436562400221250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: wh # group: control structure # -- while ${1:True}: $0yasnippet-snippets-0~git20150512/python-mode/with000066400000000000000000000001731252436562400217670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: with # key: with # group : control structure # -- with ${1:expr}${2: as ${3:alias}}: $0yasnippet-snippets-0~git20150512/python-mode/with_statement000066400000000000000000000001631252436562400240520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: with_statement # key: fw # group: future # -- from __future__ import with_statementyasnippet-snippets-0~git20150512/rename_add_contr.py000077500000000000000000000014551252436562400224730ustar00rootroot00000000000000#!/usr/bin/env python import os import re from os.path import join from shutil import move def rename(root, f): if f.endswith('.yasnippet'): base, _ = f.split('.') print("move %s to %s" % (join(root, f), join(root, base))) move(join(root, f), join(root, base)) CONT = "# contributor: Andrea crotti\n# --" END = "# --\n\n" orig = "# --\n\n" to = "# --\n" def insert(root, f, orig, to): fname = join(root, f) text = open(fname).read() nex_text = re.sub(orig, to, text) open(fname, 'w').write(nex_text) if __name__ == '__main__': for root, dirs, files in os.walk('.'): if "mode" in root: # os.popen("git add *yasnippet") for f in files: rename(root, f) # insert(root, f, orig, to) yasnippet-snippets-0~git20150512/rst-mode/000077500000000000000000000000001252436562400203575ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/rst-mode/autoclass000066400000000000000000000001531252436562400222770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: autoclass # key: auto # -- .. autoclass:: $0 ${1::members: ${2:members}}yasnippet-snippets-0~git20150512/rst-mode/autofunction000066400000000000000000000001221252436562400230130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: autofunction # key: auto # -- .. autofunction:: $0yasnippet-snippets-0~git20150512/rst-mode/automodule000066400000000000000000000001341252436562400224560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: automodule # key: auto # -- .. automodule:: ${1:module_name}yasnippet-snippets-0~git20150512/rst-mode/class000066400000000000000000000001031252436562400214010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # -- :class:\`$0\`yasnippet-snippets-0~git20150512/rst-mode/code000066400000000000000000000001131252436562400212070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: code # key: code # -- .. code:: ${1:python}yasnippet-snippets-0~git20150512/rst-mode/digraph000066400000000000000000000001201252436562400217110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: digraph # key: graph # -- .. digraph:: $1 $0yasnippet-snippets-0~git20150512/rst-mode/function000066400000000000000000000001111252436562400221200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- :function:\`$0\`yasnippet-snippets-0~git20150512/rst-mode/graph000066400000000000000000000001141252436562400213770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: graph # key: graph # -- .. graph:: $1 $0yasnippet-snippets-0~git20150512/rst-mode/graphviz000066400000000000000000000001171252436562400221330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: graphviz # key: graph # -- .. graphviz:: $0yasnippet-snippets-0~git20150512/rst-mode/image000066400000000000000000000002211252436562400213570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: image # key: img # -- .. image:: ${1:path} :height: ${2:100} :width: ${3:200} :alt: ${4:description} $0yasnippet-snippets-0~git20150512/rst-mode/inheritance000066400000000000000000000001271252436562400225730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inheritance # key: inh # -- .. inheritance-diagram:: $0yasnippet-snippets-0~git20150512/rst-mode/literal_include000066400000000000000000000001371252436562400234420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: literatal include # key: inc # -- .. literalinclude:: ${1:path}yasnippet-snippets-0~git20150512/rst-mode/meta000066400000000000000000000001001252436562400212170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: meta # key: : # -- :${1:var}: $0yasnippet-snippets-0~git20150512/rst-mode/module000066400000000000000000000001031252436562400215610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- :mod: \`$0\`yasnippet-snippets-0~git20150512/rst-mode/parsed_literal000066400000000000000000000001301252436562400232660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parsed_literal # key: src # -- .. parsed-literal:: $0yasnippet-snippets-0~git20150512/rst-mode/pause000066400000000000000000000001401252436562400214120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pause # key: pause # group: hieroglyph # -- .. rst-class:: buildyasnippet-snippets-0~git20150512/rst-mode/term000066400000000000000000000001021252436562400212420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: term # key: term # -- :term:\`$0\`yasnippet-snippets-0~git20150512/rst-mode/url000066400000000000000000000001141252436562400211000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: url # key: url # -- .. _${1:description}: $0yasnippet-snippets-0~git20150512/rst-mode/verbatim000066400000000000000000000000751252436562400221150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: verbatim # key: | # -- | $0 |yasnippet-snippets-0~git20150512/rst-mode/warning000066400000000000000000000001121252436562400217410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: warning # key: warn # -- .. warning: $0yasnippet-snippets-0~git20150512/ruby-mode/000077500000000000000000000000001252436562400205305ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/ruby-mode/#000066400000000000000000000000501252436562400205700ustar00rootroot00000000000000#name : # => #group : general # -- # => yasnippet-snippets-0~git20150512/ruby-mode/=b000066400000000000000000000001101252436562400207610ustar00rootroot00000000000000#name : =begin rdoc ... =end #group : general # -- =begin rdoc $0 =endyasnippet-snippets-0~git20150512/ruby-mode/Comp000066400000000000000000000001601252436562400213460ustar00rootroot00000000000000#name : include Comparable; def <=> ... end #group : definitions # -- include Comparable def <=> other $0 endyasnippet-snippets-0~git20150512/ruby-mode/GLOB000066400000000000000000000001041252436562400211710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: GLOB # key: $ # -- $${1:GLOBAL} = $0yasnippet-snippets-0~git20150512/ruby-mode/all000066400000000000000000000001071252436562400212210ustar00rootroot00000000000000#name : all? { |...| ... } #group : collections # -- all? { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/am000066400000000000000000000001371252436562400210510ustar00rootroot00000000000000#name : alias_method new, old #group : definitions # -- alias_method :${new_name}, :${old_name}yasnippet-snippets-0~git20150512/ruby-mode/any000066400000000000000000000001071252436562400212400ustar00rootroot00000000000000#name : any? { |...| ... } #group : collections # -- any? { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/app000066400000000000000000000001501252436562400212270ustar00rootroot00000000000000#name : if __FILE__ == $PROGRAM_NAME ... end #group : general # -- if __FILE__ == $PROGRAM_NAME $0 endyasnippet-snippets-0~git20150512/ruby-mode/attribute000066400000000000000000000001071252436562400224540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: attribute # key: @ # -- @${1:attr} = $0yasnippet-snippets-0~git20150512/ruby-mode/bench000066400000000000000000000002241252436562400215300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: bench # key: bench # -- require "benchmark" TESTS = ${1:1_000} Benchmark.bmbm do |x| x.report("${2:var}") {} end yasnippet-snippets-0~git20150512/ruby-mode/bm000066400000000000000000000001441252436562400210500ustar00rootroot00000000000000#name : Benchmark.bmbm(...) do ... end #group : general # -- Benchmark.bmbm(${1:10}) do |x| $0 endyasnippet-snippets-0~git20150512/ruby-mode/case000066400000000000000000000001301252436562400213600ustar00rootroot00000000000000#name : case ... end #group : general # -- case ${1:object} when ${2:condition} $0 endyasnippet-snippets-0~git20150512/ruby-mode/cla000066400000000000000000000001211252436562400212040ustar00rootroot00000000000000#name : class << self ... end #group : definitions # -- class << ${self} $0 endyasnippet-snippets-0~git20150512/ruby-mode/cls000066400000000000000000000005401252436562400212330ustar00rootroot00000000000000#name : class ... end #contributor : hitesh #group : definitions # -- class ${1:`(let ((fn (capitalize (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name (current-buffer)))))))) (replace-regexp-in-string "_" "" fn t t))`} $0 end yasnippet-snippets-0~git20150512/ruby-mode/collect000066400000000000000000000001151252436562400220750ustar00rootroot00000000000000#name : collect { |...| ... } #group : collections # -- collect { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/dee000066400000000000000000000001131252436562400212030ustar00rootroot00000000000000#name : deep_copy(...) #group : general # -- Marshal.load(Marshal.dump($0))yasnippet-snippets-0~git20150512/ruby-mode/def000066400000000000000000000001461252436562400212120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def ... end # key: def # -- def ${1:method}${2:(${3:args})} $0 endyasnippet-snippets-0~git20150512/ruby-mode/deli000066400000000000000000000001211252436562400213620ustar00rootroot00000000000000#name : delete_if { |...| ... } #group : collections # -- delete_if { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/det000066400000000000000000000001131252436562400212220ustar00rootroot00000000000000#name : detect { |...| ... } #group : collections # -- detect { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/dow000066400000000000000000000001341252436562400212420ustar00rootroot00000000000000#name : downto(...) { |n| ... } #group : control structure # -- downto(${0}) { |${n}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/ea000066400000000000000000000001071252436562400210360ustar00rootroot00000000000000#name : each { |...| ... } #group : collections # -- each { |${e}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/eac000066400000000000000000000001421252436562400212000ustar00rootroot00000000000000#name : each_cons(...) { |...| ... } #group : collections # -- each_cons(${1:2}) { |${group}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/eai000066400000000000000000000001211252436562400212030ustar00rootroot00000000000000#name : each_index { |i| ... } #group : collections # -- each_index { |${i}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/eav000066400000000000000000000001251252436562400212240ustar00rootroot00000000000000#name : each_value { |val| ... } #group : collections # -- each_value { |${val}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/eawi000066400000000000000000000001441252436562400213770ustar00rootroot00000000000000#name : each_with_index { |e, i| ... } #group : collections # -- each_with_index { |${e}, ${i}| $0 }yasnippet-snippets-0~git20150512/ruby-mode/for000066400000000000000000000001351252436562400212400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:el} in ${2:collection} $0 endyasnippet-snippets-0~git20150512/ruby-mode/forin000066400000000000000000000001541252436562400215700ustar00rootroot00000000000000#name : for ... in ...; ... end #group : control structure # -- for ${1:element} in ${2:collection} $0 endyasnippet-snippets-0~git20150512/ruby-mode/formula000066400000000000000000000003341252436562400221200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: formula # key: form # -- require 'formula' class ${1:Name} #name : def act = { ..} # key: act # -- def act = { loop { react { $0 } } } yasnippet-snippets-0~git20150512/scala-mode/act.arg000066400000000000000000000003001252436562400220650ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def act(arg: T) = { ..} # key: act # -- def act(${1:arg}: ${2:type}) = { loop { react { $0 } } }yasnippet-snippets-0~git20150512/scala-mode/actor000066400000000000000000000002551252436562400216670ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val a = actor { ..} # key: actor # -- val a = actor { loop { react { $0 } } }yasnippet-snippets-0~git20150512/scala-mode/ano000066400000000000000000000001771252436562400213370ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : (args) => ... # key: => # -- ($1) => ${2:body} $0yasnippet-snippets-0~git20150512/scala-mode/app000066400000000000000000000002501252436562400213320ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : object name extends App # key: app # -- object ${1:name} extends App { $0 }yasnippet-snippets-0~git20150512/scala-mode/arr.new000066400000000000000000000002161252436562400221300ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : Array[T](..) # key: arr.new # -- Array[${1:value}](${2:args}) $0yasnippet-snippets-0~git20150512/scala-mode/arr.val-new000066400000000000000000000002451252436562400227120ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val a = Array[T](..) # key: arr.new # -- val ${1:arr} = Array[${2:value}](${3:args}) $0yasnippet-snippets-0~git20150512/scala-mode/asof000066400000000000000000000002121252436562400215000ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : asInstanceOf[T] # key: asof # -- asInstanceOf[${1:type}] $0yasnippet-snippets-0~git20150512/scala-mode/ass000066400000000000000000000002121252436562400213360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : assert(x === y) # key: ass # -- assert(${1:x} === ${2:y}) $0yasnippet-snippets-0~git20150512/scala-mode/ass.true000066400000000000000000000001721252436562400223210ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : assert(true) # key: ass # -- assert(true) $0yasnippet-snippets-0~git20150512/scala-mode/at.author000066400000000000000000000002221252436562400224560ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : @author name # key: at.author # -- @author ${1:name} $0yasnippet-snippets-0~git20150512/scala-mode/at.param000066400000000000000000000002461252436562400222620ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : @param name description # key: at # -- @param ${1:name} ${2:description} $0yasnippet-snippets-0~git20150512/scala-mode/at.return000066400000000000000000000002311252436562400224730ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : @return description # key: at # -- @return ${1:description} $0yasnippet-snippets-0~git20150512/scala-mode/at.version000066400000000000000000000002161252436562400226440ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : @version number # key: at # -- @version ${1:0.1} $0yasnippet-snippets-0~git20150512/scala-mode/bang000066400000000000000000000002101252436562400214550ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : actor ! message # key: ! # -- ${1:actor} ! ${2:message} $0yasnippet-snippets-0~git20150512/scala-mode/case000066400000000000000000000002071252436562400214670ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case pattern => # key: case # -- case ${1:pattern} => $0yasnippet-snippets-0~git20150512/scala-mode/case.match-all000066400000000000000000000001651252436562400233330ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case _ => # key: case # -- case _ => $0yasnippet-snippets-0~git20150512/scala-mode/cast000066400000000000000000000002121252436562400215020ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : asInstanceOf[T] # key: cast # -- asInstanceOf[${1:type}] $0yasnippet-snippets-0~git20150512/scala-mode/cc000066400000000000000000000002361252436562400211430ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case class T(arg: A) # key: cc # -- case class ${1:name}(${2:arg}: ${3:type}) $0yasnippet-snippets-0~git20150512/scala-mode/cl000066400000000000000000000002041252436562400211470ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : class T { .. } # key: cl # -- class ${1:name} { $0 }yasnippet-snippets-0~git20150512/scala-mode/cl.abs000066400000000000000000000002261252436562400217170ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : abstract class T { .. } # key: cl # -- abstract class ${1:name} { $0 }yasnippet-snippets-0~git20150512/scala-mode/cl.abs-arg000066400000000000000000000002471252436562400224710ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : abstract class T(args) { .. } # key: cl # -- abstract class ${1:name}(${2:args}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/cl.arg000066400000000000000000000002251252436562400217220ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : class T(args) { .. } # key: cl # -- class ${1:name}(${2:args}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/clof000066400000000000000000000002001252436562400214700ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : classOf[T] # key: clof # -- classOf[${1:type}] $0yasnippet-snippets-0~git20150512/scala-mode/co000066400000000000000000000002031252436562400211510ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case object T # key: co # -- case object ${1:name} $0yasnippet-snippets-0~git20150512/scala-mode/cons000066400000000000000000000002251252436562400215160ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : element1 :: element2 # key: cons # -- ${1:element1} :: ${2:element2} $0yasnippet-snippets-0~git20150512/scala-mode/cons.nil000066400000000000000000000002071252436562400222770ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : element1 :: Nil # key: cons # -- ${1:element1} :: Nil $0 yasnippet-snippets-0~git20150512/scala-mode/def.arg000066400000000000000000000002171252436562400220630ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f(arg: T) = ... # key: def # -- def ${1:name}(${2:args}) = $0yasnippet-snippets-0~git20150512/scala-mode/def.arg-body000066400000000000000000000002271252436562400230170ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f(arg: T) = {...} # key: def # -- def ${1:name}(${2:args}) = { $0 }yasnippet-snippets-0~git20150512/scala-mode/def.arg-ret000066400000000000000000000002351252436562400226530ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f(arg: T): R = ... # key: def # -- def ${1:name}(${2:args}): ${3:Unit} = $0yasnippet-snippets-0~git20150512/scala-mode/def.arg-ret-body000066400000000000000000000002451252436562400236070ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f(arg: T): R = {...} # key: def # -- def ${1:name}(${2:args}): ${3:Unit} = { $0 }yasnippet-snippets-0~git20150512/scala-mode/def.body000066400000000000000000000002041252436562400222430ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f = {...} # key: def # -- def ${1:name} = { $0 }yasnippet-snippets-0~git20150512/scala-mode/def.ret000066400000000000000000000002121252436562400220770ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f: R = ... # key: def # -- def ${1:name}: ${2:Unit} = $0yasnippet-snippets-0~git20150512/scala-mode/def.ret-body000066400000000000000000000002221252436562400230330ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f: R = {...} # key: def # -- def ${1:name}: ${3:Unit} = { $0 }yasnippet-snippets-0~git20150512/scala-mode/def.simple000066400000000000000000000001741252436562400226050ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : def f = ... # key: def # -- def ${1:name} = $0yasnippet-snippets-0~git20150512/scala-mode/doc.class000066400000000000000000000003161252436562400224260ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** cls/trt/obj name */ # key: doc # -- /** * `(scala-mode-find-clstrtobj-name-doc)` * ${1:description} * $0 */yasnippet-snippets-0~git20150512/scala-mode/doc.def000066400000000000000000000002501252436562400220540ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** method name */ # key: doc # -- /** * `(scala-mode-def-and-args-doc)` */yasnippet-snippets-0~git20150512/scala-mode/doc.file000066400000000000000000000003241252436562400222370ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** file name */ # key: doc.file # -- /** * `(scala-mode-file-doc)` * $0 * @author ${1:name} * @version ${2:0.1} */yasnippet-snippets-0~git20150512/scala-mode/doc.file-scala000066400000000000000000000013601252436562400233210ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** scala file */ # key: doc.file-scala # -- /* __ *\ ** ________ ___ / / ___ Scala $3 ** ** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ /** * $0 * @author ${1:name} * @version ${2:0.1} * $Id$ */yasnippet-snippets-0~git20150512/scala-mode/doc.file-scala-api000066400000000000000000000013651252436562400240750ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** scala api file */ # key: doc.file-scala-api # -- /* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ /** * $0 * @author ${1:name} * @version ${2:0.1} * $Id$ */yasnippet-snippets-0~git20150512/scala-mode/doc.scaladoc000066400000000000000000000002401252436562400230660ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** ... */ # key: doc.scaladoc # -- /** * ${1:description} * $0 */yasnippet-snippets-0~git20150512/scala-mode/expect000066400000000000000000000002201252436562400220370ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : expect(value) { ..} # key: expect # -- expect(${1:reply}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/ext000066400000000000000000000001621252436562400213540ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : extends T # key: ext # -- extends $0yasnippet-snippets-0~git20150512/scala-mode/for.extract000066400000000000000000000001771252436562400230210ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : x <- xs # key: for.extract # -- ${1:x} <- ${2:xs}yasnippet-snippets-0~git20150512/scala-mode/for.if000066400000000000000000000002531252436562400217400ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : for (x <- xs if guard) { ... } # key: for # -- for (${1:x} <- ${2:xs} if ${3:guard}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/for.loop000066400000000000000000000002241252436562400223110ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : for (x <- xs) { ... } # key: for # -- for (${1:x} <- ${2:xs}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/for.multi000066400000000000000000000002761252436562400225010ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : for {x <- xs \ y <- ys} { yield } # key: for # -- for { ${1:x} <- ${2:xs} ${3:x} <- ${4:xs} } { yield $0 }yasnippet-snippets-0~git20150512/scala-mode/foreach000066400000000000000000000002221252436562400221600ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : foreach(x => ..) # key: foreach # -- foreach(${1:x} => ${2:body}) $0yasnippet-snippets-0~git20150512/scala-mode/hmap.new000066400000000000000000000002311252436562400222660ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : new HashMap[K, V] # key: hmap.new # -- new HashMap[${1:key}, ${2:value}] $0yasnippet-snippets-0~git20150512/scala-mode/hmap.val-new000066400000000000000000000002621252436562400230520ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val m = new HashMap[K, V] # key: hmap.val-new # -- val ${1:m} = new HashMap[${2:key}, ${3:value}] $0yasnippet-snippets-0~git20150512/scala-mode/hset.new000066400000000000000000000002131252436562400223040ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : new HashSet[K] # key: hset.new # -- new HashSet[${1:key}] $0 yasnippet-snippets-0~git20150512/scala-mode/hset.val-new000066400000000000000000000002431252436562400230670ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val m = new HashSet[K] # key: hset.val-new # -- val ${1:m} = new HashSet[${2:key}] $0yasnippet-snippets-0~git20150512/scala-mode/if000066400000000000000000000002121252436562400211460ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : if (cond) { .. } # key: if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/if.else000066400000000000000000000002441252436562400221020ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : if (cond) { .. } else { .. } # key: if # -- if (${1:condition}) { $2 } else { $0 }yasnippet-snippets-0~git20150512/scala-mode/imp000066400000000000000000000001611252436562400213400ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : import .. # key: imp # -- import $0yasnippet-snippets-0~git20150512/scala-mode/intercept000066400000000000000000000002531252436562400225520ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : intercept(classOf[T]) { ..} # key: intercept # -- intercept(classOf[${1:Exception]}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/isof000066400000000000000000000002121252436562400215100ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : isInstanceOf[T] # key: isof # -- isInstanceOf[${1:type}] $0yasnippet-snippets-0~git20150512/scala-mode/ls.new000066400000000000000000000002031252436562400217560ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : List(..) # key: ls # -- List(${1:args}, ${2:args}) $0yasnippet-snippets-0~git20150512/scala-mode/ls.val-new000066400000000000000000000002301252436562400225360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val l = List(..) # key: ls # -- val ${1:l} = List(${2:args}, ${3:args}) $0yasnippet-snippets-0~git20150512/scala-mode/main000066400000000000000000000002561252436562400215040ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name: def main(args: Array[String]) = { ... } # key: main # -- def main(args: Array[String]) = { $0 }yasnippet-snippets-0~git20150512/scala-mode/map000066400000000000000000000002061252436562400213300ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : map(x => ..) # key: map # -- map(${1:x} => ${2:body}) $0yasnippet-snippets-0~git20150512/scala-mode/map.new000066400000000000000000000002161252436562400221210ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : Map(key -> value) # key: map # -- Map(${1:key} -> ${2:value}) $0yasnippet-snippets-0~git20150512/scala-mode/match000066400000000000000000000002331252436562400216470ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : cc match { .. } # key: match # -- ${1:cc} match { case ${2:pattern} => $0 }yasnippet-snippets-0~git20150512/scala-mode/match.can000066400000000000000000000003371252436562400224140ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : can match { case Full(res) => .. } # key: match # -- ${1:option} match { case Full(res) => $0 case Empty => case Failure(msg, _, _) => }yasnippet-snippets-0~git20150512/scala-mode/match.option000066400000000000000000000002751252436562400231640ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : option match { case None => .. } # key: match # -- ${1:option} match { case None => $0 case Some(res) => }yasnippet-snippets-0~git20150512/scala-mode/mix000066400000000000000000000002051252436562400213470ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : trait T { .. } # key: mix # -- trait ${1:name} { $0 }yasnippet-snippets-0~git20150512/scala-mode/ob000066400000000000000000000002301252436562400211500ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : object name extends T # key: ob # -- object ${1:name} extends ${2:type} $0yasnippet-snippets-0~git20150512/scala-mode/pac000066400000000000000000000001631252436562400213200ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : package .. # key: pac # -- package $0yasnippet-snippets-0~git20150512/scala-mode/pr.newline000066400000000000000000000002051252436562400226330ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : println(..) # key: pr.newline # -- println(${1:obj}) $0yasnippet-snippets-0~git20150512/scala-mode/pr.simple000066400000000000000000000001711252436562400224650ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : print(..) # key: pr # -- print(${1:obj}) $0yasnippet-snippets-0~git20150512/scala-mode/pr.string000066400000000000000000000002011252436562400224740ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : println("..") # key: pr # -- println("${1:msg}") $0yasnippet-snippets-0~git20150512/scala-mode/pr.trace000066400000000000000000000002271252436562400222740ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : println("obj: " + obj) # key: pr # -- println("${1:obj}: " + ${1:obj}) $0yasnippet-snippets-0~git20150512/scala-mode/pri000066400000000000000000000001601252436562400213440ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : private # key: pri # -- private $0yasnippet-snippets-0~git20150512/scala-mode/pri.param000066400000000000000000000002071252436562400224450ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : private[this] # key: pri.param # -- private[${1:this}] $0yasnippet-snippets-0~git20150512/scala-mode/pro000066400000000000000000000001641252436562400213560ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : protected # key: pro # -- protected $0yasnippet-snippets-0~git20150512/scala-mode/pro.param000066400000000000000000000002061252436562400224520ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : protected[this] # key: prno # -- protected[${1:this}] $0yasnippet-snippets-0~git20150512/scala-mode/suite000066400000000000000000000002731252436562400217100ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : class T extends Suite { .. } # key: suite # -- import org.scalatest._ class ${1:name} extends Suite { $0 }yasnippet-snippets-0~git20150512/scala-mode/test000066400000000000000000000002311252436562400215300ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : @Test def testX = ... # key: test # -- //@Test def test${1:name} = { $0 }yasnippet-snippets-0~git20150512/scala-mode/throw000066400000000000000000000002311252436562400217140ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : throw new Exception # key: throw # -- throw new ${1:Exception}(${2:msg}) $0yasnippet-snippets-0~git20150512/scala-mode/tr000066400000000000000000000002211252436562400211750ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : trait T { .. } # key: tr # -- trait ${1:name} { $0 }yasnippet-snippets-0~git20150512/scala-mode/tr.ext000066400000000000000000000002561252436562400220040ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : trait T extends C { .. } # key: tr # -- trait ${1:name} extends ${2:class} { $0 }yasnippet-snippets-0~git20150512/scala-mode/tr.ext-with000066400000000000000000000003071252436562400227520ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : trait T1 extends C with T2 { .. } # key: tr # -- trait ${1:name} extends ${2:class} with ${3:trait} { $0 }yasnippet-snippets-0~git20150512/scala-mode/tr.with000066400000000000000000000002571252436562400221600ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : trait T1 with T2 { .. } # key: tr.with # -- trait ${1:name} with ${2:trait} { $0 }yasnippet-snippets-0~git20150512/scala-mode/try000066400000000000000000000003661252436562400214000ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : try { .. } catch { case e => ..} # key: try # -- try { $0 } catch { case ${1:e}: ${2:Exception} => ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} }yasnippet-snippets-0~git20150512/scala-mode/try.catch-finally000066400000000000000000000004201252436562400241040ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : try { .. } catch { case e => ..} finally { ..} # key: try # -- try { $0 } catch { case ${1:e}: ${2:Exception} => ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} } finally { }yasnippet-snippets-0~git20150512/scala-mode/try.finally000066400000000000000000000002211252436562400230230ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : try { .. } finally { .. } # key: try # -- try { } finally { $0 }yasnippet-snippets-0~git20150512/scala-mode/tup.arrow000066400000000000000000000002321252436562400225130ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : element1 -> element2 # key: tup.arrow # -- ${1:element1} -> ${2:element2} $0yasnippet-snippets-0~git20150512/scala-mode/tup.paren000066400000000000000000000002321252436562400224660ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : (element1, element2) # key: tup.paren # -- (${1:element1}, ${2:element2}) $0yasnippet-snippets-0~git20150512/scala-mode/val000066400000000000000000000002071252436562400213360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val name = .. # key: val # -- val ${1:name} = ${2:obj} $0yasnippet-snippets-0~git20150512/scala-mode/val.new000066400000000000000000000002171252436562400221270ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val name = new .. # key: val # -- val ${1:name} = new ${2:obj} $0yasnippet-snippets-0~git20150512/scala-mode/val.ret000066400000000000000000000002231252436562400221250ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : val name: T = .. # key: val # -- val ${1:name}: ${2:T} = ${3:obj} $0 yasnippet-snippets-0~git20150512/scala-mode/var000066400000000000000000000002101252436562400213360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : var name = .. # key: var # -- var ${1:name} = ${2:obj} $0 yasnippet-snippets-0~git20150512/scala-mode/var.new000066400000000000000000000002241252436562400221330ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : var name = new .. # key: var.new # -- var ${1:name} = new ${2:obj} $0 yasnippet-snippets-0~git20150512/scala-mode/var.ret000066400000000000000000000002271252436562400221370ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : var name: T = .. # key: var.ret # -- var ${1:name}: ${2:T} = ${3:obj} $0 yasnippet-snippets-0~git20150512/scala-mode/whi000066400000000000000000000002201252436562400213360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : while(cond) { .. } # key: whi # -- while (${1:condition}) { $0 }yasnippet-snippets-0~git20150512/scala-mode/with000066400000000000000000000001551252436562400215310ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : with T # key: with # -- with $0yasnippet-snippets-0~git20150512/sh-mode/000077500000000000000000000000001252436562400201615ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/sh-mode/args000066400000000000000000000001271252436562400210400ustar00rootroot00000000000000# -*- mode: snippet -*- # name:args # key: args # -- if [ $# -lt ${1:2} ] then $0 fiyasnippet-snippets-0~git20150512/sh-mode/bang000066400000000000000000000001111252436562400210040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: bang # key: ! # -- #!/usr/bin/env bash $0yasnippet-snippets-0~git20150512/sh-mode/for loop000066400000000000000000000001431252436562400216220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for loop # key: for # -- for ${1:var} in ${2:stuff}; do $0 doneyasnippet-snippets-0~git20150512/sh-mode/function000066400000000000000000000001311252436562400217240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: f # -- function ${1:name} { $0 }yasnippet-snippets-0~git20150512/sh-mode/if000066400000000000000000000001321252436562400204760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if ${1:[ -f file]} then ${2:do} fi $0yasnippet-snippets-0~git20150512/sh-mode/ife000066400000000000000000000001461252436562400206500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # -- if ${1:cond} then ${2:stuff} else ${3:other} fi $0yasnippet-snippets-0~git20150512/snippet-mode/000077500000000000000000000000001252436562400212315ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/snippet-mode/cont000066400000000000000000000001251252436562400221150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cont # key: cont # -- # contributor: `user-full-name`yasnippet-snippets-0~git20150512/snippet-mode/elisp000066400000000000000000000000721252436562400222670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: elisp # key: ` # -- \`$0\`yasnippet-snippets-0~git20150512/snippet-mode/field000066400000000000000000000001731252436562400222400ustar00rootroot00000000000000# name : ${ ... } field # contributor : joaotavora # key : $f # key: field # -- \${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0yasnippet-snippets-0~git20150512/snippet-mode/group000066400000000000000000000001141252436562400223040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: group # key: group # -- # group : ${1:group}yasnippet-snippets-0~git20150512/snippet-mode/mirror000066400000000000000000000001761252436562400224720ustar00rootroot00000000000000# name : ${n:$(...)} mirror # key : $m # contributor : joaotavora # key: mirror # -- \${${2:n}:${4:\$(${5:reflection-fn})}\}$0yasnippet-snippets-0~git20150512/snippet-mode/vars000066400000000000000000000003541252436562400221310ustar00rootroot00000000000000# -*- mode: snippet -*- # name : Snippet header # contributor : joaotavora # key: vars # -- # name : $1${2: # key : ${3:trigger-key}}${4: # keybinding : ${5:keybinding}}${6: # expand-env : (${7:})} # contributor : $6 # key: vars # -- $0yasnippet-snippets-0~git20150512/sql-mode/000077500000000000000000000000001252436562400203465ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/sql-mode/column000066400000000000000000000002371252436562400215700ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : , ColumnName ColumnType NOT NULL... # -- , ${1:Name} ${2:Type} ${3:NOT NULL} yasnippet-snippets-0~git20150512/sql-mode/constraint000066400000000000000000000002751252436562400224610ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : CONSTRAINT [..] PRIMARY KEY ... # -- CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) yasnippet-snippets-0~git20150512/sql-mode/constraint.1000066400000000000000000000002751252436562400226200ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : CONSTRAINT [..] FOREIGN KEY ... # -- CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) yasnippet-snippets-0~git20150512/sql-mode/create000066400000000000000000000004031252436562400215310ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : create table ... # -- CREATE TABLE [${1:dbo}].[${2:TableName}] ( ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} $0 CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) ) GO yasnippet-snippets-0~git20150512/sql-mode/create.1000066400000000000000000000003131252436562400216700ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : create procedure ... # -- CREATE PROCEDURE [${1:dbo}].[${2:Name}] ( $3 $4 = ${5:NULL} ${6:OUTPUT} ) AS BEGIN $0 END GO yasnippet-snippets-0~git20150512/sql-mode/references000066400000000000000000000002171252436562400224120ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : REFERENCES ... # -- REFERENCES ${1:TableName}([${2:ColumnName}]) yasnippet-snippets-0~git20150512/text-mode/000077500000000000000000000000001252436562400205335ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/text-mode/.yas-parents000066400000000000000000000000211252436562400227730ustar00rootroot00000000000000fundamental-mode yasnippet-snippets-0~git20150512/tuareg-mode/000077500000000000000000000000001252436562400210365ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/tuareg-mode/assert000066400000000000000000000001011252436562400222520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: as # -- assert $0;;yasnippet-snippets-0~git20150512/tuareg-mode/docstring000066400000000000000000000001001252436562400227440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: docstring # key: d # -- (* $0 *)yasnippet-snippets-0~git20150512/tuareg-mode/for000066400000000000000000000001201252436562400215400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:cond} do $0 doneyasnippet-snippets-0~git20150512/tuareg-mode/fun000066400000000000000000000001071252436562400215470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- fun ${1:args} -> $0yasnippet-snippets-0~git20150512/tuareg-mode/guard000066400000000000000000000001061252436562400220600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: guard # key: | # -- | ${1:match} -> $0yasnippet-snippets-0~git20150512/tuareg-mode/ifthen000066400000000000000000000001161252436562400222340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifthen # key: if # -- if ${1:cond} then $0 yasnippet-snippets-0~git20150512/tuareg-mode/ifthenelse000066400000000000000000000001411252436562400231030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifthenelse # key: if # -- if ${1:cond} then $2 else $0yasnippet-snippets-0~git20150512/tuareg-mode/let000066400000000000000000000001031252436562400215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let # key: let # -- let ${1:var} $0yasnippet-snippets-0~git20150512/tuareg-mode/list_comprehension000066400000000000000000000001161252436562400246630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list_comprehension # key: l # -- [? $1 | $0 ?]yasnippet-snippets-0~git20150512/tuareg-mode/main000066400000000000000000000001041252436562400217000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: m # -- let main = $0yasnippet-snippets-0~git20150512/tuareg-mode/match000066400000000000000000000001541252436562400220550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: match # key: match # -- match ${1:to_match} with | ${2:matching} -> $0yasnippet-snippets-0~git20150512/tuareg-mode/module000066400000000000000000000002341252436562400222450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:A} = struct ${2:type t = { name : string; phone : string }} $0 end;; yasnippet-snippets-0~git20150512/tuareg-mode/open000066400000000000000000000001041252436562400217150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: open # key: op # -- open ${1:Module}yasnippet-snippets-0~git20150512/tuareg-mode/printf000066400000000000000000000001351252436562400222620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: pr # -- Printf.printf "${1:string}" ${2:vals};;yasnippet-snippets-0~git20150512/tuareg-mode/rec000066400000000000000000000001271252436562400215320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: rec # key: rec # -- let rec ${1:fun} ${2:args} = $0yasnippet-snippets-0~git20150512/tuareg-mode/try000066400000000000000000000001221252436562400215720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try $0 with $1yasnippet-snippets-0~git20150512/tuareg-mode/type000066400000000000000000000001441252436562400217410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type_record # key: type # -- type ${1:name} = {${2:var}: ${3:int}$0}yasnippet-snippets-0~git20150512/tuareg-mode/type_type000066400000000000000000000001251252436562400230010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type_type # key: type # -- type ${1:expr} = | $0yasnippet-snippets-0~git20150512/tuareg-mode/val000066400000000000000000000001051252436562400215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: val # key: val # -- val ${1:fun} : $0yasnippet-snippets-0~git20150512/tuareg-mode/while000066400000000000000000000001251252436562400220670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: wh # -- while ${1:cond} do $0 doneyasnippet-snippets-0~git20150512/typerex-mode000077700000000000000000000000001252436562400233212tuareg-modeustar00rootroot00000000000000yasnippet-snippets-0~git20150512/udev-mode/000077500000000000000000000000001252436562400205125ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/udev-mode/ENV000066400000000000000000000000751252436562400210670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ENV # key: env # -- ENV{$1}$0yasnippet-snippets-0~git20150512/udev-mode/GOTO000066400000000000000000000001161252436562400212030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: GOTO # key: goto # -- GOTO="$1" $0 LABEL="$1"yasnippet-snippets-0~git20150512/udev-mode/KERNEL000066400000000000000000000001031252436562400214070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: KERNEL # key: ker # -- KERNEL!="$0"yasnippet-snippets-0~git20150512/udev-mode/add000066400000000000000000000001051252436562400211610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add # key: add # -- ACTION=="add", $0yasnippet-snippets-0~git20150512/udev-mode/env$000066400000000000000000000000761252436562400212740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: env$ # key: $ # -- $env{$1} $0yasnippet-snippets-0~git20150512/udev-mode/run000066400000000000000000000000751252436562400212430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: run # key: run # -- RUN+="$0"yasnippet-snippets-0~git20150512/yaml-mode/000077500000000000000000000000001252436562400205115ustar00rootroot00000000000000yasnippet-snippets-0~git20150512/yaml-mode/entry000066400000000000000000000001211252436562400215670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: entry # key: entry # -- ${1:entry}: ${2:value} $0yasnippet-snippets-0~git20150512/yaml-mode/list000066400000000000000000000000751252436562400214110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list # key: list # -- [$1] $0yasnippet-snippets-0~git20150512/yaml-mode/section000066400000000000000000000001141252436562400220740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: -- # -- --- # ${1:section} $0