Skip to content

Instantly share code, notes, and snippets.

@alexpana
alexpana / profiling.cpp
Last active May 18, 2017 00:29
Profiling Direc2D vs GDI+ wxWidgets implementations
struct ProfileResult
{
long double d2dResultNoAA;
long double d2dResultAA;
long double gdiResultNoAA;
long double gdiResultAA;
};
ProfileResult ProfileDrawFunction(wxWindow* window, std::function<void(wxGraphicsContext*)> drawFunction)
{
@prebenlm
prebenlm / .A how to display Irssi-hilights in OS X Notification Center.md
Last active September 20, 2024 16:55
Guide: how to make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier

Irssi in Mac OS X Notification Center

Mou icon

Overview

This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.

We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.

@matthutchinson
matthutchinson / fnotify.pl
Created August 21, 2010 10:47
Irssi fnotify
# todo: grap topic changes
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.0.3';
%IRSSI = (
authors => 'Thorsten Leemhuis',
contact => 'fedora@leemhuis.info',
@rogerleite
rogerleite / install_monaco_font.sh
Last active November 1, 2024 18:08
Install Monaco font in Linux
#!/bin/bash
# Install Monaco font in Linux
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache