Skip to content

Instantly share code, notes, and snippets.

@monstruosoft
monstruosoft / allegro-5-test.c
Created March 9, 2019 03:49
Allegro 5 test
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
ALLEGRO_DISPLAY *display = NULL;
ALLEGRO_EVENT_QUEUE *events = NULL;
int main() {
al_init();
al_install_keyboard();
al_set_new_display_flags(ALLEGRO_WINDOWED);
#include <stdio.h>
int main() {
puts("Hello world!");
}
@monstruosoft
monstruosoft / factura-electronica.xsl
Created February 21, 2019 20:16
Factura electrónica - 6
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="cfdi:Conceptos">
<h1>Conceptos:</h1>
@monstruosoft
monstruosoft / factura-electronica.xml
Created February 21, 2019 20:14
Factura electrónica - 5
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="ejemplo.xsl"?>
<cfdi:Comprobante>
...
</cfdi:Comprobante>
@monstruosoft
monstruosoft / factura-electronica.html
Created February 21, 2019 20:12
Factura electrónica - 4
<html xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital">
<body>
<h1>Hola mundo!</h1>
</body>
</html>
@monstruosoft
monstruosoft / factura-electronica.xsl
Created February 21, 2019 20:10
Factura electrónica - 3
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"
xmlns:cfdi="http://www.sat.gob.mx/cfd/3"
xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital">
<xsl:template match="/">
<html>
@monstruosoft
monstruosoft / factura-electronica.xsl
Created February 21, 2019 20:06
Factura electrónica - 2
<xsl:template match="/">
<html>
<body>
<h1>Hola mundo!</h1>
</body>
</html>
</xsl:template>
@monstruosoft
monstruosoft / factura-electronica.xsl
Created February 21, 2019 20:06
Factura electrónica - 1
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"
xmlns:cfdi="http://www.sat.gob.mx/cfd/3"
xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital">
</xsl:stylesheet>