Skip to content

Instantly share code, notes, and snippets.

View mbonano's full-sized avatar

Mark Bonano mbonano

View GitHub Profile
@mbonano
mbonano / Dynamic-PDF-Creation-CSharp
Created August 20, 2012 02:29
Dynamically create pdf in C#
using iTextSharp.text;
using iTextSharp.text.pdf;
public void CreatePDF()
{
// instantiate a new document
Document document = new Document(PageSize.LETTER, 15, 15, 15, 15);
// instantiate the writer that will listen to the document
string path = Server.MapPath("~/data/forms/FILENAME");
@mbonano
mbonano / Sample-Mule-Config-ActiveMQ
Created August 20, 2012 02:23
Mule Config With Sample ActiveMQ Connector
<?xml version="1.0" encoding="UTF-8" ?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mule="http://www.mulesoft.org/schema/mule/core"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.1/mule-jms.xsd">
<jms:activemq-connector name="jmsConnector"
@mbonano
mbonano / Sample-Mule-Flow-Http
Created August 20, 2012 02:00
Mule Sample Flow of Http Inbound Endpoint
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xsi:schemalocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd">
<description>
Sample Flows
</description>