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
#pragma once | |
//TODO include appropriate headers | |
#include <QtCore/QtCore> | |
#include <QtXml/QtXml> | |
bool readSettingsXml(QIODevice &device, QMap<QString, QVariant> &map); | |
bool writeSettingsXml(QIODevice &device, const QMap<QString, QVariant> &map); | |
static const QSettings::Format xmlFormat = QSettings::registerFormat("xml", &readSettingsXml, &writeSettingsXml); | |
static const QString rootName = "config"; |
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
#pragma once | |
#include <QDebug> | |
#include <QString> | |
#include <QVariant> | |
#include <QSqlField> | |
#include <QSqlQuery> | |
#include <QSqlError> | |
#include <QSqlDriver> | |
#include <QSqlRecord> |
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
#pragma once | |
#include "stable.h" | |
namespace gui { class UserDialog; class AdminDialog; } | |
namespace data | |
{ | |
class User : public QObject | |
{ | |
Q_OBJECT |
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
package main | |
import ( | |
// "flag" | |
"fmt" | |
"os" | |
"strings" | |
"strconv" | |
"database/sql" | |
"compress/gzip" |
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
#!/opt/local/bin/python | |
import MySQLdb | |
from openpyxl import load_workbook | |
# Connect to Database | |
database = MySQLdb.connect(host="127.0.0.1", # your host, usually localhost | |
user="", # your username | |
passwd="", # your password | |
db="table") # name of the data base |
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 | |
header('Content-Type: application/json'); | |
$db = new PDO("mysql:unix_socket=/opt/local/var/run/mariadb/mysqld.sock;dbname=table", "", ""); | |
$result = array('values' => array()); | |
if(isset($_POST["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
var app = angular.module("successes", []) | |
.controller("DataList", DataListCtrl) | |
.controller("FiscalYearList", FiscalYearListCtrl); | |
function DataListCtrl($scope, $http) | |
{ | |
$http.get('successes.json.php?req=main') | |
.success(function(data) | |
{ | |
$scope.entries = data.values; |