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
$(document).ready(function(){ | |
$("#saveContract").validate({ | |
messages:{ | |
highwayName:{ | |
required: "Enter a highway name." | |
} | |
} | |
}); |
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 contractForm = { | |
init : function(){ | |
this.validate(); | |
this.mask(); | |
this.showPay(); | |
this.changePartyID(); | |
this.initValidator(); | |
this.validateCBA(); | |
this.setComboboxes(); |
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 List findByProjectContractDetailId(Long contractDetailID) { | |
logger.info("finding all ContractTaskDetail instances"); | |
try { | |
String queryString = "from ContractTaskDetail"; | |
Query queryObject = getSession().createQuery(queryString); | |
List contractTaskDetailList = queryObject.list(); | |
//um...queryObject.list returns nearly 1000000 rows hows about we write a freaking | |
//WHERE clause | |
for(Iterator it=queryObject.list().iterator(); it.hasNext(); ) |
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 myData = { | |
property1 : "", | |
property2 : "", | |
property3 : "", | |
method1 : function(element){ |
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 class Car{ | |
/* these are instance variables, they are defined outside of any function which means that any | |
function in the class can access them. Since they are private ONLY functions in the class | |
can access them. However note that the String is not set to anything, trying to access it | |
would throw an error. | |
*/ | |
private String color; | |
private int doors; | |
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
{ | |
"font_face": "consolas", | |
"font_size": 11 | |
} |
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
<cfscript> | |
testSuite = new mxunit.framework.TestSuite(); | |
//i'd like to run the tests in this order | |
testSuite.addAll("Koans.AboutAsserts"); | |
testSuite.addAll("Koans.AboutVariables"); | |
testSuite.addAll("Koans.AboutArrays"); | |
testSuite.addAll("Koans.AboutStructs"); | |
testSuite.addAll("Koans.AboutFunctions"); | |
testSuite.addAll("Koans.AboutComponents"); |
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 directPurchase = (function(window, document, undefined){ | |
var directPurchaseModal = "", | |
directPurchaseForm = "", | |
isSetup = false; | |
function setupDirectPurchaseLink(){ | |
$("#directPurchaseLink").live("click",function(e){ | |
directPurchaseModal.dialog( "open" ); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<plist version="1.0"> | |
<dict> | |
<key>content</key> | |
<string>${1:${2:public} ${3:void} function $4($5)}${6: | |
${7:output=${8:false} }${9:hint="$10"}}{ | |
$0 | |
}</string> | |
<key>name</key> | |
<string>scriptFunction</string> |
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
<cfscript> //ignore, just here for syntax coloring | |
/** | |
* @mxunit:decorators mxunit.framework.decorators.OrderedTestDecorator | |
*/ | |
component extends="mxunit.framework.TestCase"{ | |
... | |
} | |
</cfscript> |