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
// normal version: | |
foreach(var item in fKeySequence) | |
{ | |
Console.WriteLine("{0}", i); | |
} | |
// elegant version: | |
fKeySequence.ForEach(i => Console.WriteLine("{0}", i)); |
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
public static void outputdesign(Dictionary<string, Dictionary<string, Dictionary<string, object>>> TableDesign) | |
{ | |
foreach (KeyValuePair<string, Dictionary<string, Dictionary<string, object>>> item in TableDesign) | |
{ | |
Console.WriteLine(item.Key); | |
foreach (KeyValuePair<string, Dictionary<string, object>> item2 in item.Value) | |
{ | |
foreach (KeyValuePair<string, object> item3 in item2.Value) | |
{ |
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
/* | |
Initialize the variables | |
-------------------------- | |
private int jumpWidth = 0; | |
private boolean jumpStatus = false; | |
private int gravity = 2; | |
private int jumpPower = 5; | |
private boolean startJump = 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
BoxLayout: | |
orientation: 'vertical' | |
Label: | |
size_hint_y: None | |
height: '50dp' | |
id: calc | |
text: '' | |
GridLayout: | |
cols: 4 |
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
#include <QPixmap> | |
#include <QDir> | |
#include <QFileDialog> | |
#include <QString> | |
#include <QScreen> | |
QPixmap originalPixmap; | |
originalPixmap = QPixmap(); // clear image for low memory situations | |
// on embedded devices. |
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
//Show value | |
qDebug() << blayer->TableContentRTM("Produkte")->record(pIndex.row()).value("Image"); | |
// show key Values in table | |
qDebug() << blayer->TableContentRTM("Produkte")->record(pIndex.row()).keyValues(blayer->TableContentRTM("Produkte")->record(pIndex.row())); | |
qDebug() << blayer->TableContentRTM("Produkte")->record(pIndex.row()).fieldName(6); |
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
QByteArray imageByteArray = blayer->TableContentRTM("Produkte")->record(pIndex.row()).value("Image").toByteArray(); | |
QFile newDoc("/home/fecub/fileName.png"); | |
if(newDoc.open(QIODevice::WriteOnly)){ | |
newDoc.write(imageByteArray); | |
} | |
newDoc.close(); |
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 * FROM ( | |
SELECT | |
ROW_NUMBER() OVER (ORDER BY lAG_ID ASC) AS rownumber, | |
* | |
FROM CP_Einzelauftrag | |
) AS foo | |
WHERE rownumber >= 6 AND rownumber <= 10 |
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 data = { | |
item: Qt.resolvedUrl('RadioElement.qml'), | |
properties: { | |
placeholderTitle: "Radio Title", | |
urlText: "http://", | |
selectedItem: "" | |
} | |
} | |
stackView.push(data) |
OlderNewer