Skip to content

Instantly share code, notes, and snippets.

access-control
access-control:privilege:list List the privileges of the repository or a specific node NOT IMPLEMENTED
node-type
node-type:edit Edit or create a node type
node-type:list List registered node types
node-type:load Load or create a node type
node-type:show Show the CND of a node type
node-type:unregister Unregister a node type UNSUPPORTED / TODO
repository
repository:descriptor:list List the descriptors for the current repository
@zecho
zecho / embed-video.html
Created September 17, 2015 06:07
Properly embed videos
<object type="application/x-shockwave-flash"
data="{{url}}" width="{{width}}" height="{{height}}" >
<param name="movie" value="{{url}}" />
<param name="quality" value="high"/>
</object>
<a href="http://www.kolko.bg/" title="Сравни цени и оферти - виж Колко и спести!" target="_blank">
<img src="http://www.kolko.bg/images/badges/88x31.png" border="0" alt="Българската платформа за интелигентно пазаруване - kolko.bg">
</a>
<a href="http://www.kolko.bg/" title="Сравни цени и оферти - виж Колко и спести!" target="_blank">
<img src="http://www.kolko.bg/images/badges/120x60.png" border="0" alt="Българската платформа за интелигентно пазаруване - kolko.bg">
</a>
<a href="http://www.kolko.bg/" title="Сравни цени и оферти - виж Колко и спести!" target="_blank">
<img src="http://www.kolko.bg/images/badges/120x90.png" border="0" alt="Българската платформа за интелигентно пазаруване - kolko.bg">
</a>
@zecho
zecho / gist:4509602
Created January 11, 2013 10:29 — forked from komapa/gist:290040
<a href="http://www.kolko.bg/pages/услуги-за-търговци/" title="Публикувай продуките си и увеличи трафика и реалните клинети - kolko.bg">
<img class="border2" src="/wp-content/uploads/2010/01/kolko_banner.png" width="400" Height="150" alt="Публикувай продуките си и увеличи трафика и реалните клинети - kolko.bg" />
</a>
@zecho
zecho / UniqueObject.php
Last active October 1, 2017 13:50 — forked from Hadrien45/gist:154f981ba3daf8149435aaebcb48d9c4
Pomm Unique Object
//AppBundle\Validator\Constraints\UniqueObject
<?php
namespace AppBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
@zecho
zecho / auth_response.xml
Created March 9, 2018 13:42 — forked from frne/auth_response.xml
ejabberd, BOSH und Strophe.js
<body xmlns="http://jabber.org/protocol/httpbind"
sid="e0408bf8d86f0a7f44afda59aa8f81b75d029bb6"
wait="60"
requests="2"
inactivity="30"
maxpause="120"
polling="2"
ver="1.6"
from="ymc-pg-ejabberd"
secure="true"
# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)
@zecho
zecho / postgis_mapnik_tilestache_leaflet_WGS84_to_UTM.md
Created March 10, 2018 17:42 — forked from skogsmaskin/postgis_mapnik_tilestache_leaflet_WGS84_to_UTM.md
Reproject PostGIS through Mapnik, Tilestache and Leaflet into other projections

Reproject PostGIS through Mapnik, Tilestache and Leaflet into other projections

This is an example on how to configure Tilestache, Mapnik and Leaflet to handle reprojections.

###TileStache

{
  "cache": {...},