Skip to content

Instantly share code, notes, and snippets.

=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';
@ABooooo
ABooooo / choose
Last active September 11, 2019 08:12
=choose(Fields!Organisationlevel.Value, "Red", "Green", "Orange", "Blue")
if it is 1 then is red, if it is two then is green, if it is 3 is "orange", otherwise is blue
Video: Section 7, 56. Program Flow Functins
it can also be combined with iif
=iif(Fields!Organisationlevel.Value>3,"Blue",
choose(Fields!Organisationlevel.Value, "Red", "Green", "Orange"))