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
type AcoustIDJsonProvider = FSharp.Data.JsonProvider<""" | |
{ | |
"status": "dummy-status", | |
"results": [ | |
{ | |
"recordings": [ | |
{ | |
"artists": [ | |
{ | |
"id": "dummy-recording-artist-id", |
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
Exception in Gtk# callback delegate | |
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. | |
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp-Data>.$FSharp.Data.Runtime.UriUtils ---> System.NullReferenceException: Object reference not set to an instance of an object | |
at FSharp.Data.Runtime.UriUtils+purifierDotNet@46.Invoke (Microsoft.FSharp.Core.Unit unitVar) [0x00000] in <filename unknown>:0 | |
at Microsoft.FSharp.Control.LazyExtensions+Create@5713[Microsoft.FSharp.Core.FSharpFunc`2[System.Uri,System.Uri]].Invoke () [0x00000] in /home/loganek/banshee/fsharp/src/fsharp/FSharp.Core/prim-types.fs:5713 | |
at System.Lazy`1[Microsoft.FSharp.Core.FSharpFunc`2[System.Uri,System.Uri]].InitValue () [0x00000] in <filename unknown>:0 | |
--- End of inner exception stack trace --- | |
at FSharp.Data.Runtime.UriUtils.get_enab |
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
type AcoustIDJsonProvider = FSharp.Data.JsonProvider<""" | |
{ | |
"status": "dummy-status", | |
"results": [ | |
{ | |
"recordings": [ | |
{ | |
"artists": [ | |
{ | |
"id": "dummy-recording-artist-id", |
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
Exception in Gtk# callback delegate | |
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. | |
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharp-Data>.$FSharp.Data.Runtime.UriUtils ---> System.NullReferenceException: Object reference not set to an instance of an object | |
at FSharp.Data.Runtime.UriUtils+purifierDotNet@46.Invoke (Microsoft.FSharp.Core.Unit unitVar) [0x00000] in <filename unknown>:0 | |
at Microsoft.FSharp.Control.LazyExtensions+Create@5713[Microsoft.FSharp.Core.FSharpFunc`2[System.Uri,System.Uri]].Invoke () [0x00000] in /home/loganek/banshee/fsharp/src/fsharp/FSharp.Core/prim-types.fs:5713 | |
at System.Lazy`1[Microsoft.FSharp.Core.FSharpFunc`2[System.Uri,System.Uri]].InitValue () [0x00000] in <filename unknown>:0 | |
--- End of inner exception stack trace --- | |
at FSharp.Data.Runtime.UriUtils.get_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
Marshaling message signal | |
Exception in Gtk# callback delegate | |
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. | |
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object | |
at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare.GenericEqualityObj (Boolean er, IEqualityComparer iec, System.Object xobj, System.Object yobj) [0x00000] in /home/loganek/banshee/fsharp/src/fsharp/FSharp.Core/prim-types.fs:1481 | |
at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare.GenericEqualityIntrinsic[String] (System.String x, System.String y) [0x00000] in /home/loganek/banshee/fsharp/src/fsharp/FSharp.Core/prim-types.fs:1649 | |
at FSharp.Data.Helpers.checkForRepeatedHeaders[String,String] (Microsoft.FSharp.Collections.FSharpList`1 visitedHeaders, Microsoft.FSharp.Collections.FSharpList`1 remainingHeaders) [0x00000] in <filename unknown>:0 | |
at FSh |
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
template<typename T> | |
static T transform(T p) { return p; } | |
static Glib::RefPtr<Gst::Caps> transform (GstCaps* c) { return Glib::wrap(c, true); } | |
static Glib::RefPtr<Gst::Pad> transform (GstPad* c) { return Glib::wrap(c, true); } | |
static Glib::RefPtr<Gst::Element> transform (GstElement* c) { return Glib::wrap(c, true); } | |
template<class T> | |
struct deduce_result_type | |
{ |
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 <gstreamermm.h> | |
#include <glibmm.h> | |
#include <iostream> | |
#include <condition_variable> | |
namespace Glib | |
{ | |
template <typename T> | |
static constexpr T wrap (T v, bool=true) | |
{ |
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
// Automatically create collection of instances of derived classes | |
// Blog post: http://www.cookandcommit.eu/2016/10/automatic-collection-of-instances-of.html | |
#include <memory> | |
#include <typeindex> | |
#include <unordered_map> | |
template <typename Derived, typename Base> | |
struct Registrar | |
{ |
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
#!/bin/bash | |
version=$(astyle --version 2>/dev/null) | |
if test "x$version" = "x"; then | |
echo "astyle can't be found" | |
exit 1 | |
fi | |
# @parm $1 - input file | |
# @parm $2 - output file (optional) |
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 <gtk/gtk.h> | |
static cairo_surface_t *tmp_surface = NULL; | |
static cairo_surface_t *base_surface = NULL; | |
static gdouble ax; | |
static gdouble ay; | |
static void | |
clear_surface (cairo_surface_t *surface) |
OlderNewer