Skip to content

Instantly share code, notes, and snippets.

View thecfguy's full-sized avatar

Pritesh thecfguy

View GitHub Profile
anonymous
anonymous / copycomment.sql
Created August 17, 2013 16:13
Copy comment from mango blog to Mura.
INSERT INTO `muracms`.`tcontentcomments`
(commentId,contentId,comments,NAME,email,url,entered,isApproved,siteId)
SELECT
MC.id AS commentId,
MUT.contentId AS contentId,
MC.content AS comments,
MC.creator_name AS NAME,
MC.creator_email AS email,
MC.creator_url AS url,
MC.created_on AS entered,
@vikaskanani
vikaskanani / readImage.cfm
Created August 17, 2013 09:27
ColdFusion Image reading function
<cfscript>
public function readImage(fullpath){
try {
return ImageNew(fullpath);
} catch (any e) {
//trying java imageio
var imageFile = createObject("java", "java.io.File").init(fullpath);
// read the image into a BufferedImage
var ImageIO = createObject("java", "javax.imageio.ImageIO");
try {
anonymous
anonymous / gist:4282657
Created December 14, 2012 04:17
ColdFusion webservice call with custome wsdl java args
<cfscript>
x = createobject("webservice","http://www.webservicex.net/genericbarcode.asmx?WSDL",{refreshWSDL="yes",wsdl2javaArgs="-a -O 2000"});
argCollection.BarCodeParam = structNew();
argCollection.BarCodeParam.Height = 100;
argCollection.BarCodeParam.Width = 200;
argCollection.BarCodeParam.Angle = 50;
argCollection.BarCodeParam.Ratio = 1;
argCollection.BarCodeParam.Module = 1;
argCollection.BarCodeParam.Left = 10;
argCollection.BarCodeParam.Top = 10;