Skip to content

Instantly share code, notes, and snippets.

Avatar

Jimmy Huang jimyhuang

View GitHub Profile
View 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 Aug 29, 2015
[OTB] ORFEO Toolbox compile instruction in Debian Wheezy
View otb-for-debian-wheezy.sh
####
# 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 Jul 17, 2014
PHP Barcode Code 128 Type A
View code128typea.php
<?php
$map = array(
' ' => '0',
'!' => '1',
'"' => '2',
'#' => '3',
'$' => '4',
'%' => '5',
'&' => '6',
View gist:2b425cf16737f3acf08d
{
"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 Aug 29, 2015 — forked from futuremill-ltd/gist:2318876
modified to 545
View gist:9387233
# 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