This file contains hidden or 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
| http://www.journaldev.com/2513/tomcat-datasource-jndi-example-java | |
| ------------- | |
| Step1: runtime/conf/context.xml | |
| <Context> | |
| <Resource name="APP_DS" auth="Container" type="javax.sql.DataSource" | |
| maxTotal="60" | |
| maxIdle="20" | |
| maxWaitMillis="10000" | |
| username="username" password="password" driverClassName="oracle.jdbc.driver.OracleDriver" |
This file contains hidden or 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
| <cfobject action="create" type="java" class="java.util.Date" name="mydate"> | |
| <cfset mySimple = mydate.toString()> | |
| <cfoutput>#mySimple#</cfoutput> | |
| <CFOBJECT action=create | |
| name=test | |
| type="JAVA" | |
| class="com.xtm.SAPConnect.Test"> |
This file contains hidden or 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
| 1. set up path: | |
| path = %path%;c:\Program Files\Java\jdk1.5.0_09\bin | |
| 2. on command prompt | |
| jar cvf SAPConnect.jar * | |
This file contains hidden or 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
| http://www.lidorsystems.com/support/articles/angularjs/treeview/tree-view-multi-select.aspx |
This file contains hidden or 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
| http://www.thenycrevolution.com/ |
This file contains hidden or 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
| function init(){ | |
| var hours = 1/2; //Storage expiration time - 30 mins | |
| var now = new Date().getTime(); | |
| var prevClickTime = sessionStorage.getItem('prevClickTime'); | |
| if (prevClickTime == null) { | |
| sessionStorage.setItem('prevClickTime', now); | |
| sessionStorage.setItem('curClickTime', now); | |
| } else { | |
| var curClickTime = sessionStorage.getItem('curClickTime'); | |
| prevClickTime = curClickTime; |
This file contains hidden or 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
| public string function getModifiedDate(string filepath) { | |
| var absPath = ExpandPath( "./") & filepath; | |
| if(!fileExists(absPath)) { | |
| WriteLog(type="Error", file="tpc", text="File does not exists: "&absPath); | |
| return 0; | |
| } | |
| return dateTimeFormat(GetFileInfo(absPath).LastModified, "yymmddHHnnss", "GMT"); | |
| } |
This file contains hidden or 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
| http://apassant.net/2012/01/16/timeout-for-html5-localstorage/ | |
| var hours = 24; // Reset when storage is more than 24hours | |
| var now = new Date().getTime(); | |
| var setupTime = localStorage.getItem('setupTime'); | |
| if (setupTime == null) { | |
| localStorage.setItem('setupTime', now) | |
| } else { | |
| if(now-setupTime > hours*60*60*1000) { | |
| localStorage.clear() |
This file contains hidden or 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
| https://cfdeepak.wordpress.com/2014/09/13/autoversioning-js-and-css-files-using-coldfusion/ |
This file contains hidden or 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
| var fruits = ["Banana", "Orange", "Apple", "Mango"]; | |
| var a = fruits.indexOf("Apple"); |
NewerOlder