yasnippet-snippets-0~git20161123/000077500000000000000000000000001303266332200166145ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/.gitignore000066400000000000000000000000351303266332200206020ustar00rootroot00000000000000**/.yas-compiled-snippets.el yasnippet-snippets-0~git20161123/.nosearch000066400000000000000000000000011303266332200204060ustar00rootroot00000000000000 yasnippet-snippets-0~git20161123/CONTRIBUTORS.txt000066400000000000000000000001671303266332200213160ustar00rootroot00000000000000Please add here your name in alphabetical order (first name) if you contributed with - Andrea Crotti - James Ferguson yasnippet-snippets-0~git20161123/LICENSE000066400000000000000000000017771303266332200176350ustar00rootroot00000000000000Permission 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~git20161123/README.md000066400000000000000000000037441303266332200201030ustar00rootroot00000000000000# 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-snippet-dirs "$$DIRECTORY_WHERE_YOU_CLONED")` - and in case you want to enable yasnippet globally: `(yas-global-mode t)` 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~git20161123/antlr-mode/000077500000000000000000000000001303266332200206565ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/antlr-mode/project000066400000000000000000000002121303266332200222420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: project # key: proj # -- $0 yasnippet-snippets-0~git20161123/antlr-mode/property000066400000000000000000000001551303266332200224660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: property # key: prop # -- $0yasnippet-snippets-0~git20161123/antlr-mode/target000066400000000000000000000001661303266332200220720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: target # key: target # -- $0 yasnippet-snippets-0~git20161123/applescript-mode/000077500000000000000000000000001303266332200220645ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/applescript-mode/.yas-parents000066400000000000000000000000111303266332200243230ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20161123/c++-mode/000077500000000000000000000000001303266332200201065ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/c++-mode/.yas-parents000066400000000000000000000000101303266332200223440ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20161123/c++-mode/.yas-setup.el000066400000000000000000000006731303266332200224460ustar00rootroot00000000000000(require 'yasnippet) (defun yas-c++-class-name (str) "Search for a class name like `DerivedClass' in STR (which may look like `DerivedClass : ParentClass1, ParentClass2, ...') If found, the class name is returned, otherwise STR is returned" (yas-substr str "[^: ]*")) (defun yas-c++-class-method-declare-choice () "Choose and return the end of a C++11 class method declaration" (yas-choose-value '(";" " = default;" " = delete;"))) yasnippet-snippets-0~git20161123/c++-mode/acl000066400000000000000000000002431303266332200205670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: accumulate # key: acl # -- auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) { $3 }); $0 yasnippet-snippets-0~git20161123/c++-mode/acm000066400000000000000000000002071303266332200205700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: accumulate # key: acm # -- auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0); $0 yasnippet-snippets-0~git20161123/c++-mode/ajf000066400000000000000000000002541303266332200205720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: adjacent_find # key: ajf # -- auto pos = std::adjacent_find(std::begin(${1:container}), std::end($1)); if (pos != std::end($1)) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/alo000066400000000000000000000002171303266332200206040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: all_of # key: alo # -- if (std::all_of(std::begin(${1:container}), std::end($1), []($2) { $3 })) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/ano000066400000000000000000000002171303266332200206060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: any_of # key: ano # -- if (std::any_of(std::begin(${1:container}), std::end($1), []($2) { $3 })) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/assert000066400000000000000000000001021303266332200213230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # -- assert($0);yasnippet-snippets-0~git20161123/c++-mode/beginend000066400000000000000000000001371303266332200216050ustar00rootroot00000000000000# -*- mode: snippet -*- # name : v.begin(), v.end() # key: beginend # -- ${1:v}.begin(), $1.endyasnippet-snippets-0~git20161123/c++-mode/boost_require000066400000000000000000000001601303266332200227100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: boost_require # key: req # group: boost # -- BOOST_REQUIRE( ${1:condition} ); $0yasnippet-snippets-0~git20161123/c++-mode/cerr000066400000000000000000000001011303266332200207540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cerr # key: err # -- cerr << $0; yasnippet-snippets-0~git20161123/c++-mode/cin000066400000000000000000000000761303266332200206050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cin # key: cin # -- cin >> $0;yasnippet-snippets-0~git20161123/c++-mode/class000066400000000000000000000002731303266332200211400ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/class11000066400000000000000000000035541303266332200213070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class11 # key: cls11 # group: c++11 # uuid: d7c41f87-9b8a-479d-bb12-89f4cbdd46a7 # contributor: Ved Vyas # desc: Snippet for C++11 classes based on c++-mode/class. Allows for Rule of # [0, All]. A choice between ";", " = default;", and " = delete;" is presented # for each method. The methods and some of the optional keywords/specifiers are # exposed as fields that users can easily skip-and-clear. # Hackish query-replace-regexp to renumber non-mirror fields in the region # between public and protected (can use N as a field number in the snippet): # \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1 # References: # 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five # 2. https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B # 3. http://stackoverflow.com/a/4782927 # -- class ${1:Name} { public: ${2: ${3://! Default constructor }${1:$(yas-c++-class-name yas-text)}()${4:;$(yas-c++-class-method-declare-choice)} }${5: ${6://! Copy constructor }${1:$(yas-c++-class-name yas-text)}(const ${1:$(yas-c++-class-name yas-text)} &other)${7:;$(yas-c++-class-method-declare-choice)} }${8: ${9://! Move constructor }${1:$(yas-c++-class-name yas-text)}(${1:$(yas-c++-class-name yas-text)} &&other)${10: noexcept}${11:;$(yas-c++-class-method-declare-choice)} }${12: ${13://! Destructor }${14:virtual }~${1:$(yas-c++-class-name yas-text)}()${15: noexcept}${16:;$(yas-c++-class-method-declare-choice)} }${17: ${18://! Copy assignment operator }${1:$(yas-c++-class-name yas-text)}& operator=(const ${1:$(yas-c++-class-name yas-text)} &other)${19:;$(yas-c++-class-method-declare-choice)} }${20: ${21://! Move assignment operator }${1:$(yas-c++-class-name yas-text)}& operator=(${1:$(yas-c++-class-name yas-text)} &&other)${22: noexcept}${23:;$(yas-c++-class-method-declare-choice)} }$0 protected: private: };yasnippet-snippets-0~git20161123/c++-mode/cni000066400000000000000000000002171303266332200206020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: count_if # key: cni # -- auto n = std::count_if(std::begin(${1:container}), std::end($1), []($2) { $3 }); $0 yasnippet-snippets-0~git20161123/c++-mode/cnt000066400000000000000000000001741303266332200206170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: count # key: cnt # -- auto n = std::count(std::begin(${1:container}), std::end($1), $2); $0 yasnippet-snippets-0~git20161123/c++-mode/const_[]000066400000000000000000000001701303266332200216040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: const_[] # key: c[ # -- const ${1:Type}& operator[](${2:int index}) const { $0 }yasnippet-snippets-0~git20161123/c++-mode/constructor000066400000000000000000000001651303266332200224200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: constructor # key: ct # -- ${1:Class}::$1(${2:args}) ${3: : ${4:init}} { $0 }yasnippet-snippets-0~git20161123/c++-mode/cout000066400000000000000000000004061303266332200210030ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/cpb000066400000000000000000000002151303266332200205730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: copy_backward # key: cpb # -- std::copy_backward(std::begin(${1:container}), std::end($1), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/cpi000066400000000000000000000002241303266332200206020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: copy_if # key: cpi # -- std::copy_if(std::begin(${1:container}), std::end($1), std::begin($2), []($3) { $4 }); $0 yasnippet-snippets-0~git20161123/c++-mode/cpn000066400000000000000000000001651303266332200206130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: copy_n # key: cpn # -- std::copy_n(std::begin(${1:container}), $2, std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/cpp000066400000000000000000000002111303266332200206050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cpp # key: cpp # -- #include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h"yasnippet-snippets-0~git20161123/c++-mode/cpy000066400000000000000000000001751303266332200206270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: copy # key: cpy # -- std::copy(std::begin(${1:container}), std::end($1), std::begin($2)); $0 yasnippet-snippets-0~git20161123/c++-mode/cstd000066400000000000000000000001101303266332200207560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cstd # key: cstd # -- #include yasnippet-snippets-0~git20161123/c++-mode/d+=000066400000000000000000000001361303266332200204240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d+= # key: d+= # -- ${1:MyClass}& operator+=(${2:const $1 &});yasnippet-snippets-0~git20161123/c++-mode/d_operator000066400000000000000000000001761303266332200221730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator<< # key: << # -- friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);yasnippet-snippets-0~git20161123/c++-mode/d_operator[]000066400000000000000000000001411303266332200224530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator[] # key: [ # -- ${1:Type}& operator[](${2:int index});yasnippet-snippets-0~git20161123/c++-mode/d_operator[]_const000066400000000000000000000001641303266332200236660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator[]_const # key: c[ # -- const ${1:Type}& operator[](${2:int index}) const;yasnippet-snippets-0~git20161123/c++-mode/d_operator_istream000066400000000000000000000001761303266332200237170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator>> # key: >> # -- friend std::istream& operator>>(std::istream&, const ${1:Class}&);yasnippet-snippets-0~git20161123/c++-mode/d_operator_ostream000066400000000000000000000001761303266332200237250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: d_operator<< # key: << # -- friend std::ostream& operator<<(std::ostream&, const ${1:Class}&);yasnippet-snippets-0~git20161123/c++-mode/delete000066400000000000000000000001121303266332200212650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: delete # key: dl # -- delete ${1:pointer};yasnippet-snippets-0~git20161123/c++-mode/delete[]000066400000000000000000000001131303266332200215560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: delete[] # key: dla # -- delete[] ${1:arr};yasnippet-snippets-0~git20161123/c++-mode/doc000066400000000000000000000001011303266332200205660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: doc # -- /** * $0 */yasnippet-snippets-0~git20161123/c++-mode/dynamic_casting000066400000000000000000000001471303266332200231670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dynamic_casting # key: cast # -- check_and_cast<${1:Type} *>(${2:msg});yasnippet-snippets-0~git20161123/c++-mode/enum000066400000000000000000000001131303266332200207700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: enum # key: enum # -- enum ${1:NAME}{ $0 };yasnippet-snippets-0~git20161123/c++-mode/eql000066400000000000000000000002141303266332200206070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: equal # key: eql # -- if (std::equal(std::begin(${1:container}), std::end($1), std::begin($2))) { $3 } $0 yasnippet-snippets-0~git20161123/c++-mode/erm000066400000000000000000000002151303266332200206120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remove # key: erm # -- ${1:container}.erase(std::remove(std::begin($1), std::end($1), $2), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/ffo000066400000000000000000000003141303266332200206010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: find_first_of # key: ffo # -- auto pos = std::find_first_of(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/fil000066400000000000000000000001611303266332200206010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fill # key: fil # -- std::fill(std::begin(${1:container}), std::end($1), $2); $0 yasnippet-snippets-0~git20161123/c++-mode/fin000066400000000000000000000002701303266332200206040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: find_if_not # key: fin # -- auto pos = std::find_if_not(std::begin(${1:container}), std::end($1),[]($2) { $3 }); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/fixture000066400000000000000000000002151303266332200215150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixture # key: fixt # -- BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} ) $0 BOOST_AUTO_TEST_SUITE_END()yasnippet-snippets-0~git20161123/c++-mode/fln000066400000000000000000000001531303266332200206070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fill_n # key: fln # -- std::fill_n(std::begin(${1:container}), $2, $3); $0 yasnippet-snippets-0~git20161123/c++-mode/fnd000066400000000000000000000002361303266332200206010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: find # key: fnd # -- auto pos = std::find(std::begin(${1:container}), std::end($1), $2); if (pos != std::end($1)) { $3 } $0 yasnippet-snippets-0~git20161123/c++-mode/fne000066400000000000000000000003071303266332200206010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: find_end # key: fne # -- auto pos = std::find_std::end(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/fni000066400000000000000000000002611303266332200206040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: find_if # key: fni # -- auto pos = std::find_if(std::begin(${1:container}), std::end($1), []($2) { $3 }); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/fori000066400000000000000000000002011303266332200207610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fori # key: fori # -- for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) { $0 }yasnippet-snippets-0~git20161123/c++-mode/fre000066400000000000000000000002061303266332200206030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for_each # key: fre # -- std::for_each(std::begin(${1:container}), std::end($1), []($2) { $3 }); $0 yasnippet-snippets-0~git20161123/c++-mode/friend000066400000000000000000000001001303266332200212670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: friend # key: fr # -- friend $0;yasnippet-snippets-0~git20161123/c++-mode/fun_declaration000066400000000000000000000001501303266332200231620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun_declaration # key: f # -- ${1:type} ${2:name}(${3:args})${4: const};yasnippet-snippets-0~git20161123/c++-mode/gnn000066400000000000000000000002001303266332200206030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: generate_n # key: gnn # -- std::generate_n(std::begin(${1:container}), $2, []($3) { $4 }); $0 yasnippet-snippets-0~git20161123/c++-mode/gnr000066400000000000000000000002061303266332200206150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: generate # key: gnr # -- std::generate(std::begin(${1:container}), std::end($1), []($2) { $3 }); $0 yasnippet-snippets-0~git20161123/c++-mode/gtest000066400000000000000000000001411303266332200211530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: gtest # key: gtest # group: testing # -- #include yasnippet-snippets-0~git20161123/c++-mode/ignore000066400000000000000000000002021303266332200213060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ignore # key: ignore # -- ${1:std::}cin.ignore(std::numeric_limits::max(), '\n');yasnippet-snippets-0~git20161123/c++-mode/ihp000066400000000000000000000002001303266332200206010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_heap # key: ihp # -- if (std::is_heap(std::begin(${1:container}), std::end($1))) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/ihu000066400000000000000000000002541303266332200206170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_heap_until # key: ihu # -- auto pos = std::is_heap_until(std::begin(${1:container}), std::end($1)); if (pos != std::end($1)) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/inline000066400000000000000000000000771303266332200213130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inline # key: il # -- inline $0yasnippet-snippets-0~git20161123/c++-mode/io000066400000000000000000000001051303266332200204340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: io # key: io # -- #include yasnippet-snippets-0~git20161123/c++-mode/ipr000066400000000000000000000002361303266332200206240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_permutation # key: ipr # -- if (std::is_permutation(std::begin(${1:container}), std::end($1), std::begin($2))) { $3 } $0 yasnippet-snippets-0~git20161123/c++-mode/ipt000066400000000000000000000002371303266332200206270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_partitioned # key: ipt # -- if (std::is_partitioned(std::begin(${1:container}), std::end($1), []($2) { $3 })) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/iss000066400000000000000000000002041303266332200206230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_sorted # key: iss # -- if (std::is_sorted(std::begin(${1:container}), std::end($1))) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/isu000066400000000000000000000002601303266332200206270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: is_sorted_until # key: isu # -- auto pos = std::is_sorted_until(std::begin(${1:container}), std::end($1)); if (pos != std::end($1)) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/ita000066400000000000000000000001611303266332200206040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iota # key: ita # -- std::iota(std::begin(${1:container}), std::end($1), $2); $0 yasnippet-snippets-0~git20161123/c++-mode/iterator000066400000000000000000000001521303266332200216600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iterator # key: iter # -- ${1:std::}${2:vector}::iterator ${3:iter}; yasnippet-snippets-0~git20161123/c++-mode/ltr000066400000000000000000000001671303266332200206360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: transform # key: ltr # -- ${1:container}.erase(0, $1.find_first_not_of(" \t\n\r")); $0 yasnippet-snippets-0~git20161123/c++-mode/lwr000066400000000000000000000002561303266332200206400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: transform # key: lwr # -- std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) { return std::tolower(c);}); $0 yasnippet-snippets-0~git20161123/c++-mode/lxc000066400000000000000000000002731303266332200206210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: lexigraphical_compare # key: lxc # -- if (std::lexigraphical_compare(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/map000066400000000000000000000001241303266332200206030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: map # key: map # -- std::map<${1:type1}$0> ${2:var};yasnippet-snippets-0~git20161123/c++-mode/member_function000066400000000000000000000002041303266332200232010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: member_function # key: mf # -- ${1:type} ${2:Class}::${3:name}(${4:args})${5: const} { $0 } yasnippet-snippets-0~git20161123/c++-mode/mkh000066400000000000000000000001671303266332200206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: make_heap # key: mkh # -- std::make_heap(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/mme000066400000000000000000000002171303266332200206070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: minmax_element # key: mme # -- auto minmax = std::minmax_element(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/mne000066400000000000000000000002061303266332200206060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: min_element # key: mne # -- auto pos = std::min_element(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/module000066400000000000000000000001501303266332200213120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- class ${1:Class} : public cSimpleModule { $0 }yasnippet-snippets-0~git20161123/c++-mode/mpb000066400000000000000000000002151303266332200206050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: move_backward # key: mpb # -- std::move_backward(std::begin(${1:container}), std::end($1), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/mrg000066400000000000000000000002351303266332200206160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: merge # key: mrg # -- std::merge(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3), std::begin($4)); $0 yasnippet-snippets-0~git20161123/c++-mode/msm000066400000000000000000000003141303266332200206230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: mismatch # key: msm # -- auto values = std::mismatch(std::begin(${1:container}), std::end($1), std::begin($1)); if (values.first == std::end($1)) { $2 } else { $3 } $0 yasnippet-snippets-0~git20161123/c++-mode/mxe000066400000000000000000000002061303266332200206200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: max_element # key: mxe # -- auto pos = std::max_element(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/namespace000066400000000000000000000001741303266332200217670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: namespace # key: ns # -- namespace ${1:Namespace} { `yas/selected-text` } // $1yasnippet-snippets-0~git20161123/c++-mode/nno000066400000000000000000000002211303266332200206160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: none_of # key: nno # -- if (std::none_of(std::begin(${1:container}), std::end($1), []($2) { $3 })) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/ns000066400000000000000000000000571303266332200204530ustar00rootroot00000000000000#name : namespace ... # key: ns # -- namespace yasnippet-snippets-0~git20161123/c++-mode/nth000066400000000000000000000002111303266332200206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nth_element # key: nth # -- std::nth_element(std::begin(${1:container}), std::end($1), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/nxp000066400000000000000000000002221303266332200206320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: next_permutation # key: nxp # -- if (std::next_permutation(std::begin(${1:container}), std::end($1))) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/oit000066400000000000000000000002361303266332200206250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: copy # key: oit # -- std::copy(std::begin(${1:container}), std::end($1), std::ostream_iterator<$2>{ %\istd::cout, "$3" }); $0 yasnippet-snippets-0~git20161123/c++-mode/operator!=000066400000000000000000000002561303266332200220250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator!= # key: != # group: operator overloading # -- bool ${1:MyClass}::operator!=(const $1 &other) const { return !(*this == other); }yasnippet-snippets-0~git20161123/c++-mode/operator+000066400000000000000000000003041303266332200217340ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/operator+=000066400000000000000000000002411303266332200220310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator+= # key: += # group: operator overloading # -- ${1:MyClass}& $1::operator+=(${2:const $1 &rhs}) { $0 return *this; }yasnippet-snippets-0~git20161123/c++-mode/operator=000066400000000000000000000004171303266332200217630ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/operator==000066400000000000000000000002301303266332200220510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator== # key: == # group: operator overloading # -- bool ${1:MyClass}::operator==(const $1 &other) const { $0 }yasnippet-snippets-0~git20161123/c++-mode/operator[]000066400000000000000000000002141303266332200221510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: operator[] # key: [] # group: operator overloading # -- ${1:Type}& operator[](${2:int index}) { $0 }yasnippet-snippets-0~git20161123/c++-mode/operator_istream000066400000000000000000000002711303266332200234100ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/operator_ostream000066400000000000000000000003001303266332200234070ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/ostream000066400000000000000000000001111303266332200214740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ostream # key: os # -- #include yasnippet-snippets-0~git20161123/c++-mode/pack000066400000000000000000000001431303266332200207450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pack # key: pack # -- void cNetCommBuffer::pack(${1:type}) { } $0yasnippet-snippets-0~git20161123/c++-mode/phh000066400000000000000000000001671303266332200206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: push_heap # key: phh # -- std::push_heap(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/ppt000066400000000000000000000003011303266332200206260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: partition_point # key: ppt # -- auto pos = std::partition_point(std::begin(${1:container}), std::end($1), []($2) { $3 }); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/private000066400000000000000000000001121303266332200214750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: private # key: pr # -- private: $0yasnippet-snippets-0~git20161123/c++-mode/protected000066400000000000000000000001161303266332200220200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: protected # key: pt # -- protected: $0yasnippet-snippets-0~git20161123/c++-mode/prp000066400000000000000000000002221303266332200206260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: prev_permutation # key: prp # -- if (std::prev_permutation(std::begin(${1:container}), std::end($1))) { $2 } $0 yasnippet-snippets-0~git20161123/c++-mode/psc000066400000000000000000000002671303266332200206230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: partial_sort_copy # key: psc # -- std::partial_sort_copy(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)); $0 yasnippet-snippets-0~git20161123/c++-mode/pst000066400000000000000000000002131303266332200206330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: partial_sort # key: pst # -- std::partial_sort(std::begin(${1:container}), std::end($1), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/ptc000066400000000000000000000002611303266332200206160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: partition_copy # key: ptc # -- std::partition_copy(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)); $0 yasnippet-snippets-0~git20161123/c++-mode/ptn000066400000000000000000000002651303266332200206350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: partition # key: ptn # -- auto pos = std::partition(std::begin(${1:container}), std::end($1), []($2) { $3 }); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/public000066400000000000000000000001101303266332200212770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: public # key: pb # -- public: $0yasnippet-snippets-0~git20161123/c++-mode/rci000066400000000000000000000002521303266332200206050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: replace_copy_if # key: rci # -- std::replace_copy_if(std::begin(${1:container}), std::end($1), std::begin($1), []($2) { $3 }, $4); $0 yasnippet-snippets-0~git20161123/c++-mode/rmc000066400000000000000000000002211303266332200206050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remove_copy # key: rmc # -- std::remove_copy(std::begin(${1:container}), std::end($1), std::begin($1), $2); $0 yasnippet-snippets-0~git20161123/c++-mode/rmf000066400000000000000000000002461303266332200206170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remove_copy_if # key: rmf # -- std::remove_copy_if(std::begin(${1:container}), std::end($1), std::begin($1), []($2) { $3 }); $0 yasnippet-snippets-0~git20161123/c++-mode/rmi000066400000000000000000000002651303266332200206230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remove_if # key: rmi # -- auto pos = std::remove_if(std::begin(${1:container}), std::end($1), []($2) { $3 }); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/rmv000066400000000000000000000002421303266332200206330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: remove # key: rmv # -- auto pos = std::remove(std::begin(${1:container}), std::end($1), $2); if (pos != std::end($1)) { $3 } $0 yasnippet-snippets-0~git20161123/c++-mode/rpc000066400000000000000000000002251303266332200206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: replace_copy # key: rpc # -- std::replace_copy(std::begin(${1:container}), std::end($1), std::begin($1), $2, $3); $0 yasnippet-snippets-0~git20161123/c++-mode/rpi000066400000000000000000000002141303266332200206200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: replace_if # key: rpi # -- std::replace_if(std::begin(${1:container}), std::end($1), []($2) { $3 }, $4); $0 yasnippet-snippets-0~git20161123/c++-mode/rpl000066400000000000000000000001731303266332200206270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: replace # key: rpl # -- std::replace(std::begin(${1:container}), std::end($1), $2, $3); $0 yasnippet-snippets-0~git20161123/c++-mode/rtc000066400000000000000000000002351303266332200206210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: rotate_copy # key: rtc # -- std::rotate_copy(std::begin(${1:container}), std::begin($2), std::end($1), std::begin($3)); $0 yasnippet-snippets-0~git20161123/c++-mode/rte000066400000000000000000000002011303266332200206140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: rotate # key: rte # -- std::rotate(std::begin(${1:container}), std::begin($2), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/rvc000066400000000000000000000002151303266332200206210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: reverse_copy # key: rvc # -- std::reverse_copy(std::begin(${1:container}), std::end($1), std::begin($2)); $0 yasnippet-snippets-0~git20161123/c++-mode/rvr000066400000000000000000000001631303266332200206420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: reverse # key: rvr # -- std::reverse(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/shf000066400000000000000000000002011303266332200206020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: random_shuffle # key: shf # -- std::random_shuffle(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/spt000066400000000000000000000003021303266332200206320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stable_partition # key: spt # -- auto pos = std::stable_partition(std::begin(${1:container}), std::end($1), []($2) { $3}); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/srh000066400000000000000000000002761303266332200206320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: search # key: srh # -- auto pos = std::search(std::begin(${1:container}), std::end($1), std::begin($2), std::end($3)); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/srn000066400000000000000000000002501303266332200206300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: search_n # key: srn # -- auto pos = std::search_n(std::begin(${1:container}), std::end($1),$2,$3); if (pos != std::end($1)) { $4 } $0 yasnippet-snippets-0~git20161123/c++-mode/srt000066400000000000000000000001551303266332200206420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: sort # key: srt # -- std::sort(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/sstream000066400000000000000000000001131303266332200215020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: # key: ss # -- #include yasnippet-snippets-0~git20161123/c++-mode/std000066400000000000000000000001101303266332200206130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: std # key: std # -- using namespace std;yasnippet-snippets-0~git20161123/c++-mode/std_colon000066400000000000000000000000741303266332200220160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: std:: # key: st # -- std::$0yasnippet-snippets-0~git20161123/c++-mode/sth000066400000000000000000000001671303266332200206330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: sort_heap # key: sth # -- std::sort_heap(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/sti000066400000000000000000000001031303266332200206220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cin # key: sti # -- std::cin >> $0 yasnippet-snippets-0~git20161123/c++-mode/sto000066400000000000000000000001051303266332200206320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cout # key: sto # -- std::cout << $0 yasnippet-snippets-0~git20161123/c++-mode/str000066400000000000000000000001051303266332200206350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: str # key: str # -- #include yasnippet-snippets-0~git20161123/c++-mode/sts000066400000000000000000000001731303266332200206430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stable_sort # key: sts # -- std::stable_sort(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/stv000066400000000000000000000001151303266332200206420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vector # key: stv # -- std::vector<$2> $3 $0 yasnippet-snippets-0~git20161123/c++-mode/swr000066400000000000000000000002131303266332200206400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: swap_ranges # key: swr # -- std::swap_ranges(std::begin(${1:container}), std::end($1), std::begin($2)); $0 yasnippet-snippets-0~git20161123/c++-mode/template000066400000000000000000000001751303266332200216470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: template # key: temp # -- template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}> $0yasnippet-snippets-0~git20161123/c++-mode/test case000066400000000000000000000001771303266332200217110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test case # key: tc # group: testing # -- BOOST_AUTO_TEST_CASE( ${1:test_case} ) { $0 }yasnippet-snippets-0~git20161123/c++-mode/test_main000066400000000000000000000003011303266332200220060ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/test_suite000066400000000000000000000002251303266332200222200ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/tfm000066400000000000000000000002311303266332200206130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: transform # key: tfm # -- std::transform(std::begin(${1:container}), std::end($1), std::begin($1), []($2) { $3% }); $0 yasnippet-snippets-0~git20161123/c++-mode/this000066400000000000000000000000701303266332200207750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: this # key: th # -- thisyasnippet-snippets-0~git20161123/c++-mode/throw000066400000000000000000000001171303266332200211730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: throw # key: throw # -- throw ${1:MyError}($0);yasnippet-snippets-0~git20161123/c++-mode/trm000066400000000000000000000001701303266332200206310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: generate_n # key: trm # -- ${1:container}.erase($1.find_last_not_of(" \t\n\r") + 1); $0 yasnippet-snippets-0~git20161123/c++-mode/try000066400000000000000000000002301303266332200206420ustar00rootroot00000000000000# -*- 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~git20161123/c++-mode/tryw000066400000000000000000000002051303266332200210330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tryw # key: tryw # -- try { `(or yas/selected-text (car kill-ring))` } catch ${1:Exception} { } yasnippet-snippets-0~git20161123/c++-mode/ucp000066400000000000000000000002551303266332200206220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unique_copy # key: ucp # -- std::unique_copy(std::begin(${1:container}), std::end($1), std::ostream_iterator(std::cout, "\n")); $0 yasnippet-snippets-0~git20161123/c++-mode/upr000066400000000000000000000002621303266332200206370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: transform # key: upr # -- std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) { return std::toupper(c); }); $2 $0 yasnippet-snippets-0~git20161123/c++-mode/uqe000066400000000000000000000001741303266332200206250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unique # key: uqe # -- auto pos = std::unique(std::begin(${1:container}), std::end($1)); $0 yasnippet-snippets-0~git20161123/c++-mode/using000066400000000000000000000001111303266332200211470ustar00rootroot00000000000000#name : using namespace ... # key: using # -- using namespace ${std}; $0yasnippet-snippets-0~git20161123/c++-mode/vector000066400000000000000000000001561303266332200213350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vector # key: vec # -- std::vector<${1:Class}> ${2:var}${3:(${4:10}, $1($5))};yasnippet-snippets-0~git20161123/c-mode/000077500000000000000000000000001303266332200177605ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/c-mode/.yas-parents000066400000000000000000000000101303266332200222160ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20161123/c-mode/assert000066400000000000000000000001151303266332200212010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # -- #include $0yasnippet-snippets-0~git20161123/c-mode/compile000066400000000000000000000001771303266332200213400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: compile # key: compile # -- // -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-yasnippet-snippets-0~git20161123/c-mode/define000066400000000000000000000000771303266332200211410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: define # key: d # -- #define $0yasnippet-snippets-0~git20161123/c-mode/malloc000066400000000000000000000001361303266332200211520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: malloc # key: malloc # -- malloc(sizeof($1)${2: * ${3:3}}); $0yasnippet-snippets-0~git20161123/c-mode/packed000066400000000000000000000001271303266332200211320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: packed # key: packed # -- __attribute__((__packed__))$0yasnippet-snippets-0~git20161123/c-mode/printf000066400000000000000000000001371303266332200212060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: pr # -- printf("${1:format string}"${2: ,a0,a1});yasnippet-snippets-0~git20161123/c-mode/stdio000066400000000000000000000001071303266332200210230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stdio # key: io # -- #include yasnippet-snippets-0~git20161123/c-mode/stdlib000066400000000000000000000001131303266332200211570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: stdlib # key: std # -- #include yasnippet-snippets-0~git20161123/c-mode/string000066400000000000000000000001121303266332200212030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: string # key: str # -- #include yasnippet-snippets-0~git20161123/c-mode/union000066400000000000000000000001371303266332200210340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: union # key: union # -- typedef union { $0 } ${1:name};yasnippet-snippets-0~git20161123/c-mode/unistd000066400000000000000000000001121303266332200212030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unistd # key: uni # -- #include yasnippet-snippets-0~git20161123/cc-mode/000077500000000000000000000000001303266332200201235ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/cc-mode/case000066400000000000000000000003201303266332200207540ustar00rootroot00000000000000# -*- 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~git20161123/cc-mode/do000066400000000000000000000001231303266332200204440ustar00rootroot00000000000000#name : do { ... } while (...) # key: do # -- do { $0 } while (${1:condition});yasnippet-snippets-0~git20161123/cc-mode/else000066400000000000000000000001231303266332200207720ustar00rootroot00000000000000# -*- mode: snippet -*- # name : else { ... } # key: else # -- else${1: { $0 }}yasnippet-snippets-0~git20161123/cc-mode/file_description000066400000000000000000000004241303266332200233700ustar00rootroot00000000000000# -*- mode: snippet -*- #cotributor: Henrique Jung #name: File description #key: \file #group: doxygen # -- /** * \file ${1:`(file-name-nondirectory(buffer-file-name))`} * \brief ${2:A Documented file.} ${3:* * ${4:Detailed description} * }*/ yasnippet-snippets-0~git20161123/cc-mode/fopen000066400000000000000000000001651303266332200211570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: FILE *fp = fopen(..., ...); # key: fopen # -- FILE *${fp} = fopen(${"file"}, "${r}");yasnippet-snippets-0~git20161123/cc-mode/for000066400000000000000000000001451303266332200206340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:i = 0}; ${2:i < N}; ${3:i++}) { $0 }yasnippet-snippets-0~git20161123/cc-mode/for_n000066400000000000000000000002241303266332200211470ustar00rootroot00000000000000# -*- 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~git20161123/cc-mode/function_description000066400000000000000000000004201303266332200242720ustar00rootroot00000000000000# -*- mode: snippet -*- #cotributor: Henrique Jung #name: Function description #key: \brief #group: doxygen # -- /** * \brief ${1:function description} ${2:* * ${3:Detailed description} * }* \param ${4:param} * \return ${5:return type} */yasnippet-snippets-0~git20161123/cc-mode/if000066400000000000000000000001441303266332200204430ustar00rootroot00000000000000# -*- mode: snippet -*- # name : if (...) { ... } # key: if # -- if (${1:condition}) ${2:{ $0 }}yasnippet-snippets-0~git20161123/cc-mode/ifdef000066400000000000000000000001331303266332200211200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifdef # key: ifdef # -- #ifdef ${1:MACRO} $0 #endif // $1yasnippet-snippets-0~git20161123/cc-mode/inc000066400000000000000000000001201303266332200206100ustar00rootroot00000000000000# -*- mode: snippet -*- # name : #include <...> # key : incs # -- #include <$1>yasnippet-snippets-0~git20161123/cc-mode/inc.1000066400000000000000000000001201303266332200207470ustar00rootroot00000000000000# -*- mode: snippet -*- # name : #include "..." # key : incl # -- #include "$1"yasnippet-snippets-0~git20161123/cc-mode/main000066400000000000000000000001651303266332200207740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- int main(${1:int argc, char *argv[]}) { $0 return 0; } yasnippet-snippets-0~git20161123/cc-mode/math000066400000000000000000000001121303266332200207710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: math # key: math # -- #include $0yasnippet-snippets-0~git20161123/cc-mode/member_description000066400000000000000000000002641303266332200237220ustar00rootroot00000000000000# -*- mode: snippet -*- #cotributor: Henrique Jung #name: Member description #key: !< #group: doxygen # -- /*!< ${1:Detailed description after the member} */yasnippet-snippets-0~git20161123/cc-mode/once000066400000000000000000000002721303266332200207730ustar00rootroot00000000000000#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~git20161123/cc-mode/printf000066400000000000000000000002601303266332200213460ustar00rootroot00000000000000# -*- 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~git20161123/cc-mode/struct000066400000000000000000000001121303266332200213640ustar00rootroot00000000000000#name : struct ... { ... } # key: struct # -- struct ${1:name} { $0 };yasnippet-snippets-0~git20161123/cc-mode/switch000066400000000000000000000003461303266332200213520ustar00rootroot00000000000000# -*- 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~git20161123/cc-mode/ternary000066400000000000000000000001321303266332200215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ternary # key: ? # -- (${1:cond}) ? ${2:then} : ${3:else};yasnippet-snippets-0~git20161123/cc-mode/typedef000066400000000000000000000001311303266332200215010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: typedef # key: typedef # -- typedef ${1:type} ${2:alias};yasnippet-snippets-0~git20161123/cc-mode/while000066400000000000000000000001331303266332200211530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: while # -- while (${1:condition}) { $0 }yasnippet-snippets-0~git20161123/chef-mode/000077500000000000000000000000001303266332200204435ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/chef-mode/action000066400000000000000000000001161303266332200216410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: action # key: action # -- action: ${0:nothing}yasnippet-snippets-0~git20161123/chef-mode/bash000066400000000000000000000003331303266332200213020ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/cookbook_file000066400000000000000000000003041303266332200231700ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/cron000066400000000000000000000002131303266332200213230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cron # key: cron # -- cron "${1:name}" do hour "${2:5}" minute "${3:0}" command "${4:/bin/true}" endyasnippet-snippets-0~git20161123/chef-mode/cronf000066400000000000000000000004561303266332200215020ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/deploy000066400000000000000000000011221303266332200216560ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/directory000066400000000000000000000002331303266332200223700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: directory # key: directory # -- directory "${1:name}" do owner "root" group "root" mode "0755" action :create end yasnippet-snippets-0~git20161123/chef-mode/directoryf000066400000000000000000000003411303266332200225360ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/env000066400000000000000000000001511303266332200211530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: env # key: env # -- env "${1:RAILS_ENV}" do value "${2:production}" endyasnippet-snippets-0~git20161123/chef-mode/execute000066400000000000000000000002421303266332200220260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: execute # key: execute # -- execute "${1:name}" do command "${2:ls -la}" creates "${3:/tmp/something}" action :${4:run} endyasnippet-snippets-0~git20161123/chef-mode/executef000066400000000000000000000005661303266332200222050ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/file000066400000000000000000000002131303266332200213010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: file # key: file # -- file "${1:name}" do owner "root" group "root" mode "0644" action :create endyasnippet-snippets-0~git20161123/chef-mode/filef000066400000000000000000000003421303266332200214520ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/git000066400000000000000000000003641303266332200211540ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/group000066400000000000000000000002231303266332200215170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: group # key: group # -- group "${1:name}" do gid ${2:999} members [${3:'paco','vicente'}] action :create endyasnippet-snippets-0~git20161123/chef-mode/http_request000066400000000000000000000002261303266332200231150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: http_request # key: http_request # -- http_request "${1:some message}" do url "${2:http://example.com/check_in}" endyasnippet-snippets-0~git20161123/chef-mode/http_requestp000066400000000000000000000003761303266332200233030ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/ignore_failure000066400000000000000000000001421303266332200233550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ignore_failure # key: ignore_failure # -- ignore_failure ${0:true}yasnippet-snippets-0~git20161123/chef-mode/inc000066400000000000000000000001311303266332200211320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inc # key: inc # -- include_recipe "${1:example::recipe}"yasnippet-snippets-0~git20161123/chef-mode/link000066400000000000000000000001541303266332200213230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: link # key: link # -- link "${1:/tmp/passwd}" do to "${2:/etc/passwd}" endyasnippet-snippets-0~git20161123/chef-mode/linkf000066400000000000000000000002611303266332200214700ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/log000066400000000000000000000001511303266332200211440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: log # key: log # -- log ("${1:your string to log}") { level :${2:debug} }yasnippet-snippets-0~git20161123/chef-mode/machine000066400000000000000000000002601303266332200217700ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/meta000066400000000000000000000005131303266332200213130ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/not_if000066400000000000000000000001071303266332200216420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: not_if # key: not_if # -- not_if "${1}"yasnippet-snippets-0~git20161123/chef-mode/notifies000066400000000000000000000001571303266332200222110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: notifies # key: notifies # -- notifies :${1:restart}, "${2:service}[${3:name}]"yasnippet-snippets-0~git20161123/chef-mode/only_if000066400000000000000000000001121303266332200220170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: only_if # key: only_if # -- only_if "${1}"yasnippet-snippets-0~git20161123/chef-mode/pac000066400000000000000000000001741303266332200211330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pac # key: pac # -- package "${1:name}" do action :${2:install} version "${3:1.0-1}" endyasnippet-snippets-0~git20161123/chef-mode/pak000066400000000000000000000001741303266332200211430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pak # key: pak # -- package "${1:name}" do action :${2:install} version "${3:1.0-1}" endyasnippet-snippets-0~git20161123/chef-mode/provider000066400000000000000000000001551303266332200222210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: provider # key: provider # -- provider Chef::Provider::${0:Package::Rubygems}yasnippet-snippets-0~git20161123/chef-mode/python000066400000000000000000000002401303266332200217030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: python # key: python # -- python "${1:install something}" do user "${2:root}" cwd "${3:/tmp}" code <<-EOH $0 EOH endyasnippet-snippets-0~git20161123/chef-mode/remote_file000066400000000000000000000003751303266332200226650ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/retries000066400000000000000000000001351303266332200220420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: retries # key: retries # -- retries ${1:1} retry_delay ${2:2}yasnippet-snippets-0~git20161123/chef-mode/role000066400000000000000000000003531303266332200213300ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/ruby000066400000000000000000000002571303266332200213530ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/script000066400000000000000000000003641303266332200216750ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/service000066400000000000000000000003111303266332200220210ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/servicep000066400000000000000000000003401303266332200222030ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/subscribes000066400000000000000000000001661303266332200225350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subscribes # key: subscribes # -- subscribes :${1:restart}, "${2:template}[${3:name}]"yasnippet-snippets-0~git20161123/chef-mode/supports000066400000000000000000000002131303266332200222610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: supports # key: supports # -- supports :status => :${1:true}, :restart => :${2:true}, :reload => :${3:true}yasnippet-snippets-0~git20161123/chef-mode/template000066400000000000000000000002411303266332200221760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: template # key: template # -- template "${1:name}" do source "${2:source}.erb" owner "root" group "root" mode "0644" end yasnippet-snippets-0~git20161123/chef-mode/templatev000066400000000000000000000003431303266332200223670ustar00rootroot00000000000000# -*- 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~git20161123/chef-mode/user000066400000000000000000000004701303266332200213450ustar00rootroot00000000000000# -*- 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~git20161123/cider-repl-mode/000077500000000000000000000000001303266332200215645ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/cider-repl-mode/.yas-parents000066400000000000000000000000151303266332200240270ustar00rootroot00000000000000clojure-mode yasnippet-snippets-0~git20161123/clojure-mode/000077500000000000000000000000001303266332200212015ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/clojure-mode/.yas-parents000066400000000000000000000000121303266332200234410ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20161123/clojure-mode/bench000066400000000000000000000001371303266332200222040ustar00rootroot00000000000000# name: bench # key: bench # -- (dotimes [_ 5 ]$> (time (dotimes [i 1000000]$> $0$> )))$>yasnippet-snippets-0~git20161123/clojure-mode/bp000066400000000000000000000000551303266332200215250ustar00rootroot00000000000000# name: bp # key: bp # -- (swank.core/break) yasnippet-snippets-0~git20161123/clojure-mode/def000066400000000000000000000000451303266332200216610ustar00rootroot00000000000000# name: def # key: def # -- (def $0) yasnippet-snippets-0~git20161123/clojure-mode/defm000066400000000000000000000001111303266332200220300ustar00rootroot00000000000000# name: defmacro # key: defm # -- (defmacro $1 "$2"$> [$3]$> $0)$> yasnippet-snippets-0~git20161123/clojure-mode/defn000066400000000000000000000001011303266332200220300ustar00rootroot00000000000000# name: defn # key: defn # -- (defn $1 "$2"$> [$3]$> $0)$> yasnippet-snippets-0~git20161123/clojure-mode/defr000066400000000000000000000001221303266332200220370ustar00rootroot00000000000000# name: defrecord # key: defr # -- (defrecord ^{"$1"}$> $2$> [$3]$> $0)$> yasnippet-snippets-0~git20161123/clojure-mode/deft000066400000000000000000000001151303266332200220430ustar00rootroot00000000000000# name: deftype # key: deft # -- (deftype ^{"$1"}$> $2$> [$3]$> $0)$>yasnippet-snippets-0~git20161123/clojure-mode/doseq000066400000000000000000000000711303266332200222350ustar00rootroot00000000000000# name: doseq # key: doseq # -- (doseq [$1 $2] $3)$> $0yasnippet-snippets-0~git20161123/clojure-mode/fn000066400000000000000000000000531303266332200215250ustar00rootroot00000000000000# name: fn # key: fn # -- (fn [$1] $0)$> yasnippet-snippets-0~git20161123/clojure-mode/for000066400000000000000000000000611303266332200217070ustar00rootroot00000000000000# name: for # key: for # -- (for [$1 $2] $3)$> yasnippet-snippets-0~git20161123/clojure-mode/if000066400000000000000000000001131303266332200215150ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: if # key: if # -- (if $1 $2$> $3)$> $0 yasnippet-snippets-0~git20161123/clojure-mode/ifl000066400000000000000000000001161303266332200216740ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: ifl # key: ifl # -- (if-let [$1 $2] $3)$> $0yasnippet-snippets-0~git20161123/clojure-mode/import000066400000000000000000000000621303266332200224340ustar00rootroot00000000000000# name: import # key: import # -- (:import ($1))$>yasnippet-snippets-0~git20161123/clojure-mode/is000066400000000000000000000001011303266332200215270ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: is # key: is # -- (is (= $1 $2)) yasnippet-snippets-0~git20161123/clojure-mode/let000066400000000000000000000001161303266332200217060ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: let # key: let # -- (let [$1 $2]$> $3)$> $0 yasnippet-snippets-0~git20161123/clojure-mode/map000066400000000000000000000000771303266332200217050ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: map # key: map # -- (map $1 $2)yasnippet-snippets-0~git20161123/clojure-mode/map.lambda000066400000000000000000000001131303266332200231130ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: map lambda # key: map # -- (map #($1) $2)$>yasnippet-snippets-0~git20161123/clojure-mode/mdoc000066400000000000000000000001021303266332200220370ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: mdoc # key: mdoc # -- ^{:doc "$1"}yasnippet-snippets-0~git20161123/clojure-mode/ns000066400000000000000000000010611303266332200215420ustar00rootroot00000000000000# -*- 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~git20161123/clojure-mode/opts000066400000000000000000000001021303266332200221020ustar00rootroot00000000000000# key: opts # name: opts # -- {:keys [$1]$> :or {$2}$> :as $3}$>yasnippet-snippets-0~git20161123/clojure-mode/pr000066400000000000000000000000751303266332200215470ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: pr # key: pr # -- (prn $1) $0yasnippet-snippets-0~git20161123/clojure-mode/print000066400000000000000000000001071303266332200222560ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: print # key: print # -- (println $1) $0yasnippet-snippets-0~git20161123/clojure-mode/reduce000066400000000000000000000001311303266332200223660ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: reduce # key: reduce # -- (reduce ${1:(fn [p n] $0)} $2) yasnippet-snippets-0~git20161123/clojure-mode/require000066400000000000000000000000741303266332200226010ustar00rootroot00000000000000# name: require # key: require # -- (:require [$1 :as $2])$>yasnippet-snippets-0~git20161123/clojure-mode/test000066400000000000000000000001021303266332200220740ustar00rootroot00000000000000# name: test # key: test # -- (deftest $1 (is (= $2))$> $0)$> yasnippet-snippets-0~git20161123/clojure-mode/try000066400000000000000000000001101303266332200217320ustar00rootroot00000000000000# name: try # key: try # -- (try $1$> (catch ${2:Exception} e$> $3$>))$>yasnippet-snippets-0~git20161123/clojure-mode/use000066400000000000000000000000651303266332200217210ustar00rootroot00000000000000# name: use # key: use # -- (:use [$1 :refer [$2]])$>yasnippet-snippets-0~git20161123/clojure-mode/when000066400000000000000000000001201303266332200220560ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: when # key: when # -- (when $1 $2)$> $0$> yasnippet-snippets-0~git20161123/clojure-mode/whenl000066400000000000000000000001301303266332200222330ustar00rootroot00000000000000# -*- coding: utf-8 -*- # name: whenl # key: whenl # -- (when-let [$1 $2] $3)$> $0$>yasnippet-snippets-0~git20161123/cmake-mode/000077500000000000000000000000001303266332200206165ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/cmake-mode/add_executable000066400000000000000000000001741303266332200234740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add_executable # key: exe # -- add_executable($1 ${2:main.cpp}) target_link_libraries($1 $3)yasnippet-snippets-0~git20161123/cmake-mode/add_library000066400000000000000000000001671303266332200230210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add_library # key: lib # -- add_library($1 ${2:class.cpp}) target_link_libraries($1 $3)yasnippet-snippets-0~git20161123/cmake-mode/cmake_minimum_required000066400000000000000000000001571303266332200252570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cmake_minimum_required # key: min # -- cmake_minimum_required(VERSION ${1:2.6})yasnippet-snippets-0~git20161123/cmake-mode/foreach000066400000000000000000000001641303266332200221510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: foreach # key: for # -- foreach(${1:var} \${${2:array}}) $3 endforeach($1)$0yasnippet-snippets-0~git20161123/cmake-mode/function000066400000000000000000000001521303266332200223640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- function(${1:name}) $2 endfunction($1)$0yasnippet-snippets-0~git20161123/cmake-mode/if000066400000000000000000000001211303266332200211310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if(${1:cond}) $2 endif($1)$0yasnippet-snippets-0~git20161123/cmake-mode/ifelse000066400000000000000000000001651303266332200220120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifelse # key: if # -- if(${1:cond}) $2 else(${3:cond}) $0 endif($1)$0yasnippet-snippets-0~git20161123/cmake-mode/include000066400000000000000000000001041303266332200221570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: include # key: inc # -- include($0) yasnippet-snippets-0~git20161123/cmake-mode/macro000066400000000000000000000001541303266332200216420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: macro # key: macro # -- macro(${1:name}${2: args}) $2 endmacro($1)$0yasnippet-snippets-0~git20161123/cmake-mode/message000066400000000000000000000001211303266332200221570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: message # key: msg # -- message(${1:STATUS }"$0")yasnippet-snippets-0~git20161123/cmake-mode/option000066400000000000000000000001431303266332200220470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: option # key: opt # -- option(${1:OPT} "${2:docstring}" ${3:value})yasnippet-snippets-0~git20161123/cmake-mode/project000066400000000000000000000001041303266332200222020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: project # key: proj # -- project($0)yasnippet-snippets-0~git20161123/cmake-mode/set000066400000000000000000000001141303266332200213300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: set # key: set # -- set(${1:var} ${2:value})yasnippet-snippets-0~git20161123/conf-unix-mode/000077500000000000000000000000001303266332200214445ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/conf-unix-mode/.yas-parents000066400000000000000000000000111303266332200237030ustar00rootroot00000000000000text-modeyasnippet-snippets-0~git20161123/conf-unix-mode/section000066400000000000000000000001731303266332200230340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # section for xorg.conf # -- Section "${1:Device}" $0 EndSectionyasnippet-snippets-0~git20161123/cperl-mode/000077500000000000000000000000001303266332200206435ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/cperl-mode/.yas-parents000066400000000000000000000000121303266332200231030ustar00rootroot00000000000000perl-mode yasnippet-snippets-0~git20161123/cpp-omnet-mode/000077500000000000000000000000001303266332200214405ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/cpp-omnet-mode/EV000066400000000000000000000001101303266332200216650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: EV # key: ev # -- EV << "${1:string}"$0;yasnippet-snippets-0~git20161123/cpp-omnet-mode/emit_signal000066400000000000000000000001351303266332200236550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: emit_signal # key: emit # -- emit(${1:signal_id}, ${2:long});yasnippet-snippets-0~git20161123/cpp-omnet-mode/intuniform000066400000000000000000000001301303266332200235470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: intuniform # key: intuni # -- intuniform(${1:0}, ${2:1})yasnippet-snippets-0~git20161123/cpp-omnet-mode/math000066400000000000000000000001061303266332200223110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: math # key: math # -- #include yasnippet-snippets-0~git20161123/cpp-omnet-mode/nan000066400000000000000000000001011303266332200221270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nan # key: nan # -- isnan(${1:x})yasnippet-snippets-0~git20161123/cpp-omnet-mode/omnet000066400000000000000000000001141303266332200225010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: omnet # key: omnet # -- #include yasnippet-snippets-0~git20161123/cpp-omnet-mode/parameter_omnetpp000066400000000000000000000001351303266332200251040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parameter_omnetpp # key: par # -- ${1:var} = par("${2:par}");yasnippet-snippets-0~git20161123/cpp-omnet-mode/scheduleAt000066400000000000000000000001501303266332200234400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: scheduleAt # key: sched # -- scheduleAt(simTime()+${1:1.0}, ${2:event});yasnippet-snippets-0~git20161123/cpp-omnet-mode/uniform000066400000000000000000000001461303266332200230430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uniform # key: uni # uniform distribution # -- uniform(${1:0}, ${2:1})yasnippet-snippets-0~git20161123/csharp-mode/000077500000000000000000000000001303266332200210165ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/csharp-mode/.yas-parents000066400000000000000000000000101303266332200232540ustar00rootroot00000000000000cc-mode yasnippet-snippets-0~git20161123/csharp-mode/attrib000066400000000000000000000002531303266332200222260ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : private attribute ....; # key: attrib # -- /// /// $3 /// private $1 $2;yasnippet-snippets-0~git20161123/csharp-mode/attrib.1000066400000000000000000000005501303266332200223650ustar00rootroot00000000000000#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~git20161123/csharp-mode/attrib.2000066400000000000000000000014171303266332200223710ustar00rootroot00000000000000#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~git20161123/csharp-mode/class000066400000000000000000000006121303266332200220450ustar00rootroot00000000000000#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~git20161123/csharp-mode/comment000066400000000000000000000002421303266332200224010ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// /// $1 /// yasnippet-snippets-0~git20161123/csharp-mode/comment.1000066400000000000000000000002451303266332200225430ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $2yasnippet-snippets-0~git20161123/csharp-mode/comment.2000066400000000000000000000002371303266332200225450ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $1yasnippet-snippets-0~git20161123/csharp-mode/comment.3000066400000000000000000000002651303266332200225470ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : /// ... # key: comment # -- /// $2yasnippet-snippets-0~git20161123/csharp-mode/fore000066400000000000000000000002271303266332200216750ustar00rootroot00000000000000#contributor : Jostein Kjønigsen #name : foreach { ... } # key: fore # -- foreach (${1:var} ${2:item} in ${3:list}) { $0 }yasnippet-snippets-0~git20161123/csharp-mode/method000066400000000000000000000005171303266332200222240ustar00rootroot00000000000000#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~git20161123/csharp-mode/namespace000066400000000000000000000002141303266332200226720ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : namespace .. { ... } # key: namespace # -- namespace $1 { $0 }yasnippet-snippets-0~git20161123/csharp-mode/prop000066400000000000000000000004171303266332200217230ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : property ... ... { ... } # key: prop # -- /// /// $5 /// /// $6 $1 $2 $3 { get { return this.$4; } set { this.$4 = value; } }yasnippet-snippets-0~git20161123/csharp-mode/region000066400000000000000000000002201303266332200222160ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : #region ... #endregion # key: region # -- #region $1 $0 #endregionyasnippet-snippets-0~git20161123/csharp-mode/using000066400000000000000000000001641303266332200220670ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using ...; # key: using # -- using $1;yasnippet-snippets-0~git20161123/csharp-mode/using.1000066400000000000000000000001731303266332200222260ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using System; # key: using # -- using System;yasnippet-snippets-0~git20161123/csharp-mode/using.2000066400000000000000000000002021303266332200222200ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : using System....; # key: using # -- using System.$1;yasnippet-snippets-0~git20161123/css-mode/000077500000000000000000000000001303266332200203265ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/css-mode/bg000066400000000000000000000000771303266332200206450ustar00rootroot00000000000000#name : background-color: ... # -- background-color: #${1:DDD};yasnippet-snippets-0~git20161123/css-mode/bg.1000066400000000000000000000000751303266332200210020ustar00rootroot00000000000000#name : background-image: ... # -- background-image: url($1);yasnippet-snippets-0~git20161123/css-mode/bor000066400000000000000000000001131303266332200210260ustar00rootroot00000000000000#name : border size style color # -- border: ${1:1px} ${2:solid} #${3:999};yasnippet-snippets-0~git20161123/css-mode/cl000066400000000000000000000001221303266332200206420ustar00rootroot00000000000000#contributor : rejeep #name : clear: ... # -- clear: $1; yasnippet-snippets-0~git20161123/css-mode/disp.block000066400000000000000000000001331303266332200222760ustar00rootroot00000000000000#contributor : rejeep #name : display: block # -- display: block; yasnippet-snippets-0~git20161123/css-mode/disp.inline000066400000000000000000000001351303266332200224640ustar00rootroot00000000000000#contributor : rejeep #name : display: inline # -- display: inline; yasnippet-snippets-0~git20161123/css-mode/disp.none000066400000000000000000000001311303266332200221410ustar00rootroot00000000000000#contributor : rejeep #name : display: none # -- display: none; yasnippet-snippets-0~git20161123/css-mode/ff000066400000000000000000000001361303266332200206440ustar00rootroot00000000000000#contributor : rejeep #name : font-family: ... # -- font-family: $1; yasnippet-snippets-0~git20161123/css-mode/fs000066400000000000000000000001371303266332200206620ustar00rootroot00000000000000#contributor : rejeep #name : font-size: ... # -- font-size: ${12px}; yasnippet-snippets-0~git20161123/css-mode/mar.bottom000066400000000000000000000001421303266332200223300ustar00rootroot00000000000000#contributor : rejeep #name : margin-bottom: ... # -- margin-bottom: $1; yasnippet-snippets-0~git20161123/css-mode/mar.left000066400000000000000000000001361303266332200217610ustar00rootroot00000000000000#contributor : rejeep #name : margin-left: ... # -- margin-left: $1; yasnippet-snippets-0~git20161123/css-mode/mar.mar000066400000000000000000000001241303266332200216030ustar00rootroot00000000000000#contributor : rejeep #name : margin: ... # -- margin: $1; yasnippet-snippets-0~git20161123/css-mode/mar.margin000066400000000000000000000002041303266332200223000ustar00rootroot00000000000000#contributor : rejeep #name : margin top right bottom left # -- margin: ${top} ${right} ${bottom} ${left}; yasnippet-snippets-0~git20161123/css-mode/mar.right000066400000000000000000000001401303266332200221370ustar00rootroot00000000000000#contributor : rejeep #name : margin-right: ... # -- margin-right: $1; yasnippet-snippets-0~git20161123/css-mode/mar.top000066400000000000000000000001341303266332200216270ustar00rootroot00000000000000#contributor : rejeep #name : margin-top: ... # -- margin-top: $1; yasnippet-snippets-0~git20161123/css-mode/pad.bottom000066400000000000000000000001441303266332200223170ustar00rootroot00000000000000#contributor : rejeep #name : padding-bottom: ... # -- padding-bottom: $1; yasnippet-snippets-0~git20161123/css-mode/pad.left000066400000000000000000000001401303266332200217410ustar00rootroot00000000000000#contributor : rejeep #name : padding-left: ... # -- padding-left: $1; yasnippet-snippets-0~git20161123/css-mode/pad.pad000066400000000000000000000001261303266332200215570ustar00rootroot00000000000000#contributor : rejeep #name : padding: ... # -- padding: $1; yasnippet-snippets-0~git20161123/css-mode/pad.padding000066400000000000000000000002071303266332200224210ustar00rootroot00000000000000#contributor : rejeep #name : padding: top right bottom left # -- padding: ${top} ${right} ${bottom} ${left}; yasnippet-snippets-0~git20161123/css-mode/pad.right000066400000000000000000000001421303266332200221260ustar00rootroot00000000000000#contributor : rejeep #name : padding-right: ... # -- padding-right: $1; yasnippet-snippets-0~git20161123/css-mode/pad.top000066400000000000000000000001361303266332200216160ustar00rootroot00000000000000#contributor : rejeep #name : padding-top: ... # -- padding-top: $1; yasnippet-snippets-0~git20161123/css-mode/v000066400000000000000000000002271303266332200205170ustar00rootroot00000000000000# -*- 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~git20161123/dix-mode/000077500000000000000000000000001303266332200203225ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/dix-mode/e-in-mono-section000066400000000000000000000005221303266332200235040ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: in monodix section # key: after leaving # -- ${1:$(dix-yas-lm-to-i)} $0yasnippet-snippets-0~git20161123/dix-mode/e-in-pardef000066400000000000000000000003211303266332200223300ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: in pardefs # key:

