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
function format(str){ | |
var args = arguments; | |
return str.replace(/{(\d+)}/g, function(match, number){ | |
return args[parseInt(number) + 1]; | |
}); | |
} |
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
BaseWidget::BaseWidget(QWidget *parent) : | |
QWidget(parent) | |
{ | |
QVBoxLayout * l = new QVBoxLayout(this); | |
l->setContentsMargins(0, 0, 0, 0); | |
qmlRegisterType<SPageStatus>("AegisLabs", 1, 0, "PageStatus"); | |
QmlApplicationViewer * viewer = new QmlApplicationViewer(this); |
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
ListView { | |
id: contentView | |
anchors.fill: parent | |
highlightRangeMode: ListView.StrictlyEnforceRange | |
orientation: ListView.Horizontal | |
snapMode: ListView.SnapOneItem | |
clip: true | |
model: internalContentModel |
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 express = require('express'); | |
// express setup | |
var app = express.createServer(); | |
app.use(express.bodyParser()); | |
app.get('/', function(req, res){ | |
res.writeHead(200, {'content-type': 'text/html'}); | |
res.end( | |
'<form action="/upload" enctype="multipart/form-data" method="post">'+ |
NewerOlder