This code reproduces QTBUG-49238.
This file contains 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 "grabberdialog.h" | |
#include <QDebug> | |
#include <QGuiApplication> | |
#include <QLabel> | |
#include <QPixmap> | |
#include <QPushButton> | |
#include <QScreen> | |
#include <QVBoxLayout> | |
#include <QWindow> |
This file contains 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 | |
# (C) 2008 Canonical Ltd. | |
# Author: Martin Pitt <[email protected]> | |
# License: GPL v2 or later | |
# modified by David D Lowe and Thomas Detoux | |
# Debian 7 support by pixline <[email protected]> | |
# It NEEDS /bin/bash, dash won't work (sed issues). | |
# | |
# Setup user and temporary home directory for guest session. |
This file contains 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
// ==UserScript== | |
// @name mangareader zoom in as default | |
// @namespace https://gist.github.com/xim | |
// @description Zooms in on manga pages by default at mangareader.net | |
// @include http://www.mangareader.net/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.getElementById('img').removeAttribute('width'); |
This file contains 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
// ==UserScript== | |
// @name Facebook width adjustment | |
// @namespace https://gist.github.com/xim | |
// @description Make stuff wider on FB | |
// @include https://www.facebook.com/* | |
// @version 4 | |
// @grant GM_addStyle | |
// @downloadURL https://gist.githubusercontent.com/xim/6bef9b52ab831b981909/raw/fbwidth.user.js | |
// ==/UserScript== |
This file contains 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
# vim file:34 otherfile:1337 -> Open files at respective lines. And in tabs! | |
vim() { | |
declare -a args | |
let fcount=0 | |
hit_dashdash= | |
for arg in "$@" ;do | |
if [[ "$arg" =~ ^- && ! "$hit_dashdash" ]] ;then | |
args+=("$arg") | |
[[ "$arg" = "--" ]] && hit_dashdash=1 | |
continue |
This file contains 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/env python | |
import re | |
statement_matcher = re.compile(r'^s(.)(?:(?!\1).)*\1(?:(?!\1).)*\1$') | |
def get_interesting_triplets(dictionary_file, statement_file): | |
with open(dictionary_file) as fh: | |
words = [word.strip() for word in fh.readlines()] |
This file contains 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 --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass | |
index 3cfc84b..906fa58 100644 | |
--- a/meta/classes/terminal.bbclass | |
+++ b/meta/classes/terminal.bbclass | |
@@ -4,7 +4,7 @@ OE_TERMINAL[choices] = 'auto none \ | |
${@" ".join(o.name \ | |
for o in oe.terminal.prioritized())}' | |
-OE_TERMINAL_EXPORTS = 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' | |
+OE_TERMINAL_EXPORTS += 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' |
This file contains 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 sys | |
import numpy | |
from nltk.cluster import KMeansClusterer, GAAClusterer, euclidean_distance | |
import nltk.corpus | |
from nltk import decorators | |
import nltk.stem | |
stemmer_func = nltk.stem.EnglishStemmer().stem | |
stopwords = set(nltk.corpus.stopwords.words('english')) |