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
UPDATE <TABLE> SET | |
<COLUMN>=<RANGE_TYPE>( | |
lower(<COLUMN>), -- Swap out for actual value | |
upper(<COLUMN>), -- Swap out for actual value | |
concat( | |
CASE WHEN lower_inc(<COLUMN>) THEN '[' ELSE '(' END, | |
CASE WHEN upper_inc(<COLUMN>) THEN ']' ELSE ')' END | |
) | |
) | |
WHERE <CONDITION>; |
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
#!/bin/sh | |
# Userland mode (~$USER/), (~/). | |
# ~/.fonts is now deprecated and that | |
#FONT_HOME=~/.fonts | |
# ~/.local/share/fonts should be used instead | |
FONT_HOME=~/.local/share/fonts | |
echo "installing fonts at $PWD to $FONT_HOME" | |
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" |
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
// Very helpful link: https://vicrucann.github.io/tutorials/qttest-signals-qtreewidget/ | |
// Select an item in the combobox list | |
QComboBox * cb = m_widget->findChild<QComboBox*>("testStandComboBox"); | |
QTest::mouseClick(cb, Qt::LeftButton); | |
QTest::qWait(1000); | |
QListView * lw = cb->findChild<QListView *>(); | |
if(lw) | |
{ |