This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| // gcc player.c `pkg-config --cflags --libs gtk4` && ./a.out | |
| #include <gtk/gtk.h> | |
| static void _on_file_opened(GObject* source_object, GAsyncResult* res, gpointer data) { | |
| GtkFileDialog* file_dialog = GTK_FILE_DIALOG(source_object); | |
| GtkWindow* window = GTK_WINDOW(data); | |
| GFile* file = NULL; | |
| GError* error = NULL; | |
| // gcc imager.c `pkg-config --cflags --libs gtk4` && ./a.out | |
| #include <gtk/gtk.h> | |
| static void _on_file_opened(GObject* source_object, GAsyncResult* res, gpointer data) { | |
| GtkFileDialog* file_dialog = GTK_FILE_DIALOG(source_object); | |
| GtkWindow* window = GTK_WINDOW(data); | |
| GFile* file = NULL; | |
| GError* error = NULL; | |
| // gcc temrinal.c `pkg-config --cflags --libs gtk4 vte-2.91-gtk4` && ./a.out | |
| #include <gtk/gtk.h> | |
| #include <vte/vte.h> | |
| static void on_child_exited(VteTerminal* terminal, int status, gpointer data) { | |
| if (!GTK_IS_NOTEBOOK(data)) return; | |
| GtkNotebook* notebook = GTK_NOTEBOOK(data); | |
| GtkWidget* page = GTK_WIDGET(terminal); | |
| #include <Elementary.h> | |
| #include <stdio.h> | |
| #include <sys/stat.h> | |
| typedef struct { | |
| Evas_Object* entry; | |
| Evas_Object* status; | |
| char *filename; | |
| } App_Data; |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| padding: 0; | |
| margin: 0; | |
| } |
| #include<stdlib.h> | |
| #include<gtk/gtk.h> | |
| GtkWidget *window; | |
| GtkTextBuffer *text_buffer; | |
| char *filename; | |
| void quit_editor(GtkWidget *widget, gpointer data) { | |
| gtk_main_quit(); | |
| } |
From here: https://askubuntu.com/a/101877
Create a file called .Xmodmap in your home directory.
$ vim ~/.Xmodmap
Add the following lines to the file:
| // A Lox programming language. | |
| const fs = require("fs"); | |
| const readline = require("readline"); | |
| // Global variables. | |
| let source = ""; | |
| let start = 0; | |
| let current = 0; | |
| let line = 1; | |
| let tokens = []; |