This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
//create a 100 x 100 grey background | |
img = ImageNew("", 100, 100, "rgb", "lightgray"); | |
//create a duplicate of the image | |
img2 = duplicate( img ); | |
//write in black | |
imageSetDrawingColor( img2, 'black'); | |
//draw a black circle that is filled | |
imageDrawOval( img2, 10, 10, 20, 20, true ); | |
//draw a black circle that is filled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
directory='c:/cachedMessages'; | |
variables.dirList=DirectoryList(directory,false,'query','*.eml','desc:DATELASTMODIFIED'); | |
myQuery = new Query(); // new query object | |
myQuery.setDBType("query"); | |
myQuery.setAttributes(sourceQuery=variables.dirList); | |
myQuery.setAttributes(maxRows=1); | |
myQuery.setSQL(" select * from sourceQuery order by DATELASTMODIFIED desc"); //set query | |
qryRes = myQuery.execute(); // execute query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Create a new three-column query, specifying the column data types ---> | |
<cfset myQuery = QueryNew("Name, Email, Time, Advanced", "VarChar, VarChar, Time, Bit")> | |
<!--- Make two rows in the query ---> | |
<cfset newRow = QueryAddRow(MyQuery, 2)> | |
<!--- Set the values of the cells in the query ---> | |
<cfset temp = QuerySetCell(myQuery, "Name", "Rich", 1)> | |
<cfset temp = QuerySetCell(myQuery, "Email", "[email protected]", 1)> | |
<cfset temp = QuerySetCell(myQuery, "Time", "9:15 AM", 1)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsavecontent variable="variables.scString">{"username": "MinerAccount", "rating": "none", "confirmed_nmc_reward": "0.00000000", "send_threshold": "1.00000000", "nmc_send_threshold": "10.00000000", "confirmed_reward": "0.58411453", "workers": {"MinerAccount.sif": {"last_share": 1364237399, "score": "0", "hashrate": 0, "shares": 0, "alive": false}, "MinerAccount.loki": {"last_share": 1317347573, "score": "0", "hashrate": 0, "shares": 0, "alive": false}, "MinerAccount.odin": {"last_share": 1329744778, "score": "0", "hashrate": 0, "shares": 0, "alive": false}, "MinerAccount.dog": {"last_share": 1364850934, "score": "29285.8037", "hashrate": 2040, "shares": 2816, "alive": true}, "MinerAccount.Freyr": {"last_share": 1364440355, "score": "0", "hashrate": 0, "shares": 0, "alive": false}}, "wallet": "REDACTED", "unconfirmed_nmc_reward": "0.00000000", "unconfirmed_reward": "0.19413921", "estimated_reward": "0.00218734", "hashrate": "3094.363"}</cfsavecontent> | |
<!--- | |
<cfdump var="#variables.scString#"> | |
<cfdump var="#d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfparam default="This is Text!!! :)" name="url.text"> | |
<cfhttp | |
method="Get" | |
url="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=#url.text#" getAsBinary = "yes" > | |
<!--- From Ben Nadel ---> | |
<!--- Check to see if we found the image. ---> | |
<cfif ( | |
FindNoCase( "200", cfhttp.Statuscode ) AND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfparam name="url.height" default="700"> | |
<cfparam name="url.colorForeground" default="000000"> | |
<cfparam name="url.colorBackground" default="FFFFFF"> | |
<cfsetting showdebugoutput="false"/> | |
<cfif structKeyExists(url,"custom")> | |
<cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------------------------------------------------------------------- | |
* myPass v1.0 - jQuery password-hiding iPhone-Style | |
* | |
* Copyright (c) 2009 Oliver Storm, Stefan Huissel( http://www.mysrc.de ) | |
* Feel free to redistribute the script/modify it, as | |
* long as you leave my infos at the top. | |
* | |
* | |
* Date Thu, 30 Jun 2009 | |
* |