Skip to content

Instantly share code, notes, and snippets.

Rene Jochum pcdummy

Block or report user

Report or block pcdummy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pawelpabich / LogModule.cs
Created Jul 7, 2012
Log4Net and NLog modules for Autofac
View LogModule.cs
using System;
using System.Linq;
using Autofac;
using Autofac.Core;
using NLog;
using log4net;
using LogManager = NLog.LogManager;
namespace AutofacIdea
View Accordion.qml
import QtQuick 2.4
Column {
width: parent.width
height: parent.height
property alias model: columnRepeater.model
Repeater {
id: columnRepeater
lsv /
Last active Nov 11, 2019
KNP Menu Bundle - Bootstrap 4 and Font Awesome 4
methane /
Last active Oct 10, 2019
Benchmarking MySQL drivers (Python 3.4)
from __future__ import print_function
import time
def query_10k(cur):
t = time.time()
for _ in range(10000):
cur.execute("SELECT 1,2,3,4,5")
res = cur.fetchall()
assert len(res) == 1
assert res[0] == (1,2,3,4,5)
View Accordion.qml
import QtQuick 2.9
import QtQuick.Controls 2.2
Column {
width: parent.width
height: parent.height
property alias model: columnRepeater.model
ListView {
ktat / gist:999684
Created May 31, 2011
WebSocket perl client(select)
View gist:999684
use utf8;
use strict;
use warnings;
use Protocol::WebSocket::Handshake::Client;
use Protocol::WebSocket::Frame;
use IO::Socket;
use IO::Select;
matthewd /
Created Sep 30, 2011
Diff /etc files against the versions supplied in Debian packages
# This script will make a best-effort attempt at showing modifications
# to package-provided config files on a Debian system.
# It's subject to some pretty significant limitations: most notably,
# there's no way to identify all such config files. We approximate the
# answer by looking first at dpkg-managed conffiles, and then hoping
# that most of the time, if maintainer scripts are managing files
# themselves, they're using ucf. So, DO NOT TRUST THIS SCRIPT to find
nhoad / gist:8966377
Last active Mar 7, 2019
Async stdio with asyncio
View gist:8966377
import os
import asyncio
import sys
from asyncio.streams import StreamWriter, FlowControlMixin
reader, writer = None, None
def stdio(loop=None):
View ReText.conf
# ~/.config/ReText project/ReText.conf
ejahandar / IteratorBenchmark.cpp
Created Mar 14, 2018
A Benchmark for Qt's Vector/List/Map iterators vs simple arrays
View IteratorBenchmark.cpp
#include <QDateTime>
#include <QMap>
#include <QVector>
#include <QList>
#include <QDebug>
#define SIZE 10000000
int array[SIZE];
int main(){
You can’t perform that action at this time.