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
-- ============================================= | |
-- Author: <Author Name> | |
-- Create date: <Creation date> | |
-- Description: <Description> | |
-- Example: <Example code to execute> | |
-- History: <Modification date> > <Description of the modification> | |
-- <Modification date> > <Description of the modification> | |
-- ============================================= |
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
DateTimeVariable.ToString("yyyyMMdd") |
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
SELECT CONVERT ( VarChar(8), GETDATE(), 112) |
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
SELECT CAST ( FLOOR ( CAST ( GETDATE() AS DECIMAL (12, 5) ) ) AS DATETIME ) |
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
// Definition | |
// ---------------- | |
var p = new Promise(function(resolve, reject) { | |
// Do an async task async task and then... | |
if(/* good condition */) { | |
resolve('Success!'); | |
} | |
else { |
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
// if element exists | |
if($('selector').length){ //do something } | |
// if element does not exist | |
if(!$('selector').length){ //do something } |
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
<style> | |
body{display:none;} | |
</style> | |
<script> | |
if(self==top){ | |
document.getElementsByTagName("body")[0].style.display="block"; | |
}else{ | |
top.location=self.location; | |
} | |
</script> |
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 1.1 | |
getCurrentResponse().setHeader("Cache-Control", "no store, no-cache, must-revalidate"); | |
// Http 1.0 | |
getCurrentResponse().setHeader("Pragma", "no-cache"); | |
// Prevents caching at the proxy server | |
getCurrentResponse().setDateHeader ("Expires", -1); |
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
(<any>window).MyExternalFunction(); |
OlderNewer