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
WITH typelist AS | |
(SELECT 0 AS n | |
FROM DUAL | |
WHERE 1 = 0 | |
UNION | |
SELECT 1 AS n | |
FROM DUAL | |
UNION | |
SELECT 2 AS n | |
FROM DUAL) |
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
DECLARE | |
v_filter varchar2(20) := 'All'; | |
v_count number := 0 ; | |
BEGIN | |
dbms_output.enable(100000) ; | |
DBMS_output.put_line('running') ; | |
SELECT count(1) into v_count | |
FROM personnel p | |
WHERE NVL(P.TERMINATED_FLAG,'N') = 'N' | |
AND CASE WHEN (v_filter = 'Federal') THEN |
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
if (!Array.prototype.indexOf) { | |
Array.prototype.indexOf = function (obj, fromIndex) { | |
if (fromIndex == null) { | |
fromIndex = 0; | |
} else if (fromIndex < 0) { | |
fromIndex = Math.max(0, this.length + fromIndex); | |
} | |
for (var i = fromIndex, j = this.length; i < j; i++) { | |
if (this[i] === obj) | |
return i; |
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
# Set the default behavior, in case people don't have core.autocrlf set. | |
* text=auto | |
# Explicitly declare text files you want to always be normalized and converted | |
# to native line endings on checkout. | |
*.c text | |
*.h text | |
# Declare files that will always have CRLF line endings on checkout. | |
*.sln text eol=crlf |
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
<html> | |
<head> | |
<style> | |
table.cfdump_wddx, | |
table.cfdump_xml, | |
table.cfdump_struct, | |
table.cfdump_array, | |
table.cfdump_query, | |
table.cfdump_cfc, |
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 method of a query of queries | |
// there seems to be no supported way to create a qoq using the more common queryNew() cfscript | |
local.qoqObj = new Query(dbtype='query', sql="select * from qrySource where [sql conditional] ") ; // qrySource is an attribute set below | |
local.qoqObj.setAttributes(qrySource=local.actualSourceQuery) ; // | |
local.qryQoqResults = local.qoqObj.execute().getResult() ; | |
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
UPDATE destTable d | |
SET d.column = (select column from sourceTable where id = [id]) | |
WHERE [id] = 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
[ | |
// cf tags | |
{ "keys": ["ctrl+shift+a"], "command": "insert_snippet", "args": {"contents": "<cfabort>" } }, | |
{ "keys": ["ctrl+shift+d"], "command": "insert_snippet", "args": {"contents": "<cfdump var=\"#${0:$SELECTION}#\">" }}, | |
{ "keys": ["ctrl+shift+o"], "command": "insert_snippet", "args": {"contents": "<cfoutput>${0:$SELECTION}</cfoutput>"}} , | |
// comments & wrappers | |
// hash | |
{ "keys": ["ctrl+shift+h"], "command": "insert_snippet", "args": {"contents": "#${0:$SELECTION}#" } }, | |
// single line comment |
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 OR REPLACE TRIGGER TIUD_BACKGROUND_INV | |
AFTER DELETE OR INSERT OR UPDATE | |
ON BACKGROUND_INV REFERENCING NEW AS NEW OLD AS OLD | |
FOR EACH ROW | |
DECLARE | |
v_new_updated_by := background_inv.updatedby%type ; | |
BEGIN | |
IF updating THEN |
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> | |
currentDir = getDirectoryFromPath(getTemplatePath()) ; | |
currentfile = lcase(getFileFromPath(getTemplatePath())); | |
fileList = directoryList(currentDir,false,'query','*.jpg','asc') ; | |
</cfscript> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PhotoSwipe</title> |
OlderNewer