This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<interface> | |
<requires lib="gtk+" version="2.24"/> | |
<!-- interface-naming-policy project-wide --> | |
<object class="GtkDialog" id="dialog1"> | |
<property name="can_focus">False</property> | |
<property name="border_width">6</property> | |
<property name="title" translatable="yes">Plugin Manager</property> | |
<property name="icon_name">geany</property> | |
<property name="type_hint">dialog</property> |
This file contains hidden or 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
PLUGIN := cc-plugin | |
PLUGIN_SOURCES := plugin.cc plugin.c | |
plugindir = $(HOME)/.config/geany/plugins | |
VPATH ?= . | |
# requires https://github.com/b4n/geany-plugin.mk | |
include $(VPATH)/geany-plugin.mk |
This file contains hidden or 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
PLUGIN := internal-mnemonics-check | |
VPATH ?= . | |
# requires https://github.com/b4n/geany-plugin.mk | |
include $(VPATH)/geany-plugin.mk |
This file contains hidden or 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
# alias libdir to prevent Automake from whining trying to be too smart | |
sodir = $(libdir) | |
so_PROGRAMS = libtt.so | |
bin_PROGRAMS = ttp | |
libtt_so_SOURCES = tt.c | |
libtt_so_CFLAGS = -fPIC | |
libtt_so_LDFLAGS = -shared |
This file contains hidden or 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> | |
int | |
main (int argc, | |
char **argv) | |
{ | |
GObject *object; | |
GtkBuilder *builder; | |
GError *err = NULL; | |
This file contains hidden or 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
/* | |
* ptimer.c | |
* A timer using POSIX API | |
* | |
* Copyright (c) 2005-2008, Colomban Wendling <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: |
This file contains hidden or 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 os | |
def path_inside(path, dir): | |
path = os.path.normpath(path) | |
dir = os.path.normpath(dir) | |
return os.path.commonprefix([path, dir]) == dir | |
def path_samepath(a, b): | |
return os.path.normpath(a) == os.path.normpath(b) |
This file contains hidden or 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> | |
typedef struct | |
{ | |
GtkWidget *window; | |
guint progress_id; | |
} WorkerData; |
This file contains hidden or 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
/* old, one loop | |
* | |
* With not enough data (< 4096): | |
* mem_read (..., 1, 4096): 162.099252s (100000000 runs) | |
* mem_read (..., 4096, 1): 0.967107s (100000000 runs) | |
* With enough data (>= 4096): | |
* mem_read (..., 1, 4096): 2274.210934 (100000000 runs) | |
* mem_read (..., 4096, 1): 10.416469 (100000000 runs) | |
*/ |
NewerOlder