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
QString wide_prefix() | |
{ | |
return qgetenv("WIDE"); | |
} | |
inline QString wide_i18n(const char* txt) | |
{ | |
return wide_prefix() + i18n(txt); | |
} |
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
function pkgcgrep() { | |
pkg-config --list-all | grep "$1" | |
} |
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/env python | |
# encoding: utf-8 | |
""" | |
pict-exif-rename: Rename pictures according to their exif information, taking | |
sequence number into account. | |
This relies on the presence of the Exif.Panasonic.SequenceNumber tag, so may | |
not work with all cameras. |
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 sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
class Foo(QObject): | |
@pyqtSlot(int, result=int) | |
def compute(self, value): | |
return value * 2 |
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/env python | |
# encoding: utf-8 | |
# Author: Aurélien Gâteau <[email protected]> | |
# License: GPLv3+ | |
import filecmp | |
import os | |
import shutil | |
import sqlite3 |
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/env python | |
# encoding: utf-8 | |
import json | |
import os | |
import subprocess | |
import sys | |
import urllib2 | |
from optparse import OptionParser |
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/env python | |
# encoding: utf-8 | |
import re | |
import os | |
import sys | |
import argparse | |
DESCRIPTION = """\ | |
Try to figure out a filename and line number from the command line arguments | |
and start vi on it. This is handy to quickly edit a faulty line by copy and |
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
// Build with: g++ benchqlist.cpp -o benchqlist -I/usr/include/qt4 -Wall -lQtCore -lstdc++ -O2 | |
#include <QtCore/QList> | |
#include <QtCore/QElapsedTimer> | |
#include <QtCore/QDebug> | |
#if 1 | |
#define ELEMENT int | |
#define ELEMENT_VALUE 12 | |
#else |
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/sh | |
set -e | |
usage() { | |
cat <<EOF | |
USAGE: $(basename $0) <action> | |
Setup symlinks on an Ubuntu installation to work on Ubiquity |
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/env python | |
import os | |
import re | |
import signal | |
import subprocess | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * |
OlderNewer