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
kakadu:/media/disk/kakadu/prog/ocaml/ocsigen$ git clone [email protected]:pcouderc/ocp-webedit.git ocp-webedit3 | |
Cloning into 'ocp-webedit3'... | |
remote: Counting objects: 1229, done. | |
remote: Compressing objects: 100% (543/543), done. | |
remote: Total 1229 (delta 702), reused 1184 (delta 657) | |
Receiving objects: 100% (1229/1229), 4.91 MiB | 131.00 KiB/s, done. | |
Resolving deltas: 100% (702/702), done. | |
Checking connectivity... done | |
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
import QtQuick 2.0 | |
import QtQuick.Controls 1.0 | |
Rectangle { | |
width: 800 | |
height: 600 | |
ScrollView { | |
anchors.fill: parent |
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
//g++ -std=c++11 a.cpp | |
#include <array> | |
template <typename T, size_t a, size_t b> | |
std::array<T, a + b> concat(std::array<T, a> const& x, std::array<T, b> const& y) { | |
std::array<T, a + b> z; | |
std::copy(x.begin(), x.end(), z.begin()); | |
std::copy(y.begin(), y.end(), z.begin() + x.size()); | |
return z; | |
} |
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 <QtGui/QGuiApplication> | |
#include "signalslotlistview.h" | |
#include <QtQuick/QQuickItem> | |
#include <QtQuick/QQuickView> | |
int main(int argc, char *argv[]) | |
{ | |
QGuiApplication app(argc, argv); | |
QQuickView *view = new QQuickView(); |
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
import QtQuick 2.0 | |
Rectangle { | |
id: root | |
anchors { left: parent.left; right: parent.right } | |
height: 30 | |
color: "gray" | |
radius: 15 | |
border.width: 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
Item { | |
property variant forestQuest1: _forestQuest1 | |
Rectangle { | |
id: _forestQuest1 | |
property variant choices: VisualItemModel { | |
id: _forest1_choices | |
QuestButton { ... } |
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
open Eliom_openid | |
open Lwt | |
let messages = | |
let scope = (Eliom_common.default_process_scope :> Eliom_common.user_scope) in | |
Eliom_state.create_volatile_table ~scope () | |
(* The login form *) | |
let login_form = Eliom_service.App.service | |
~path:["login-form"] |
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
import QtQuick 2.1 | |
import "global.js" as Global | |
import "ocaml.js" as OCaml | |
Rectangle { | |
width: 1224; height: 600; color: "lightgray"; | |
Item { id: images; visible: false | |
property string city1: "City1____" |
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
import QtQuick 2.1 | |
Rectangle { | |
width: 800; height: 600 | |
ListModel { | |
id: nameModel | |
ListElement { name: "Alice" } | |
ListElement { name: "Bob" } |