Skip to content

Instantly share code, notes, and snippets.

View weynhamz's full-sized avatar

Weynham Zheng (Techlive Zheng) weynhamz

View GitHub Profile
@weynhamz
weynhamz / 703688.patch
Last active December 26, 2015 13:19
PKGBUILD of valadoc-git
diff --git a/src/driver/0.20.x/Makefile.am b/src/driver/0.20.x/Makefile.am
index a1e7416..65cb006 100644
--- a/src/driver/0.20.x/Makefile.am
+++ b/src/driver/0.20.x/Makefile.am
@@ -8,6 +8,7 @@ AM_CFLAGS = -g \
-DPACKAGE_ICONDIR=\"$(datadir)/valadoc/icons/\" \
-I ../../libvaladoc/ \
$(GLIB_CFLAGS) \
+ $(LIBGVC_CFLAGS) \
$(LIBGEE_CFLAGS) \
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 07:19
PKGBUILD of dotploy-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Maxim Chervonny <fiskus@chervonny.ru>
_pkgname=dotploy
pkgname=dotploy-git
pkgdesc="A bash only script to deploy $HOME dot files acrossing different hosts"
pkgver=0.3.3.r0.ge947c85
pkgrel=1
url="https://github.com/techlivezheng/dotploy"
arch=('any')
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 07:19
PKGBUILD of dotploy
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Maxim Chervonny <fiskus@chervonny.ru>
pkgname=dotploy
pkgdesc="A bash only script to deploy $HOME dot files acrossing different hosts"
pkgver=0.3.3
pkgrel=1
url="https://github.com/techlivezheng/dotploy"
arch=('any')
license=('GPL')
@weynhamz
weynhamz / PKGBUILD
Last active December 26, 2015 02:19
PKGBUILD of tig-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Max Riveiro <kavu13@gmail.com>
_pkgname=tig
pkgname=tig-git
pkgdesc="Text-mode interface for git"
pkgver=1.2.1.r58.g00979ec
pkgrel=1
url="http://jonas.nitro.dk/tig/"
arch=('i686' 'x86_64')
@weynhamz
weynhamz / PKGBUILD
Last active December 11, 2015 09:59
PKGBUILD of libiconv
# Maintainer: Arthur Darcet <arthur.darcet at m4x.org>
# Contributor: Techlive Zheng <techlivezheng at gmail.com>
pkgname=libiconv
pkgver=1.14
pkgrel=1
pkgdesc='Provides libiconv.so and libcharset.so'
arch=('i686' 'x86_64')
url='http://www.gnu.org/software/libiconv/'
license=('LGPL')
@weynhamz
weynhamz / '$*' and '$@' in Shell Scripting
Created December 17, 2012 14:09
Simple code that illustrates the difference between `$*` and `$@` in shell scripting.
#!/bin/bash
foo() {
printf "'%s'" $*
}
bar() {
printf "'%s'" $@
}
(function($) {
var settings = {};
settings.customClass = 'placeholder';
function args(elem) {
// Return an object of element attributes
var newAttrs = {};
var rinlinejQuery = /^jQuery\d+$/;