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
<cfif false> | |
This will never run | |
<cfelse> | |
This will always run | |
</cfif> | |
or | |
<cfscript> | |
if(false){ |
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
<cfquery name = "getAgain" datasource="DSN"> | |
select * from Table2 where ID in (<cfqueryparam cfsqltype="cf_sql_varchar" value="#ValueList(get.anotherID)#" list="true">) | |
</cfquery> |
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
<Directory "/Users/markdrew/Sites"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> |
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
<cfcomponent extends="mxunit.framework.TestCase"> | |
<!--- this will run before every single test in this test case ---> | |
<cffunction name="setUp" returntype="void" access="public" hint="put things here that you want to run before each test"> | |
<cfset obj = createObject("component","ObjectUnderTest")> | |
</cffunction> | |
<!--- this will run after every single test in this test case ---> |
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
import java.util.Observable; | |
public class MyDataStore extends Observable{ | |
public void updateMeSomehow(){ | |
setChanged(); | |
notifyObservers(); | |
} | |
} |
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
public class RequestExectutionView extends ViewPart{ | |
TreeViewer myTreeViewer; | |
... | |
public void createPartControl(Composite parent) { | |
Tree myTree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); | |
myTree.setHeaderVisible(true); | |
myTreeViewer = new TreeViewer(executionTree); | |
myTreeViewer.setLabelProvider(new MyLabelProvider()); |
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
public void createPartControl(Composite parent) { | |
Tree myTree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); | |
myTree.setHeaderVisible(true); | |
myTreeViewer = new TreeViewer(executionTree); | |
myTreeViewer.setLabelProvider(new MyLabelProvider()); | |
myTreeViewer.setContentProvider(new ContentProvider()); | |
myTreeViewer..setInput(MyDataStore.getInstance()); | |
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
<!--- This file is part of Mura CMS. | |
Mura CMS is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, Version 2 of the License. | |
Mura CMS is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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> | |
nz = "Aotearoa"; | |
arr = nz.toCharArray(); | |
dump(arr); | |
</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
var beanFactory = new aop("/services"); |
OlderNewer