Example of using half-pixel coordinates with SVG.
This file contains 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 <pebble.h> | |
#include <pebble_fonts.h> | |
static Window *window; | |
static Layer *left; | |
static TextLayer *right; | |
static GFont font; | |
static void draw_left(Layer *layer, GContext *ctx) { |
This file contains 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 notfile ; | |
exe hello : hello.cpp ; | |
notfile install : @postinstall : install-really ; | |
install install-really : hello : <location>dist ; | |
explicit install-really ; | |
actions postinstall | |
{ |
This file contains 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
diff --git a/Jamroot b/Jamroot | |
index d1b3c3a..779fe54 100644 | |
--- a/Jamroot | |
+++ b/Jamroot | |
@@ -136,6 +136,8 @@ constant BOOST_JAMROOT_MODULE : $(__name__) ; | |
boostcpp.set-version $(BOOST_VERSION) ; | |
+use-project /boost/architecture : libs/config/checks/architecture ; | |
+ |
This file contains 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 <type_traits> | |
#include <iostream> | |
struct S { | |
int operator()(int) { return 1; } | |
}; | |
int normal(int) { return 1;} | |
This file contains 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 <QCoreApplication> | |
#include <QTimer> | |
struct Test : public QObject | |
{ | |
void foo() {} | |
}; | |
int main(int argc, char *argv[]) | |
{ |
This file contains 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
"undefined"==typeof Map?(Map=function(){this.clear()},Map.prototype={set:function(t,e){return this._[t]=e,this},get:function(t){return this._[t]},has:function(t){return t in this._},"delete":function(t){return t in this._&&delete this._[t]},clear:function(){this._=Object.create(null)},get size(){var t=0;for(var e in this._)++t;return t},forEach:function(t){for(var e in this._)t(this._[e],e,this)}}):function(){var t=new Map;t.set(0,0)!==t&&(t=t.set,Map.prototype.set=function(){return t.apply(this,arguments),this})}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.color={})}(this,function(t){"use strict";function e(t,e){var s=t-e;return s>180||-180>s?s-360*Math.round(s/360):s}function s(){}function n(t){var e;return t=(t+"").trim().toLowerCase(),(e=j.exec(t))?(e=parseInt(e[1],16),i(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e)):(e=C.exec(t))?r(parseInt(e[1],16)):(e=$.exec(t))?i(e[1],e[2],e[3]):(e=H.exec(t))?i(2.55*e[ |
This file contains 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 <QCoreApplication> | |
#include <QSqlDatabase> | |
#include <QSqlQuery> | |
#include <QSqlError> | |
#include <QTemporaryFile> | |
#include <QDebug> | |
int main(int argc, char *argv[]) |
This file contains 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.4 | |
import QtQuick.Controls 1.2 | |
import QtQuick.Layouts 1.1 | |
ColumnLayout { | |
spacing: 0 | |
Image { source: "file:///C:/Build/selection-assets/bugs.jpeg"; height: 10; width: 10; } |
This file contains 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 <QCoreApplication> | |
#include <QTimer> | |
#include <QDebug> | |
#include <QThread> | |
#define BOOST_THREAD_VERSION 4 | |
#define BOOST_THREAD_PROVIDES_FUTURE 1 | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION 1 | |
#define BOOST_THREAD_PROVIDES_EXECUTORS 1 |
OlderNewer