[ Avaa Bypassed ]




Upload:

Command:

www-data@18.188.99.196: ~ $
<?xml version="1.0" encoding="UTF-8"?>
<snippets language="chdr">
  <snippet id="once">
    <text><![CDATA[#ifndef ${1:NAME}_H
#define $1_H

$0

#endif /* $1_H */
]]></text>
    <description>Header Include-Guard</description>
    <tag>once</tag>
  </snippet>
  <snippet id="inc">
    <text><![CDATA[#include "${1:file}"
$0]]></text>
    <description>#include ".."</description>
    <tag>inc</tag>
  </snippet>
  <snippet id="Inc">
    <text><![CDATA[#include <${1:file}>
$0]]></text>
    <description>#include &lt;..&gt;</description>
    <tag>Inc</tag>
  </snippet>
  <snippet id="namespace">
    <text><![CDATA[namespace ${1:ns}
{
	$0
};
]]></text>
    <description>namespace ..</description>
    <tag>namespace</tag>
  </snippet>
  <snippet id="gpl">
    <text><![CDATA[/*
 * ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
 * This file is part of ${2:<program name>}
 *
 * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
try:
  return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
except KeyError:
  return '<author\>' >
 *
 * ${2} is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * ${2} is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ${2}. If not, see <http://www.gnu.org/licenses/>.
 */

$0]]></text>
    <tag>gpl</tag>
    <description>GPL License</description>
  </snippet>
  <snippet id="lgpl">
    <text><![CDATA[/*
 * ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
 * This file is part of ${2:<library name>}
 *
 * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
try:
  return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
except KeyError:
  return '<author\>' >
 *
 * ${2} is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * ${2} is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with ${2}. If not, see <http://www.gnu.org/licenses/>.
 */

$0]]></text>
    <tag>lgpl</tag>
    <description>LGPL License</description>
  </snippet>
  <snippet id="td">
    <text><![CDATA[typedef ${1:newtype} ${2:type};
$0]]></text>
    <tag>td</tag>
    <description>typedef</description>
  </snippet>
  <snippet id="class">
    <text><![CDATA[class ${1:name}
{
	public:
		${1:name} (${2:arguments});
		virtual ~${1:name} ();

	private:
		${0:/* data */}
};]]></text>
    <description>class ..</description>
    <tag>class</tag>
  </snippet>
  <snippet id="struct">
    <text><![CDATA[struct ${1:name}
{
	${0:/* data */}
};]]></text>
    <tag>struct</tag>
    <description>struct</description>
  </snippet>
  <snippet id="template">
    <text><![CDATA[template <typename ${1:_InputIter}>]]></text>
    <description>template &lt;typename ..&gt;</description>
    <tag>template</tag>
  </snippet>
  <snippet id="gobject">
    <text><![CDATA[#ifndef ${1:NAME}_H
#define $1_H
$<
global camel_str, module, name, type_str
components = $1.split('_')
module = components[0].upper()
name = '_'.join(components[1:]).upper()
type_str = '_'.join([components[0], 'TYPE'] + components[1:]).upper()
camel_str = ''

for t in components:
  camel_str += t.capitalize()
>
#include <${2:glib-object.h}>

G_BEGIN_DECLS

#define $<[1]: return type_str > ($<[1]: return $1.lower() >_get_type ())
G_DECLARE_DERIVABLE_TYPE ($<[1]: return camel_str >, $<[1]: return $1.lower() >, $<[1]: return module >, $<[1]: return name >, ${3:GObject})

struct _$<[1]: return camel_str >Class
{
	$3Class parent_class;
};

$<[1]: return camel_str > *$< return $1.lower()>_new (void);

$0
G_END_DECLS

#endif /* $1_H */]]></text>
    <tag>gobject</tag>
    <description>GObject template</description>
  </snippet>
  <snippet id="ginterface">
    <text><![CDATA[#ifndef ${1:NAME}_H
#define $1_H

#include <${2:glib-object.h}>

G_BEGIN_DECLS

$<
global camel_str
components = $1.split('_')
type_str = '_'.join([components[0], 'TYPE'] + components[1:])
is_str = '_'.join([components[0], 'IS'] + components[1:])
camel_str = ''

for t in components:
  camel_str += t.capitalize()

items = [ \
['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \
['#define ' + $1 + '(obj)', '(G_TYPE_CHECK_INSTANCE_CAST ((obj), ' + type_str + ', ' + camel_str + '))'], \
['#define ' + is_str + '(obj)', '(G_TYPE_CHECK_INSTANCE_TYPE ((obj), ' + type_str + '))'], \
['#define ' + $1 + '_GET_INTERFACE(obj)', '(G_TYPE_INSTANCE_GET_INTERFACE ((obj), ' + type_str + ', ' + camel_str + 'Iface))']
]

return align(items) >

$<[1]:
items = [ \
['typedef struct _' + camel_str, camel_str + ';'], \
['typedef struct _' + camel_str + 'Iface', camel_str + 'Iface;'], \
]

return align(items) >

struct _$<[1]: return camel_str >Iface
{
	${7:GTypeInterface} parent;

	const gchar * (*example_method) ($<[1]: return camel_str > *self);
};

GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST;

const gchar *$< return $1.lower()>_example_method ($<[1]: return camel_str > *self);
$0
G_END_DECLS

#endif /* $1_H */]]></text>
    <tag>ginterface</tag>
    <description>GObject interface</description>
  </snippet>
    <snippet>
    <text><![CDATA[#ifndef ${1:NAME}_H
#define $1_H

#include <${2:glib-object.h}>

G_BEGIN_DECLS

$<
global camel_str
components = $1.split('_')
type_str = '_'.join([components[0], 'TYPE'] + components[1:])
is_str = '_'.join([components[0], 'IS'] + components[1:])
camel_str = ''

for t in components:
  camel_str += t.capitalize()

items = [ \
['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \
['#define ' + $1 + '(obj)', '((' + camel_str + ' *)obj)'], \
['#define ' + $1 + '_CONST(obj)', '((' + camel_str + ' const *)obj)'], \
]

return align(items) >

$<[1]:
items = [ \
['typedef struct _' + camel_str, camel_str + ';'], \
]

return align(items) >

GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST;
$<[1]: return camel_str > *$< return $1.lower()>_${3:copy} ($<[1]: return camel_str > *${4:boxed_name});
void $< return $1.lower()>_${5:free} ($<[1]: return camel_str > *${4:boxed_name});

$0
G_END_DECLS

#endif /* $1_H */]]></text>
    <tag>gboxed</tag>
    <description>GBoxed template</description>
  </snippet>
</snippets>

Filemanager

Name Type Size Permission Actions
lang Folder 0755
ui Folder 0755
c.xml File 7.19 KB 0644
chdr.xml File 6.8 KB 0644
cpp.xml File 4.93 KB 0644
css.xml File 17.52 KB 0644
docbook.xml File 73.45 KB 0644
fortran.xml File 4.09 KB 0644
global.xml File 51 B 0644
haskell.xml File 367 B 0644
html.xml File 7.68 KB 0644
idl.xml File 992 B 0644
java.xml File 1.9 KB 0644
javascript.xml File 255 B 0644
latex.xml File 1.1 KB 0644
mallard.xml File 7.94 KB 0644
markdown.xml File 2.29 KB 0644
perl.xml File 2.88 KB 0644
php.xml File 4.79 KB 0644
python.xml File 2.79 KB 0644
rpmspec.xml File 625 B 0644
ruby.xml File 4.33 KB 0644
sh.xml File 1.01 KB 0644
snippets.xml File 3.51 KB 0644
tcl.xml File 1.08 KB 0644
xml.xml File 690 B 0644
xslt.xml File 3.5 KB 0644