Skip to content

Instantly share code, notes, and snippets.

View feliwir's full-sized avatar
👨‍💻
Coding along

Stephan Vedder feliwir

👨‍💻
Coding along
  • mbits imaging GmbH
  • Germany
View GitHub Profile
%macro dotranspose 8
; %1=(00 01 02 03 04 05 06 07 40 41 42 43 44 45 46 47)
; %2=(10 11 12 13 14 15 16 17 50 51 52 53 54 55 56 57)
; %3=(20 21 22 23 24 25 26 27 60 61 62 63 64 65 66 67)
; %4=(30 31 32 33 34 35 36 37 70 71 72 73 74 75 76 77)
vpunpcklwd %5, %1, %2
vpunpckhwd %6, %1, %2
vpunpcklwd %7, %3, %4
vpunpckhwd %8, %3, %4
https://uica.uops.info/?code=%25define%20__x86_64__%0D%0A%0D%0A%25ifdef%20ELF%20%20%20%20%3B%20----(nasm%20-felf%5B64%5D%20-DELF%20...)------------%0D%0Asection%20.note.GNU-stack%20noalloc%20noexec%20nowrite%20progbits%0D%0A%0D%0A%3B%20--%20segment%20definition%20--%0D%0A%3B%0D%0A%25ifdef%20__x86_64__%0D%0A%25define%20SEG_TEXT%20%20%20.text%20%20%20progbits%20align%3D32%0D%0A%25define%20SEG_CONST%20%20.rodata%20progbits%20align%3D32%0D%0A%25else%0D%0A%25define%20SEG_TEXT%20%20%20.text%20%20%20progbits%20alloc%20exec%20%20%20nowrite%20align%3D32%0D%0A%25define%20SEG_CONST%20%20.rodata%20progbits%20alloc%20noexec%20nowrite%20align%3D32%0D%0A%25endif%0D%0A%0D%0A%3B%20To%20make%20the%20code%20position-independent%2C%20append%20-DPIC%20to%20the%20commandline%0D%0A%3B%0D%0A%25define%20GOT_SYMBOL%20%20_GLOBAL_OFFSET_TABLE_%20%20%3B%20ELF%20supports%20PIC%0D%0A%25define%20EXTN(name)%20%20name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3B%20foo()%20-%3E%20foo%0D%0A%25endif%20%20%20%20%20%20%20%20%20%20%3
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="StocksSymbol" id="symbol" />
<template class="StocksSymbolInfo" parent="AdwBin">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="valign">center</property>
<child>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="NdWindow" parent="GtkApplicationWindow">
<property name="title">Network Displays</property>
<property name="icon_name">org.gnome.NetworkDisplays</property>
<child>
<object class="GtkStack" id="step_stack">
<property name="transition_type">slide-left-right</property>
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GExiv2" version="0.10"/>
<include name="GObject" version="2.0"/>
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/feliwir/voyager">
<file preprocess="xml-stripblanks">icons/map-marker-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/map-photo-marker-symbolic.svg</file>
<file preprocess="xml-stripblanks">ui/voyager-exif-image-info.ui</file>
<file preprocess="xml-stripblanks">ui/voyager-window.ui</file>
<file preprocess="xml-stripblanks">ui/voyager-image-map.ui</file>
<file preprocess="json-stripblanks">map-style.json</file>
</gresource>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="GListStore" id="image_list">
<property name="item-type">VoyagerExifImage</property>
</object>
<menu id="primary-menu">
<section>
<item>
<attribute name="label" translatable="yes">_Open</attribute>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="GListStore" id="image_list">
<property name="item-type">VoyagerExifImage</property>
</object>
<menu id="primary-menu">
<section>
<item>
<attribute name="label" translatable="yes">_Open</attribute>
static void
overwrite_dialog_response_cb (GtkDialog *dialog, int response, GTask *task)
{
gboolean overwrite;
overwrite = response == GTK_RESPONSE_OK;
GError *error = NULL;
GFile *file = g_task_get_task_data (task);
if (overwrite) {
g_file_delete (file, NULL, &error);
/*
* Copyright (C) 2022 Stephan Vedder <stephan.vedder@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of