Skip to content

Instantly share code, notes, and snippets.

View cajus's full-sized avatar

Cajus Pollmeier cajus

  • GONICUS GmbH
  • Weilheim in Oberbayern, Germany
View GitHub Profile
@cajus
cajus / build-qt-wasm.sh
Last active May 26, 2024 05:56
Building Qt for WebAssembly
# Get dependencies in place (example for Debian based systems)
sudo apt-get build-dep --yes qt5-default
sudo apt-get install --yes libxcb-xinerama0-dev git python cmake default-jre
# Install Emscripten
git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
@cajus
cajus / convert.js
Created September 29, 2017 08:41
Convert fontawesome icon.yml to qx character map
const yaml = require('js-yaml')
const fs = require('fs')
let res = {}
let doc = yaml.safeLoad(fs.readFileSync('icons.yml', 'utf8'))
doc.icons.forEach((iconDsc) => {
res[iconDsc.id] = iconDsc.unicode
if (res.aliases) {
res.aliases.forEach((alias) => {
@cajus
cajus / tc.js
Last active September 29, 2017 08:34
Qooxdoo virtual tree with 'open' state tied to model items
class.define("OpenCloseController",
{
extend: qx.core.Object,
construct: function(tree, model)
{
this.base(arguments);
this._tree = tree;
this._lids = [];
@cajus
cajus / snippet.js
Created July 28, 2017 07:10
Playground snippet for making radial gradient decorators
qx.Mixin.define("foo.MRadialBackgroundGradient",
{
/*
*****************************************************************************
PROPERTIES
*****************************************************************************
*/
properties :
{
/**