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
(module | |
(type (;0;) (func (param i64 i64))) | |
(type (;1;) (func (param i32))) | |
(type (;2;) (func (result i64))) | |
(import "env" "print_time" (func $print_time (type 0))) | |
(import "wasi:clocks/wall-clock@0.2.0" "now" (func $__wasm_import_wall_clock_now (type 1))) | |
(import "wasi:clocks/monotonic-clock@0.2.0" "now" (func $__wasm_import_monotonic_clock_now (type 2))) | |
(func some_function (type 1) (param i32) | |
;; ..... | |
) |
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 json | |
import HawkTracer | |
import argparse | |
import time | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-s', '--source', help='Description of the source; either file name or IP address', required=True) | |
args = parser.parse_args() | |
client = HawkTracer.Client() |
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
struct Font | |
{ | |
std::string name; | |
uint16_t size; | |
bool is_bold; | |
bool is_italic; | |
}; | |
bool operator==(const Font& f1, const Font& f2) | |
{ |
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
// Generated by gmmproc 2.50.1 -- DO NOT MODIFY! | |
#include <glibmm.h> | |
#include <gstreamermm/audioclock.h> | |
#include <gstreamermm/private/audioclock_p.h> | |
/* gstreamermm - a C++ wrapper for gstreamer |
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
// Generated by gmmproc 2.50.1 -- DO NOT MODIFY! | |
#ifndef _GSTREAMERMM_AUDIOCLOCK_H | |
#define _GSTREAMERMM_AUDIOCLOCK_H | |
#include <glibmm/ustring.h> | |
#include <sigc++/sigc++.h> | |
/* gstreamermm - a C++ wrapper for gstreamer | |
* |
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) |
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
// 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
#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
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 | |
{ |
NewerOlder