Skip to content

Instantly share code, notes, and snippets.

View weynhamz's full-sized avatar

Weynham Zheng (Techlive Zheng) weynhamz

View GitHub Profile
(function($) {
var settings = {};
settings.customClass = 'placeholder';
function args(elem) {
// Return an object of element attributes
var newAttrs = {};
var rinlinejQuery = /^jQuery\d+$/;
@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'" $@
}
@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 / 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 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 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 / 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 27, 2015 13:39
PKGBUILD of vim-cli
# Maintainer: Techlive Zheng <techlivezheng@gmail.com>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: tobias [ tobias at archlinux org ]
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgbase=vim-cli
pkgname=('vim-cli' 'vim-cli-runtime')
_topver=7.4
_patchlevel=16
@weynhamz
weynhamz / PKGBUILD
Last active December 27, 2015 20:19
PKGBUILD of perl-convert-tnef
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Arthur Titeica <arthur.titeica [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Contributor: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
pkgname='perl-convert-tnef'
pkgver='0.18'
pkgrel='3'
@weynhamz
weynhamz / PKGBUILD
Last active December 27, 2015 20:19
PKGBUILD of perl-convert-uulib
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: David Zaragoza <david@zaragoza.com.ve>
# Contributor: Piotr Beling <qwak@w8.pl>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Contributor: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)
# Contributor: Chih-mao Chen <pkmx.tw@gmail.com>
pkgname='perl-convert-uulib'
pkgver='1.4'