daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jul 17th, 2012 1,737 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <snippet>
  2.         <content><![CDATA[classes.${1:ClassName} = new \$._class(
  3. {
  4.         //_require: [],
  5.  
  6.         _init: function( options )
  7.         {
  8.                 this._initConst( options );
  9.                 \$( \$.proxy( this, '_load' ) );
  10.                 ${0:// code}
  11.         },
  12.  
  13.         _initConst: function( options )
  14.         {
  15.                 \$._deepExtend( this,
  16.                 {
  17.                         _get: {
  18.                         }
  19.                 }, options );
  20.         },
  21.  
  22.         _load: function()
  23.         {
  24.                 this.__factory();
  25.                 this._observe();
  26.  
  27.                 \$( this ).triggerHandler( '_load' );
  28.         },
  29.  
  30.         _observe: function()
  31.         {
  32.         }
  33. } );]]></content>
  34.         <tabTrigger>class</tabTrigger>
  35.         <scope>source.js</scope>
  36.         <description>\$._class template</description>
  37. </snippet>
  38.  
  39.  
  40. <snippet>
  41.         <content><![CDATA[function(${1:paremeters})
  42. {
  43.         ${0:// code}
  44. }${2:,}]]></content>
  45.         <tabTrigger>func</tabTrigger>
  46.         <scope>source.js</scope>
  47.         <description>function( parameters ){}</description>
  48. </snippet>
  49.  
  50. <snippet>
  51.         <content><![CDATA[\$.proxy( function(${1:paremeters})
  52. {
  53.         ${0:// code}
  54. }, this )]]></content>
  55.         <tabTrigger>funcproxy</tabTrigger>
  56.         <scope>source.js</scope>
  57.         <description>$.proxy( function() ...</description>
  58. </snippet>
  59.  
  60. <snippet>
  61.         <content><![CDATA[function( success, response )
  62. {
  63.         ${1:// pre code}
  64.  
  65.         if( success )
  66.         {
  67.                 ${0:// code}
  68.         }
  69. }]]></content>
  70.         <tabTrigger>fnres</tabTrigger>
  71.         <scope>source.js</scope>
  72.         <description>function( success, response )</description>
  73. </snippet>
  74.  
  75. <snippet>
  76.         <content><![CDATA[for( var i = 0, n = ${1:list}.length; i < n; ++ i )
  77. {
  78.         var ${2:iterator} = ${1:list}[ i ];
  79.         ${0:// code}
  80. }]]></content>
  81.         <tabTrigger>for</tabTrigger>
  82.         <scope>source.js</scope>
  83.         <description>for( var i = 0, n = </description>
  84. </snippet>
  85.  
  86. <snippet>
  87.         <content><![CDATA[for( var ${1:name} in ${2:source} ) if( ${2:source}.hasOwnProperty( ${1:name} ) )
  88. {
  89.         var ${3:iterator} = ${2:source}[ ${1:name} ];
  90.         ${0:// code}
  91. }]]></content>
  92.         <tabTrigger>forin</tabTrigger>
  93.         <scope>source.js</scope>
  94.         <description>for( var name in source</description>
  95. </snippet>
  96.  
  97. <snippet>
  98.         <content><![CDATA[console.dir( $0 );]]></content>
  99.         <tabTrigger>_die2</tabTrigger>
  100.         <scope>source.js</scope>
  101.         <description>console.dir( $0 );</description>
  102. </snippet>
  103.  
  104. <snippet>
  105.         <content><![CDATA[console.log( $0 );]]></content>
  106.         <tabTrigger>_die</tabTrigger>
  107.         <scope>source.js</scope>
  108.         <description>_die( $0 );</description>
  109. </snippet>
  110.  
  111. <snippet>
  112.     <content><![CDATA[switch( \$${1:variable} )
  113. {
  114.         case ${2:# condition...}:
  115.                 ${0:# code }
  116.                 break;
  117. }]]></content>
  118.     <tabTrigger>switch</tabTrigger>
  119.     <scope>source.php</scope>
  120.     <description>switch( $variable )</description>
  121. </snippet>
  122.  
  123.  
  124. <snippet>
  125.         <content><![CDATA[array
  126. (
  127.         '$2' => $3,
  128. ),]]></content>
  129.         <tabTrigger>arr</tabTrigger>
  130.         <scope>source.php</scope>
  131.         <description>Faiwer array snipplet</description>
  132. </snippet>
  133.  
  134.  
  135. <snippet>
  136.     <content><![CDATA[if( ${1:condition} )
  137. {
  138.         ${0:# code...}
  139. }]]></content>
  140.     <tabTrigger>if</tabTrigger>
  141.     <scope>source.php</scope>
  142.     <description>if( condition )</description>
  143. </snippet>
  144.  
  145.  
  146. <snippet>
  147.     <content><![CDATA[public function ${1:name}(${2:parameters})
  148. {
  149.         ${0:# code...}
  150. }]]></content>
  151.     <tabTrigger>funcpub</tabTrigger>
  152.     <scope>source.php</scope>
  153.     <description>public function()</description>
  154. </snippet>
  155.  
  156.  
  157. <snippet>
  158.     <content><![CDATA[protected function ${1:name}(${2:parameters})
  159. {
  160.         ${0:# code...}
  161. }]]></content>
  162.     <tabTrigger>funcprot</tabTrigger>
  163.     <scope>source.php</scope>
  164.     <description>protected function()</description>
  165. </snippet>
  166.  
  167.  
  168. <snippet>
  169.     <content><![CDATA[foreach( \$${1:variable} as \$${4:value} )
  170. {
  171.         ${0:# code...}
  172. }]]></content>
  173.     <tabTrigger>foreach</tabTrigger>
  174.     <scope>source.php</scope>
  175.     <description>foreach( $var as $val )</description>
  176. </snippet>
  177.  
  178.  
  179. <snippet>
  180.     <content><![CDATA[foreach( \$${1:variable} as \$${2:key} => \$${3:value} )
  181. {
  182.         ${0:# code...}
  183. }]]></content>
  184.     <tabTrigger>foreach</tabTrigger>
  185.     <scope>source.php</scope>
  186.     <description>foreach( $var as $key => $val )</description>
  187. </snippet>
  188.  
  189.  
  190. <snippet>
  191.         <content><![CDATA[_dieFrame( $0 );]]></content>
  192.         <tabTrigger>_die2</tabTrigger>
  193.         <scope>source.php</scope>
  194.         <description>_dieFrame( $0 );</description>
  195. </snippet>
  196.  
  197. <snippet>
  198.         <content><![CDATA[_die( $0 );]]></content>
  199.         <tabTrigger>_die</tabTrigger>
  200.         <scope>source.php</scope>
  201.         <description>_die( $0 );</description>
  202. </snippet>
  203.  
  204. <snippet>
  205.         <content><![CDATA[echo Debug::_vars( ${0:$myVar} );]]></content>
  206.         <tabTrigger>_die3</tabTrigger>
  207.         <scope>source.php</scope>
  208.         <description>_die( $0 );</description>
  209. </snippet>
  210.  
  211. <snippet>
  212.         <content><![CDATA[<xsl:with-param name="$1">
  213.         $2
  214. </xsl:with-param>]]></content>
  215.         <tabTrigger>wpf</tabTrigger>
  216.         <scope>text.xml.xsl</scope>
  217.         <description>with-param full</description>
  218. </snippet>
  219.  
  220. <snippet>
  221.         <content><![CDATA[<xsl:with-param name="$1" select="$2" />
  222. $3
  223. ]]></content>
  224.         <tabTrigger>wp</tabTrigger>
  225.         <scope>text.xml.xsl</scope>
  226.         <description>with-param</description>
  227. </snippet>
  228.  
  229. <snippet>
  230.         <content><![CDATA[<xsl:when test="$1">
  231.         $2
  232. </xsl:when>]]></content>
  233.         <tabTrigger>when</tabTrigger>
  234.         <scope>text.xml.xsl</scope>
  235.         <description>when</description>
  236. </snippet>
  237.  
  238. <snippet>
  239.         <content><![CDATA[<xsl:variable name="${1:Name}" value="${2:Value}" />]]></content>
  240.         <tabTrigger>var</tabTrigger>
  241.         <scope>text.xml.xsl</scope>
  242.         <description>xsl:variable</description>
  243. </snippet>
  244.  
  245. <snippet>
  246.         <content><![CDATA[<xsl:value-of select="$1" />]]></content>
  247.         <tabTrigger>valc</tabTrigger>
  248.         <scope>text.xml.xsl</scope>
  249.         <description>with-param full</description>
  250. </snippet>
  251.  
  252. <snippet>
  253.         <content><![CDATA[<xsl:value-of select="${1:Name}" disable-output-escaping="yes" />]]></content>
  254.         <tabTrigger>val</tabTrigger>
  255.         <scope>text.xml.xsl</scope>
  256.         <description>when</description>
  257. </snippet>
  258.  
  259. <snippet>
  260.         <content><![CDATA[<xsl:text>$1</xsl:text>]]></content>
  261.         <tabTrigger>text</tabTrigger>
  262.         <scope>text.xml.xsl</scope>
  263.         <description>with-param</description>
  264. </snippet>
  265.  
  266. <snippet>
  267.         <content><![CDATA[<xsl:template match="$1">
  268.         $2
  269. </xsl:template>]]></content>
  270.         <tabTrigger>tempm</tabTrigger>
  271.         <scope>text.xml.xsl</scope>
  272.         <description>template[match]</description>
  273. </snippet>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top