Skip to content

Instantly share code, notes, and snippets.

outerloop:
for (i = 0; i < a.length; i++) {
for (j = 0; j < b.length; j++) {
console.log(a[i] + ' compare with ' + b[j]);
if (a[i] === b[j]) {
continue outerloop;
}
}
console.log('ERROR no match');
break outerloop;
=iif(FIRST(Fields!IsCompleted.Value, "Overview") = 0,"SSRS_Report_Watermark", "")
//SSRS_Report_Watermark = load image
var diff = $(a).not(b).get();
// https://stackoverflow.com/questions/41801729/finding-missing-element-in-two-array-for-javascript
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
<script>document.write((new Date()).getFullYear());</script>
// Add to lib file (example ab-design.at)
lib.currentPageId = TEXT
lib.currentPageId.data = TSFE:id
<f:if condition="{f:cObject(typoscriptObjectPath:'lib.currentPageId')} == 55">
<f:then>
// something
</f:then> <f:else>
// something
Logger.Error(this.GetType(), ex.Message, ex);
var_dump($content);
styles.content.textmedia.maxW
in constants.ts file
// function.php
// option page
add_action('admin_menu', 'option_page_create');
function option_page_create() {
$page_title = 'Theme Option';
$menu_title = 'Theme Option';
$capability = 'edit_posts';
$menu_slug = 'ae_theme_option';
$function = 'ae_theme_option_display';