$1 $1$0

yasnippet-snippets-0~git20161123/dix-mode/p000066400000000000000000000003401303266332200205010ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name:

element # key:

$1 $1$0

yasnippet-snippets-0~git20161123/dix-mode/par000066400000000000000000000004651303266332200210340ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: element # key:

$0yasnippet-snippets-0~git20161123/dix-mode/pardef000066400000000000000000000016171303266332200215130ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: element # key:

${1:$(dix-yas-pdname-to-suffix yas-text)} ${1:$(dix-yas-pdname-to-suffix yas-text)}${1:$(dix-yas-pdname-to-pos yas-text)}$2

${1:$(dix-yas-pdname-to-suffix yas-text)}$0 ${1:$(dix-yas-pdname-to-suffix yas-text)}${1:$(dix-yas-pdname-to-pos yas-text)}$2

${1:$(dix-yas-pdname-to-suffix yas-text)} ${1:$(dix-yas-pdname-to-suffix yas-text)}${1:$(dix-yas-pdname-to-pos yas-text)}$2

${1:$(dix-yas-pdname-to-suffix yas-text)} ${1:$(dix-yas-pdname-to-suffix yas-text)}${1:$(dix-yas-pdname-to-pos yas-text)}$2

yasnippet-snippets-0~git20161123/dix-mode/s000066400000000000000000000006041303266332200205070ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: element # key: $0yasnippet-snippets-0~git20161123/dix-mode/sdef000066400000000000000000000003421303266332200211650ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: element # key: yasnippet-snippets-0~git20161123/dix-mode/section000066400000000000000000000006211303266332200217100ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name:
element # key: $0
yasnippet-snippets-0~git20161123/elixir-mode/000077500000000000000000000000001303266332200210325ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/elixir-mode/.yas-parents000066400000000000000000000000121303266332200232720ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20161123/elixir-mode/call000066400000000000000000000001321303266332200216640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: call # key: call # -- GenServer.call(${1:__MODULE__}, $0) yasnippet-snippets-0~git20161123/elixir-mode/case000066400000000000000000000001121303266332200216620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: case # key: case # -- case $1 do $0 end yasnippet-snippets-0~git20161123/elixir-mode/cast000066400000000000000000000001321303266332200217030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cast # key: cast # -- GenServer.cast(${1:__MODULE__}, $0) yasnippet-snippets-0~git20161123/elixir-mode/cond000066400000000000000000000001071303266332200216760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cond # key: cond # -- cond do $0 end yasnippet-snippets-0~git20161123/elixir-mode/def000066400000000000000000000001421303266332200215100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- def ${1:function}${2:(${3:args})} do $0 end yasnippet-snippets-0~git20161123/elixir-mode/defmacro000066400000000000000000000001261303266332200225340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmacro # key: defmacro # -- defmacro $1 do $0 end yasnippet-snippets-0~git20161123/elixir-mode/defmacrop000066400000000000000000000001311303266332200227100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmacrop # key: defmacrop # -- defmacrop $1 do $0 end yasnippet-snippets-0~git20161123/elixir-mode/defmodule000066400000000000000000000001311303266332200227140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defmodule # key: defmodule # -- defmodule $1 do $0 end yasnippet-snippets-0~git20161123/elixir-mode/defp000066400000000000000000000001121303266332200216650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defp # key: defp # -- defp $1 do $0 end yasnippet-snippets-0~git20161123/elixir-mode/do000066400000000000000000000000761303266332200213620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: do # -- do $0 end yasnippet-snippets-0~git20161123/elixir-mode/doc000066400000000000000000000001041303266332200215150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: doc # -- @doc """ $0 """ yasnippet-snippets-0~git20161123/elixir-mode/fn000066400000000000000000000001071303266332200213560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn # key: fn # -- fn ${1:x} -> $1$0 endyasnippet-snippets-0~git20161123/elixir-mode/for000066400000000000000000000001321303266332200215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${2:x} <- ${1:enum} do $2$0 end yasnippet-snippets-0~git20161123/elixir-mode/hcall000066400000000000000000000002071303266332200220370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hcall # key: hcall # -- def handle_call($1, _from, state) do reply = $0 {:reply, reply, state} end yasnippet-snippets-0~git20161123/elixir-mode/hcast000066400000000000000000000001631303266332200220570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hcast # key: hcast # -- def handle_cast($1, state) do $0 {:noreply, state} end yasnippet-snippets-0~git20161123/elixir-mode/hinfo000066400000000000000000000001631303266332200220600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hinfo # key: hinfo # -- def handle_info($1, state) do $0 {:noreply, state} end yasnippet-snippets-0~git20161123/elixir-mode/if000066400000000000000000000001201303266332200213440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if ${1:condition} do $0 end yasnippet-snippets-0~git20161123/elixir-mode/ife000066400000000000000000000001401303266332200215130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if-else # key: ife # -- if ${1:condition} do $2 else $3 end yasnippet-snippets-0~git20161123/elixir-mode/io000066400000000000000000000001021303266332200213550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: io # key: io # -- IO.puts("$1")$0 yasnippet-snippets-0~git20161123/elixir-mode/iop000066400000000000000000000001221303266332200215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iop # key: iop # -- IO.puts("$1 #{inspect $1}")$0 yasnippet-snippets-0~git20161123/elixir-mode/mdoc000066400000000000000000000001211303266332200216710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moduledoc # key: mdoc # -- @moduledoc """ $0 """ yasnippet-snippets-0~git20161123/elixir-mode/pry000066400000000000000000000001301303266332200215610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pry # key: pry # group: debug # -- require IEx; IEx.pry yasnippet-snippets-0~git20161123/elixir-mode/test000066400000000000000000000001141303266332200217300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test # key: test # -- test "$1" do $0 end yasnippet-snippets-0~git20161123/elixir-mode/unless000066400000000000000000000001341303266332200222640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unless # key: unless # -- unless ${1:condition} do $0 end yasnippet-snippets-0~git20161123/emacs-lisp-mode/000077500000000000000000000000001303266332200215735ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/emacs-lisp-mode/.read_me000066400000000000000000000004731303266332200231740ustar00rootroot00000000000000-*- 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~git20161123/emacs-lisp-mode/add-hook000066400000000000000000000002321303266332200232010ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: add-hook #key: add-hook #key: ah # -- (add-hook '${1:name}-hook ${2:'${3:function}})$0 yasnippet-snippets-0~git20161123/emacs-lisp-mode/and000066400000000000000000000001151303266332200222550ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: and #key: and #key: a # -- (and $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/append000066400000000000000000000001161303266332200227630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: append #key: append # -- (append $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/apply000066400000000000000000000001131303266332200226360ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: apply #key: apply # -- (apply $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/aref000066400000000000000000000001321303266332200224270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: aref #key: aref # -- (aref ${1:array} {2:index})yasnippet-snippets-0~git20161123/emacs-lisp-mode/aset000066400000000000000000000001501303266332200224460ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: aset #key: aset # -- (aset ${1:array} ${2:index} ${3:element})yasnippet-snippets-0~git20161123/emacs-lisp-mode/assq000066400000000000000000000001301303266332200224570ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: assq #key: assq # -- (assq ${1:key} ${2:list})yasnippet-snippets-0~git20161123/emacs-lisp-mode/autoload000066400000000000000000000002331303266332200233240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: autoload #key: autoload # -- (autoload ${1:function} "${2:filename}"${3: "docstring"}${4: interactive}${5: type})yasnippet-snippets-0~git20161123/emacs-lisp-mode/backward-char000066400000000000000000000001541303266332200242070ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: backward-char #key: backward-char #key: bc # -- (backward-char $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/beginning-of-line000066400000000000000000000001661303266332200250100ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: beginning-of-line #key: beginning-of-line #key: bol # -- (beginning-of-line)yasnippet-snippets-0~git20161123/emacs-lisp-mode/bounds-of-thing-at-point000066400000000000000000000002201303266332200262440ustar00rootroot00000000000000#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)yasnippet-snippets-0~git20161123/emacs-lisp-mode/buffer-file-name000066400000000000000000000001631303266332200246220ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-file-name #key: buffer-file-name #key: bfn # -- (buffer-file-name)yasnippet-snippets-0~git20161123/emacs-lisp-mode/buffer-modified-p000066400000000000000000000001711303266332200250010ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-modified-p #key: buffer-modified-p #key: bmp # -- (buffer-modified-p $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/buffer-substring000066400000000000000000000002061303266332200250030ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-substring #key: buffer-substring #key: bs # -- (buffer-substring ${1:start} ${2:end})yasnippet-snippets-0~git20161123/emacs-lisp-mode/buffer-substring-no-properties000066400000000000000000000002621303266332200276110ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: buffer-substring-no-properties #key: buffer-substring-no-properties #key: bsnp # -- (buffer-substring-no-properties ${1:start} ${2:end})yasnippet-snippets-0~git20161123/emacs-lisp-mode/car000066400000000000000000000001051303266332200222570ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: car #key: car # -- (car $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/cdr000066400000000000000000000001051303266332200222620ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cdr #key: cdr # -- (cdr $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/concat000066400000000000000000000001161303266332200227630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: concat #key: concat # -- (concat $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/cond000066400000000000000000000001431303266332200224370ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cond #key: cond # -- (cond (${1:condition} ${2:body})$0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/condition-case000066400000000000000000000001571303266332200244200ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: condition-case #key: condition-case #key: cc # -- (condition-case $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/cons000066400000000000000000000001101303266332200224500ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: cons #key: cons # -- (cons $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/consp000066400000000000000000000001131303266332200226330ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: consp #key: consp # -- (consp $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/const000066400000000000000000000001621303266332200226430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defconst # key: const # -- (defconst ${1:name} ${2:value}${3: "${4:docstring}"})$0yasnippet-snippets-0~git20161123/emacs-lisp-mode/copy-directory000066400000000000000000000002421303266332200244700ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: copy-directory #key: copy-directory #key: cd # -- (copy-directory ${1:directory} {2:target}${3: keep-time}${4: parents})yasnippet-snippets-0~git20161123/emacs-lisp-mode/copy-file000066400000000000000000000002661303266332200234110ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: copy-file #key: copy-file #key: cf # -- (copy-file ${1:filename} ${2:newname}${3: ok-if-already-exists}${4: keep-time}{5: preserve-uid-gid})yasnippet-snippets-0~git20161123/emacs-lisp-mode/current-buffer000066400000000000000000000001541303266332200244470ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: current-buffer #key: current-buffer #key: cb # -- (current-buffer)yasnippet-snippets-0~git20161123/emacs-lisp-mode/custom-autoload000066400000000000000000000002201303266332200246300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: custom-autoload #key: custom-autoload #key: ca # -- (custom-autoload ${1:symbol} ${2:load}${3: noset})yasnippet-snippets-0~git20161123/emacs-lisp-mode/defalias000066400000000000000000000001731303266332200232670ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defalias #key: defalias # -- (defalias '${1:symbol} '${2:alias}${3: "docstring"})yasnippet-snippets-0~git20161123/emacs-lisp-mode/defcustom000066400000000000000000000002111303266332200235010ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defcustom #key: defcustom # -- (defcustom ${1:symbol} ${2:standard} "${3:docstring}"${4: args})yasnippet-snippets-0~git20161123/emacs-lisp-mode/define-key000066400000000000000000000002021303266332200235300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: define-key #key: define-key #key: dk # -- (define-key ${1:mode}-map (kbd "${2:key}") $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/defsubst000066400000000000000000000001241303266332200233320ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: defsubst #key: defsubst # -- (defsubst $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/defun000066400000000000000000000002151303266332200226150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defun # key: def # -- (defun ${1:fun} (${2:args}) "${3:docstring}" ${4:(interactive${5: "${6:P}"})} $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/defvar000066400000000000000000000001241303266332200227620ustar00rootroot00000000000000#name: defvar #key: defvar # -- (defvar ${1:symbol}${2: initvalue}${3: "docstring"})yasnippet-snippets-0~git20161123/emacs-lisp-mode/delete-char000066400000000000000000000001461303266332200236740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-char #key: delete-char #key: dc # -- (delete-char $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/delete-directory000066400000000000000000000002201303266332200247540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-directory #key: delete-directory #key: dd # -- (delete-directory ${1:dicretory}${2: recursive})yasnippet-snippets-0~git20161123/emacs-lisp-mode/delete-file000066400000000000000000000001461303266332200236760ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-file #key: delete-file #key: df # -- (delete-file $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/delete-region000066400000000000000000000001541303266332200242410ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: delete-region #key: delete-region #key: dr # -- (delete-region $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/directory-files000066400000000000000000000002371303266332200246240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: directory-files #key: directory-files #key: df # -- (directory-files ${1:directory}${2: full}${3: match}${4: nosort})yasnippet-snippets-0~git20161123/emacs-lisp-mode/dired.process_marked000066400000000000000000000007071303266332200256110ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/dolist000066400000000000000000000001161303266332200230120ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: dolist #key: dolist # -- (dolist $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/end-of-line000066400000000000000000000001441303266332200236120ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: end-of-line #key: end-of-line #key: eol # -- (end-of-line)yasnippet-snippets-0~git20161123/emacs-lisp-mode/eq000066400000000000000000000001021303266332200221140ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: eq #key: eq # -- (eq $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/equal000066400000000000000000000001131303266332200226200ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: equal #key: equal # -- (equal $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/error000066400000000000000000000001501303266332200226430ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: error #key: error # -- (error "${1:message}"${2: format-args})yasnippet-snippets-0~git20161123/emacs-lisp-mode/ert-deftest000066400000000000000000000002011303266332200237350ustar00rootroot00000000000000# -*- mode: snippet -*- #contributor: Raghav Kumar Gautam #name: ert-deftest #key: edt # -- (ert-deftest ${1:test-name} () $0) yasnippet-snippets-0~git20161123/emacs-lisp-mode/expand-file-name000066400000000000000000000001661303266332200246330ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: expand-file-name #key: expand-file-name #key: efn # -- (expand-file-name $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/fboundp000066400000000000000000000001221303266332200231460ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: fboundp #key: fboundp # -- (fboundp '$0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/file-name-directory000066400000000000000000000001771303266332200253620ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-directory #key: file-name-directory #key: fnd # -- (file-name-directory $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/file-name-extension000066400000000000000000000002261303266332200253650ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-extension #key: file-name-extension #key: fne # -- (file-name-extension ${1:filename}${2: period})yasnippet-snippets-0~git20161123/emacs-lisp-mode/file-name-nondirectory000066400000000000000000000002101303266332200260610ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-name-nondirectory #key: file-name-nondirectory #key: fnn # -- (file-name-nondirectory $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/file-name-sans-extension000066400000000000000000000002171303266332200263270ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/file-relative-name000066400000000000000000000001741303266332200251660ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: file-relative-name #key: file-relative-name #key: frn # -- (file-relative-name $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/file.process000066400000000000000000000011021303266332200241040ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/file.read-lines000066400000000000000000000005401303266332200244560ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/find-file000066400000000000000000000001401303266332200233460ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: find-file #key: find-file #key: ff # -- (find-file $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/find-replace000066400000000000000000000010761303266332200240530ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/format000066400000000000000000000001461303266332200230070ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: format #key: f # -- (format "${1:message}" ${2:format-args})yasnippet-snippets-0~git20161123/emacs-lisp-mode/forward-char000066400000000000000000000001511303266332200240720ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: forward-char #key: forward-char #key: fc # -- (forward-char $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/forward-line000066400000000000000000000001511303266332200241040ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: forward-line #key: forward-line #key: fl # -- (forward-line $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/funcall000066400000000000000000000001211303266332200231340ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: funcall #key: funcall # -- (funcall $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/function000066400000000000000000000001241303266332200233400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: function #key: function # -- (function $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/get000066400000000000000000000001331303266332200222720ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: get #key: get # -- (get ${1:symbol} {2:propname})yasnippet-snippets-0~git20161123/emacs-lisp-mode/global-set-key000066400000000000000000000002011303266332200243260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: global-set-key #key: global-set-key #key: gsk # -- (global-set-key (kbd "${1:key}") $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/goto-char000066400000000000000000000001401303266332200233740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: goto-char #key: goto-char #key: gc # -- (goto-char $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/grabstring000066400000000000000000000001711303266332200236570ustar00rootroot00000000000000#name : grab buffer substring #contributor : Xah Lee # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) yasnippet-snippets-0~git20161123/emacs-lisp-mode/grabthing000066400000000000000000000001361303266332200234630ustar00rootroot00000000000000#name : grab word under cursor #contributor : Xah Lee # -- (setq $0 (thing-at-point 'symbol)) yasnippet-snippets-0~git20161123/emacs-lisp-mode/hash000066400000000000000000000001121303266332200224330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hash # key: hash # -- (make-hash-table $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/if000066400000000000000000000001021303266332200221050ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: if #key: if # -- (if $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/insert000066400000000000000000000001261303266332200230210ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: insert #key: insert #key: i # -- (insert $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/insert-file-contents000066400000000000000000000002671303266332200255770ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: insert-file-contents #key: insert-file-contents #key: ifc # -- (insert-file-contents ${1:filename}${2: visit}${3: beg}${4: end}${5: replace})yasnippet-snippets-0~git20161123/emacs-lisp-mode/interactive000066400000000000000000000001501303266332200240270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: interactive #key: interactive # -- (interactive${1: "${2:P}"})yasnippet-snippets-0~git20161123/emacs-lisp-mode/kbd000066400000000000000000000001071303266332200222540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: kbd #key: kbd # -- (kbd "$0")yasnippet-snippets-0~git20161123/emacs-lisp-mode/kill-buffer000066400000000000000000000001461303266332200237210ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: kill-buffer #key: kill-buffer #key: kb # -- (kill-buffer $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/lambda000066400000000000000000000002071303266332200227350ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: lambda #key: lam # -- (lambda ($1) ${2:(interactive${3: "$4"}) }$0) yasnippet-snippets-0~git20161123/emacs-lisp-mode/length000066400000000000000000000001161303266332200227750ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: length #key: length # -- (length $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/let000066400000000000000000000001421303266332200222770ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: let #key: let #key: l # -- (let${1:*} (${2:args}) $0) yasnippet-snippets-0~git20161123/emacs-lisp-mode/line-beginning-position000066400000000000000000000002101303266332200262360ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: line-beginning-position #key: line-beginning-position #key: lbp # -- (line-beginning-position)yasnippet-snippets-0~git20161123/emacs-lisp-mode/line-end-position000066400000000000000000000001661303266332200250560ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: line-end-position #key: line-end-position #key: lep # -- (line-end-position)yasnippet-snippets-0~git20161123/emacs-lisp-mode/list000066400000000000000000000001101303266332200224610ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: list #key: list # -- (list $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/looking-at000066400000000000000000000001431303266332200235600ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: looking-at #key: looking-at #key: la # -- (looking-at $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/make-directory000066400000000000000000000002101303266332200244260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: make-directory #key: make-directory #key: md # -- (make-directory ${1:directory}${2: parents})yasnippet-snippets-0~git20161123/emacs-lisp-mode/make-local-variable000066400000000000000000000001771303266332200253130ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: make-local-variable #key: make-local-variable #key: mlv # -- (make-local-variable $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/mapc000066400000000000000000000001261303266332200224350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: mapc #key: mapc # -- (mapc ${1:function} $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/mapcar000066400000000000000000000001161303266332200227570ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: mapcar #key: mapcar # -- (mapcar $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/match-beginning000066400000000000000000000001621303266332200245470ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-beginning #key: match-beginning #key: mb # -- (match-beginning $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/match-end000066400000000000000000000001401303266332200233510ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-end #key: match-end #key: me # -- (match-end $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/match-string000066400000000000000000000001511303266332200241130ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: match-string #key: match-string #key: ms # -- (match-string $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/memq000066400000000000000000000001341303266332200224530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: memq #key: memq # -- (memq ${1:element} ${2:list})yasnippet-snippets-0~git20161123/emacs-lisp-mode/message000066400000000000000000000001661303266332200231450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: message #key: message #key: m # -- (message "${1:message}"${2: format-args})yasnippet-snippets-0~git20161123/emacs-lisp-mode/minor_mode000066400000000000000000000007231303266332200236500ustar00rootroot00000000000000# -*- 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~git20161123/emacs-lisp-mode/not000066400000000000000000000001151303266332200223130ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: not #key: not #key: n # -- (not $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/nth000066400000000000000000000001271303266332200223070ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: nth #key: nth # -- (nth ${1:index} ${2:list})yasnippet-snippets-0~git20161123/emacs-lisp-mode/null000066400000000000000000000001101303266332200224600ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: null #key: null # -- (null $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/number-to-string000066400000000000000000000001661303266332200247350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: number-to-string #key: number-to-string #key: nts # -- (number-to-string $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/or000066400000000000000000000001121303266332200221300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: or #key: or #key: o # -- (or $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/point000066400000000000000000000001201303266332200226400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point #key: point #key: p # -- (point)yasnippet-snippets-0~git20161123/emacs-lisp-mode/point-max000066400000000000000000000001241303266332200234270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point-max #key: point-max # -- (point-max)yasnippet-snippets-0~git20161123/emacs-lisp-mode/point-min000066400000000000000000000001351303266332200234270ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: point-min #key: point-min #key: pm # -- (point-min)yasnippet-snippets-0~git20161123/emacs-lisp-mode/princ000066400000000000000000000001131303266332200226240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: princ #key: princ # -- (princ $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/print000066400000000000000000000001131303266332200226450ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: print #key: print # -- (print $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/progn000066400000000000000000000001131303266332200226360ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: progn #key: progn # -- (progn $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/push000066400000000000000000000001101303266332200224650ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: push #key: push # -- (push $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/put000066400000000000000000000001471303266332200223300ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: put #key: put # -- (put ${1:symbol} ${2:propname} ${3:value})yasnippet-snippets-0~git20161123/emacs-lisp-mode/re-search-backward000066400000000000000000000002501303266332200251400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: re-search-backward #key: re-search-backward #key: rsb # -- (re-search-backward ${1:regexp}${2: bound}${3: noerror}${4: count})yasnippet-snippets-0~git20161123/emacs-lisp-mode/re-search-forward000066400000000000000000000002451303266332200250320ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: re-search-forward #key: re-search-forward #key: rsf # -- (re-search-forward ${1:regexp}${2: bound}${3: noerror}${4: count})yasnippet-snippets-0~git20161123/emacs-lisp-mode/region-active-p000066400000000000000000000001601303266332200245040ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-active-p #key: region-active-p #key: rap # -- (region-active-p)yasnippet-snippets-0~git20161123/emacs-lisp-mode/region-beginning000066400000000000000000000001621303266332200247360ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-beginning #key: region-beginning #key: rb # -- (region-beginning)yasnippet-snippets-0~git20161123/emacs-lisp-mode/region-end000066400000000000000000000001401303266332200235400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: region-end #key: region-end #key: re # -- (region-end)yasnippet-snippets-0~git20161123/emacs-lisp-mode/rename-file000066400000000000000000000002241303266332200237000ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: rename-file #key: rename-file #key: rf # -- (rename-file ${1:file} ${2:newname}${3: ok-if-already-exists})yasnippet-snippets-0~git20161123/emacs-lisp-mode/repeat000066400000000000000000000001161303266332200227740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: repeat #key: repeat # -- (repeat $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/replace-regexp000066400000000000000000000002341303266332200244200ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: replace-regexp #key: replace-regexp #key: rr # -- (replace-regexp ${1:regexp}${2: delimited}${3: start}${4: end}) yasnippet-snippets-0~git20161123/emacs-lisp-mode/replace-regexp-in-string000066400000000000000000000003401303266332200263260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: replace-regexp-in-string #key: replace-regexp-in-string #key: rris # -- (replace-regexp-in-string ${1:regexp} ${2:rep} ${3:string}${4: fixedcase}${5: literal}${6: subexp}${7: start})yasnippet-snippets-0~git20161123/emacs-lisp-mode/require000066400000000000000000000001211303266332200231640ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: require #key: require # -- (require $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/save-buffer000066400000000000000000000001461303266332200237240ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: save-buffer #key: save-buffer #key: sb # -- (save-buffer $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/save-excursion000066400000000000000000000001571303266332200244740ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: save-excursion #key: save-excursion #key: se # -- (save-excursion $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/search-backward000066400000000000000000000002751303266332200245430ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-backward #key: search-backward #key: sb # -- (search-backward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 yasnippet-snippets-0~git20161123/emacs-lisp-mode/search-backward-regexp000066400000000000000000000003231303266332200260250ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-backward-regexp #key: search-backward-regexp #key: sbr # -- (search-backward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 yasnippet-snippets-0~git20161123/emacs-lisp-mode/search-forward000066400000000000000000000002721303266332200244260ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-forward #key: search-forward #key: sf # -- (search-forward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 yasnippet-snippets-0~git20161123/emacs-lisp-mode/search-forward-regexp000066400000000000000000000003201303266332200257100ustar00rootroot00000000000000# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-forward-regexp #key: search-forward-regexp #key: sfr # -- (search-forward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 yasnippet-snippets-0~git20161123/emacs-lisp-mode/set000066400000000000000000000001051303266332200223050ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set #key: set # -- (set $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/set-buffer000066400000000000000000000001431303266332200235560ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-buffer #key: set-buffer #key: sb # -- (set-buffer $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/set-file-modes000066400000000000000000000001761303266332200243370ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-file-modes #key: set-file-modes #key: sfm # -- (set-file-modes ${1:filename} $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/set-mark000066400000000000000000000001351303266332200232400ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: set-mark #key: set-mark #key: sm # -- (set-mark $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/setq000066400000000000000000000001201303266332200224630ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: setq #key: setq #key: s # -- (setq $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/should000066400000000000000000000001411303266332200230100ustar00rootroot00000000000000# -*- mode: snippet -*- #contributor: Raghav Kumar Gautam #name: should #key: sh # -- (should $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/skip-chars-backward000066400000000000000000000002231303266332200253330ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: skip-chars-backward #key: skip-chars-backward #key: scb # -- (skip-chars-backward "${1:string}"${2: lim})yasnippet-snippets-0~git20161123/emacs-lisp-mode/skip-chars-forward000066400000000000000000000002201303266332200252160ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: skip-chars-forward #key: skip-chars-forward #key: scf # -- (skip-chars-forward "${1:string}"${2: lim})yasnippet-snippets-0~git20161123/emacs-lisp-mode/split-string000066400000000000000000000002221303266332200241510ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: split-string #key: split-string #key: ss # -- (split-string ${1:string}${2: separators}${3: omit-nulls})yasnippet-snippets-0~git20161123/emacs-lisp-mode/string000066400000000000000000000001161303266332200230220ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string #key: string # -- (string $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/string-match000066400000000000000000000002151303266332200241140ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string-match #key: string-match #key: sm # -- (string-match "${1:regexp}" "${2:string}"${3: start})yasnippet-snippets-0~git20161123/emacs-lisp-mode/string-to-number000066400000000000000000000001661303266332200247350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string-to-number #key: string-to-number #key: stn # -- (string-to-number $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/string=000066400000000000000000000001211303266332200231130ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: string= #key: string= # -- (string= $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/stringp000066400000000000000000000001211303266332200231760ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: stringp #key: stringp # -- (stringp $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/substring000066400000000000000000000001621303266332200235350ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: substring #key: substring # -- (substring ${1:string} ${2:from}${3: to})yasnippet-snippets-0~git20161123/emacs-lisp-mode/thing-at-point000066400000000000000000000002131303266332200243540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: thing-at-point #key: thing-at-point #key: tap # -- (thing-at-point ${1:thing}${2: no-properties})yasnippet-snippets-0~git20161123/emacs-lisp-mode/traverse_dir000066400000000000000000000002771303266332200242150ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/unless000066400000000000000000000001161303266332200230250ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: unless #key: unless # -- (unless $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/vector000066400000000000000000000001261303266332200230170ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: vector #key: vector #key: v # -- (vector $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/when000066400000000000000000000001051303266332200224530ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: when #key: w # -- (when $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/while000066400000000000000000000001131303266332200226210ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: while #key: while # -- (while $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/widget-get000066400000000000000000000001431303266332200235540ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: widget-get #key: widget-get #key: wg # -- (widget-get $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/with-current-buffer000066400000000000000000000001771303266332200254250ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: with-current-buffer #key: with-current-buffer #key: wcb # -- (with-current-buffer $0)yasnippet-snippets-0~git20161123/emacs-lisp-mode/word-or-region000066400000000000000000000016511303266332200243730ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/word_regexp000066400000000000000000000001151303266332200240400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: word_regexp # key: < # -- "\\_<${1:word}\\_>"yasnippet-snippets-0~git20161123/emacs-lisp-mode/x-dired.process_marked000066400000000000000000000007401303266332200260530ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/x-file.process000066400000000000000000000011321303266332200243540ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/x-file.read-lines000066400000000000000000000005711303266332200247270ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/x-find-replace000066400000000000000000000011361303266332200243150ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/x-grabstring000066400000000000000000000002271303266332200241260ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: grab buffer substring # key: x-grabstring # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos))yasnippet-snippets-0~git20161123/emacs-lisp-mode/x-grabthing000066400000000000000000000001731303266332200237310ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: grab word under cursor # key: x-grabthing # -- (setq $0 (thing-at-point 'symbol))yasnippet-snippets-0~git20161123/emacs-lisp-mode/x-traverse_dir000066400000000000000000000003371303266332200244570ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/x-word-or-region000066400000000000000000000017131303266332200246370ustar00rootroot00000000000000#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~git20161123/emacs-lisp-mode/yes-or-no-p000066400000000000000000000001421303266332200236000ustar00rootroot00000000000000#contributor: Xah Lee (XahLee.org) #name: yes-or-no-p #key: yonp # -- (yes-or-no-p "${1:prompt} ")yasnippet-snippets-0~git20161123/enh-ruby-mode/000077500000000000000000000000001303266332200212675ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/enh-ruby-mode/.yas-parents000066400000000000000000000000121303266332200235270ustar00rootroot00000000000000ruby-mode yasnippet-snippets-0~git20161123/ensime-mode/000077500000000000000000000000001303266332200210165ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/ensime-mode/.yas-parents000066400000000000000000000000131303266332200232570ustar00rootroot00000000000000scala-mode yasnippet-snippets-0~git20161123/erc-mode/000077500000000000000000000000001303266332200203075ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/erc-mode/blist000066400000000000000000000000721303266332200213460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: blist # key: b # -- blist yasnippet-snippets-0~git20161123/erc-mode/help000066400000000000000000000000721303266332200211610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: help # key: h # -- help $0yasnippet-snippets-0~git20161123/erlang-mode/000077500000000000000000000000001303266332200210065ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/erlang-mode/after000066400000000000000000000000551303266332200220320ustar00rootroot00000000000000#name : after ... -> # -- after $1 -> $0 yasnippet-snippets-0~git20161123/erlang-mode/begin000066400000000000000000000000541303266332200220140ustar00rootroot00000000000000#name : begin ... end # -- begin $0 end yasnippet-snippets-0~git20161123/erlang-mode/beh000066400000000000000000000000761303266332200214720ustar00rootroot00000000000000#name : -behaviour(...). # -- -behaviour(${1:gen_server}). $0 yasnippet-snippets-0~git20161123/erlang-mode/case000066400000000000000000000000671303266332200216470ustar00rootroot00000000000000#name : case ... of ... end # -- case $1 of $0 end yasnippet-snippets-0~git20161123/erlang-mode/compile000066400000000000000000000000741303266332200223620ustar00rootroot00000000000000#name : -compile(...). # -- -compile([${1:export_all}]). $0 yasnippet-snippets-0~git20161123/erlang-mode/def000066400000000000000000000000621303266332200214650ustar00rootroot00000000000000#name : -define(...,...). # -- -define($1,$2). $0 yasnippet-snippets-0~git20161123/erlang-mode/exp000066400000000000000000000001461303266332200215260ustar00rootroot00000000000000#name : -export([]). #contributor : hitesh # -- -export([${1:start/0}]). $0 yasnippet-snippets-0~git20161123/erlang-mode/fun000066400000000000000000000000651303266332200215220ustar00rootroot00000000000000#name : fun (...) -> ... end # -- fun ($1) -> $0 end yasnippet-snippets-0~git20161123/erlang-mode/if000066400000000000000000000001211303266332200213210ustar00rootroot00000000000000#name : if ... -> ... ; true -> ... end # -- if $1 -> $2; true -> $0 end yasnippet-snippets-0~git20161123/erlang-mode/ifdef000066400000000000000000000000751303266332200220100ustar00rootroot00000000000000#name : -ifdef(...). ... -endif. # -- -ifdef($1). $0 -endif. yasnippet-snippets-0~git20161123/erlang-mode/ifndef000066400000000000000000000000771303266332200221700ustar00rootroot00000000000000#name : -ifndef(...). ... -endif. # -- -ifndef($1). $0 -endif. yasnippet-snippets-0~git20161123/erlang-mode/imp000066400000000000000000000001671303266332200215220ustar00rootroot00000000000000#name : -import([]). #contributor : hitesh # -- -import(${1:lists}, [${2:map/2, sum/1}]). $0 yasnippet-snippets-0~git20161123/erlang-mode/inc000066400000000000000000000000611303266332200214770ustar00rootroot00000000000000#name : -include("..."). # -- -include("$1"). $0 yasnippet-snippets-0~git20161123/erlang-mode/inc.lib000066400000000000000000000000711303266332200222450ustar00rootroot00000000000000#name : -include_lib("..."). # -- -include_lib("$1"). $0 yasnippet-snippets-0~git20161123/erlang-mode/loop000066400000000000000000000001661303266332200217050ustar00rootroot00000000000000#name : loop(...) -> receive _ -> loop(...) end. # -- ${1:loop}($2) -> receive ${3:_} -> $1($2) end. $0 yasnippet-snippets-0~git20161123/erlang-mode/mod000066400000000000000000000003041303266332200215050ustar00rootroot00000000000000#name : -module(). #contributor : hitesh # -- -module(${1:`(file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). $0 yasnippet-snippets-0~git20161123/erlang-mode/rcv000066400000000000000000000000751303266332200215250ustar00rootroot00000000000000#name : receive ... -> ... end # -- receive $1 -> $0 end yasnippet-snippets-0~git20161123/erlang-mode/rcv.after000066400000000000000000000001111303266332200226140ustar00rootroot00000000000000#name : receive after ... -> ... end # -- receive after $1 -> $0 end yasnippet-snippets-0~git20161123/erlang-mode/rec000066400000000000000000000000661303266332200215040ustar00rootroot00000000000000#name : -record(...,{...}). # -- -record($1,{$2}). $0 yasnippet-snippets-0~git20161123/erlang-mode/try000066400000000000000000000001151303266332200215440ustar00rootroot00000000000000#name : try ... of ... catch after end # -- try $1 of $0 catch after end yasnippet-snippets-0~git20161123/erlang-mode/undef000066400000000000000000000000511303266332200220260ustar00rootroot00000000000000#name : -undef(...). # -- -undef($1). $0 yasnippet-snippets-0~git20161123/f90-mode/000077500000000000000000000000001303266332200201345ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/f90-mode/bd000066400000000000000000000001231303266332200204400ustar00rootroot00000000000000#contributor: Li Zhu #name : block data # -- block data $0 yasnippet-snippets-0~git20161123/f90-mode/c000066400000000000000000000001171303266332200203000ustar00rootroot00000000000000#contributor: Li Zhu #name : continue # -- continue $0 yasnippet-snippets-0~git20161123/f90-mode/ch000066400000000000000000000001211303266332200204430ustar00rootroot00000000000000#contributor: Li Zhu #name : character # -- character $0 yasnippet-snippets-0~git20161123/f90-mode/cx000066400000000000000000000001151303266332200204660ustar00rootroot00000000000000#contributor: Li Zhu #name : complex # -- complex $0 yasnippet-snippets-0~git20161123/f90-mode/dc000066400000000000000000000001331303266332200204420ustar00rootroot00000000000000#contributor: Li Zhu #name : double complex # -- double complex $0 yasnippet-snippets-0~git20161123/f90-mode/do000066400000000000000000000002111303266332200204530ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: do ... end do ... # key: do # -- do $1 $0 end do yasnippet-snippets-0~git20161123/f90-mode/dp000066400000000000000000000001371303266332200204630ustar00rootroot00000000000000#contributor: Li Zhu #name : double precision # -- double precision $0 yasnippet-snippets-0~git20161123/f90-mode/forall000066400000000000000000000002361303266332200213370ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: forall ... end forall ... # key: forall # -- forall ($1) $0 end forallyasnippet-snippets-0~git20161123/f90-mode/function000066400000000000000000000003561303266332200217100ustar00rootroot00000000000000# -*- 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~git20161123/f90-mode/if000066400000000000000000000001611303266332200204530ustar00rootroot00000000000000#contributor: Li Zhu #name : if then end if # -- if ( ${1:condition} ) then $0 end if yasnippet-snippets-0~git20161123/f90-mode/in000066400000000000000000000001261303266332200204640ustar00rootroot00000000000000#contributor: Li Zhu #name : implicit none # -- implicit none yasnippet-snippets-0~git20161123/f90-mode/inc000066400000000000000000000001151303266332200206250ustar00rootroot00000000000000#contributor: Li Zhu #name : include # -- include $0 yasnippet-snippets-0~git20161123/f90-mode/intr000066400000000000000000000001211303266332200210250ustar00rootroot00000000000000#contributor: Li Zhu #name : intrinsic # -- intrinsic $0 yasnippet-snippets-0~git20161123/f90-mode/l000066400000000000000000000001151303266332200203070ustar00rootroot00000000000000#contributor: Li Zhu #name : logical # -- logical $0 yasnippet-snippets-0~git20161123/f90-mode/module000066400000000000000000000002631303266332200213450ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: module ... end module ... # key: module # -- module ${1:name} contains $0 end module $1 yasnippet-snippets-0~git20161123/f90-mode/pa000066400000000000000000000001211303266332200204510ustar00rootroot00000000000000#contributor: Li Zhu #name : parameter # -- parameter $0 yasnippet-snippets-0~git20161123/f90-mode/program000066400000000000000000000002761303266332200215330ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: program .. end program # key: program # -- program ${1:name} ${2:implicit none} $0 end program $1 yasnippet-snippets-0~git20161123/f90-mode/puref000066400000000000000000000003711303266332200212010ustar00rootroot00000000000000# -*- 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~git20161123/f90-mode/pures000066400000000000000000000003571303266332200212220ustar00rootroot00000000000000# -*- 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~git20161123/f90-mode/re000066400000000000000000000001351303266332200204640ustar00rootroot00000000000000#contributor: Li Zhu #name : read (*,*) # -- read (${1:*},${2:*}) $0 yasnippet-snippets-0~git20161123/f90-mode/subroutine000066400000000000000000000003401303266332200222530ustar00rootroot00000000000000# -*- 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~git20161123/f90-mode/until000066400000000000000000000002521303266332200212110ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: until ... end until ... # key: until # -- do $0 if (${1:condition}) exit end do yasnippet-snippets-0~git20161123/f90-mode/where000066400000000000000000000002471303266332200211740ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: where ... end where ... # key: where # -- where (${1:condition}) $0 end where yasnippet-snippets-0~git20161123/f90-mode/while000066400000000000000000000002461303266332200211710ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Jonas Kalderstam # name: while ... end while ... # key: while # -- do while (${1:condition}) $0 end do yasnippet-snippets-0~git20161123/f90-mode/wr000066400000000000000000000001371303266332200205100ustar00rootroot00000000000000#contributor: Li Zhu #name : write (*,*) # -- write (${1:*},${2:*}) $0 yasnippet-snippets-0~git20161123/faust-mode/000077500000000000000000000000001303266332200206605ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/faust-mode/button000066400000000000000000000001041303266332200221110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: button # key: bu # -- button("$1")$0yasnippet-snippets-0~git20161123/faust-mode/case000066400000000000000000000001071303266332200215140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: case # key: ca # -- case { $1 }; $0yasnippet-snippets-0~git20161123/faust-mode/checkbox000066400000000000000000000001101303266332200223610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: checkbox # key: ch # -- checkbox("$1")$0yasnippet-snippets-0~git20161123/faust-mode/component000066400000000000000000000001161303266332200226030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: component # key: co # -- component("$1.dsp")$0yasnippet-snippets-0~git20161123/faust-mode/declare000066400000000000000000000001301303266332200221740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: declare # key: de # -- declare ${1:key} "${2:value}"; $0yasnippet-snippets-0~git20161123/faust-mode/declareauthor000066400000000000000000000001251303266332200234230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: declare author # key: da # -- declare author "$1"; $0yasnippet-snippets-0~git20161123/faust-mode/declarelicense000066400000000000000000000003471303266332200235510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: declare license # key: dl # -- declare license "${1:$$ (yas-choose-value '( "AGPLv3" "Apache" "BSD 2-clause" "BSD 3-clause" "GPLv2" "GPLv3" "LGPLv3" "MIT" ))}"; $0yasnippet-snippets-0~git20161123/faust-mode/declarename000066400000000000000000000001211303266332200230350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: declare name # key: dn # -- declare name "$1"; $0yasnippet-snippets-0~git20161123/faust-mode/declareversion000066400000000000000000000001351303266332200236070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: declare version # key: dv # -- declare version "${1:0.1}"; $0yasnippet-snippets-0~git20161123/faust-mode/hbargraph000066400000000000000000000001451303266332200225410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hbargraph # key: hb # -- hbargraph("${1:name}", ${2:min}, ${3:max})$0yasnippet-snippets-0~git20161123/faust-mode/header000066400000000000000000000004431303266332200220340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: header # key: he # -- declare name "$1"; declare version "${2:0.1}"; declare author "$3"; declare license "${4:$$ (yas-choose-value '( "AGPLv3" "Apache" "BSD 2-clause" "BSD 3-clause" "GPLv2" "GPLv3" "LGPLv3" "MIT" ))}"; $0 yasnippet-snippets-0~git20161123/faust-mode/hgroup000066400000000000000000000001341303266332200221050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hgroup # key: hg # -- hgroup("${1:name}", ${2:expression})$0yasnippet-snippets-0~git20161123/faust-mode/hslider000066400000000000000000000001721303266332200222350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: hslider # key: hs # -- hslider("${1:name}", ${2:default}, ${3:min}, ${4:max}, ${5:step})$0yasnippet-snippets-0~git20161123/faust-mode/import000066400000000000000000000001111303266332200221060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: im # -- import("$1.lib");$0yasnippet-snippets-0~git20161123/faust-mode/nentry000066400000000000000000000001701303266332200221200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nentry # key: ne # -- nentry("${1:name}", ${2:default}, ${3:min}, ${4:max}, ${5:step})$0yasnippet-snippets-0~git20161123/faust-mode/par000066400000000000000000000001321303266332200213610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: par # key: pa # -- par(${1:i}, ${2:Nr}, ${3:expression})$0yasnippet-snippets-0~git20161123/faust-mode/process000066400000000000000000000001071303266332200222570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: process # key: pr # -- process = $1; $0yasnippet-snippets-0~git20161123/faust-mode/processx000066400000000000000000000001361303266332200224510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: processx # key: px # -- process(${1:x}) = ${2:expression}($1);yasnippet-snippets-0~git20161123/faust-mode/prod000066400000000000000000000001341303266332200215450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: prod # key: mu # -- prod(${1:i}, ${2:Nr}, ${3:expression})$0yasnippet-snippets-0~git20161123/faust-mode/rule000066400000000000000000000001331303266332200215470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: rule # key: ru # -- (${1:pattern}) => ${2:expression}; $0yasnippet-snippets-0~git20161123/faust-mode/seq000066400000000000000000000001321303266332200213670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: seq # key: se # -- seq(${1:i}, ${2:Nr}, ${3:expression})$0yasnippet-snippets-0~git20161123/faust-mode/sum000066400000000000000000000001321303266332200214030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: sum # key: su # -- sum(${1:i}, ${2:Nr}, ${3:expression})$0yasnippet-snippets-0~git20161123/faust-mode/tgroup000066400000000000000000000001341303266332200221210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tgroup # key: tg # -- tgroup("${1:name}", ${2:expression})$0yasnippet-snippets-0~git20161123/faust-mode/vbargraph000066400000000000000000000001451303266332200225570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vbargraph # key: vb # -- vbargraph("${1:name}", ${2:min}, ${3:max})$0yasnippet-snippets-0~git20161123/faust-mode/vgroup000066400000000000000000000001341303266332200221230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vgroup # key: vg # -- vgroup("${1:name}", ${2:expression})$0yasnippet-snippets-0~git20161123/faust-mode/vslider000066400000000000000000000001721303266332200222530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: vslider # key: vs # -- vslider("${1:name}", ${2:default}, ${3:min}, ${4:max}, ${5:step})$0yasnippet-snippets-0~git20161123/faust-mode/with000066400000000000000000000001221303266332200215510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: with # key: wi # -- with { ${1:expression} }; $0yasnippet-snippets-0~git20161123/git-commit-mode/000077500000000000000000000000001303266332200216075ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/git-commit-mode/.yas-parents000066400000000000000000000000111303266332200240460ustar00rootroot00000000000000text-modeyasnippet-snippets-0~git20161123/git-commit-mode/fixes000066400000000000000000000001051303266332200226440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixes # key: fix # -- fixes #${1:100}yasnippet-snippets-0~git20161123/git-commit-mode/references000066400000000000000000000001171303266332200236520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: references # key: ref # -- references #${1:100}yasnippet-snippets-0~git20161123/go-mode/000077500000000000000000000000001303266332200201435ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/go-mode/benchmark000066400000000000000000000002331303266332200220160ustar00rootroot00000000000000# -*- 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~git20161123/go-mode/const000066400000000000000000000001311303266332200212070ustar00rootroot00000000000000# -*- mode:snippet -*- # name: const # key: const # -- const ${1:name type} = ${2:val} $0yasnippet-snippets-0~git20161123/go-mode/const(000066400000000000000000000001421303266332200212610ustar00rootroot00000000000000# -*- mode:snippet -*- # name: const (...) # key: const # -- const ( ${1:name type} = ${2:val} )yasnippet-snippets-0~git20161123/go-mode/dd000066400000000000000000000001561303266332200204570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: debug fmt.Printf # key: dd # -- fmt.Printf("%+v\n", $1) // output for debug $0yasnippet-snippets-0~git20161123/go-mode/default000066400000000000000000000001031303266332200215040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: default # key: def # -- default: $0yasnippet-snippets-0~git20161123/go-mode/else000066400000000000000000000001021303266332200210070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: else # key: el # -- else { $0 }yasnippet-snippets-0~git20161123/go-mode/error000066400000000000000000000001431303266332200212150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: error # key: err # contributor : @atotto # -- if err != nil { $0 }yasnippet-snippets-0~git20161123/go-mode/example000066400000000000000000000001551303266332200215220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: example # key: example # contributor : @atotto # -- func Example$1() { $0 } yasnippet-snippets-0~git20161123/go-mode/for000066400000000000000000000001031303266332200206460ustar00rootroot00000000000000# -*- mode:snippet -*- # name: for # key: for # -- for $1 { $0 } yasnippet-snippets-0~git20161123/go-mode/forrange000066400000000000000000000002111303266332200216630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for range # key: range # contributor : @atotto # -- for ${3:key}, ${2:value} := range ${1:target} { $0 }yasnippet-snippets-0~git20161123/go-mode/func000066400000000000000000000001521303266332200210170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: func # key: func # -- // $1 ${4:...} func ${1:name}(${2:args}) $3 { $0 }yasnippet-snippets-0~git20161123/go-mode/if000066400000000000000000000001001303266332200204530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if $1 { $0 }yasnippet-snippets-0~git20161123/go-mode/iferr000066400000000000000000000001211303266332200211670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if error # key: iferr # -- if err != $1 { $0 } yasnippet-snippets-0~git20161123/go-mode/import000066400000000000000000000001041303266332200213730ustar00rootroot00000000000000# -*- mode:snippet -*- # name: import # key: imp # -- import "$1" $0yasnippet-snippets-0~git20161123/go-mode/import(000066400000000000000000000001161303266332200214460ustar00rootroot00000000000000# -*- mode:snippet -*- # name: import (...) # key: imp # -- import ( "$0" ) yasnippet-snippets-0~git20161123/go-mode/lambda000066400000000000000000000001341303266332200213040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: lambda func # key: lambda # -- func(${1:args}) $2 { $0 }()yasnippet-snippets-0~git20161123/go-mode/main000066400000000000000000000001211303266332200210040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: func main() # key: main # -- func main() { $0 }yasnippet-snippets-0~git20161123/go-mode/map000066400000000000000000000001141303266332200206370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: map # key: map # -- map[${1:type}]${2:type} yasnippet-snippets-0~git20161123/go-mode/parallel_benchmark000066400000000000000000000003141303266332200236720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parallel_benchmark # key: parbench # contributor : @kostya-sh # -- func Benchmark$1(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { $0 } }) } yasnippet-snippets-0~git20161123/go-mode/printf000066400000000000000000000001441303266332200213670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fmt.Printf(...) # key: pr # -- fmt.Printf("${1:%s}\n", ${2:args}) $0yasnippet-snippets-0~git20161123/go-mode/select000066400000000000000000000001171303266332200213440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: select # key: sel # -- select { case $1: $0 }yasnippet-snippets-0~git20161123/go-mode/switch000066400000000000000000000001211303266332200213610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: switch # key: sw # -- switch $1 { case $2: $0 }yasnippet-snippets-0~git20161123/go-mode/test000066400000000000000000000001561303266332200210470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test # key: at # contributor : @atotto # -- func Test$1(t *testing.T) { $0 } yasnippet-snippets-0~git20161123/go-mode/testmain000066400000000000000000000003521303266332200217120ustar00rootroot00000000000000# -*- 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~git20161123/go-mode/type000066400000000000000000000001111303266332200210400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type # key: type # -- type $1 $2 { $0 }yasnippet-snippets-0~git20161123/go-mode/var000066400000000000000000000001161303266332200206540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var # key: var # -- var ${1:name} ${2:type} $0yasnippet-snippets-0~git20161123/go-mode/var(000066400000000000000000000001271303266332200207260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var (...) # key: var # -- var ( ${1:name} ${2:type} )yasnippet-snippets-0~git20161123/groovy-mode/000077500000000000000000000000001303266332200210635ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/groovy-mode/.yas-parents000066400000000000000000000000111303266332200233220ustar00rootroot00000000000000java-modeyasnippet-snippets-0~git20161123/groovy-mode/class000066400000000000000000000001251303266332200221110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: class # -- class ${1:Class} { $0 }yasnippet-snippets-0~git20161123/groovy-mode/def000066400000000000000000000001311303266332200215370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- def ${1:method}(${2:args}) { $0 }yasnippet-snippets-0~git20161123/groovy-mode/dict000066400000000000000000000001331303266332200217260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dict # key: dict # -- ${1:dict} = [${2:key} : ${3:value}$0]yasnippet-snippets-0~git20161123/groovy-mode/for000066400000000000000000000001331303266332200215710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:var} in ${2:iter}) { $0 } yasnippet-snippets-0~git20161123/groovy-mode/println000066400000000000000000000001171303266332200224730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: println # key: pr # -- println ${1:"string"} $0yasnippet-snippets-0~git20161123/groovy-mode/times000066400000000000000000000001531303266332200221260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: times # key: times # -- ${1:10}.times { $0 } .yasnippet-snippets-0~git20161123/haskell-mode/000077500000000000000000000000001303266332200211615ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/haskell-mode/case000066400000000000000000000002611303266332200220160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: case # key: case # expand-env: ((yas-indent-line 'fixed)) # -- case ${1:var} of ${2:cond} -> ${3:value} $0 otherwise -> ${4:other}yasnippet-snippets-0~git20161123/haskell-mode/data000066400000000000000000000001071303266332200220130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: data # key: da # -- data ${1:Type} = $2yasnippet-snippets-0~git20161123/haskell-mode/doc000066400000000000000000000000741303266332200216520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: d # -- {- $0 -}yasnippet-snippets-0~git20161123/haskell-mode/efix000066400000000000000000000001711303266332200220360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixme dummy # key: efix # expand-env: ((yas-indent-line 'fixed)) # -- (error "FIXME: $0")yasnippet-snippets-0~git20161123/haskell-mode/function000066400000000000000000000001501303266332200227250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- ${1:function-name} :: ${2:type} $1 ${3:arguments} $0yasnippet-snippets-0~git20161123/haskell-mode/functione000066400000000000000000000001701303266332200230740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fune # key: fune # -- ${1:function-name} :: ${2:type} $1 = $0error "Not implemented: $1"yasnippet-snippets-0~git20161123/haskell-mode/import000066400000000000000000000001741303266332200224200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: import # -- import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}}yasnippet-snippets-0~git20161123/haskell-mode/instance000066400000000000000000000001701303266332200227060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: instance # key: ins # -- instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where $0 yasnippet-snippets-0~git20161123/haskell-mode/main000066400000000000000000000002021303266332200220220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main function # key: main # expand-env: ((yas-indent-line 'fixed)) # -- main :: IO () main = do $0yasnippet-snippets-0~git20161123/haskell-mode/module000066400000000000000000000001221303266332200223640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:Module} where $0yasnippet-snippets-0~git20161123/haskell-mode/new class000066400000000000000000000002111303266332200227550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: new class # key: class # expand-env: ((yas-indent-line 'fixed)) # -- class ${1:Class Name} where $0yasnippet-snippets-0~git20161123/haskell-mode/pragma000066400000000000000000000001131303266332200223460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pragma # key: prag # -- {-# ${1:PRAGMA} #-}yasnippet-snippets-0~git20161123/haskell-mode/print000066400000000000000000000000751303266332200222420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: print # key: pr # -- print $0yasnippet-snippets-0~git20161123/html-mode/000077500000000000000000000000001303266332200205025ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/html-mode/.yas-parents000066400000000000000000000000121303266332200227420ustar00rootroot00000000000000nxml-mode yasnippet-snippets-0~git20161123/html-mode/dd000066400000000000000000000001531303266332200210130ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$1
yasnippet-snippets-0~git20161123/html-mode/dl000066400000000000000000000001621303266332200210230ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$0
yasnippet-snippets-0~git20161123/html-mode/doctype000066400000000000000000000002161303266332200220730ustar00rootroot00000000000000#name : Doctype HTML 4.01 Strict #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/doctype.html5000066400000000000000000000000721303266332200231230ustar00rootroot00000000000000#name : Doctype HTML 5 #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/doctype.xhtml1000066400000000000000000000002471303266332200233130ustar00rootroot00000000000000#name : DocType XHTML 1.0 frameset #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/doctype.xhtml1_1000066400000000000000000000002161303266332200235270ustar00rootroot00000000000000#name : DocType XHTML 1.1 #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/doctype.xhtml1_strict000066400000000000000000000002411303266332200246750ustar00rootroot00000000000000#name : DocType XHTML 1.0 Strict #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/doctype.xhtml1_transitional000066400000000000000000000002631303266332200261000ustar00rootroot00000000000000#name : DocType XHTML 1.0 Transitional #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/dt000066400000000000000000000001531303266332200210330ustar00rootroot00000000000000#contributor : Rodrigo Setti #name :
...
#group : list # --
$1
yasnippet-snippets-0~git20161123/html-mode/form000066400000000000000000000002501303266332200213650ustar00rootroot00000000000000#contributor : Jimmy Wu #name :
# --
$0
yasnippet-snippets-0~git20161123/html-mode/html000066400000000000000000000001531303266332200213700ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0 yasnippet-snippets-0~git20161123/html-mode/html.xmlns000066400000000000000000000002761303266332200225360ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0 yasnippet-snippets-0~git20161123/html-mode/link.import000066400000000000000000000001771303266332200227000ustar00rootroot00000000000000#contributor : Vikrant Rathore #name : # -- yasnippet-snippets-0~git20161123/html-mode/link.stylesheet000066400000000000000000000002641303266332200235540ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20161123/html-mode/link.stylesheet-ie000066400000000000000000000003501303266332200241430ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20161123/html-mode/mailto000066400000000000000000000002011303266332200217030ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... # -- $0yasnippet-snippets-0~git20161123/html-mode/meta000066400000000000000000000002511303266332200213510ustar00rootroot00000000000000#contributor : Jimmy Wu #group : meta #name : # -- yasnippet-snippets-0~git20161123/html-mode/meta.http-equiv000066400000000000000000000003131303266332200234550ustar00rootroot00000000000000#contributor : Jimmy Wu #name : #group : meta # -- yasnippet-snippets-0~git20161123/html-mode/script.javascript000066400000000000000000000002371303266332200241000ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20161123/html-mode/script.javascript-src000066400000000000000000000002471303266332200246660ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20161123/html-mode/textarea000066400000000000000000000002461303266332200222440ustar00rootroot00000000000000#contributor : Jimmy Wu #name : # -- yasnippet-snippets-0~git20161123/html-mode/th000066400000000000000000000001551303266332200210410ustar00rootroot00000000000000#contributor : Jimmy Wu #name : ... #group : table # -- $2yasnippet-snippets-0~git20161123/java-mode/000077500000000000000000000000001303266332200204575ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/java-mode/apr_assert000066400000000000000000000001641303266332200225460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: apr_assert # key: apr_assert # -- if (Globals.useAssertions) { ${1:assert ..}; } yasnippet-snippets-0~git20161123/java-mode/assert000066400000000000000000000001511303266332200217000ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: assert # key: as # -- assert ${1:expression};yasnippet-snippets-0~git20161123/java-mode/assertEquals000066400000000000000000000002051303266332200230530ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: assertEquals # key: ae # group: test # -- Assert.assertEquals($1, $2); $0yasnippet-snippets-0~git20161123/java-mode/cls000066400000000000000000000001211303266332200211550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cls # key: cls # -- class ${1:Class} { $0 }yasnippet-snippets-0~git20161123/java-mode/constructor000066400000000000000000000002011303266332200227600ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: constructor # key: c # -- public ${1:Class} (${2:args}) { $0 }yasnippet-snippets-0~git20161123/java-mode/define test method000066400000000000000000000002341303266332200240340ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: define test method # key: dt # -- @Test public void test${1:Name}() throws Exception { $0 } yasnippet-snippets-0~git20161123/java-mode/doc000066400000000000000000000001201303266332200211400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: /* # -- /** * ${1:documentation} */yasnippet-snippets-0~git20161123/java-mode/equals000066400000000000000000000001531303266332200216730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: equals # key: eq # -- public boolean equals(${1:Class} other) { $0 }yasnippet-snippets-0~git20161123/java-mode/file_class000066400000000000000000000002741303266332200225110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: file_class # key: file # -- public class ${1:`(file-name-base (or (buffer-file-name) (buffer-name)))`} { $0 } yasnippet-snippets-0~git20161123/java-mode/for000066400000000000000000000001511303266332200211650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for (${1:int i = 0}; ${2:i < N}; ${3:i++}) { $0 }yasnippet-snippets-0~git20161123/java-mode/fori000066400000000000000000000001461303266332200213420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fori # key: fori # -- for (${1:Object el} : ${2:iterator}) { $0 } yasnippet-snippets-0~git20161123/java-mode/getter000066400000000000000000000002161303266332200216730ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: getter # key: g # -- public ${1:int} get${2:Field}() { return ${3:field}; }yasnippet-snippets-0~git20161123/java-mode/if000066400000000000000000000001171303266332200207770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20161123/java-mode/ife000066400000000000000000000001361303266332200211450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # -- if (${1:cond}) { $2 } else { $3 }yasnippet-snippets-0~git20161123/java-mode/import000066400000000000000000000001161303266332200217120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # -- import ${1:System.}; $0yasnippet-snippets-0~git20161123/java-mode/iterator000066400000000000000000000001621303266332200222320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: iterator # key: iterator # -- public Iterator<${1:type}> iterator() { $0 } yasnippet-snippets-0~git20161123/java-mode/javadoc000066400000000000000000000001101303266332200220010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: javadoc # key: doc # -- /** * $0 * */yasnippet-snippets-0~git20161123/java-mode/lambda000066400000000000000000000001601303266332200216170ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: lambda # key: \ # -- (${1:args}) -> ${2:expression};yasnippet-snippets-0~git20161123/java-mode/main000066400000000000000000000001521303266332200213240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- public static void main(String[] args) { $0 }yasnippet-snippets-0~git20161123/java-mode/main_class000066400000000000000000000003351303266332200225140ustar00rootroot00000000000000# 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~git20161123/java-mode/method000066400000000000000000000002161303266332200216610ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: method # key: m # -- ${1:public} ${2:void} ${3:name}(${4:args}) { $0 }yasnippet-snippets-0~git20161123/java-mode/new000066400000000000000000000001471303266332200211750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: new # key: new # -- ${1:Type} ${2:obj} = new ${3:Constr}(${4:args}); $0yasnippet-snippets-0~git20161123/java-mode/override000066400000000000000000000001371303266332200222220ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: override # key: o # -- @Override $0yasnippet-snippets-0~git20161123/java-mode/param000066400000000000000000000001201303266332200214730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: param # key: param # -- @param ${1:paramater} $0yasnippet-snippets-0~git20161123/java-mode/printf000066400000000000000000000001241303266332200217010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: printf # -- System.out.printf("$0%n");yasnippet-snippets-0~git20161123/java-mode/println000066400000000000000000000001321303266332200220640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: println # key: pr # -- System.out.println("${1:text}"); $0yasnippet-snippets-0~git20161123/java-mode/return000066400000000000000000000001321303266332200217150ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: return # key: r # -- return $0yasnippet-snippets-0~git20161123/java-mode/test000066400000000000000000000001461303266332200213620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test # key: test # -- @Test public void test_${1:Case}() { $0 }yasnippet-snippets-0~git20161123/java-mode/testClass000066400000000000000000000003301303266332200223430ustar00rootroot00000000000000# -*- 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~git20161123/java-mode/this000066400000000000000000000001371303266332200213520ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: this # key: . # -- this.$1 = $1; $0yasnippet-snippets-0~git20161123/java-mode/toString000066400000000000000000000001411303266332200222070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: toString # key: toStr # -- public String toString() { $0 }yasnippet-snippets-0~git20161123/java-mode/try000066400000000000000000000002651303266332200212230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try { $0 } catch (${1:Throwable e}) { ${2:System.out.println("Error " + e.getMessage()); e.printStackTrace();} } yasnippet-snippets-0~git20161123/java-mode/value000066400000000000000000000001551303266332200215170ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: value # key: val # -- final ${1:int} ${2:n} = $0;yasnippet-snippets-0~git20161123/js-mode/000077500000000000000000000000001303266332200201525ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/js-mode/al000066400000000000000000000000651303266332200204720ustar00rootroot00000000000000# -*- mode: snippet -*- #name : alert # -- alert($0);yasnippet-snippets-0~git20161123/js-mode/class000066400000000000000000000001621303266332200212010ustar00rootroot00000000000000# -*- mode: snippet -*- #name : Class # -- var ${1:name} = new Class({ initialize: function($2) { $0 } });yasnippet-snippets-0~git20161123/js-mode/com000066400000000000000000000001051303266332200206470ustar00rootroot00000000000000# -*- mode: snippet -*- #name : comment (/* ... */) # -- /* * $0 */yasnippet-snippets-0~git20161123/js-mode/debugger000066400000000000000000000001361303266332200216610ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: debugger # key: dbg # -- debugger;yasnippet-snippets-0~git20161123/js-mode/each000066400000000000000000000001261303266332200207740ustar00rootroot00000000000000# -*- mode: snippet -*- #name : each # -- ${1:collection}.each(function($2) { $0 });yasnippet-snippets-0~git20161123/js-mode/el000066400000000000000000000000671303266332200205000ustar00rootroot00000000000000# -*- mode: snippet -*- #name : else # -- else { $0 }yasnippet-snippets-0~git20161123/js-mode/ev.add000066400000000000000000000001341303266332200212340ustar00rootroot00000000000000# -*- mode: snippet -*- #name : addEvent # -- addEvent('${1:event}', function($2) { $0 });yasnippet-snippets-0~git20161123/js-mode/ev.fire000066400000000000000000000000761303266332200214360ustar00rootroot00000000000000# -*- mode: snippet -*- #name : fireEvent # -- fireEvent('$0')yasnippet-snippets-0~git20161123/js-mode/for000066400000000000000000000001551303266332200206640ustar00rootroot00000000000000# -*- mode: snippet -*- #name : for # -- for(var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { $0 }yasnippet-snippets-0~git20161123/js-mode/function000066400000000000000000000002041303266332200217160ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: function # key: f # -- function${1: ${2:name}}(${3:arg}) { $0 }yasnippet-snippets-0~git20161123/js-mode/if000066400000000000000000000001041303266332200204660ustar00rootroot00000000000000# -*- mode: snippet -*- #name : if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20161123/js-mode/init000066400000000000000000000001221303266332200210330ustar00rootroot00000000000000# -*- mode: snippet -*- #name : Constructor # -- initialize: function($1) { $0 }yasnippet-snippets-0~git20161123/js-mode/log000066400000000000000000000001011303266332200206460ustar00rootroot00000000000000# -*- mode: snippet -*- #name : console.log # -- console.log($0);yasnippet-snippets-0~git20161123/js-mode/multiline-comment000066400000000000000000000001161303266332200235350ustar00rootroot00000000000000# -*- mode: snippet -*- #name : multiline-comment #key: /** # -- /** * $0 */yasnippet-snippets-0~git20161123/js-mode/param-comment000066400000000000000000000002321303266332200226320ustar00rootroot00000000000000# -*- mode: snippet -*- #name: param-comment #key: *@p #condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) # -- * @param {${type}} ${comment}.yasnippet-snippets-0~git20161123/js-mode/req.html000066400000000000000000000002701303266332200216260ustar00rootroot00000000000000# -*- mode: snippet -*- #name : html # -- new Request.HTML({ onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { $0 } }).${1:get}(${2:url});yasnippet-snippets-0~git20161123/js-mode/req.json000066400000000000000000000002231303266332200216310ustar00rootroot00000000000000# -*- mode: snippet -*- #name : json # -- new Request.JSON({ onSuccess: function(responseJSON, responseText) { $0 } }).${1:send}(${2:url});yasnippet-snippets-0~git20161123/js-mode/return-comment000066400000000000000000000002201303266332200230460ustar00rootroot00000000000000# -*- mode: snippet -*- #name: return-comment #key: *@r #condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) # -- * @return {${type}}yasnippet-snippets-0~git20161123/js-mode/type-inline-comment000066400000000000000000000002361303266332200237730ustar00rootroot00000000000000# -*- mode: snippet -*- #name: type-inline-comment #key: @ty #condition: (not (= (js2-node-type (js2-node-at-point)) js2-COMMENT)) # -- /** @type {${type}} */yasnippet-snippets-0~git20161123/js-mode/type-multiline-comment000066400000000000000000000002231303266332200245130ustar00rootroot00000000000000# -*- mode: snippet -*- #name: type-inline-comment #key: *ty #condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) # -- * @type {${type}}yasnippet-snippets-0~git20161123/js2-mode/000077500000000000000000000000001303266332200202345ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/js2-mode/.yas-parents000066400000000000000000000000101303266332200224720ustar00rootroot00000000000000js-mode yasnippet-snippets-0~git20161123/js3-mode/000077500000000000000000000000001303266332200202355ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/js3-mode/.yas-parents000066400000000000000000000000101303266332200224730ustar00rootroot00000000000000js-mode yasnippet-snippets-0~git20161123/latex-mode/000077500000000000000000000000001303266332200206535ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/latex-mode/acronym000066400000000000000000000001621303266332200222450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: acronym # key: ac # -- \newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}}yasnippet-snippets-0~git20161123/latex-mode/alertblock000066400000000000000000000001541303266332200227200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: alertblock # key: al # -- \begin{alertblock}{$2} $0 \end{alertblock}yasnippet-snippets-0~git20161123/latex-mode/alg000066400000000000000000000001351303266332200213400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: alg # key: alg # -- \begin{algorithmic} $0 \end{algorithmic} yasnippet-snippets-0~git20161123/latex-mode/article000066400000000000000000000002521303266332200222200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: full template of article class # key: article # -- \documentclass[${1:options}]{article} \author{$3} \begin{document} $0 \end{document} yasnippet-snippets-0~git20161123/latex-mode/begin000066400000000000000000000001341303266332200216600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: begin # key: begin # -- \begin{${1:environment}} $0 \end{$1}yasnippet-snippets-0~git20161123/latex-mode/block000066400000000000000000000001351303266332200216670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: block # key: bl # -- \begin{block}{$1} $0 \end{block}yasnippet-snippets-0~git20161123/latex-mode/capgls000066400000000000000000000001021303266332200220400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: Gls # key: G # -- \Gls{${1:label}}yasnippet-snippets-0~git20161123/latex-mode/caption000066400000000000000000000001031303266332200222250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: caption # key: ca # -- \caption{$0}yasnippet-snippets-0~git20161123/latex-mode/cite000066400000000000000000000000771303266332200215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cite # key: c # -- \cite{$1} $0yasnippet-snippets-0~git20161123/latex-mode/code000066400000000000000000000001341303266332200215060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: code # key: code # -- \begin{lstlisting} $0 \end{lstlisting}yasnippet-snippets-0~git20161123/latex-mode/columns000066400000000000000000000003031303266332200222520ustar00rootroot00000000000000# -*- 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~git20161123/latex-mode/documentclass000066400000000000000000000001421303266332200234370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: documentclass # key: doc # -- \documentclass[${1:options}]{$2} $0 yasnippet-snippets-0~git20161123/latex-mode/emph000066400000000000000000000000761303266332200215320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: emph # key: e # -- \emph{$1}$0yasnippet-snippets-0~git20161123/latex-mode/enumerate000066400000000000000000000001451303266332200225630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: enumerate # key: enum # -- \begin{enumerate} \item $0 \end{enumerate}yasnippet-snippets-0~git20161123/latex-mode/figure000066400000000000000000000003021303266332200220520ustar00rootroot00000000000000# -*- 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~git20161123/latex-mode/frac000066400000000000000000000001371303266332200215120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: frac # key: frac # -- \frac{${1:numerator}}{${2:denominator}}$0yasnippet-snippets-0~git20161123/latex-mode/frame000066400000000000000000000001771303266332200216750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: frame # key: fr # -- \begin{frame}${1:[$2]} ${3:\frametitle{$4}} $0 \end{frame}yasnippet-snippets-0~git20161123/latex-mode/gls000066400000000000000000000001021303266332200213540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: gls # key: g # -- \gls{${1:label}}yasnippet-snippets-0~git20161123/latex-mode/glspl000066400000000000000000000001071303266332200217150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: glspl # key: gp # -- \glspl{${1:label}}yasnippet-snippets-0~git20161123/latex-mode/if000066400000000000000000000001311303266332200211670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- \IF {$${1:cond}$} $0 \ELSE \ENDIF yasnippet-snippets-0~git20161123/latex-mode/includegraphics000066400000000000000000000001341303266332200237400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: includegraphics # key: ig # -- \includegraphics${1:[$2]}{$0}yasnippet-snippets-0~git20161123/latex-mode/item000066400000000000000000000000731303266332200215340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: item # key: - # -- \item $0yasnippet-snippets-0~git20161123/latex-mode/itemize000066400000000000000000000001351303266332200222430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: itemize # key: it # -- \begin{itemize} \item $0 \end{itemize}yasnippet-snippets-0~git20161123/latex-mode/label000066400000000000000000000001001303266332200216440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: label # key: lab # -- \label{$0}yasnippet-snippets-0~git20161123/latex-mode/listing000066400000000000000000000002341303266332200222460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: listing # key: lst # -- \begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}] $0 \end{lstlisting}yasnippet-snippets-0~git20161123/latex-mode/moderncv000066400000000000000000000003671303266332200224210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: full template of moderncv class # key: moderncv # -- \documentclass[${1:options}]{moderncv} \firstname{$3} \familyname{$4} \moderncvstyle{${5:casual}} \moderncvcolor{${6:blue}} \begin{document} $0 \end{document} yasnippet-snippets-0~git20161123/latex-mode/moderncv-cvcomputer000066400000000000000000000002221303266332200245740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cvcomputer # key: cvcomp # -- \cvcomputer{${1:category}}{${2:programs}}{${3:category}}{${3:programs}} $0 yasnippet-snippets-0~git20161123/latex-mode/moderncv-cventry000066400000000000000000000002221303266332200240770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cventry # key: cventry # -- \cventry{${1:year}}{${2:job}}{${3:employer}}{${4:city}}{${5:description}} $0 yasnippet-snippets-0~git20161123/latex-mode/moderncv-cvlanguage000066400000000000000000000002051303266332200245220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cvlanguage # key: cvlang # -- \cvlanguage{${1:language}}{${2:skill-level}}{${3:comment}} $0 yasnippet-snippets-0~git20161123/latex-mode/moderncv-cvline000066400000000000000000000001541303266332200236710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cvline # key: cvline # -- \cvline{${1:hobby}}{${2:Description}} $0 yasnippet-snippets-0~git20161123/latex-mode/moderncv-cvlistdoubleitem000066400000000000000000000001711303266332200257660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cvlistdoubleitem # key: cvditem # -- \cvlistdoubleitem{${1:item}}{${2:item}} $0 yasnippet-snippets-0~git20161123/latex-mode/moderncv-cvlistitem000066400000000000000000000001411303266332200245700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: moderncv-cvlistitem # key: cvitem # -- \cvlistitem{${1:item}} $0 yasnippet-snippets-0~git20161123/latex-mode/movie000066400000000000000000000005431303266332200217170ustar00rootroot00000000000000# -*- 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~git20161123/latex-mode/newcommand000066400000000000000000000001441303266332200227250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: newcommand # key: cmd # -- \newcommand{\\${1:name}}${2:[${3:0}]}{$0}yasnippet-snippets-0~git20161123/latex-mode/newglossaryentry000066400000000000000000000002261303266332200242350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: newglossaryentry # key: gl # -- \newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}}yasnippet-snippets-0~git20161123/latex-mode/note000066400000000000000000000000751303266332200215450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: note # key: no # -- \note{$0}yasnippet-snippets-0~git20161123/latex-mode/python000066400000000000000000000002061303266332200221150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: python # key: py # -- \lstset{language=python} \begin[language=python]{lstlisting} $0 \end{lstlisting}yasnippet-snippets-0~git20161123/latex-mode/question000066400000000000000000000001041303266332200224400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: question # key: q # -- \question{$0}yasnippet-snippets-0~git20161123/latex-mode/section000066400000000000000000000001461303266332200222430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # -- \section{${1:name}} \label{sec:${2:label}} $0yasnippet-snippets-0~git20161123/latex-mode/subf000066400000000000000000000002421303266332200215330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subf # key: sf # -- \subfigure[${1:caption}]{ \label{fig:${2:label}} \includegraphics[width=.${3:3}\textwidth]{${4:path}}} $0yasnippet-snippets-0~git20161123/latex-mode/subfigure000066400000000000000000000004011303266332200225640ustar00rootroot00000000000000# -*- 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~git20161123/latex-mode/subsec000066400000000000000000000001531303266332200220610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subsec # key: sub # -- \subsection{${1:name}} \label{subsec:${2:label}} $0yasnippet-snippets-0~git20161123/latex-mode/textbf000066400000000000000000000001021303266332200220630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: textbf # key: b # -- \textbf{$1}$0yasnippet-snippets-0~git20161123/latex-mode/usepackage000066400000000000000000000001121303266332200227000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: usepackage # key: pkg # -- \usepackage{$0}yasnippet-snippets-0~git20161123/lisp-interaction-mode/000077500000000000000000000000001303266332200230225ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/lisp-interaction-mode/defun000066400000000000000000000001371303266332200240470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: defun # key: defun # -- (defun ${1:fun} (${2:args}) $0 )yasnippet-snippets-0~git20161123/lisp-mode/000077500000000000000000000000001303266332200205055ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/lisp-mode/class000066400000000000000000000002141303266332200215320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # -- (defclass ${1:name} (${2:inherits}) (${4:slot}) (:documentation "${3:doc}")) $0 yasnippet-snippets-0~git20161123/lisp-mode/comment000066400000000000000000000001311303266332200220650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: comment # key: /* # -- #|${1:type the comment here}|# $0 yasnippet-snippets-0~git20161123/lisp-mode/defpackage000066400000000000000000000004001303266332200224740ustar00rootroot00000000000000# -*- 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~git20161123/lisp-mode/do000066400000000000000000000003161303266332200210320ustar00rootroot00000000000000# -*- 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~git20161123/lisp-mode/for000066400000000000000000000001561303266332200212200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: for # -- (dotimes (${1:var} ${2:count-form}) ${3:body}) $0 yasnippet-snippets-0~git20161123/lisp-mode/foreach000066400000000000000000000001571303266332200220420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: do # key: foreach # -- (dolist (${1:var} ${2:list-form}) ${3:body}) $0 yasnippet-snippets-0~git20161123/lisp-mode/format000066400000000000000000000001171303266332200217170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: format # key: print # -- (format t "~& $0 ~%") yasnippet-snippets-0~git20161123/lisp-mode/if000066400000000000000000000001471303266332200210300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- (when (${1:condition}) (${2:then-do-this})) $0 yasnippet-snippets-0~git20161123/lisp-mode/ifelse000066400000000000000000000002121303266332200216720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifelse (...) (...) (...) ... # key: ifelse # -- (if (${1:condition}) (${2:then}) (${3:else})) $0 yasnippet-snippets-0~git20161123/lisp-mode/ifnot000066400000000000000000000002031303266332200215420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifnot (...) (...) ... # key: ifnot # -- (unless (${1:condition}) (${2:then-do-this})) $0 yasnippet-snippets-0~git20161123/lisp-mode/slot000066400000000000000000000007561303266332200214210ustar00rootroot00000000000000# -*- 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~git20161123/lisp-mode/switch000066400000000000000000000002371303266332200217330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: switch # key: switch # -- (cond (${1:case1} (${2:do-this})) (${3:case2} (${4:do-this})) (t ${5:default})) $0 yasnippet-snippets-0~git20161123/lisp-mode/typecast000066400000000000000000000001351303266332200222630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: typecast # name: cast # -- (coerce ${1:object} ${2:type}) $0 yasnippet-snippets-0~git20161123/lua-mode/000077500000000000000000000000001303266332200203175ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/lua-mode/fun000066400000000000000000000001421303266332200210270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- function () ${1:return something} endyasnippet-snippets-0~git20161123/m4-mode/000077500000000000000000000000001303266332200200565ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/m4-mode/def000066400000000000000000000001331303266332200205340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def # key: def # -- define(\`${1:macro}',\`${2:subst}'). $0yasnippet-snippets-0~git20161123/makefile-automake-mode/000077500000000000000000000000001303266332200231175ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/makefile-automake-mode/noinst_HEADERS000066400000000000000000000001251303266332200255050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: noinst_HEADERS # key: noinst # -- noinst_HEADERS = $0yasnippet-snippets-0~git20161123/makefile-bsdmake-mode/000077500000000000000000000000001303266332200227175ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/makefile-bsdmake-mode/PHONY000066400000000000000000000001021303266332200235300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: PHONY # key: phony # -- .PHONY: $0yasnippet-snippets-0~git20161123/makefile-bsdmake-mode/echo000066400000000000000000000001251303266332200235560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: echo # key: echo # -- @echo ${1:"message to output"} yasnippet-snippets-0~git20161123/makefile-bsdmake-mode/gen000066400000000000000000000002351303266332200234130ustar00rootroot00000000000000# -*- 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~git20161123/makefile-bsdmake-mode/if000066400000000000000000000001231303266332200232340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- @if [ ${1:cond} ] then $0 fi yasnippet-snippets-0~git20161123/makefile-bsdmake-mode/var000066400000000000000000000000771303266332200234360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: var # key: $ # -- $(${1:VAR})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/000077500000000000000000000000001303266332200223755ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/makefile-gmake-mode/abspath000066400000000000000000000002141303266332200237370ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: abspath # contributor: gbalats # key: abs # -- \$(abspath ${1:\$(${2:paths})})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/addprefix000066400000000000000000000002421303266332200242640ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: addprefix # contributor: gbalats # key: ap # -- \$(addprefix ${1:\$(${2:dir})/},${3:\$(${4:items})})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/addsuffix000066400000000000000000000002341303266332200242740ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: addsuffix # contributor: gbalats # key: as # -- \$(addsuffix ${1:.suffix},${2:\$(${3:items})})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/dir000066400000000000000000000002021303266332200230700ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: dir # contributor: gbalats # key: d # -- \$(dir ${1:\$(${2:paths})})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/make000066400000000000000000000001551303266332200232360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: make # contributor: gbalats # key: make # -- \$(MAKE) --directory=${1:\$@} $0yasnippet-snippets-0~git20161123/makefile-gmake-mode/notdir000066400000000000000000000002111303266332200236110ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: notdir # contributor: gbalats # key: nd # -- \$(notdir ${1:\$(${2:paths})})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/patsubst000066400000000000000000000001361303266332200241650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: patsubst # key: ps # -- $(patsubst ${1:from},${2:to},${3:src})yasnippet-snippets-0~git20161123/makefile-gmake-mode/phony000066400000000000000000000001001303266332200234440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: phony # key: ph # -- .PHONY = $0yasnippet-snippets-0~git20161123/makefile-gmake-mode/shell000066400000000000000000000001511303266332200234240ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: shell # key: sh # -- \$(shell ${1:command})$0yasnippet-snippets-0~git20161123/makefile-gmake-mode/special000066400000000000000000000002221303266332200237340ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: special targets # contributor: gbalats # key: . # -- .${1:PHONY$(upcase yas-text)}: $0yasnippet-snippets-0~git20161123/makefile-gmake-mode/template000066400000000000000000000003551303266332200241360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: template # contributor: gbalats # binding: C-c C-t # -- define ${1:PROGRAM$(upcase yas-text)}_template $0 endef \$(foreach ${2:${1:$(downcase yas-text)}},\$(${3:$1S}),\$(eval \$(call $1_template,\$($2))))yasnippet-snippets-0~git20161123/makefile-gmake-mode/wildcard000066400000000000000000000001061303266332200241060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: wildcard # key: wl # -- $(wildcard $0)yasnippet-snippets-0~git20161123/makefile-mode/000077500000000000000000000000001303266332200213135ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/makefile-mode/all000066400000000000000000000001031303266332200220000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: all # key: all # -- all: $0yasnippet-snippets-0~git20161123/makefile-mode/clean000066400000000000000000000002401303266332200223140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: clean # contributor: gbalats # expand-env: ((yas-indent-line 'fixed)) # key: cl # -- clean: ${1:rm -r ${2:\$(${3:OUTDIR})}} $0 yasnippet-snippets-0~git20161123/malabar-mode/000077500000000000000000000000001303266332200211355ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/malabar-mode/variable000066400000000000000000000001521303266332200226430ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: variable # key: var # -- ${1:int} ${2:n} = $0;yasnippet-snippets-0~git20161123/markdown-mode/000077500000000000000000000000001303266332200213605ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/markdown-mode/+000066400000000000000000000001311303266332200214300ustar00rootroot00000000000000#name : Unordered List #contributor: Peng Deng # -- + ${1:Text} +$0 yasnippet-snippets-0~git20161123/markdown-mode/-000066400000000000000000000001311303266332200214320ustar00rootroot00000000000000#name : Unordered List #contributor: Peng Deng # -- - ${1:Text} -$0 yasnippet-snippets-0~git20161123/markdown-mode/_000066400000000000000000000001221303266332200215140ustar00rootroot00000000000000#name : Emphasis #contributor: Peng Deng # -- _${1:Text}_ $0 yasnippet-snippets-0~git20161123/markdown-mode/__000066400000000000000000000001221303266332200216530ustar00rootroot00000000000000#name : Strong #contributor: Peng Deng # -- **${1:Text}** $0 yasnippet-snippets-0~git20161123/markdown-mode/`000066400000000000000000000001271303266332200215220ustar00rootroot00000000000000#name : Inline Code #contributor: Peng Deng # -- \`${1:Code}\` $0 yasnippet-snippets-0~git20161123/markdown-mode/h1.1000066400000000000000000000001351303266332200217510ustar00rootroot00000000000000#name : Header 1 (#) #contributor: Peng Deng # -- # ${1:Header 1} # $0 yasnippet-snippets-0~git20161123/markdown-mode/h1.2000066400000000000000000000002111303266332200217450ustar00rootroot00000000000000#name : Header 1 (=) #contributor: Peng Deng # -- ${1:Header 1} ${1:$(make-string (string-width yas-text) ?\=)} $0 yasnippet-snippets-0~git20161123/markdown-mode/h2.1000066400000000000000000000001401303266332200217460ustar00rootroot00000000000000#name : Header 2 (##) #contributor: Peng Deng # -- ## ${1:Header 1} ## $0 yasnippet-snippets-0~git20161123/markdown-mode/h2.2000066400000000000000000000002111303266332200217460ustar00rootroot00000000000000#name : Header 2 (-) #contributor: Peng Deng # -- ${1:Header 2} ${1:$(make-string (string-width yas-text) ?\-)} $0 yasnippet-snippets-0~git20161123/markdown-mode/h3000066400000000000000000000001351303266332200216140ustar00rootroot00000000000000#name : Header 3 #contributor: Peng Deng # -- ### ${1:Header 3} ### $0 yasnippet-snippets-0~git20161123/markdown-mode/h4000066400000000000000000000001371303266332200216170ustar00rootroot00000000000000#name : Header 4 #contributor: Peng Deng # -- #### ${1:Header 4} #### $0 yasnippet-snippets-0~git20161123/markdown-mode/h5000066400000000000000000000001411303266332200216130ustar00rootroot00000000000000#name : Header 5 #contributor: Peng Deng # -- ##### ${1:Header 5} ##### $0 yasnippet-snippets-0~git20161123/markdown-mode/h6000066400000000000000000000001431303266332200216160ustar00rootroot00000000000000#name : Header 6 #contributor: Peng Deng # -- ###### ${1:Header 6} ###### $0 yasnippet-snippets-0~git20161123/markdown-mode/highlight000066400000000000000000000002161303266332200232510ustar00rootroot00000000000000#name : Highlight #contributor: nguyenvinhlinh # -- {% highlight ${1:language} %} ${0:content} {% endhighlight %}yasnippet-snippets-0~git20161123/markdown-mode/hr.1000066400000000000000000000001361303266332200220530ustar00rootroot00000000000000#name : Horizontal Rule (-) #contributor: Peng Deng # -- ---------- $0 yasnippet-snippets-0~git20161123/markdown-mode/hr.2000066400000000000000000000001331303266332200220510ustar00rootroot00000000000000#name : Horizontal Rule (*) #contributor: Peng Deng # -- ******* $0 yasnippet-snippets-0~git20161123/markdown-mode/img000066400000000000000000000001411303266332200220530ustar00rootroot00000000000000#name : Image #contributor: Peng Deng # -- ![${1:Alt Text}](${2:URL} $3) $0 yasnippet-snippets-0~git20161123/markdown-mode/link000066400000000000000000000001401303266332200222330ustar00rootroot00000000000000#name : Link #contributor: Peng Deng # -- [${1:Link Text}](${2:URL} $3) $0 yasnippet-snippets-0~git20161123/markdown-mode/ol000066400000000000000000000002271303266332200217160ustar00rootroot00000000000000#name : Ordered List #contributor: Peng Deng # -- ${1:1}. ${2:Text} ${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 yasnippet-snippets-0~git20161123/markdown-mode/rimg000066400000000000000000000001431303266332200222370ustar00rootroot00000000000000#name : Referenced Image #contributor: Peng Deng # -- ![${1:Alt Text}][$2] $0 yasnippet-snippets-0~git20161123/markdown-mode/rlb000066400000000000000000000001531303266332200220610ustar00rootroot00000000000000#name : Reference Label #contributor: Peng Deng # -- [${1:Reference}]: ${2:URL} $3 $0 yasnippet-snippets-0~git20161123/markdown-mode/rlink000066400000000000000000000001411303266332200224160ustar00rootroot00000000000000#name : Reference Link #contributor: Peng Deng # -- [${1:Link Text}][$2] $0 yasnippet-snippets-0~git20161123/markdown-mode/utf8000066400000000000000000000002201303266332200221630ustar00rootroot00000000000000# name: utf-8 encoding # key: utf8 # contributor: Thiago Perrotta # -- $0 yasnippet-snippets-0~git20161123/ned-mode/000077500000000000000000000000001303266332200203045ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/ned-mode/.yas-parents000066400000000000000000000000111303266332200225430ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20161123/ned-mode/chan000066400000000000000000000001631303266332200211400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: chan # key: chan # -- channel Channel extends ${1:ned.DelayChannel} { $0 } yasnippet-snippets-0~git20161123/ned-mode/connections000066400000000000000000000001621303266332200225500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: connections # key: conn # -- connections${1: allowunconnected}: $0yasnippet-snippets-0~git20161123/ned-mode/for000066400000000000000000000001451303266332200210150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:i}=${2:0}..${3:sizeof(port)-1} { $0 }yasnippet-snippets-0~git20161123/ned-mode/import000066400000000000000000000001171303266332200215400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # -- import ned.${1:Package};yasnippet-snippets-0~git20161123/ned-mode/network000066400000000000000000000002221303266332200217140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: network # key: net # -- network ${1:Name} { submodules: $2 connections: $3 }yasnippet-snippets-0~git20161123/ned-mode/simple000066400000000000000000000001661303266332200215230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: simple # key: simple # -- simple ${1:Component}${2: extends ${3:Component}} { $0 }yasnippet-snippets-0~git20161123/ned-mode/submodules000066400000000000000000000001141303266332200224050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: submodules # key: sub # -- submodules: $0yasnippet-snippets-0~git20161123/nesc-mode/000077500000000000000000000000001303266332200204665ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/nesc-mode/.yas-parents000066400000000000000000000000211303266332200227260ustar00rootroot00000000000000text-mode cc-modeyasnippet-snippets-0~git20161123/nesc-mode/TOSSIM000066400000000000000000000001321303266332200214230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: TOSSIM # key: tossim # -- #ifndef TOSSIM $0 #endifyasnippet-snippets-0~git20161123/nesc-mode/command000066400000000000000000000001401303266332200220220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: command # key: command # -- command ${1:void} ${2:naMe}($3) { }yasnippet-snippets-0~git20161123/nesc-mode/dbg000066400000000000000000000001531303266332200211440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: dbg # key: dbg # -- dbg("${1:Module}", "${2:message}"${3:, ${4:var list}});yasnippet-snippets-0~git20161123/nesc-mode/event000066400000000000000000000001461303266332200215330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: event # key: event # -- event ${1:void} ${2:On.Event}($3) { $0 }yasnippet-snippets-0~git20161123/nesc-mode/ifdef000066400000000000000000000001431303266332200214640ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifdef # key: ifdef # -- #ifdef ${1:Macro} $2 ${3:#else} $4 #endifyasnippet-snippets-0~git20161123/nesc-mode/interface000066400000000000000000000001431303266332200223470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: interface # key: int # -- interface ${1:Interface} { $0 }yasnippet-snippets-0~git20161123/nesc-mode/module000066400000000000000000000001771303266332200217030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:Module} { ${2:uses interface ${3:Packet}}; $0 }yasnippet-snippets-0~git20161123/nesc-mode/nx000066400000000000000000000001161303266332200210340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: nx # key: nx # -- nx_uint${1:8}_t ${2:var}; $0yasnippet-snippets-0~git20161123/nesc-mode/provides000066400000000000000000000001401303266332200222370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: provides # key: provides # -- provides interface ${1:Interface};yasnippet-snippets-0~git20161123/nesc-mode/sim000066400000000000000000000001221303266332200211740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: sim # key: sim # -- #ifdef TOSSIM $0 #endifyasnippet-snippets-0~git20161123/nesc-mode/uint8_t000066400000000000000000000001131303266332200217760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uint8_t # key: u8 # -- uint8_t ${1:var}; $0yasnippet-snippets-0~git20161123/nesc-mode/uses000066400000000000000000000001521303266332200213660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: uses # key: uses # -- uses interface ${1:Interface}${2: as ${3:alias}}; $0yasnippet-snippets-0~git20161123/nix-mode/000077500000000000000000000000001303266332200203345ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/nix-mode/buildPhase000066400000000000000000000001221303266332200223320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: buildPhase # key: bp # -- buildPhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/checkPhase000066400000000000000000000001221303266332200223100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: checkPhase # key: ch # -- checkPhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/configurePhase000066400000000000000000000001321303266332200232150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: configurePhase # key: cp # -- configurePhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/distPhase000066400000000000000000000001201303266332200221740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: distPhase # key: dp # -- distPhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/fixPhase000066400000000000000000000001161303266332200220240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixPhase # key: fp # -- fixPhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/installCheckPhase000066400000000000000000000001401303266332200236370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: installCheckPhase # key: ic # -- installCheckPhase= '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/installPhase000066400000000000000000000003041303266332200227030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: installPhase # key: ip # -- installPhase= '' ${1: mkdir -p \$out/bin for f in \$(find . -executable -type f); do cp \$f \$out/bin/ done} ''; $0yasnippet-snippets-0~git20161123/nix-mode/package_github000066400000000000000000000015351303266332200232200ustar00rootroot00000000000000# -*- mode: snippet -*- # name: package github # key: pg # -- { stdenv, fetchFromGitHub$1 }: stdenv.mkDerivation rec { name = "$2-\$\{version\}"; version = "$3"; src = fetchFromGitHub { owner = "$4"; repo = "$2"; rev = "${5:v\$\{version\}}"; sha256 = "$6"; }; buildInputs = [ $1]; meta = { description = "$7"; homepage = https://${8:github.com/$4/$2}; license = stdenv.lib.licenses.${9:$$ (yas-choose-value '( "agpl3" "asl20" "bsd2" "bsd3" "gpl2" "gpl3" "lgpl3" "mit" ))}; maintainers = [ stdenv.lib.maintainers.$10 ]; platforms = stdenv.lib.platforms.${11:$$ (yas-choose-value '( "gnu" "linux" "darwin" "freebsd" "openbsd" "netbsd" "cygwin" "illumos" "unix" "all" "none" "allBut" "mesaPlatforms" "x86" "i686" "arm" "mips" ))}; }; } yasnippet-snippets-0~git20161123/nix-mode/package_url000066400000000000000000000014041303266332200225330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: package url # key: pu # -- { stdenv, fetchurl$1}: stdenv.mkDerivation rec { version = "$2"; name = "$3-\$\{version\}"; src = fetchurl { url = "$4"; sha256 = "$5"; }; buildInputs = [ $1 ]; meta = { description = "$6"; homepage = https://$7; license = stdenv.lib.licenses.${8:$$ (yas-choose-value '( "agpl3" "asl20" "bsd2" "bsd3" "gpl2" "gpl3" "lgpl3" "mit" ))}; maintainers = [ stdenv.lib.maintainers.$9 ]; platforms = stdenv.lib.platforms.${10:$$ (yas-choose-value '( "gnu" "linux" "darwin" "freebsd" "openbsd" "netbsd" "cygwin" "illumos" "unix" "all" "none" "allBut" "mesaPlatforms" "x86" "i686" "arm" "mips" ))}; }; } yasnippet-snippets-0~git20161123/nix-mode/patchPhase000066400000000000000000000001251303266332200223350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: patchPhase # key: pp # -- patchPhase = '' $1 ''; $0yasnippet-snippets-0~git20161123/nix-mode/phases000066400000000000000000000004321303266332200215410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: phases # key: ph # -- phases="${1:\$prePhases unpackPhase patchPhase \$preConfigurePhases configurePhase \$preBuildPhases buildPhase checkPhase \$preInstallPhases installPhase fixupPhase installCheckPhase \$preDistPhases distPhase \$postPhases}"; yasnippet-snippets-0~git20161123/nix-mode/unpackPhase000066400000000000000000000001301303266332200225130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: unpackPhase # key: up # -- unpackPhase = '' $1 ''; $0 yasnippet-snippets-0~git20161123/nsis-mode/000077500000000000000000000000001303266332200205125ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/nsis-mode/.yas-parents000066400000000000000000000000111303266332200227510ustar00rootroot00000000000000prog-modeyasnippet-snippets-0~git20161123/nsis-mode/define000066400000000000000000000001271303266332200216670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: define # key: def # -- !define ${1:CONSTANT} ${2:value}yasnippet-snippets-0~git20161123/nsis-mode/function000066400000000000000000000001431303266332200222600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- Function ${1:Name} $0 FunctionEndyasnippet-snippets-0~git20161123/nsis-mode/if000066400000000000000000000001551303266332200210340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- ${IF} ${1:cond} $0 ${ElseIf} ${2:else_cond} ${EndIf}yasnippet-snippets-0~git20161123/nsis-mode/include000066400000000000000000000001211303266332200220520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: include # key: inc # -- !include "${Library.nsh}"yasnippet-snippets-0~git20161123/nsis-mode/insert_macro000066400000000000000000000001351303266332200231210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: insert_macro # key: im # -- !insermacro ${1:Name} ${2:"args"}yasnippet-snippets-0~git20161123/nsis-mode/instdir000066400000000000000000000000761303266332200221140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: instdir # key: $ # -- $INSTDIRyasnippet-snippets-0~git20161123/nsis-mode/macro000066400000000000000000000001311303266332200215310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: macro # key: macro # -- !macro ${1:Name} UN $0 !macroendyasnippet-snippets-0~git20161123/nsis-mode/message000066400000000000000000000001251303266332200220570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: message # key: msg # -- MessageBox MB_OK "${1:hello}"yasnippet-snippets-0~git20161123/nsis-mode/outdir000066400000000000000000000000741303266332200217440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: outdir # key: $ # -- $OUTDIRyasnippet-snippets-0~git20161123/nsis-mode/outfile000066400000000000000000000001201303266332200220750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: outfile # key: out # -- outFile "${1:setup}.exe"yasnippet-snippets-0~git20161123/nsis-mode/section000066400000000000000000000001441303266332200221000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: sec # -- Section "${1:Program}" $0 SectionEndyasnippet-snippets-0~git20161123/nxml-mode/000077500000000000000000000000001303266332200205145ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/nxml-mode/body000066400000000000000000000001571303266332200213770ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $0 yasnippet-snippets-0~git20161123/nxml-mode/br000066400000000000000000000001241303266332200210370ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
# --
yasnippet-snippets-0~git20161123/nxml-mode/doctype000066400000000000000000000003051303266332200221040ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.1 #group : meta # -- yasnippet-snippets-0~git20161123/nxml-mode/doctype_xhtml1_strict000066400000000000000000000003301303266332200247670ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.0 Strict #group : meta # -- yasnippet-snippets-0~git20161123/nxml-mode/doctype_xhtml1_transitional000066400000000000000000000003521303266332200261720ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : DocType XHTML 1.0 Transitional #group : meta # -- yasnippet-snippets-0~git20161123/nxml-mode/form000066400000000000000000000002331303266332200214000ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
# --
$0
yasnippet-snippets-0~git20161123/nxml-mode/href000066400000000000000000000001711303266332200213620ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... #key: a # -- $2yasnippet-snippets-0~git20161123/nxml-mode/html000066400000000000000000000003021303266332200213760ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $0 yasnippet-snippets-0~git20161123/nxml-mode/img000066400000000000000000000001741303266332200212150ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... # -- $2yasnippet-snippets-0~git20161123/nxml-mode/input000066400000000000000000000001751303266332200216010ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20161123/nxml-mode/link000066400000000000000000000002701303266332200213730ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20161123/nxml-mode/meta000066400000000000000000000002551303266332200213670ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : #group : meta # -- yasnippet-snippets-0~git20161123/nxml-mode/name000066400000000000000000000001531303266332200213560ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20161123/nxml-mode/quote000066400000000000000000000002051303266332200215710ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name :
...
# --
$1
yasnippet-snippets-0~git20161123/nxml-mode/style000066400000000000000000000002611303266332200215760ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : # -- yasnippet-snippets-0~git20161123/nxml-mode/tag000066400000000000000000000001561303266332200212140ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : ... #key: t # -- <${1:tag}>$2$0yasnippet-snippets-0~git20161123/nxml-mode/tag_closing000066400000000000000000000001411303266332200227240ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : #key: t # -- <$1 $2 />$0yasnippet-snippets-0~git20161123/nxml-mode/tag_newline000066400000000000000000000001701303266332200227310ustar00rootroot00000000000000#contributor : Anders Bach Nielsen #name : \n...\n #key: tn # -- <${1:tag}> $2 $0yasnippet-snippets-0~git20161123/octave-mode/000077500000000000000000000000001303266332200210175ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/octave-mode/for000066400000000000000000000001321303266332200215240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:var} = ${2:expr} $0 endforyasnippet-snippets-0~git20161123/octave-mode/function000066400000000000000000000002021303266332200225610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- function ${1:return_val} = ${2:fname}(${3:args}) $0 endfunctionyasnippet-snippets-0~git20161123/octave-mode/if000066400000000000000000000001471303266332200213420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if ${1:cond} $0 ${2:else ${3:other}} endifyasnippet-snippets-0~git20161123/org-mode/000077500000000000000000000000001303266332200203255ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/org-mode/dot000066400000000000000000000002541303266332200210370ustar00rootroot00000000000000# -*- 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~git20161123/org-mode/elisp000066400000000000000000000001501303266332200213600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: elisp # key: elisp_ # -- #+begin_src emacs-lisp :tangle yes $0 #+end_srcyasnippet-snippets-0~git20161123/org-mode/embedded000066400000000000000000000001431303266332200217770ustar00rootroot00000000000000# -*- mode: snippet -*- # name: embedded # key: emb_ # -- src_${1:lang}${2:[${3:where}]}{${4:code}}yasnippet-snippets-0~git20161123/org-mode/entry000066400000000000000000000002021303266332200214030ustar00rootroot00000000000000# -*- mode: snippet -*- # name: entry # key: entry_ # -- #+begin_html --- layout: ${1:default} title: ${2:title} --- #+end_html $0yasnippet-snippets-0~git20161123/org-mode/figure000066400000000000000000000002061303266332200215270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: figure # key: fig_ # -- #+CAPTION: ${1:caption} #+ATTR_LaTeX: ${2:scale=0.75} #+LABEL: fig:${3:label} yasnippet-snippets-0~git20161123/org-mode/img000066400000000000000000000002171303266332200210240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: img # key: img_ # -- $2 $0yasnippet-snippets-0~git20161123/org-mode/latex000066400000000000000000000001251303266332200213630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: latex # key: latex_ # -- #+BEGIN_LaTeX $0 #+END_LaTeXyasnippet-snippets-0~git20161123/org-mode/matrix000066400000000000000000000003231303266332200215520ustar00rootroot00000000000000# -*- 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~git20161123/org-mode/uml000066400000000000000000000001541303266332200210450ustar00rootroot00000000000000# -*- mode: snippet -*- #name : uml #key : uml #contributor : Robert O'Connor # -- #+BEGIN_UML $1 #+END_UML yasnippet-snippets-0~git20161123/org-mode/verse000066400000000000000000000001351303266332200213730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: verse # key: verse_ # -- #+begin_verse $0 #+end_verseyasnippet-snippets-0~git20161123/perl-mode/000077500000000000000000000000001303266332200205005ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/perl-mode/.yas-parents000066400000000000000000000000121303266332200227400ustar00rootroot00000000000000text-mode yasnippet-snippets-0~git20161123/perl-mode/eval000066400000000000000000000002121303266332200213450ustar00rootroot00000000000000# name: eval { ... } if ($@) { ... } # key: eval # -- eval { ${1:# do something risky...} }; if (\$@) { ${2:# handle failure...} }yasnippet-snippets-0~git20161123/perl-mode/for000066400000000000000000000001701303266332200212070ustar00rootroot00000000000000# name: for (...) { ... } # key: for # -- for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { ${3:# body...} }yasnippet-snippets-0~git20161123/perl-mode/fore000066400000000000000000000001451303266332200213560ustar00rootroot00000000000000# name: foreach ... { ... } # key: fore # -- foreach my \$${1:x} (@${2:array}) { ${3:# body...} }yasnippet-snippets-0~git20161123/perl-mode/if000066400000000000000000000000721303266332200210200ustar00rootroot00000000000000# name: if (...) { ... } # key: if # -- if ($1) { $0 }yasnippet-snippets-0~git20161123/perl-mode/ife000066400000000000000000000001301303266332200211600ustar00rootroot00000000000000# name: if (...) { ... } else { ... } # key: ife # -- if ($1) { $2 } else { $3 }yasnippet-snippets-0~git20161123/perl-mode/ifee000066400000000000000000000002011303266332200213240ustar00rootroot00000000000000# name: if, elsif, else ... # key: ifee # -- if ($1) { ${2:# body...} } elsif ($3) { ${4:# elsif...} } else { ${5:# else...} }yasnippet-snippets-0~git20161123/perl-mode/sub000066400000000000000000000001111303266332200212050ustar00rootroot00000000000000# name: sub ... { ... } # key: sub # -- sub ${1:function_name} { $0 }yasnippet-snippets-0~git20161123/perl-mode/unless000066400000000000000000000001061303266332200217310ustar00rootroot00000000000000# name: unless (...) { ... } # key: unless # -- unless ($1) { $0 }yasnippet-snippets-0~git20161123/perl-mode/while000066400000000000000000000001031303266332200215250ustar00rootroot00000000000000# name: while (...) { ... } # key: while # -- while ($1) { $0 }yasnippet-snippets-0~git20161123/perl-mode/xfore000066400000000000000000000001161303266332200215440ustar00rootroot00000000000000# name: ... foreach ... # key: xfore # -- ${1:expression} foreach @${2:array};yasnippet-snippets-0~git20161123/perl-mode/xif000066400000000000000000000001041303266332200212040ustar00rootroot00000000000000# name: ... if ... # key: xif # -- ${1:expression} if ${2:condition}yasnippet-snippets-0~git20161123/perl-mode/xunless000066400000000000000000000001201303266332200221150ustar00rootroot00000000000000# name: ... unless ... # key: xunless # -- ${1:expression} unless ${2:condition}yasnippet-snippets-0~git20161123/perl-mode/xwhile000066400000000000000000000001161303266332200217210ustar00rootroot00000000000000# name: ... while ... # key: xwhile # -- ${1:expression} while ${2:condition};yasnippet-snippets-0~git20161123/prog-mode/000077500000000000000000000000001303266332200205055ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/prog-mode/.yas-setup.el000066400000000000000000000023341303266332200230410ustar00rootroot00000000000000(require 'yasnippet) (defun yas-with-comment (str) (format "%s%s%s" comment-start str comment-end)) ;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun yas-s-trim-left (s) "Remove whitespace at the beginning of S." (if (string-match "\\`[ \t\n\r]+" s) (replace-match "" t t s) s)) (defun yas-s-trim-right (s) "Remove whitespace at the end of S." (if (string-match "[ \t\n\r]+\\'" s) (replace-match "" t t s) s)) (defun yas-s-trim (s) "Remove whitespace at the beginning and end of S." (yas-s-trim-left (yas-s-trim-right s))) (defun yas-string-reverse (str) "Reverse a string STR manually to be compatible with emacs versions < 25." (apply #'string (reverse (string-to-list str)))) (defun yas-trimmed-comment-start () "This function returns `comment-start' trimmed by whitespaces." (yas-s-trim comment-start)) (defun yas-trimmed-comment-end () "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." (if (eq (length comment-end) 0) (yas-string-reverse (yas-trimmed-comment-start)) (yas-s-trim comment-end))) yasnippet-snippets-0~git20161123/prog-mode/comment000066400000000000000000000003561303266332200220760ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: sh-ow # name: comment # key: co # -- ${1:$(yas-trimmed-comment-start)} ${1:comment}${1:$(unless (eq (length comment-end) 0) (concat " " (yas-trimmed-comment-end)))}$0yasnippet-snippets-0~git20161123/prog-mode/commentblock000066400000000000000000000037201303266332200231070ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: sh-ow # name: commentblock # key: cob # -- ${1:$(let* ((col (current-column)) (str "") (lastcom (substring (yas-trimmed-comment-start) -1)) (start (yas-trimmed-comment-start)) (end (yas-trimmed-comment-end)) (over (- (+ (string-width yas-text) (length start) (length end) col) 77))) (while (< (length str) (+ (- 79 (length start) (length end) col) (if (> over 0) over 0))) (setq str (concat str lastcom))) (concat start str end))} ${1:$(let* ((col (current-column)) (str "") (start (yas-trimmed-comment-start)) (end (yas-trimmed-comment-end))) (while (< (length str) (ffloor (/ (- 78.0 (+ col (length start) (string-width yas-text) (length end))) 2.0))) (setq str (concat str " "))) (concat start str))} ${1:comment} ${1:$(let* ((col (current-column)) (str "") (start (yas-trimmed-comment-start)) (end (yas-trimmed-comment-end))) (while (< (length str) (- 79.0 (if (eq (mod (string-width yas-text) 2) 1) (- col 1) col) (length end))) (setq str (concat str " "))) (concat str end))} ${1:$(let* ((col (current-column)) (str "") (lastcom (substring (yas-trimmed-comment-start) -1)) (start (yas-trimmed-comment-start)) (end (yas-trimmed-comment-end)) (over (- (+ (string-width yas-text) (length start) (length end) col) 77))) (while (< (length str) (+ (- 79 (length start) (length end) col) (if (> over 0) over 0))) (setq str (concat str lastcom))) (concat start str end))}$0yasnippet-snippets-0~git20161123/prog-mode/commentline000066400000000000000000000013441303266332200227440ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: sh-ow # name: commentline # key: col # -- ${1:$(yas-trimmed-comment-start)} ${1:comment} ${1:$(let* ((str "") (curr (current-column)) (start (yas-trimmed-comment-start)) (lastcom (substring start -1)) (end (yas-trimmed-comment-end))) (while (< (length str) (- 79 (+ curr (length end)))) (setq str (concat str lastcom))) (concat str end))}$0yasnippet-snippets-0~git20161123/prog-mode/fixme000066400000000000000000000001771303266332200215450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fixme # key: fi # condition: (not (eq major-mode 'sh-mode)) # -- `(yas-with-comment "FIXME: ")`yasnippet-snippets-0~git20161123/prog-mode/todo000066400000000000000000000001201303266332200213660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: todo # key: t # -- `(yas-with-comment "TODO: ")`yasnippet-snippets-0~git20161123/prog-mode/xxx000066400000000000000000000001161303266332200212550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: xxx # key: x # -- `(yas-with-comment "XXX: ")`yasnippet-snippets-0~git20161123/python-mode/000077500000000000000000000000001303266332200210575ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/python-mode/.yas-parents000066400000000000000000000000121303266332200233170ustar00rootroot00000000000000prog-mode yasnippet-snippets-0~git20161123/python-mode/.yas-setup.el000066400000000000000000000033121303266332200234100ustar00rootroot00000000000000(require 'yasnippet) (defvar yas-text) (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)))) (defun python-args-to-docstring-numpy () "return docstring format for the python arguments in yas-text" (let* ((args (python-split-args yas-text)) (format-arg (lambda(arg) (concat (nth 0 arg) " : " (if (nth 1 arg) ", optional") "\n"))) (formatted-params (mapconcat format-arg args "\n")) (formatted-ret (mapconcat format-arg (list (list "out")) "\n"))) (unless (string= formatted-params "") (mapconcat 'identity (list "\nParameters\n----------" formatted-params "\nReturns\n-------" formatted-ret) "\n")))) (add-hook 'python-mode-hook '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed))) yasnippet-snippets-0~git20161123/python-mode/__contains__000066400000000000000000000001701303266332200234120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __contains__ # key: cont # group: dunder methods # -- def __contains__(self, el): $0yasnippet-snippets-0~git20161123/python-mode/__enter__000066400000000000000000000001761303266332200227170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __enter__ # key: ent # group: dunder methods # -- def __enter__(self): $0 return selfyasnippet-snippets-0~git20161123/python-mode/__exit__000066400000000000000000000002021303266332200225410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __exit__ # key: ex # group: dunder methods # -- def __exit__(self, type, value, traceback): $0yasnippet-snippets-0~git20161123/python-mode/__getitem__000066400000000000000000000001751303266332200232370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __getitem__ # key: getit # group: dunder methods # -- def __getitem__(self, ${1:key}): $0yasnippet-snippets-0~git20161123/python-mode/__len__000066400000000000000000000001511303266332200223510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __len__ # key: len # group: dunder methods # -- def __len__(self): $0yasnippet-snippets-0~git20161123/python-mode/__new__000066400000000000000000000002541303266332200223700ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/__setitem__000066400000000000000000000002071303266332200232470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __setitem__ # key: setit # group: dunder methods # -- def __setitem__(self, ${1:key}, ${2:val}): $0yasnippet-snippets-0~git20161123/python-mode/all000066400000000000000000000001101303266332200215420ustar00rootroot00000000000000# -*- mode: snippet -*- # name: all # key: all # -- __all__ = [ $0 ]yasnippet-snippets-0~git20161123/python-mode/arg000066400000000000000000000002021303266332200215450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: arg # key: arg # group: argparser # -- parser.add_argument('-$1', '--$2', $0) yasnippet-snippets-0~git20161123/python-mode/arg_positional000066400000000000000000000001711303266332200240130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: arg_positional # key: arg # group: argparser # -- parser.add_argument('${1:varname}', $0)yasnippet-snippets-0~git20161123/python-mode/assert000066400000000000000000000001211303266332200222750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: ass # group: testing # -- assert $0yasnippet-snippets-0~git20161123/python-mode/assertEqual000066400000000000000000000001441303266332200232720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertEqual # key: ae # group: testing # -- self.assertEqual($1, $2)yasnippet-snippets-0~git20161123/python-mode/assertFalse000066400000000000000000000001401303266332200232510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertFalse # key: af # group: testing # -- self.assertFalse($0)yasnippet-snippets-0~git20161123/python-mode/assertIn000066400000000000000000000001631303266332200225720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertIn # key: ai # group: testing # -- self.assertIn(${1:member}, ${2:container})yasnippet-snippets-0~git20161123/python-mode/assertNotEqual000066400000000000000000000001531303266332200237530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertNotEqual # key: ane # group: testing # -- self.assertNotEqual($1, $2)yasnippet-snippets-0~git20161123/python-mode/assertNotIn000066400000000000000000000001701303266332200232510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assetNotIn # key: an # group: testing # -- self.assertNotIn(${1:member}, ${2:container})yasnippet-snippets-0~git20161123/python-mode/assertRaises000066400000000000000000000001701303266332200234500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertRaises # key: ar # group: testing # -- self.assertRaises(${1:Exception}, ${2:fun})yasnippet-snippets-0~git20161123/python-mode/assertRaises.with000066400000000000000000000001531303266332200244230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertRaises # key: ar # -- with self.assertRaises(${1:Exception}): $0 yasnippet-snippets-0~git20161123/python-mode/assertTrue000066400000000000000000000001361303266332200231430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assertTrue # key: at # group: testing # -- self.assertTrue($0)yasnippet-snippets-0~git20161123/python-mode/celery_pdb000066400000000000000000000001711303266332200231110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: celery pdb # key: cdb # group: debug # -- from celery.contrib import rdb; rdb.set_trace()yasnippet-snippets-0~git20161123/python-mode/classmethod000066400000000000000000000001751303266332200233130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: classmethod # key: cm # group: object oriented # -- @classmethod def ${1:meth}(cls, $0): yasnippet-snippets-0~git20161123/python-mode/cls000066400000000000000000000001501303266332200215570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # group: object oriented # -- class ${1:class}: $0 yasnippet-snippets-0~git20161123/python-mode/dec000066400000000000000000000003451303266332200215370ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/deftest000066400000000000000000000001551303266332200224410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: deftest # key: dt # group: testing # -- def test_${1:long_name}(self): $0yasnippet-snippets-0~git20161123/python-mode/django_test_class000066400000000000000000000002251303266332200244670ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: django_test_class # key: tcs # group: testing # -- class ${1:Model}Test(TestCase): $0yasnippet-snippets-0~git20161123/python-mode/doc000066400000000000000000000000731303266332200215470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doc # key: d # -- """$0 """yasnippet-snippets-0~git20161123/python-mode/doctest000066400000000000000000000001671303266332200224530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: doctest # key: doc # group: testing # -- >>> ${1:function calls} ${2:desired output} $0yasnippet-snippets-0~git20161123/python-mode/eq000066400000000000000000000002051303266332200214040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __eq__ # key: eq # group: dunder methods # -- def __eq__(self, other): return self.$1 == other.$1yasnippet-snippets-0~git20161123/python-mode/for000066400000000000000000000001541303266332200215700ustar00rootroot00000000000000# name: for ... in ... : ... # key: for # group : control structure # -- for ${var} in ${collection}: $0yasnippet-snippets-0~git20161123/python-mode/from000066400000000000000000000001461303266332200217460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: from # key: from # group : general # -- from ${1:lib} import ${2:funs}yasnippet-snippets-0~git20161123/python-mode/function000066400000000000000000000001541303266332200226270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: f # group: definitions # -- def ${1:fun}(${2:args}): $0 yasnippet-snippets-0~git20161123/python-mode/function_docstring000066400000000000000000000002551303266332200247050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function_docstring # key: fd # group: definitions # -- def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20161123/python-mode/function_docstring_numpy000066400000000000000000000003721303266332200261350ustar00rootroot00000000000000# -*- mode: snippet -*- # contributor: Egor Panfilov # name: function_docstring_numpy # key: fdn # group: definitions # -- def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring-numpy)} \"\"\" $0yasnippet-snippets-0~git20161123/python-mode/if000066400000000000000000000001431303266332200213760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # group : control structure # -- if ${1:cond}: $0 yasnippet-snippets-0~git20161123/python-mode/ife000066400000000000000000000001531303266332200215440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # group : control structure # -- if $1: $2 else: $0 yasnippet-snippets-0~git20161123/python-mode/ifmain000066400000000000000000000001411303266332200222410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifmain # key: ifm # -- if __name__ == '__main__': ${1:main()}yasnippet-snippets-0~git20161123/python-mode/import000066400000000000000000000001561303266332200223160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: import # key: imp # group : general # -- import ${1:lib}${2: as ${3:alias}} $0yasnippet-snippets-0~git20161123/python-mode/init000066400000000000000000000002131303266332200217410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: init # key: init # group : definitions # -- def __init__(self${1:, args}): ${2:"${3:docstring}" }$0yasnippet-snippets-0~git20161123/python-mode/init_docstring000066400000000000000000000002551303266332200240230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: init_docstring # key: id # group : definitions # -- def __init__(self$1): \"\"\"$2 ${1:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20161123/python-mode/interact000066400000000000000000000001431303266332200226110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: interact # key: int # -- import code; code.interact(local=locals())yasnippet-snippets-0~git20161123/python-mode/ipdbdebug000066400000000000000000000002031303266332200227220ustar00rootroot00000000000000# -*- mode: snippet; require-final-newline: nil -*- # name: ipdb trace # key: itr # group: debug # -- import ipdb; ipdb.set_trace()yasnippet-snippets-0~git20161123/python-mode/iter000066400000000000000000000001761303266332200217510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __iter__ # key: iter # group: dunder methods # -- def __iter__(self): return ${1:iter($2)}yasnippet-snippets-0~git20161123/python-mode/lambda000066400000000000000000000001101303266332200222120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: lambda # key: lam # -- lambda ${1:x}: $0yasnippet-snippets-0~git20161123/python-mode/list000066400000000000000000000001521303266332200217530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list # key: li # group : definitions # -- [${1:el} for $1 in ${2:list}] $0yasnippet-snippets-0~git20161123/python-mode/logger_name000066400000000000000000000001441303266332200232600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: logger_name # key: ln # -- logger = logging.getLogger(${1:__name__})yasnippet-snippets-0~git20161123/python-mode/logging000066400000000000000000000002041303266332200224240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: logging # key: log # -- logger = logging.getLogger("${1:name}") logger.setLevel(logging.${2:level}) yasnippet-snippets-0~git20161123/python-mode/main000066400000000000000000000001101303266332200217160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: main # -- def main(): $0yasnippet-snippets-0~git20161123/python-mode/metaclass000066400000000000000000000001461303266332200227570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: metaclass # key: mt # group: object oriented # -- __metaclass__ = typeyasnippet-snippets-0~git20161123/python-mode/method000066400000000000000000000001641303266332200222630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: method # key: m # group: object oriented # -- def ${1:method}(self${2:, $3}): $0yasnippet-snippets-0~git20161123/python-mode/method_docstring000066400000000000000000000002631303266332200243370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: method_docstring # key: md # group: object oriented # -- def ${1:name}(self$2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" $0yasnippet-snippets-0~git20161123/python-mode/not_impl000066400000000000000000000001271303266332200226230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: not_impl # key: not_impl # -- raise NotImplementedErroryasnippet-snippets-0~git20161123/python-mode/np000066400000000000000000000001311303266332200214120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: np # key: np # group : general # -- import numpy as np $0yasnippet-snippets-0~git20161123/python-mode/parse_args000066400000000000000000000003031303266332200231240ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/parser000066400000000000000000000002001303266332200222660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parser # key: pars # group: argparser # -- parser = argparse.ArgumentParser(description='$1') $0yasnippet-snippets-0~git20161123/python-mode/pass000066400000000000000000000000701303266332200217450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pass # key: ps # -- passyasnippet-snippets-0~git20161123/python-mode/pl000066400000000000000000000001631303266332200214150ustar00rootroot00000000000000# -*- mode: snippet -*- # name: Import pyplot # key: plt # group : general # -- import matplotlib.pyplot as plt $0 yasnippet-snippets-0~git20161123/python-mode/print000066400000000000000000000000751303266332200221400ustar00rootroot00000000000000# -*- mode: snippet -*- # name: print # key: p # -- print($0)yasnippet-snippets-0~git20161123/python-mode/prop000066400000000000000000000004601303266332200217620ustar00rootroot00000000000000# 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~git20161123/python-mode/reg000066400000000000000000000001571303266332200215620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: reg # key: reg # group : general # -- ${1:regexp} = re.compile(r"${2:expr}") $0yasnippet-snippets-0~git20161123/python-mode/repr000066400000000000000000000001541303266332200217520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __repr__ # key: repr # group: dunder methods # -- def __repr__(self): $0yasnippet-snippets-0~git20161123/python-mode/return000066400000000000000000000000761303266332200223240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: return # key: r # -- return $0yasnippet-snippets-0~git20161123/python-mode/scls000066400000000000000000000001761303266332200217520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: subclass # key: scls # group: object oriented # -- class ${1:class}(${2:super-class}): $0 yasnippet-snippets-0~git20161123/python-mode/script000066400000000000000000000002151303266332200223040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: script # key: script # -- #!/usr/bin/env python def main(): pass if __name__ == '__main__': main() yasnippet-snippets-0~git20161123/python-mode/self000066400000000000000000000001231303266332200217270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: self # key: . # group: object oriented # -- self.$0yasnippet-snippets-0~git20161123/python-mode/self_without_dot000066400000000000000000000001341303266332200243620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: self_without_dot # key: s # group: object oriented # -- selfyasnippet-snippets-0~git20161123/python-mode/selfassign000066400000000000000000000001371303266332200231410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: selfassign # key: sn # group: object oriented # -- self.$1 = $1yasnippet-snippets-0~git20161123/python-mode/setdef000066400000000000000000000001561303266332200222560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: setdef # key: setdef # -- ${1:var}.setdefault(${2:key}, []).append(${3:value})yasnippet-snippets-0~git20161123/python-mode/setup000066400000000000000000000003771303266332200221510ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/size000066400000000000000000000001071303266332200217520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: size # key: size # -- sys.getsizeof($0)yasnippet-snippets-0~git20161123/python-mode/static000066400000000000000000000001271303266332200222710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: static # key: sm # -- @staticmethod def ${1:func}($0): yasnippet-snippets-0~git20161123/python-mode/str000066400000000000000000000001511303266332200216070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __str__ # key: str # group: dunder methods # -- def __str__(self): $0yasnippet-snippets-0~git20161123/python-mode/super000066400000000000000000000002751303266332200221440ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/test_class000066400000000000000000000002031303266332200231410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test_class # key: tcs # group : testing # -- class Test${1:toTest}(${2:unittest.TestCase}): $0 yasnippet-snippets-0~git20161123/python-mode/test_file000066400000000000000000000002601303266332200227560ustar00rootroot00000000000000# -*- 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~git20161123/python-mode/trace000066400000000000000000000001371303266332200221010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: trace # key: tr # group: debug # -- import pdb; pdb.set_trace()yasnippet-snippets-0~git20161123/python-mode/try000066400000000000000000000001351303266332200216170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try: $1 except ${2:Exception}: $0yasnippet-snippets-0~git20161123/python-mode/tryelse000066400000000000000000000001421303266332200224660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tryelse # key: try # -- try: $1 except $2: $3 else: $0yasnippet-snippets-0~git20161123/python-mode/unicode000066400000000000000000000001601303266332200224250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: __unicode__ # key: un # group: dunder methods # -- def __unicode__(self): $0yasnippet-snippets-0~git20161123/python-mode/utf8000066400000000000000000000001301303266332200216620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: utf-8 encoding # key: utf8 # -- # -*- coding: utf-8 -*- yasnippet-snippets-0~git20161123/python-mode/while000066400000000000000000000001471303266332200221140ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: wh # group: control structure # -- while ${1:True}: $0yasnippet-snippets-0~git20161123/python-mode/with000066400000000000000000000001731303266332200217560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: with # key: with # group : control structure # -- with ${1:expr}${2: as ${3:alias}}: $0yasnippet-snippets-0~git20161123/python-mode/with_statement000066400000000000000000000001631303266332200240410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: with_statement # key: fw # group: future # -- from __future__ import with_statementyasnippet-snippets-0~git20161123/rename_add_contr.py000077500000000000000000000014551303266332200224620ustar00rootroot00000000000000#!/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~git20161123/rst-mode/000077500000000000000000000000001303266332200203465ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/rst-mode/autoclass000066400000000000000000000001531303266332200222660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: autoclass # key: auto # -- .. autoclass:: $0 ${1::members: ${2:members}}yasnippet-snippets-0~git20161123/rst-mode/autofunction000066400000000000000000000001221303266332200230020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: autofunction # key: auto # -- .. autofunction:: $0yasnippet-snippets-0~git20161123/rst-mode/automodule000066400000000000000000000001341303266332200224450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: automodule # key: auto # -- .. automodule:: ${1:module_name}yasnippet-snippets-0~git20161123/rst-mode/chapter000066400000000000000000000002011303266332200217100ustar00rootroot00000000000000# -*- mode: snippet -*- # name : Chapter title # key: chap # -- ${1:Chapter} ${1:$(make-string (string-width yas-text) ?\=)} $0 yasnippet-snippets-0~git20161123/rst-mode/class000066400000000000000000000001031303266332200213700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: class # key: cls # -- :class:\`$0\`yasnippet-snippets-0~git20161123/rst-mode/code000066400000000000000000000001131303266332200211760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: code # key: code # -- .. code:: ${1:python}yasnippet-snippets-0~git20161123/rst-mode/digraph000066400000000000000000000001201303266332200217000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: digraph # key: graph # -- .. digraph:: $1 $0yasnippet-snippets-0~git20161123/rst-mode/function000066400000000000000000000001111303266332200221070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: fun # -- :function:\`$0\`yasnippet-snippets-0~git20161123/rst-mode/graph000066400000000000000000000001141303266332200213660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: graph # key: graph # -- .. graph:: $1 $0yasnippet-snippets-0~git20161123/rst-mode/graphviz000066400000000000000000000001171303266332200221220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: graphviz # key: graph # -- .. graphviz:: $0yasnippet-snippets-0~git20161123/rst-mode/image000066400000000000000000000002211303266332200213460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: image # key: img # -- .. image:: ${1:path} :height: ${2:100} :width: ${3:200} :alt: ${4:description} $0yasnippet-snippets-0~git20161123/rst-mode/inheritance000066400000000000000000000001271303266332200225620ustar00rootroot00000000000000# -*- mode: snippet -*- # name: inheritance # key: inh # -- .. inheritance-diagram:: $0yasnippet-snippets-0~git20161123/rst-mode/literal_include000066400000000000000000000001371303266332200234310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: literatal include # key: inc # -- .. literalinclude:: ${1:path}yasnippet-snippets-0~git20161123/rst-mode/meta000066400000000000000000000001001303266332200212060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: meta # key: : # -- :${1:var}: $0yasnippet-snippets-0~git20161123/rst-mode/module000066400000000000000000000001031303266332200215500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- :mod: \`$0\`yasnippet-snippets-0~git20161123/rst-mode/parsed_literal000066400000000000000000000001301303266332200232550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: parsed_literal # key: src # -- .. parsed-literal:: $0yasnippet-snippets-0~git20161123/rst-mode/pause000066400000000000000000000001401303266332200214010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pause # key: pause # group: hieroglyph # -- .. rst-class:: buildyasnippet-snippets-0~git20161123/rst-mode/section000066400000000000000000000002001303266332200217250ustar00rootroot00000000000000# -*- mode: snippet -*- # name : Section title # key: sec # -- ${1:Section} ${1:$(make-string (string-width yas-text) ?\-)} $0 yasnippet-snippets-0~git20161123/rst-mode/term000066400000000000000000000001021303266332200212310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: term # key: term # -- :term:\`$0\`yasnippet-snippets-0~git20161123/rst-mode/title000066400000000000000000000002571303266332200214160ustar00rootroot00000000000000# -*- mode: snippet -*- # name : Document title # key: tit # -- ${1:$(make-string (string-width yas-text) ?\=)} ${1:Title} ${1:$(make-string (string-width yas-text) ?\=)} $0 yasnippet-snippets-0~git20161123/rst-mode/url000066400000000000000000000001141303266332200210670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: url # key: url # -- .. _${1:description}: $0yasnippet-snippets-0~git20161123/rst-mode/verbatim000066400000000000000000000000751303266332200221040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: verbatim # key: | # -- | $0 |yasnippet-snippets-0~git20161123/rst-mode/warning000066400000000000000000000001121303266332200217300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: warning # key: warn # -- .. warning: $0yasnippet-snippets-0~git20161123/ruby-mode/000077500000000000000000000000001303266332200205175ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/ruby-mode/#000066400000000000000000000000501303266332200205570ustar00rootroot00000000000000#name : # => #group : general # -- # => yasnippet-snippets-0~git20161123/ruby-mode/=b000066400000000000000000000001101303266332200207500ustar00rootroot00000000000000#name : =begin rdoc ... =end #group : general # -- =begin rdoc $0 =endyasnippet-snippets-0~git20161123/ruby-mode/Comp000066400000000000000000000001601303266332200213350ustar00rootroot00000000000000#name : include Comparable; def <=> ... end #group : definitions # -- include Comparable def <=> other $0 endyasnippet-snippets-0~git20161123/ruby-mode/Enum000066400000000000000000000002141303266332200213430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: include Enumerable # key: Enum # group: collections # -- include Enumerable def each${1:(&block)} $0 end yasnippet-snippets-0~git20161123/ruby-mode/GLOB000066400000000000000000000001041303266332200211600ustar00rootroot00000000000000# -*- mode: snippet -*- # name: GLOB # key: $ # -- $${1:GLOBAL} = $0yasnippet-snippets-0~git20161123/ruby-mode/all000066400000000000000000000001071303266332200212100ustar00rootroot00000000000000#name : all? { |...| ... } #group : collections # -- all? { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/am000066400000000000000000000001371303266332200210400ustar00rootroot00000000000000#name : alias_method new, old #group : definitions # -- alias_method :${new_name}, :${old_name}yasnippet-snippets-0~git20161123/ruby-mode/any000066400000000000000000000001071303266332200212270ustar00rootroot00000000000000#name : any? { |...| ... } #group : collections # -- any? { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/app000066400000000000000000000001501303266332200212160ustar00rootroot00000000000000#name : if __FILE__ == $PROGRAM_NAME ... end #group : general # -- if __FILE__ == $PROGRAM_NAME $0 endyasnippet-snippets-0~git20161123/ruby-mode/attribute000066400000000000000000000001071303266332200224430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: attribute # key: @ # -- @${1:attr} = $0yasnippet-snippets-0~git20161123/ruby-mode/bench000066400000000000000000000002241303266332200215170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: bench # key: bench # -- require "benchmark" TESTS = ${1:1_000} Benchmark.bmbm do |x| x.report("${2:var}") {} end yasnippet-snippets-0~git20161123/ruby-mode/bm000066400000000000000000000001441303266332200210370ustar00rootroot00000000000000#name : Benchmark.bmbm(...) do ... end #group : general # -- Benchmark.bmbm(${1:10}) do |x| $0 endyasnippet-snippets-0~git20161123/ruby-mode/case000066400000000000000000000001301303266332200213470ustar00rootroot00000000000000#name : case ... end #group : general # -- case ${1:object} when ${2:condition} $0 endyasnippet-snippets-0~git20161123/ruby-mode/cla000066400000000000000000000001211303266332200211730ustar00rootroot00000000000000#name : class << self ... end #group : definitions # -- class << ${self} $0 endyasnippet-snippets-0~git20161123/ruby-mode/cls000066400000000000000000000005401303266332200212220ustar00rootroot00000000000000#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~git20161123/ruby-mode/collect000066400000000000000000000001151303266332200220640ustar00rootroot00000000000000#name : collect { |...| ... } #group : collections # -- collect { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/dee000066400000000000000000000001131303266332200211720ustar00rootroot00000000000000#name : deep_copy(...) #group : general # -- Marshal.load(Marshal.dump($0))yasnippet-snippets-0~git20161123/ruby-mode/def000066400000000000000000000001461303266332200212010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: def ... end # key: def # -- def ${1:method}${2:(${3:args})} $0 endyasnippet-snippets-0~git20161123/ruby-mode/deli000066400000000000000000000001211303266332200213510ustar00rootroot00000000000000#name : delete_if { |...| ... } #group : collections # -- delete_if { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/det000066400000000000000000000001131303266332200212110ustar00rootroot00000000000000#name : detect { |...| ... } #group : collections # -- detect { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/dow000066400000000000000000000001341303266332200212310ustar00rootroot00000000000000#name : downto(...) { |n| ... } #group : control structure # -- downto(${0}) { |${n}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/ea000066400000000000000000000001071303266332200210250ustar00rootroot00000000000000#name : each { |...| ... } #group : collections # -- each { |${e}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/eac000066400000000000000000000001421303266332200211670ustar00rootroot00000000000000#name : each_cons(...) { |...| ... } #group : collections # -- each_cons(${1:2}) { |${group}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/eai000066400000000000000000000001211303266332200211720ustar00rootroot00000000000000#name : each_index { |i| ... } #group : collections # -- each_index { |${i}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/eav000066400000000000000000000001251303266332200212130ustar00rootroot00000000000000#name : each_value { |val| ... } #group : collections # -- each_value { |${val}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/eawi000066400000000000000000000001441303266332200213660ustar00rootroot00000000000000#name : each_with_index { |e, i| ... } #group : collections # -- each_with_index { |${e}, ${i}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/for000066400000000000000000000001351303266332200212270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:el} in ${2:collection} $0 endyasnippet-snippets-0~git20161123/ruby-mode/forin000066400000000000000000000001541303266332200215570ustar00rootroot00000000000000#name : for ... in ...; ... end #group : control structure # -- for ${1:element} in ${2:collection} $0 endyasnippet-snippets-0~git20161123/ruby-mode/formula000066400000000000000000000003341303266332200221070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: formula # key: form # -- require 'formula' class ${1:Name} , jimeh # key: mod # -- module ${1:`(let ((fn (capitalize (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name (current-buffer)))))))) (while (string-match "_" fn) (setq fn (replace-match "" nil nil fn))) fn)`} $0 endyasnippet-snippets-0~git20161123/ruby-mode/r000066400000000000000000000000771303266332200207070ustar00rootroot00000000000000#name : attr_reader ... #group : definitions # -- attr_reader :yasnippet-snippets-0~git20161123/ruby-mode/rb000066400000000000000000000001041303266332200210400ustar00rootroot00000000000000#name : /usr/bin/ruby -wU #group : general # -- #!/usr/bin/ruby -wU yasnippet-snippets-0~git20161123/ruby-mode/red000066400000000000000000000001631303266332200212140ustar00rootroot00000000000000#name : reduce(...) { |...| ... } #group : collections # -- reduce(${1:0}) { |${2:accumulator}, ${3:element}| $0 } yasnippet-snippets-0~git20161123/ruby-mode/reject000066400000000000000000000001231303266332200217120ustar00rootroot00000000000000#name : reject { |...| ... } #group : collections # -- reject { |${1:element}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/rel000066400000000000000000000001041303266332200212170ustar00rootroot00000000000000#name : require_relative #group : general # -- require_relative '$0'yasnippet-snippets-0~git20161123/ruby-mode/req000066400000000000000000000000701303266332200212260ustar00rootroot00000000000000#name : require "..." #group : general # -- require '$0'yasnippet-snippets-0~git20161123/ruby-mode/rw000066400000000000000000000001031303266332200210640ustar00rootroot00000000000000#name : attr_accessor ... #group : definitions # -- attr_accessor :yasnippet-snippets-0~git20161123/ruby-mode/select000066400000000000000000000001231303266332200217150ustar00rootroot00000000000000#name : select { |...| ... } #group : collections # -- select { |${1:element}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/str000066400000000000000000000000671303266332200212550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: str # key: s # -- #{$0}yasnippet-snippets-0~git20161123/ruby-mode/test class000066400000000000000000000001611303266332200225050ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test class # key: tc # -- class TC_${1:Class} < Test::Unit::TestCase $0 endyasnippet-snippets-0~git20161123/ruby-mode/tim000066400000000000000000000001151303266332200212300ustar00rootroot00000000000000#name : times { |n| ... } #group : control structure # -- times { |${n}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/to_000066400000000000000000000001251303266332200212210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: to_ # key: to_ # -- def to_s "${1:string}" end $0yasnippet-snippets-0~git20161123/ruby-mode/tu000066400000000000000000000001051303266332200210660ustar00rootroot00000000000000# -*- mode: snippet -*- # name: tu # key: tu # -- require 'test/unit'yasnippet-snippets-0~git20161123/ruby-mode/until000066400000000000000000000001201303266332200215660ustar00rootroot00000000000000#name : until ... end #group: control structure # -- until ${condition} $0 endyasnippet-snippets-0~git20161123/ruby-mode/upt000066400000000000000000000001301303266332200212440ustar00rootroot00000000000000#name : upto(...) { |n| ... } #group : control structure # -- upto(${n}) { |${i}| $0 }yasnippet-snippets-0~git20161123/ruby-mode/w000066400000000000000000000000771303266332200207140ustar00rootroot00000000000000#name : attr_writer ... #group : definitions # -- attr_writer :yasnippet-snippets-0~git20161123/ruby-mode/when000066400000000000000000000001171303266332200214020ustar00rootroot00000000000000#name : when ... end #group : control structure # -- when ${condition} $0 endyasnippet-snippets-0~git20161123/ruby-mode/while000066400000000000000000000001211303266332200215440ustar00rootroot00000000000000#name : while ... end #group : control structure # -- while ${condition} $0 endyasnippet-snippets-0~git20161123/ruby-mode/y000066400000000000000000000001031303266332200207040ustar00rootroot00000000000000#name : :yields: arguments (rdoc) #group : general # -- :yields: $0yasnippet-snippets-0~git20161123/ruby-mode/zip000066400000000000000000000001261303266332200212430ustar00rootroot00000000000000#name : zip(...) { |...| ... } #group : collections # -- zip(${enums}) { |${row}| $0 }yasnippet-snippets-0~git20161123/rust-mode/000077500000000000000000000000001303266332200205335ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/rust-mode/allow000066400000000000000000000001241303266332200215710ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[allow(lint)] # key: allow # -- #[allow(${1:lint})]yasnippet-snippets-0~git20161123/rust-mode/allow!000066400000000000000000000001271303266332200216350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #![allow(lint)] # key: allow! # -- #![allow(${1:lint})]yasnippet-snippets-0~git20161123/rust-mode/assert000066400000000000000000000001341303266332200217550ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert!(predicate); # key: ass # -- assert!(${1:predicate});yasnippet-snippets-0~git20161123/rust-mode/asserteq000066400000000000000000000001671303266332200223110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert_eq!(expected, actual); # key: asseq # -- assert_eq!(${1:expected}, ${2:actual});yasnippet-snippets-0~git20161123/rust-mode/case000066400000000000000000000001501303266332200213650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: pattern => expression, # key: case # -- ${1:pattern} => ${2:expression},yasnippet-snippets-0~git20161123/rust-mode/cfg000066400000000000000000000001221303266332200212100ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[cfg(option)] # key: cfg # -- #[cfg(${1:option})]yasnippet-snippets-0~git20161123/rust-mode/cfg=000066400000000000000000000001541303266332200213120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[cfg(option = "value")] # key: cfg= # -- #[cfg(${1:option} = "${2:value}")]yasnippet-snippets-0~git20161123/rust-mode/closure000066400000000000000000000001261303266332200221310ustar00rootroot00000000000000# -*- mode: snippet -*- # name: closure # key: || # -- |${1:arguments}| { $0 } yasnippet-snippets-0~git20161123/rust-mode/deny000066400000000000000000000001211303266332200214070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[deny(lint)] # key: deny # -- #[deny(${1:lint})]yasnippet-snippets-0~git20161123/rust-mode/deny!000066400000000000000000000001251303266332200214540ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #![deny(lint)] # key: deny! # -- #![deny(${1:lint})] yasnippet-snippets-0~git20161123/rust-mode/derive000066400000000000000000000001311303266332200217270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[derive(Trait)] # key: derive # -- #[derive(${1:Trait})]yasnippet-snippets-0~git20161123/rust-mode/drop000066400000000000000000000002371303266332200214240ustar00rootroot00000000000000# -*- mode: snippet -*- # name: impl Drop for Type { fn drop(...) } # key: drop # -- impl Drop for ${1:Type} { fn drop(&mut self) { $0 } }yasnippet-snippets-0~git20161123/rust-mode/enum000066400000000000000000000001351303266332200214210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: enum Type { ... } # key: enum # -- enum ${1:Type} { $0 }yasnippet-snippets-0~git20161123/rust-mode/fn000066400000000000000000000001341303266332200210570ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn name() { ... } # key: fn # -- fn ${1:name}($2) { $0 }yasnippet-snippets-0~git20161123/rust-mode/fnr000066400000000000000000000001631303266332200212430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn name() -> Type { ... } # key: fnr # -- fn ${1:name}($2) -> ${3:Type} { $0 }yasnippet-snippets-0~git20161123/rust-mode/fns000066400000000000000000000001561303266332200212460ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn name(&self) -> Type; # key: fns # -- fn ${1:name}(${2:&self}) -> ${3:Type};yasnippet-snippets-0~git20161123/rust-mode/fnw000066400000000000000000000002271303266332200212510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn name(x: T) where T: Clone { ... } # key: fnw # -- fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { $0 }yasnippet-snippets-0~git20161123/rust-mode/for000066400000000000000000000001641303266332200212450ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for var in iterable { ... } # key: for # -- for ${1:var} in ${2:iterable} { $0 }yasnippet-snippets-0~git20161123/rust-mode/if000066400000000000000000000001341303266332200210520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if expr { ... } # key: if # -- if ${1:expression} { $0 }yasnippet-snippets-0~git20161123/rust-mode/ife000066400000000000000000000001731303266332200212220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if expression { ... } else { .. } # key: ife # -- if ${1:expression} { $0 } else { }yasnippet-snippets-0~git20161123/rust-mode/ifl000066400000000000000000000002021303266332200212220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if let pattern = expression { ... }; # key: ifl # -- if let ${1:pattern} = ${2:expression} { $0 };yasnippet-snippets-0~git20161123/rust-mode/impl000066400000000000000000000001351303266332200214160ustar00rootroot00000000000000# -*- mode: snippet -*- # name: impl Type { ... } # key: impl # -- impl ${1:Type} { $0 }yasnippet-snippets-0~git20161123/rust-mode/implt000066400000000000000000000001671303266332200216070ustar00rootroot00000000000000# -*- mode: snippet -*- # name: impl Trait for Type { ... } # key: implt # -- impl ${1:Trait} for ${2:Type} { $0 }yasnippet-snippets-0~git20161123/rust-mode/let000066400000000000000000000001551303266332200212430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let pattern = expression; # key: let # -- let ${1:pattern} = ${2:expression};yasnippet-snippets-0~git20161123/rust-mode/letm000066400000000000000000000001661303266332200214220ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let mut pattern = expression; # key: letm # -- let mut ${1:pattern} = ${2:expression};yasnippet-snippets-0~git20161123/rust-mode/lett000066400000000000000000000001771303266332200214330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let pattern: type = expression; # key: lett # -- let ${1:pattern}: ${2:type} = ${3:expression};yasnippet-snippets-0~git20161123/rust-mode/lettm000066400000000000000000000002101303266332200215740ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let mut pattern: type = expression; # key: lettm # -- let mut ${1:pattern}: ${2:type} = ${3:expression};yasnippet-snippets-0~git20161123/rust-mode/loop000066400000000000000000000001161303266332200214250ustar00rootroot00000000000000# -*- mode: snippet -*- # name: loop { ... } # key: loop # -- loop { $0 }yasnippet-snippets-0~git20161123/rust-mode/macro000066400000000000000000000002031303266332200215520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: macro_rules! name { (..) => (..); } # key: macro # -- macro_rules! ${1:name} { ($2) => ($3); }yasnippet-snippets-0~git20161123/rust-mode/main000066400000000000000000000001261303266332200214010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fn main() { ... } # key: main # -- fn main() { $0 }yasnippet-snippets-0~git20161123/rust-mode/match000066400000000000000000000001551303266332200215530ustar00rootroot00000000000000# -*- mode: snippet -*- # name: match expression { ... } # key: match # -- match ${1:expression} { $0 }yasnippet-snippets-0~git20161123/rust-mode/print000066400000000000000000000001351303266332200216110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: print!("{}", value); # key: print # -- print!("${1:{}}", $2);yasnippet-snippets-0~git20161123/rust-mode/println000066400000000000000000000001441303266332200221430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: println!("{}", value); # key: println # -- println!("${1:{}}", $2); yasnippet-snippets-0~git20161123/rust-mode/spawn000066400000000000000000000001451303266332200216060ustar00rootroot00000000000000# -*- mode: snippet -*- # name: spawn(proc() { ... }); # key: spawn # -- spawn(proc() { $0 }); yasnippet-snippets-0~git20161123/rust-mode/static000066400000000000000000000001701303266332200217430ustar00rootroot00000000000000# -*- mode: snippet -*- # name: CONSTANT: Type = value; # key: static # -- static ${1:CONSTANT}: ${2:Type} = ${3:value};yasnippet-snippets-0~git20161123/rust-mode/struct000066400000000000000000000001541303266332200220020ustar00rootroot00000000000000# -*- mode: snippet -*- # name: struct TypeName { .. } # key: struct # -- struct ${1:TypeName} { $0 }yasnippet-snippets-0~git20161123/rust-mode/test000066400000000000000000000001651303266332200214370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[test] fn test_name() { .. } # key: test # -- #[test] fn ${1:test_name}() { $0 } yasnippet-snippets-0~git20161123/rust-mode/testmod000066400000000000000000000002441303266332200221350ustar00rootroot00000000000000# -*- mode: snippet -*- # name: test module # key: testmod # -- #[cfg(test)] mod tests { use super::*; #[test] fn ${1:test_name}() { $0 } } yasnippet-snippets-0~git20161123/rust-mode/trait000066400000000000000000000001411303266332200215750ustar00rootroot00000000000000# -*- mode: snippet -*- # name: trait Type { ... } # key: trait # -- trait ${1:Type} { $0 }yasnippet-snippets-0~git20161123/rust-mode/type000066400000000000000000000001561303266332200214410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type TypeName = TypeName; # key: type # -- type ${1:TypeName} = ${2:TypeName};yasnippet-snippets-0~git20161123/rust-mode/warn000066400000000000000000000001211303266332200214170ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #[warn(lint)] # key: warn # -- #[warn(${1:lint})]yasnippet-snippets-0~git20161123/rust-mode/warn!000066400000000000000000000001241303266332200214630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: #![warn(lint)] # key: warn! # -- #![warn(${1:lint})]yasnippet-snippets-0~git20161123/rust-mode/while000066400000000000000000000001551303266332200215670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while expression { ... } # key: while # -- while ${1:expression} { $0 }yasnippet-snippets-0~git20161123/rust-mode/whilel000066400000000000000000000002201303266332200217340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while let pattern = expression { ... } # key: whilel # -- while let ${1:pattern} = ${2:expression} { $0 } yasnippet-snippets-0~git20161123/scala-mode/000077500000000000000000000000001303266332200206215ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/scala-mode/app000066400000000000000000000002501303266332200213210ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : object name extends App # key: app # -- object ${1:name} extends App { $0 }yasnippet-snippets-0~git20161123/scala-mode/case000066400000000000000000000002011303266332200214500ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case pattern => # key: case # -- case ${1:_} => $0yasnippet-snippets-0~git20161123/scala-mode/cc000066400000000000000000000002101303266332200211220ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Sam Halliday #name : case class T(arg: A) # key: cc # -- case class ${1:Name}( ${2:arg}: ${3:Type} )yasnippet-snippets-0~git20161123/scala-mode/co000066400000000000000000000002031303266332200211400ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : case object T # key: co # -- case object ${1:name} $0yasnippet-snippets-0~git20161123/scala-mode/cons000066400000000000000000000002251303266332200215050ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : element1 :: element2 # key: cons # -- ${1:element1} :: ${2:element2} $0yasnippet-snippets-0~git20161123/scala-mode/def000066400000000000000000000002451303266332200213030ustar00rootroot00000000000000# -*- 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~git20161123/scala-mode/doc000066400000000000000000000002271303266332200213120ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Anders Bach Nielsen #name : /** ... */ # key: doc # -- /** * ${1:description} * $0 */yasnippet-snippets-0~git20161123/scala-mode/for000066400000000000000000000002041303266332200213260ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Sam Halliday #name : for { x <- xs } yield #key: for # -- for { ${1:x} <- ${2:xs} } yield ${3:x}yasnippet-snippets-0~git20161123/scala-mode/if000066400000000000000000000002121303266332200211350ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : if (cond) { .. } # key: if # -- if (${1:condition}) { $0 }yasnippet-snippets-0~git20161123/scala-mode/ls000066400000000000000000000002031303266332200211550ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : List(..) # key: ls # -- List(${1:args}, ${2:args}) $0yasnippet-snippets-0~git20161123/scala-mode/main000066400000000000000000000002561303266332200214730ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name: def main(args: Array[String]) = { ... } # key: main # -- def main(args: Array[String]) = { $0 }yasnippet-snippets-0~git20161123/scala-mode/match000066400000000000000000000002331303266332200216360ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : cc match { .. } # key: match # -- ${1:cc} match { case ${2:pattern} => $0 }yasnippet-snippets-0~git20161123/scala-mode/ob000066400000000000000000000002301303266332200211370ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : object name extends T # key: ob # -- object ${1:name} extends ${2:type} $0yasnippet-snippets-0~git20161123/scala-mode/throw000066400000000000000000000002311303266332200217030ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Jonas Bonèr #name : throw new Exception # key: throw # -- throw new ${1:Exception}(${2:msg}) $0yasnippet-snippets-0~git20161123/scala-mode/try000066400000000000000000000002761303266332200213670ustar00rootroot00000000000000# -*- mode: snippet -*- #Author : Sam Halliday #name : try { .. } catch { case e => ..} # key: try # -- try { $0 } catch { case e: ${1:Throwable} => ${2:// TODO: handle exception} }yasnippet-snippets-0~git20161123/scala-mode/valueclass000066400000000000000000000002151303266332200227040ustar00rootroot00000000000000# -*- mode: snippet -*- # Author: Michael Pollmeier # name: value class # key: vc # -- case class ${1:Name}(value: ${2:Type}) extends AnyVal yasnippet-snippets-0~git20161123/sh-mode/000077500000000000000000000000001303266332200201505ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/sh-mode/args000066400000000000000000000001271303266332200210270ustar00rootroot00000000000000# -*- mode: snippet -*- # name:args # key: args # -- if [ $# -lt ${1:2} ] then $0 fiyasnippet-snippets-0~git20161123/sh-mode/bang000066400000000000000000000001111303266332200207730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: bang # key: ! # -- #!/usr/bin/env bash $0yasnippet-snippets-0~git20161123/sh-mode/for loop000066400000000000000000000001431303266332200216110ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for loop # key: for # -- for ${1:var} in ${2:stuff}; do $0 doneyasnippet-snippets-0~git20161123/sh-mode/function000066400000000000000000000001311303266332200217130ustar00rootroot00000000000000# -*- mode: snippet -*- # name: function # key: f # -- function ${1:name} { $0 }yasnippet-snippets-0~git20161123/sh-mode/if000066400000000000000000000001321303266332200204650ustar00rootroot00000000000000# -*- mode: snippet -*- # name: if # key: if # -- if ${1:[ -f file]} then ${2:do} fi $0yasnippet-snippets-0~git20161123/sh-mode/ife000066400000000000000000000001461303266332200206370ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ife # key: ife # -- if ${1:cond} then ${2:stuff} else ${3:other} fi $0yasnippet-snippets-0~git20161123/sh-mode/safe-bang000066400000000000000000000002041303266332200217120ustar00rootroot00000000000000# -*- mode: snippet -*- # name: safer bash settings for scripts # key: s! # -- #!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' $0yasnippet-snippets-0~git20161123/sh-mode/while000066400000000000000000000001341303266332200212010ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while loop # key: while # -- while ${1:cond}; do $0 doneyasnippet-snippets-0~git20161123/snippet-mode/000077500000000000000000000000001303266332200212205ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/snippet-mode/cont000066400000000000000000000001251303266332200221040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: cont # key: cont # -- # contributor: `user-full-name`yasnippet-snippets-0~git20161123/snippet-mode/elisp000066400000000000000000000000721303266332200222560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: elisp # key: ` # -- \`$0\`yasnippet-snippets-0~git20161123/snippet-mode/field000066400000000000000000000001731303266332200222270ustar00rootroot00000000000000# name : ${ ... } field # contributor : joaotavora # key : $f # key: field # -- \${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0yasnippet-snippets-0~git20161123/snippet-mode/group000066400000000000000000000001141303266332200222730ustar00rootroot00000000000000# -*- mode: snippet -*- # name: group # key: group # -- # group : ${1:group}yasnippet-snippets-0~git20161123/snippet-mode/mirror000066400000000000000000000001761303266332200224610ustar00rootroot00000000000000# name : ${n:$(...)} mirror # key : $m # contributor : joaotavora # key: mirror # -- \${${2:n}:${4:\$(${5:reflection-fn})}\}$0yasnippet-snippets-0~git20161123/snippet-mode/vars000066400000000000000000000003541303266332200221200ustar00rootroot00000000000000# -*- 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~git20161123/sql-mode/000077500000000000000000000000001303266332200203355ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/sql-mode/column000066400000000000000000000002371303266332200215570ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : , ColumnName ColumnType NOT NULL... # -- , ${1:Name} ${2:Type} ${3:NOT NULL} yasnippet-snippets-0~git20161123/sql-mode/constraint000066400000000000000000000002751303266332200224500ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : CONSTRAINT [..] PRIMARY KEY ... # -- CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) yasnippet-snippets-0~git20161123/sql-mode/constraint.1000066400000000000000000000002751303266332200226070ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : CONSTRAINT [..] FOREIGN KEY ... # -- CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) yasnippet-snippets-0~git20161123/sql-mode/create000066400000000000000000000004031303266332200215200ustar00rootroot00000000000000#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~git20161123/sql-mode/create.1000066400000000000000000000003131303266332200216570ustar00rootroot00000000000000#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~git20161123/sql-mode/insert000066400000000000000000000001771303266332200215710ustar00rootroot00000000000000# -*- mode: snippet; -*- # name: insert # key: ins # -- INSERT INTO ${table-name} (${col1, col2}) VALUES (${'val1', 'val2'});$0yasnippet-snippets-0~git20161123/sql-mode/references000066400000000000000000000002171303266332200224010ustar00rootroot00000000000000#contributor : Alejandro Espinoza Esparza #name : REFERENCES ... # -- REFERENCES ${1:TableName}([${2:ColumnName}]) yasnippet-snippets-0~git20161123/text-mode/000077500000000000000000000000001303266332200205225ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/text-mode/.yas-parents000066400000000000000000000000211303266332200227620ustar00rootroot00000000000000fundamental-mode yasnippet-snippets-0~git20161123/tuareg-mode/000077500000000000000000000000001303266332200210255ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/tuareg-mode/assert000066400000000000000000000001011303266332200222410ustar00rootroot00000000000000# -*- mode: snippet -*- # name: assert # key: as # -- assert $0;;yasnippet-snippets-0~git20161123/tuareg-mode/docstring000066400000000000000000000001001303266332200227330ustar00rootroot00000000000000# -*- mode: snippet -*- # name: docstring # key: d # -- (* $0 *)yasnippet-snippets-0~git20161123/tuareg-mode/for000066400000000000000000000001201303266332200215270ustar00rootroot00000000000000# -*- mode: snippet -*- # name: for # key: for # -- for ${1:cond} do $0 doneyasnippet-snippets-0~git20161123/tuareg-mode/fun000066400000000000000000000001071303266332200215360ustar00rootroot00000000000000# -*- mode: snippet -*- # name: fun # key: fun # -- fun ${1:args} -> $0yasnippet-snippets-0~git20161123/tuareg-mode/guard000066400000000000000000000001061303266332200220470ustar00rootroot00000000000000# -*- mode: snippet -*- # name: guard # key: | # -- | ${1:match} -> $0yasnippet-snippets-0~git20161123/tuareg-mode/ifthen000066400000000000000000000001161303266332200222230ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifthen # key: if # -- if ${1:cond} then $0 yasnippet-snippets-0~git20161123/tuareg-mode/ifthenelse000066400000000000000000000001411303266332200230720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ifthenelse # key: if # -- if ${1:cond} then $2 else $0yasnippet-snippets-0~git20161123/tuareg-mode/let000066400000000000000000000001031303266332200215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: let # key: let # -- let ${1:var} $0yasnippet-snippets-0~git20161123/tuareg-mode/list_comprehension000066400000000000000000000001161303266332200246520ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list_comprehension # key: l # -- [? $1 | $0 ?]yasnippet-snippets-0~git20161123/tuareg-mode/main000066400000000000000000000001041303266332200216670ustar00rootroot00000000000000# -*- mode: snippet -*- # name: main # key: m # -- let main = $0yasnippet-snippets-0~git20161123/tuareg-mode/match000066400000000000000000000001541303266332200220440ustar00rootroot00000000000000# -*- mode: snippet -*- # name: match # key: match # -- match ${1:to_match} with | ${2:matching} -> $0yasnippet-snippets-0~git20161123/tuareg-mode/module000066400000000000000000000002341303266332200222340ustar00rootroot00000000000000# -*- mode: snippet -*- # name: module # key: mod # -- module ${1:A} = struct ${2:type t = { name : string; phone : string }} $0 end;; yasnippet-snippets-0~git20161123/tuareg-mode/open000066400000000000000000000001041303266332200217040ustar00rootroot00000000000000# -*- mode: snippet -*- # name: open # key: op # -- open ${1:Module}yasnippet-snippets-0~git20161123/tuareg-mode/printf000066400000000000000000000001351303266332200222510ustar00rootroot00000000000000# -*- mode: snippet -*- # name: printf # key: pr # -- Printf.printf "${1:string}" ${2:vals};;yasnippet-snippets-0~git20161123/tuareg-mode/rec000066400000000000000000000001271303266332200215210ustar00rootroot00000000000000# -*- mode: snippet -*- # name: rec # key: rec # -- let rec ${1:fun} ${2:args} = $0yasnippet-snippets-0~git20161123/tuareg-mode/try000066400000000000000000000001221303266332200215610ustar00rootroot00000000000000# -*- mode: snippet -*- # name: try # key: try # -- try $0 with $1yasnippet-snippets-0~git20161123/tuareg-mode/type000066400000000000000000000001441303266332200217300ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type_record # key: type # -- type ${1:name} = {${2:var}: ${3:int}$0}yasnippet-snippets-0~git20161123/tuareg-mode/type_type000066400000000000000000000001251303266332200227700ustar00rootroot00000000000000# -*- mode: snippet -*- # name: type_type # key: type # -- type ${1:expr} = | $0yasnippet-snippets-0~git20161123/tuareg-mode/val000066400000000000000000000001051303266332200215260ustar00rootroot00000000000000# -*- mode: snippet -*- # name: val # key: val # -- val ${1:fun} : $0yasnippet-snippets-0~git20161123/tuareg-mode/while000066400000000000000000000001251303266332200220560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: while # key: wh # -- while ${1:cond} do $0 doneyasnippet-snippets-0~git20161123/typerex-mode/000077500000000000000000000000001303266332200212365ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/typerex-mode/.yas-parents000066400000000000000000000000141303266332200235000ustar00rootroot00000000000000tuareg-mode yasnippet-snippets-0~git20161123/udev-mode/000077500000000000000000000000001303266332200205015ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/udev-mode/ENV000066400000000000000000000000751303266332200210560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: ENV # key: env # -- ENV{$1}$0yasnippet-snippets-0~git20161123/udev-mode/GOTO000066400000000000000000000001161303266332200211720ustar00rootroot00000000000000# -*- mode: snippet -*- # name: GOTO # key: goto # -- GOTO="$1" $0 LABEL="$1"yasnippet-snippets-0~git20161123/udev-mode/KERNEL000066400000000000000000000001031303266332200213760ustar00rootroot00000000000000# -*- mode: snippet -*- # name: KERNEL # key: ker # -- KERNEL!="$0"yasnippet-snippets-0~git20161123/udev-mode/add000066400000000000000000000001051303266332200211500ustar00rootroot00000000000000# -*- mode: snippet -*- # name: add # key: add # -- ACTION=="add", $0yasnippet-snippets-0~git20161123/udev-mode/env$000066400000000000000000000000761303266332200212630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: env$ # key: $ # -- $env{$1} $0yasnippet-snippets-0~git20161123/udev-mode/run000066400000000000000000000000751303266332200212320ustar00rootroot00000000000000# -*- mode: snippet -*- # name: run # key: run # -- RUN+="$0"yasnippet-snippets-0~git20161123/web-mode/000077500000000000000000000000001303266332200203135ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/web-mode/.yas-parents000066400000000000000000000000121303266332200225530ustar00rootroot00000000000000html-mode yasnippet-snippets-0~git20161123/yaml-mode/000077500000000000000000000000001303266332200205005ustar00rootroot00000000000000yasnippet-snippets-0~git20161123/yaml-mode/entry000066400000000000000000000001211303266332200215560ustar00rootroot00000000000000# -*- mode: snippet -*- # name: entry # key: entry # -- ${1:entry}: ${2:value} $0yasnippet-snippets-0~git20161123/yaml-mode/list000066400000000000000000000000751303266332200214000ustar00rootroot00000000000000# -*- mode: snippet -*- # name: list # key: list # -- [$1] $0yasnippet-snippets-0~git20161123/yaml-mode/section000066400000000000000000000001141303266332200220630ustar00rootroot00000000000000# -*- mode: snippet -*- # name: section # key: -- # -- --- # ${1:section} $0