I hereby claim:
- I am bjorn on github.
- I am bjorn (https://keybase.io/bjorn) on keybase.
- I have a public key ASB8S48kmdFyHnCgT7rWX4MlClgShID0FVhnMQg0t3X80wo
To claim this, I am signing this object:
/* | |
* Testing world scripting functionality | |
*/ | |
var WorldScripting = {}; | |
WorldScripting.scriptAction = tiled.registerAction("WorldScripting", function (action) { | |
var state = { | |
worlds: tiled.worlds, | |
} |
# Filename : Image2Map.py | |
# Authors : Georg Muntingh and Bjorn Lindeijer | |
# Version : 1.2 | |
# Date : June 16, 2010 | |
# Copyright : Public Domain | |
import os, sys, Image, networkx | |
class TileMap: | |
""" This class represents a map of tiles. |
#include <QCoreApplication> | |
#include <QDebug> | |
#include <QQmlApplicationEngine> | |
class Object : public QObject | |
{ | |
Q_OBJECT | |
Q_PROPERTY(QStringList strings READ strings CONSTANT) | |
public: |
function tryFixPolyline(object) { | |
const margin = 5 // pixels | |
let polygon = object.polygon | |
if (polygon.length < 3) | |
return false // can't turn into polygon | |
let first = polygon[0] | |
let last = polygon[polygon.length - 1] | |
// check if points are too far away from each other |
var tool = tiled.registerTool('MyCustomTool', { | |
name: "My Custom Tool", | |
icon: "foo.png", // todo: this would be looked up and loaded somehow | |
shortcut: undefined, | |
statusInfo: undefined, | |
cursor: undefined, | |
activated: function() { tiled.log("tool.activated") }, | |
deactivated: function() { tiled.log("tool.deactivated") }, | |
keyPressed: function(key, modifiers) { tiled.log("tool.keyPressed") }, |
Verifying my Blockstack ID is secured with the address 19CYP4xMcueYyVkMihF4w8RswsE3hbGKYy https://explorer.blockstack.org/address/19CYP4xMcueYyVkMihF4w8RswsE3hbGKYy |
(pantheon-mail:7989): Gtk-WARNING **: 11:45:01.430: Could not load a pixbuf from icon theme. | |
This may indicate that pixbuf loaders or the mime database could not be found. | |
(pantheon-mail:7989): Gdk-ERROR **: 11:45:01.487: The program 'pantheon-mail' received an X Window System error. | |
This probably reflects a bug in the program. | |
The error was 'BadAlloc (insufficient resources for operation)'. | |
(Details: serial 39899 error_code 11 request_code 53 (core protocol) minor_code 0) | |
(Note to programmers: normally, X errors are reported asynchronously; | |
that is, you will receive the error a while after causing it. | |
To debug your program, run it with the GDK_SYNCHRONIZE environment |
I hereby claim:
To claim this, I am signing this object:
QImage readDDSFile(const QString &filename) | |
{ | |
QGLWidget glWidget; | |
glWidget.makeCurrent(); | |
GLuint texture = glWidget.bindTexture(filename); | |
if (!texture) | |
return QImage(); | |
// Determine the size of the DDS image |
QStylePainter p(this); | |
QStyleOptionTab tabOverlap; | |
int overlap = style()->pixelMetric(QStyle::PM_TabBarBaseOverlap, &tabOverlap); | |
QStyleOptionTabBarBase tabBarStyleOption; | |
tabBarStyleOption.rect.setRect(0, height() - overlap, width(), overlap); | |
tabBarStyleOption.tabBarRect = rect(); | |
p.drawPrimitive(QStyle::PE_FrameTabBarBase, tabBarStyleOption); |