Skip to content

Instantly share code, notes, and snippets.

View DirkSonguer's full-sized avatar
🤐
Fighting the urge to start new side projects..

Dirk Songür DirkSonguer

🤐
Fighting the urge to start new side projects..
View GitHub Profile
@DirkSonguer
DirkSonguer / server.js
Last active July 11, 2016 19:44
Gist with example bot for the MS Bot Framework, used to showcase problem between Mac (command emulator) and Windows (GUI emulator). See https://postimg.org/image/ru01yqfdz/ for output.
// include restify server
var restify = require('restify');
// include ms botbuilder sdk
var builder = require('botbuilder');
// setup restify server
var server = restify.createServer();
server.listen(3798, function () {
console.log('%s listening to %s', server.name, server.url);
@DirkSonguer
DirkSonguer / foursquare_sticker.json
Created June 21, 2015 19:35
Example Soursquare Sticker Object
{
id: "52a659800000000000000009",
name: "Suds McGee",
image: {
prefix: "https://irs0.4sqi.net/img/sticker/",
sizes: [
60,
94
],
name: "/drunk_9978e9.png"
@DirkSonguer
DirkSonguer / gist:b5674f2169244efadf89
Created February 10, 2015 18:57
Comment handling in Swirl with dynamic list height
// *************************************************** //
// Comment Preview Component
//
// This component shows a list of comment previews with
// user and comment message
// This component accepts an array of data of type
// InstagramCommentData
//
// Author: Dirk Songuer
// License: GPL v2
@DirkSonguer
DirkSonguer / FriendsListComponent.qml
Created January 12, 2015 22:08
QML component showing simple multi-select capabilities in a ListView
// *************************************************** //
// Friends List Component
//
// This component shows a list of checkins by users.
//
// Author: Dirk Songuer
// License: All rights reserved
// *************************************************** //
// import blackberry components
@DirkSonguer
DirkSonguer / FileUpload.cpp
Created December 26, 2014 10:03
Foursquare API upload in Qt / Cascades
#include "FileUpload.hpp"
#include <bb/PpsObject>
#include <QNetworkReply>
#include <QHttpMultiPart>
#include <QtGui/QDesktopServices>
#include <QFile>
FileUpload::FileUpload()
{