Skip to content

Instantly share code, notes, and snippets.

View jimyhuang's full-sized avatar

Jimmy Huang jimyhuang

View GitHub Profile
@jimyhuang
jimyhuang / landsat5
Last active August 29, 2015 14:16 — forked from moogoo78/landsat5
#!/usr/bin/env python
# -.- coding: utf-8 -.-
"""
Usage:
landsat5.py <username> <password> <landsat5-filename>
Requirements:
beautifulsoup4==4.0.5
requests==2.0.1
@jimyhuang
jimyhuang / otb-for-debian-wheezy.sh
Last active August 29, 2015 14:13
[OTB] ORFEO Toolbox compile instruction in Debian Wheezy
####
# This guide using OTB 3.20 and debian wheezy
# reference guide of OTB
# http://orfeo-toolbox.sourceforge.net/FAQ/OTB-FAQ.html#SECTION00050000000000000000
# http://www.orfeo-toolbox.org/packages/archives/Doc/OTB-FAQ-3.8.pdf
####
# you needs all theses ...
apt-get install libfltk1.1 cmake gdal-bin libgdal-dev geotiff-bin libgeotiff-dev
@jimyhuang
jimyhuang / code128typea.php
Created July 17, 2014 12:42
PHP Barcode Code 128 Type A
<?php
$map = array(
' ' => '0',
'!' => '1',
'"' => '2',
'#' => '3',
'$' => '4',
'%' => '5',
'&' => '6',
{
"licenses": [
{
"type": "cc-by",
"name": "Creative Commons Attribution",
"version": "3.0",
"url": "http://creativecommons.org/licenses/by/3.0/"
}
],
"resources": [
@jimyhuang
jimyhuang / gist:9387233
Last active August 29, 2015 13:57 — forked from futuremill-ltd/gist:2318876
modified to 545
# From a fresh install of squeeze
apt-get install ruby rubygems # Need ruby to use fpm
gem1.8 install fpm --no-ri --no-rdoc
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
tar -zxvf ruby-1.9.3-p392.tar.gz
cd ruby-1.9.3-p392
rm -rf /tmp/ruby193