Skip to content

Instantly share code, notes, and snippets.

View TingPing's full-sized avatar

Patrick TingPing

View GitHub Profile
@TingPing
TingPing / meson.tmLanguage
Created February 7, 2017 20:26
Syntax Highlighting for Meson
<?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>
#!/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')
# Copyright (C) 2015 Patrick Griffis <[email protected]>
# Copyright (C) 2014 Christian Hergert <[email protected]>
#
# 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

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:

# 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.
From 58ee10baa0273d9bf88963d97d71d94d2fdf9a78 Mon Sep 17 00:00:00 2001
From: TingPing <[email protected]>
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 June 19, 2014 21:59
[PATCH] Add GNTP (Growl) backend to GLib's GNotification
From a15e1698e89aae090abf73cf9794d9d70aa87f67 Mon Sep 17 00:00:00 2001
From: TingPing <[email protected]>
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 August 29, 2015 14:01
Patches for building enchant on OS X
--- 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
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()