Skip to content

Instantly share code, notes, and snippets.

@level420
level420 / 99-phantomjs.conf
Last active May 2, 2022 11:54
highcharts node export server as a docker image
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
@level420
level420 / MPreloadImageResource.js
Created February 14, 2020 09:05
Preload image resources of type png and gif into qx.ui.basic.Image instances and add them to the application root offscreen at position -5000, -5000
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2015 Visionet GmbH, http://www.visionet.de
License:
var win = new qx.ui.window.Window("jQuery Plot");
win.setWidth(460);
win.setHeight(280);
win.setShowMinimize(false);
win.setContentPadding(0);
this.getRoot().add(win, {left:20, top:20});
var dynLoader = new qx.util.DynamicScriptLoader (
[
@level420
level420 / qooxdoo-table-without-vertical-lines-per-css.js
Created August 31, 2018 13:57
qooxdoo table with per class individual css - example showing cells without vertical lines
qx.Class.define("my.TableWithoutLines",
{
extend : qx.ui.table.Table,
members : {
_createCssClassNameFromInstanceClassName : function() {
return this.classname.replace(".","-");
},
_createContentElement : function()
@level420
level420 / qooxdoo-playground-sample-custom-list-widget.js
Created July 3, 2018 16:15
Custom list item widget with bound checkbox
qx.Theme.define("mycustomappearance",
{
appearances :
{
"mycustomlistitem" : "widget",
"mycustomlistitem/isChecked" : "checkbox"
}
});
qx.Theme.include(playground.theme.Appearance, mycustomappearance);
@level420
level420 / update-qooxdoo-fork.sh
Created April 4, 2018 09:41
Update qooxdoo fork from remote
# Add remonte branch:
git remote add --track master qooxdoo git://github.com/qooxdoo/qooxdoo.git
# Verify:
git remote
# Switch to master branch:
git checkout master
# Fetch:
@level420
level420 / table-cell-loose-focus-on-table-blur.js
Last active March 12, 2018 17:14
Playground sample automatic closing of cell editor on blur
qx.Class.define("qx.ui.table.pane.ScrollerMod",
{
extend : qx.ui.table.pane.Scroller,
members :
{
startEditing : function () {
console.log('startEditing');
var startedEditing = this.base(arguments);
@level420
level420 / font.json
Created July 31, 2017 07:20
qooxdoo make-font-map job definition file to be included in your man qooxdoo config.json file
// call only through config.json, for macro settings
{
"jobs" :
{
"make-font-map" :
{
"desc" : "Build a font mapping from glyphname to unicode id",
"let" :
{
var data = {
"label": "ROOT",
"children" : [
{
"LDEP" : "Dep1",
"children" : [
{
"CVEH" : 1,
@level420
level420 / PlaygroundExample_for_qooxdoo_issue_9128.js
Last active December 1, 2016 17:23
Fixes https://github.com/qooxdoo/qooxdoo/issues/9128 by forcing a full lookup table rebuild on setting properties showLeafs and showTopLevelOpenCloseIcons
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2011 1&1 Internet AG, Germany, http://www.1und1.de
License: