Skip to content

Instantly share code, notes, and snippets.

View thecfguy's full-sized avatar

Pritesh thecfguy

View GitHub Profile
@thecfguy
thecfguy / gist:6193183
Last active December 20, 2015 20:49 — forked from anonymous/gist:4282657
<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;
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,
@thecfguy
thecfguy / index.js
Created March 21, 2016 11:46 — forked from anonymous/index.js
Arrange labels for all kind of density
function dpToPixel(dp) {
return ( parseInt(dp) * (Titanium.Platform.displayCaps.dpi / 160));
}
// convert pixel to dp.
function pixelToDp(px,nounit) {
return ( parseInt(px) / (Titanium.Platform.displayCaps.dpi / 160)) + (nounit?0:'dp');
}
var reArrangeLable = function(){