Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Patrick TingPing

💭
I may be slow to respond.
View GitHub Profile
@TingPing
TingPing / meson.tmLanguage
Created Feb 7, 2017
Syntax Highlighting for Meson
View meson.tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Patrick Griffis</string>
<key>fileTypes</key>
<array>
<string>meson.build</string>
<string>meson_options.txt</string>
View meson_uninstall.py
#!/usr/bin/env python3
# NOTE: This is only useful until Meson 0.38.0 which includes an `uninstall` target.
import argparse
from contextlib import suppress
from os import path, remove
parser = argparse.ArgumentParser()
parser.add_argument('--dry-run', action='store_true')
View EggScrolledWindow.py
# Copyright (C) 2015 Patrick Griffis <tingping@tingping.se>
# Copyright (C) 2014 Christian Hergert <christian@hergert.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
View keybase.md

Keybase proof

I hereby claim:

  • I am TingPing on github.
  • I am tingping (https://keybase.io/tingping) on keybase.
  • I have a public key whose fingerprint is 108B F221 2A05 1F4A 72B1 8448 B3C7 CE21 0DE7 6DFC

To claim this, I am signing this object:

View desktop.m4
# desktop.m4
#
# serial 4
dnl DESKTOP_VALIDATE
dnl Validates and installs desktop files.
dnl
dnl To use:
dnl 1. Call DESKTOP_FILE in configure.ac to check for the desktop-file-utils tools.
dnl 2. Add @DESKTOP_FILE_RULES@ to a Makefile.am to substitute the make rules.
View valadoc-times.patch
From 58ee10baa0273d9bf88963d97d71d94d2fdf9a78 Mon Sep 17 00:00:00 2001
From: TingPing <tingping@tingping.se>
Date: Tue, 12 Aug 2014 00:45:41 -0400
Subject: [PATCH] Fix coretext warning
---
src/libvaladoc/charts/simplechartfactory.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libvaladoc/charts/simplechartfactory.vala b/src/libvaladoc/charts/simplechartfactory.vala
@TingPing
TingPing / gnotification-gntp.patch
Created Jun 19, 2014
[PATCH] Add GNTP (Growl) backend to GLib's GNotification
View gnotification-gntp.patch
From a15e1698e89aae090abf73cf9794d9d70aa87f67 Mon Sep 17 00:00:00 2001
From: TingPing <tingping@tingping.se>
Date: Thu, 19 Jun 2014 17:57:13 -0400
Subject: [PATCH] Add GNTP (Growl) backend to GNotification
This only supports the basic features but is cross-platform
---
gio/Makefile.am | 1 +
gio/ggntpnotificationbackend.c | 308 +++++++++++++++++++++++++++++++++++++++++
gio/giomodule.c | 2 +
@TingPing
TingPing / enchant-applespell.patch
Last active Aug 29, 2015
Patches for building enchant on OS X
View enchant-applespell.patch
--- a/configure.in (revision 30591)
+++ b/configure.in (working copy)
@@ -33,4 +33,5 @@
AC_PROG_CC
AC_PROG_CPP
+AC_PROG_OBJC
AC_PROG_INSTALL
AC_PROG_LN_S
--- a/src/applespell/Makefile.am 2010-04-01 22:53:37.000000000 +0200
+++ b/src/applespell/Makefile.am 2012-01-11 22:42:13.000000000 +0100
View murrine-link-pixman.patch
View whoisd_to_front.py
import hexchat
__module_name__ = "whois'd to front"
__module_author__ = 'TingPing'
__module_version__ = '0'
__module_description__ = "Print when you have been whois'd in the front"
def notice_cb(word, word_eol, userdata):
if 'did a /whois on you' in word_eol[3]:
hexchat.find_context().set()
You can’t perform that action at this time.