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
/* SDLJOYTEST | |
Prints the ID numbers of SDL input devices when activated. | |
EXAMPLE: if you are trying to find the SDL button ID of the 'A' button on | |
an imaginary gamepad or joystick, run this program and then press | |
the 'A' button on your joystick. As long as it is working properly, | |
the program will print the IDs of whatever buttons are being held down, | |
allowing you to enter that ID into a config file for inputs. | |
So say the 'A' button prints an ID of '5'. That means that the ID | |
5 is what you should enter for the config file. | |
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
diff -r glkterm-orig/glkterm.h glkterm/glkterm.h | |
185a186,187 | |
> extern int pref_fgcolor; | |
> extern int pref_bgcolor; | |
diff -r glkterm-orig/gtwindow.c glkterm/gtwindow.c | |
25a26,34 | |
> #ifdef WIN32 | |
> #define SIGCONT 18 /* Continue - POSIX implementation */ | |
> #define SIGSTOP 19 /* Stop - POSIX implementation). */ | |
> #define SIGTSTP 20 /* Keyboard stop - POSIX implementation. */ |
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
/* Pieced together from tutorials and source files found online. None I used carried license information. */ | |
/* This allows you to set your command prompt's display size. */ | |
#include <windows.h> | |
#include <stdio.h> | |
void setConSize(int xsize,int ysize) { | |
WORD wConBufSize; | |
COORD coord; | |
coord.X=xsize; | |
coord.Y=ysize; | |
SMALL_RECT Rect; |
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
diff -x '*.html' -x '*.png' -a -r -u a/gtk+-3.22.7/gtk/gtkfilechooserwidget.c b/gtk+-3.22.7/gtk/gtkfilechooserwidget.c | |
--- a/gtk+-3.22.7/gtk/gtkfilechooserwidget.c 2016-12-30 09:55:56.000000000 -0500 | |
+++ b/gtk+-3.22.7/gtk/gtkfilechooserwidget.c 2017-01-25 19:38:43.000000000 -0500 | |
@@ -2420,7 +2420,10 @@ | |
gdk_device_get_source (device) == GDK_SOURCE_TOUCHSCREEN; | |
get_selection_modifiers (widget, event, &modify, &extend); | |
- if (!is_touchscreen && | |
+ /* Ubuntu, disable the new behaviour of opening sometime on single click | |
+ it's confusing for users and the change had no rational |
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
#! /usr/bin/ksh | |
# hack to sort photos by name in programs that stupidly use dates. | |
# I believe this will handle up to 86400 files in a directory. | |
# (60*60*24) | |
# after that, you get exciting undefined behavior because I don't increment | |
# day, month, or year. | |
#export ITERSEC=1 | |
#export ITERSEC=59 | |
#export ITERMIN=59 | |
#export ITERHOUR=23 |
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 <stdio.h> | |
int isdivisible(int i){ /* return 0 if number is divisible by 3 or 5 */ | |
if( ((i % 3) == 0) || ((i % 5) == 0) ){ | |
return 0; | |
} | |
else { | |
return -1; | |
} | |
} | |
int main(int argc, char *argv[]){ |
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 <stdio.h> | |
#include <stdlib.h> | |
/* | |
* I made this because gbdfed didn't properly convert a windows font to a console bitmap font. | |
* This subtracts 5 from the "ENCODING" field of a BDF font file for each instance of it. | |
* Good luck reading it. You'll need it, I think. I can barely read it looking back, but it | |
* made a lot of sense when I first wrote it. | |
* Kids, don't write code like this at work! | |
*/ |
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ | |
/* | |
* https URL bar colour | |
*/ | |
#urlbar[level] .autocomplete-textbox-container >* {background-color: #FFFFFF !important; color: #000000 !important; } | |
toolbar, menubar { /* THIS IS THE OVERRIDE I NEEDED ALL ALONG!!!! */ | |
-moz-appearance: none !important; |
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
#! /bin/bash | |
# for this to work correctly, make an empty directory and put this shellscript inside it, along with the patch 'gtk3_make_filechooser_not_suck.patch'. | |
# Running this in a directory with a previous gtk source tree or any other files or directories may make this script behave unexpectedly! | |
# the patch file is found at: | |
# https://gist.github.com/wyatt8740/ae82550264564e2bba49b58d3e07f0f5. | |
# raw patch file (direct link): | |
# https://gist.github.com/wyatt8740/ae82550264564e2bba49b58d3e07f0f5/raw/bc5bc32d15e852ba92a8b0b710e01960c371ba8b/gtk3_make_filechooser_not_suck.patch |
OlderNewer