This file contains hidden or 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 http = new XMLHttpRequest() | |
var url = "http://127.0.0.1:8080/hangzhoubaogongdian/findUser.do?"; | |
var params = "usernameSch=" + user + "&passwordSch=" + password; | |
http.open("POST", url, true); | |
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
http.setRequestHeader("Content-length", params.length); | |
http.setRequestHeader("Connection", "close"); | |
http.onreadystatechange = function() { |
This file contains hidden or 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
Row { | |
id: contentRow2 | |
spacing: 10 | |
height: Math.max(remarkLabel.height, remarkRectangle.height) | |
width: parent.width | |
Text { | |
id: remarkLabel | |
anchors.verticalCenter: parent.verticalCenter | |
text: "备注:" | |
width: taskContentLabel |
This file contains hidden or 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
Rectangle { | |
id: infoText | |
anchors.centerIn: parent | |
width: parent.width | |
height: 40 | |
color: "black" | |
Text { | |
color: "white" | |
anchors.centerIn: parent | |
text: "You can navigate between views using swipe or arrow keys" |
This file contains hidden or 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
void TableDialog::on_subComboBox_currentIndexChanged(int index) | |
{ | |
int maxCount = 0; | |
auto itemmodel = static_cast<QStandardItemModel*>(ui->tableView->model()); | |
if (!itemmodel) | |
{ | |
return; | |
} | |
QComboBox* comboBox = NULL; | |
if (NULL != (comboBox = qobject_cast<QComboBox*>(this->sender()))) |
This file contains hidden or 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 ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
This file contains hidden or 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
Syntax Highlighter Example | |
The Syntax Highlighter application displays C++ files with custom syntax highlighting. | |
The example consists of two classes: | |
The Highlighter class defines and applies the highlighting rules. | |
The MainWindow widget is the application's main window. |
This file contains hidden or 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 <highgui/highgui.hpp> | |
#include <cv.h> | |
using namespace std; | |
using namespace cv; | |
int main(int argc, char *argv[]) | |
{ | |
CvCapture* capture = cvCaptureFromCAM(0); |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets" /> | |
<PropertyGroup Label="UserMacros"> | |
<BuildDir>$(SolutionDir)..\Build</BuildDir> | |
<!--NOTE: CpuOnlyBuild and UseCuDNN flags can't be set at the same time.--> | |
<CpuOnlyBuild>true</CpuOnlyBuild> | |
<UseCuDNN>false</UseCuDNN> | |
<CudaVersion>7.5</CudaVersion> | |
<!-- NOTE: If Python support is enabled, PythonDir (below) needs to be |
This file contains hidden or 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
@echo copy dlls to bin | |
if $(PlatformTarget)==x64 ( | |
xcopy "$(SolutionDir)built\$(ProjectName)\$(Platform)\$(Configuration)\*.dll" "$(SolutionDir)$(Platform)\$(Configuration)\bin" /y | |
) | |
if $(PlatformTarget)==x86 ( | |
xcopy "$(SolutionDir)built\$(ProjectName)\$(Platform)\$(Configuration)\*.dll" "$(SolutionDir)$(Platform)\$(Configuration)\bin" /y | |
) |
This file contains hidden or 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
if ((pBuf = m_fingerPrinter->CaptureOneImage(true))) | |
{ | |
QPixmap pix1; | |
pix1.loadFromData(pBuf, 256 * 360 + 1078, "BMP"); | |
emit fingerPrintCatched(pix1.toImage()); | |
delete[]pBuf; | |
} |