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
evtid = SiteKiosk.Scheduler.AddPeriodicEvent(100, CheckZoom); | |
function CheckZoom() { | |
if (SiteKiosk.WindowList.ActiveWindow.SiteKioskWindow.OpticalZoom !== 100) | |
SiteKiosk.WindowList.ActiveWindow.SiteKioskWindow.OpticalZoom = 100; | |
} |
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
var FormatNumberWithCommas = function(x) { | |
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
}; | |
console.log(FormatNumberWithCommas(123456789)); |
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
# MODIFY TO YOUR SOURCE FILE EXTENSIONS | |
cd C:\projectdirectory | |
(dir -include *.cs,*.xaml -recurse | select-string .).Count |
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
<?php /** INCLUDE IN FUNCTIONS.PHP **/ | |
function set_metadata() { | |
global $post; | |
$title = get_post_meta($post->ID, MetaTitle, true); | |
$keywords = get_post_meta($post->ID, MetaKeywords, true); | |
$description = get_post_meta($post->ID, MetaDescription, true); | |
if (!is_home() || !is_front_page()) { | |
if (!empty($title)) { |
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
/* Interactive Sorting Descending by Numeric */ | |
=Fields!NumericFieldToSortBy.Value * -1 | |
/* Interactive Sorting Descending by Date */ | |
=DATEDIFF("d",Fields!DateFieldToSortBy.Value,Today()) | |
/* Interactive Sorting Descending by String */ | |
=CLNG(CSTR(ASC(UCASE(LEFT(CSTR(Fields!LastName.Value) + "@",1)))) | |
+ CSTR(ASC(UCASE(MID(LEFT(CSTR(Fields!LastName.Value) + "@@",2),2,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
net statistics workstation | |
pause |
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
SELECT percent_complete, start_time, status, command, estimated_completion_time, cpu_time, total_elapsed_time | |
FROM sys.dm_exec_requests; |
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
<?php | |
if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "" || $_SERVER['HTTPS'] == "off"){ | |
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
header('Status: 301 Moved Permanently', true); | |
header("Location: $redirect", true, 301); | |
} | |
?> |
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
// WRITES TO THE MAIN LOG | |
logger.info('MESSAGE'); | |
// WRITES TO THE MAIN LOG | |
java.lang.System.err.println("MESSAGE"); |
OlderNewer