Skip to content

Instantly share code, notes, and snippets.

View xhochy's full-sized avatar

Uwe L. Korn xhochy

View GitHub Profile
From 9333f85d240d9d3f8ec16339f3bf8672e3d05551 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 18:40:43 +0000
Subject: [PATCH] Add 5 to pkg-config package names for Qt5
---
CMakeLists.txt | 5 +++++
TelepathyQt/TelepathyQt-uninstalled.pc.in | 2 +-
TelepathyQt/TelepathyQt.pc.in | 2 +-
TelepathyQt/TelepathyQtService.pc.in | 2 +-
From 8d51a6bd38964d36d446a4f45242077cc15b1c4b Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Fri, 28 Mar 2014 10:28:16 +0000
Subject: [PATCH] Add Q_UNUSED as Q_ASSERT is a no-op in release mode
---
TelepathyQt/connection-manager.cpp | 1 +
examples/file-transfer/file-sender.cpp | 2 ++
2 files changed, 3 insertions(+)
From e9260d6db220f8ede97c038bd8475a0ed2cb8e4c Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 18:40:43 +0000
Subject: [PATCH] Add 5 to pkg-config package names for Qt5
---
CMakeLists.txt | 5 +++++
TelepathyQt/TelepathyQt-uninstalled.pc.in | 2 +-
TelepathyQt/TelepathyQt.pc.in | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
From 23abf548e56120fbc3c535d1fa1bd8ac9609cbb5 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 09:15:45 +0000
Subject: [PATCH] Fix Qt5 compilation when only qt4-qmake is in the PATH
---
cmake/modules/FindQt.cmake | 44 ++++++++++++++++++++++++-------------
cmake/modules/FindQt5.cmake | 53 ++++++++++++++++++++++++++-------------------
2 files changed, 60 insertions(+), 37 deletions(-)
% cat test.csv
1,"text, text",2,3
% julia
julia> file = open("test.csv", "r");
julia> readcsv(file)
1x5 Array{Any,2}:
1.0 "\"text" " text\"" 2.0 3.0
@xhochy
xhochy / okhubot.coffee
Created November 28, 2013 21:02
Still think it is revolutionary to shout "Ok, <app>!" at your screen? Already annoyed but your friends don't realize? Just show them how ridiculous it can get :P
# Description:
# Annoy people who still think shouting "Ok, <app>!" at their device is revolutionary.
module.exports = (robot) ->
robot.hear /^(?!Ok, .*!).*/i, (msg) ->
msg.send "Ok, #{msg.message.user.name}! You should start your messages with \"Ok, ..\" or they will not be recognised."
/*
* (c) 2011 Dominik Schmidt <domme@tomahawk-player.org>
*/
var DummyResolver = Tomahawk.extend(TomahawkResolver,
{
settings:
{
name: 'Dummy Resolver',
weight: 75,
@xhochy
xhochy / gist:5377824
Created April 13, 2013 10:08
Tomahawk Web-API Auth Process

(Client == Process talking to the Tomahawk instance)

  • Client requests auth via GET /2/access/request_auth
  • Client indicates that it requires Authorization in the running Tomahawk instance and provides it UUID to the User
  • User sees authorization request in JobView and accepts it (for headless instances: tomahawk --grant-api-access <UUID>
  • Tomahawk indicates granted access to the client / Client polls if it has been granted access.
  • Tomahawk stores the UUID and some additional information (e.g. client name) in its DB
@xhochy
xhochy / Proposal.md
Last active December 16, 2015 02:49
Control API and Tomahawk Apps

Tomahawk Apps

  • Integrate the same concept as Spotify Apps, but a bit more flexible (not only Apps, but more of a plugin-system)
  • HTML5+JavaScript
  • QWebkit View inside Tomahawk
  • Can have an entry in the TreeView on the left side in "Apps -> " and declare subentries
  • Add addtional functionality such as: ** Custom sharing ** Charts
[New LWP 12665]
[New LWP 12681]
[New LWP 12669]
[New LWP 12683]
[New LWP 12674]
[New LWP 12671]
[New LWP 12672]
[New LWP 12687]
[New LWP 12675]
[New LWP 12686]