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
component displayname="GIS Plant Asset Service" extends="app.model.services.baseService" accessors="true" { | |
property assetGateway; | |
public array function list() { | |
return populateBeans( "assetBean", assetGateway.select() ); | |
} | |
public array function getByAssetID ( required string assetid ) { | |
var data = assetGateway.select( { assetid : assetid } ); |
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
The html... | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
</head> | |
<body> | |
<h3>Submit Some Hidden Form Data</h3> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
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> | |
function operatorTest(a, b) { | |
var result = { | |
"#a# || #b#": a || b, | |
"#a# && #b#": a && b, | |
"#a# XOR #b#": a XOR b, | |
"#a# IMP #b#": a IMP b, | |
"#a# ? #b# : false": a ? b : true, | |
"#a# EQV #b#": a EQV b, | |
"#a# == #b#": a == b |
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
// ORMSettings: flushatrequestend = false, automanagesession = false | |
// No errors, just obj.myprop not populate to db: | |
obj = cacheget(tag); | |
entityMerge(obj); | |
transaction { | |
obj.myprop = 'example'; | |
} |
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> | |
foo = "{ts '2015-01-09 15:15:39'}"; | |
writeDump(isDate(foo)); // true | |
writeDump(DateFormat(foo, "yyyy-mm-dd")); // 2015-01-09 | |
writeDump(LSDateFormat(foo, "yyyy-mm-dd")); // error | |
</cfscript> |
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
<!--- | |
LICENSE | |
Copyright 2007 Brian Kotek | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
// fire event when window is resized | |
$( window ).resize( function() { | |
$body = $( 'body' ); | |
$documentWidth = $( '#document-width' ); | |
if ($documentWidth.length===0){ | |
$documentWidth = $( '<p id="document-width" />' ); | |
$body.prepend( $documentWidth ); | |
} | |
$documentWidth.text( $body.width() ); |