Skip to content

Instantly share code, notes, and snippets.

View livibetter's full-sized avatar

Yu-Jie Lin livibetter

View GitHub Profile
@livibetter
livibetter / ot.py
Created February 3, 2012 22:16
Python object traversing
#!/usr/bin/env python3
# Copyright (c) 2012 Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
#
@livibetter
livibetter / tinycon.js
Created February 7, 2012 22:53
Make drawFavicon public to bypass number type checking. Original repo: https://github.com/tommoor/tinycon
/*
* Tinycon - A small library for manipulating the Favicon
* Tom Moor, http://tommoor.com
* Copyright (c) 2012 Tom Moor
* MIT Licensed
* @version 0.2
*/
(function(){
@livibetter
livibetter / vercmp.sh
Created February 19, 2012 00:13
Version comparison in Bash
#!/bin/bash
# Copyright (c) 2012 Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
#
@livibetter
livibetter / REE.examples.py
Created February 19, 2012 01:42
Making useful of REE. ^_*
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Yu-Jie Lin
# Copyright (c) 2005 Nilton Volpato
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
@livibetter
livibetter / Labels.mkd
Created February 19, 2012 20:51
Blogger Labels

(If you want this on your blog, please read this post for instructions.)

@livibetter
livibetter / gentoo-useness.sh
Created March 5, 2012 06:06
Gentoo USEness
#!/bin/bash
# Written by Yu-Jie Lin
# This script is placed in Public Domain
#
# Dependency: eix
if ! type eix &>/dev/null; then
echo "Please emerge app-portage/eix first, eix is required tool." 1>&2
exit 1
@livibetter
livibetter / COPYING
Created March 8, 2012 01:51
Soundex in Bash
Copyright (c) 2012 Yu-Jie Lin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@livibetter
livibetter / .gitignore
Created March 9, 2012 18:44
Script for checking link-ins with Google Webmaster Tools data
*.checked
*.links
*.csv
wtal.re.sh
@livibetter
livibetter / README.md
Last active March 9, 2018 15:06
Scripts for Blogger posting charts

Scripts for Blogger posting charts

These scripts require a Blogger XML Export file, you can download your blog's export file at Settings » Other » Blog Tools » Export blog.

b.py

Usage:

./b.py blog-MM-DD-YYYY.xml [post|comment]
#!/bin/bash
# Playing sounds by tapping
# Copyright (c) 2012 Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions: