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 @intStartRow int; | |
DECLARE @intEndRow int; | |
SET @intStartRow = (@intPage -1) * @intPageSize + 1; | |
SET @intEndRow = @intPage * @intPageSize; | |
WITH blogs AS | |
(SELECT strBlogName, | |
ROW_NUMBER() OVER(ORDER BY intID DESC) as intRow, | |
COUNT(intID) OVER() AS intTotalHits |
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
$('#mycheckbox').prop("checked"); // true or 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
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 (!window.console) window.console = {}; | |
if (!window.console.log) window.console.log = function () { }; |
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 (!window.console) window.console = {}; | |
if (!window.console.log) window.console.log = function () { }; | |
function report(msg,ex){ | |
if(!!ex) msg = 'ERROR in [' + msg + ']. Message: ' + ex.Message; | |
window.console.log(msg); | |
} |
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
function getURLParameter(name,usePoundInsteadOfQuestionMarkIfAvailable) { | |
var url = window.location.href; | |
// use #param=value method? | |
if(url.indexOf('?',0) == -1) usePoundInsteadOfQuestionMarkIfAvailable = true; | |
var poundExistsInURL = (url.indexOf('#',0) > -1); | |
if( | |
(usePoundInsteadOfQuestionMarkIfAvailable == true) && | |
(poundExistsInURL)){ | |
return getHashParams()[name]; |
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
<META http-equiv="refresh" content="0;URL=REDIRECT_TO_URL"> |
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
function decodeEscapedHTML (escapedHTML) { | |
var decodedHTML = $('<div/>').html(encodedText).text(); | |
return decodedHTML; | |
} |
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
<meta http-equiv="EXPIRES" content="0"> | |
<meta http-equiv="PRAGMA" content="NO-CACHE"> | |
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE"> | |
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> | |
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE"> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer