Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
int n;
int **chess_desk = NULL;
struct dir_t {
int x;
int y;
} dirs[8] = {
#include <stdio.h>
#include <stdlib.h>
int n;
int *rows = NULL;
// Initialize global arrays
void init_glob (int n)
{
int i = 0;
#include <stdio.h>
#include <stdlib.h>
typedef long hash_t;
typedef long strlen_t;
char *string = NULL;
char *sample = NULL;
strlen_t n = 0;
#include <iostream>
#include <cstdlib>
#include <algorithm>
template <typename T>
class DD
{
private:
using T_ret_type = typename T::ret_type;
protected:
#include <iostream>
#include <cstdlib>
#include <algorithm>
// dd.hpp
template <typename Derived>
struct DD_traits;
template <typename T>
class DD
#include <thread>
#include <iostream>
#if 0
void thread_func()
{
std::cout << "Hello, parallel world!" << std::endl;
}
#else
class thread_hold
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef DEBUG
#define dbg printf ("R%d:I%d: ", rank, i);
#else
#define dbg if(0)
#endif /* DEBUG */
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef DEBUG
#define dbg printf ("R%d:I%d: ", rank, i);
#else
#define dbg if(0)
#endif /* DEBUG */
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef DEBUG
#define dbg
#else
#define dbg if(0)
#endif /* DEBUG */
@Mikle-Bond
Mikle-Bond / mainwindow-xkbd-hack-1.4.2.patch
Created March 19, 2019 18:41
qutebrowser-xkbswitch dirty hack
diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py
index 3fdad13d1..5ca369a9a 100644
--- a/qutebrowser/mainwindow/mainwindow.py
+++ b/qutebrowser/mainwindow/mainwindow.py
@@ -38,6 +38,7 @@ from qutebrowser.keyinput import modeman
from qutebrowser.browser import commands, downloadview, hints, downloads
from qutebrowser.misc import crashsignal, keyhintwidget
+from qutebrowser.plugins import xkbswitch