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
#!/usr/bin/env bash | |
set +x +e | |
TAR=qt-everywhere-opensource-src-5.3.1 | |
wget http://download.qt-project.org/archive/qt/5.3/5.3.1/single/$TAR.tar.xz | |
echo Unpacking.... | |
tar -xf $TAR.tar.xz | |
cd $TAR |
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
#!/usr/bin/env bash | |
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe" | |
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main" | |
sudo apt-get update | |
sudo apt-get install qdbus qmlscene qt5-default qt5-qmake qtbase5-dev-tools qtchooser qtdeclarative5-dev xbitmaps xterm libqt5svg5-dev qttools5-dev qtscript5-dev qtdeclarative5-folderlistmodel-plugin qtdeclarative5-controls-plugin -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
#!/usr/bin/env bash | |
set -x -e | |
lsb_release -a | |
uname -a | |
UBUNTU_PREFIX=http://fr.archive.ubuntu.com/ubuntu/pool/main | |
PACKAGES="\ | |
$UBUNTU_PREFIX/i/icu/libicu52_52.1-3_amd64.deb \ |
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 QtQuick.Controls 1.0 | |
import QtQuick.Layouts 1.0 | |
import QtQuick.Dialogs 1.0 | |
ApplicationWindow { | |
width: 640 | |
height: 480 | |
FileDialog { |
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
[0.326] DBG: Command Line Args: |
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
...... | |
_xgeWireToEvent: Unknown extension 148, this should never happen. | |
fixme:dbghelp_msc:codeview_fetch_type Cannot locate type 103 | |
fixme:dbghelp_msc:codeview_fetch_type Cannot locate type 103 | |
fixme:dbghelp_msc:codeview_get_type Returning NULL symt for type-id 103 | |
fixme:dbghelp_msc:codeview_snarf S-Udt nullptr_t: couldn't find type 0x103 | |
fixme:dbghelp_msc:codeview_snarf Unsupported symbol id 114c | |
fixme:dbghelp_msc:dump 00000000: 06 00 4c 11 0a 10 00 00 ..L..... |
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
Piece of code which was expanded. | |
val trueValue = "true".toCharArray | |
val falseValue = "false".toCharArray | |
object KParser1 { | |
import fastparsers.framework.implementations.FastParsersCharArray._ | |
val kparser = FastParsersCharArray { | |
def func1: Parser[Any] = func1 | falseValue |
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
➜ toplevel git:(toplevel-experiment) ✗ make clean all | |
rm -f *.cm[io] *.byte *.native *.js | |
ocamlfind ocamlc -c -package js_of_ocaml,js_of_ocaml.tyxml colorize.mli | |
cppo -D ocpindent -D higlo -D graphics colorize.cppo.ml -o colorize.ml | |
ocamlfind ocamlc -c -syntax camlp4o -package bytes \ | |
-package js_of_ocaml.syntax,lwt,js_of_ocaml.tyxml,js_of_ocaml.toplevel \ | |
-package base64 \ | |
-I camlp4 \ | |
-package ocp-indent.lib -package higlo.ocaml -rectypes \ | |
colorize.ml -c colorize.cmo |
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
module type Show = sig | |
type t | |
val show : t -> unit | |
end;; | |
let print {S : Show} x = S.show x;; | |
implicit module Show_float = struct | |
type t = float | |
let show x = Printf.printf "Show_float: %f\n" x |
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
module List = struct | |
include List | |
let take : int -> 'a list -> 'a list = fun _ _ -> failwith "omitted because we only need types" | |
end | |
let id x = x;; | |
type 'a logic = Var of int | Value of 'a | |
(* State also contains some information about logic variables' bindings but is is omitted for simplicity *) |