First commit.

This commit is contained in:
kj
2022-03-29 19:21:13 -04:00
commit da8f068975
293 changed files with 3002 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: abstract class
# key: acl
# uuid: acl
# --
abstract class ${1:Name}${2: extends ${3:Parent}}
{
`%`$0
}

6
snippets/php-mode/array Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: array(...)
# key: arr
# uuid: arr
# --
array(`%`$0)

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: $var = value;
# key: =
# uuid: =
# --
\$${1:var_name} = `%`$0;

6
snippets/php-mode/break Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: break;
# key: br
# uuid: br
# --
break;

9
snippets/php-mode/class Normal file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: PHP class
# key: cl
# uuid: cl
# --
class ${1:Name}${2: extends ${3:Parent}}
{
`%`$0
}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: continue;
# key: co
# uuid: co
# --
continue;

6
snippets/php-mode/define Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: define(..., ...)
# key: de
# uuid: de
# --
define("${1:CONSTANT}", ${2:`%`value});

6
snippets/php-mode/echo Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: echo ...;
# key: e
# uuid: e
# --
echo `%`$0;

8
snippets/php-mode/else Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: else { ... }
# key: el
# uuid: el
# --
else {
`%`$0
}

8
snippets/php-mode/elseif Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: elseif (...) { ... }
# key: eli
# uuid: eli
# --
elseif ($1) {
`%`$0
}

8
snippets/php-mode/for Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: for loop
# key: for
# uuid: for
# --
for ($1;$2;$3) {
`%`$0
}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: foreach (...) {...}
# key: fore
# uuid: fore
# --
foreach (${1:collection} as ${2:var}) {
`%`$0
}

8
snippets/php-mode/fori Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: for loop w/ $i
# key: fori
# uuid: fori
# --
for (\$i = ${1:0}; \$i < ${2:10}; ++\$i) {
`%`$0
}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: function
# key: fu
# uuid: fu
# --
function ${1:name}($2) {
`%`$0
}

8
snippets/php-mode/if Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: if (...) { ... }
# key: if
# uuid: if
# --
if ($1) {
`%`$0
}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: include("...");
# key: inc
# uuid: inc
# --
include("${1:...}");

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: include_once("...");
# key: inco
# uuid: inco
# --
include_once("${1:...}");

9
snippets/php-mode/method Normal file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: class method
# key: met
# uuid: met
# --
${1:public} function ${2:name}($3)
{
`%`$0
}

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: $o->...
# key: ->
# uuid: ->
# --
\$${1:obj_name}->${2:var}

6
snippets/php-mode/parent Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: parent::...
# key: par
# uuid: par
# --
parent::$0

6
snippets/php-mode/php Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: <?php ... ?>
# key: php
# uuid: php
# --
<?php $0 ?>

8
snippets/php-mode/phpdoc Normal file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: /** ... */
# key: /**
# uuid: /**
# --
/**
* ${0:`(if % (s-replace "\n" "\n * " %))`}
*/

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: require("...");
# key: req
# uuid: req
# --
require("${1:...}");

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: require_once("...");
# key: reqo
# uuid: reqo
# --
require_once("${1:...}");

6
snippets/php-mode/self Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: self::...
# key: sel
# uuid: sel
# --
self::$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: #!/usr/bin/env php
# key: #!
# uuid: #!
# --
#!/usr/bin/env php
<?php
$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: <?= ... ?>
# key: p=
# uuid: p=
# --
<?=`%`$0 ?>

6
snippets/php-mode/switch Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: switch (...) {...}
# --
switch (${on}) {
$0
}

6
snippets/php-mode/this Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: $this->...
# key: thi
# uuid: thi
# --
\$this->$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: urldecode(...)
# key: urld
# uuid: urld
# --
urldecode(${1:`%`})$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: urlencode(...)
# key: urle
# uuid: urle
# --
urlencode(${1:`%`})$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: var_dump(...)
# key: dump
# uuid: dump
# --
var_dump(`%`$1);

6
snippets/php-mode/while Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: while loop
# --
while (${1:condition}) {
`%`$0
}