Skip to content

Instantly share code, notes, and snippets.

Avatar

Jimmy Huang jimyhuang

View GitHub Profile
@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
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 / 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',
@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
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
View index.html
<!doctype html>
<html>
<head>
<title>Polyline tessellation test with Pixi.js</title>
<meta charset="utf-8">
<style>
html, body {
height: 100%;
padding: 0;
View gist:4b3ea1a73aecd2adf207
LC81170432014333LGN00
LC81170432014333LGN00
LC81170432014365LGN00
LC81170432014365LGN00
LC81170442015032LGN00
LC81170442014013LGN00
LC81170452013330LGN00
LC81170452013330LGN00
LC81170442013330LGN00
LC81170432014253LGN00
@jimyhuang
jimyhuang / twlandsat-sample.html
Created Apr 25, 2015
tile usage sample | Twlandsat - 賽豬公上太空
View twlandsat-sample.html
<!doctype html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<title>tile usage sample | Twlandsat - 賽豬公上太空 </title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
#map {
height: 540px;