Skip to content

Instantly share code, notes, and snippets.

Avatar

Levi Wilson leviwilson

  • Northwoods
  • Berthoud, CO
View GitHub Profile
View quantizator.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler/setup'
require 'png_quantizator'
require 'tempfile'
speed = ENV['SPEED'] || 1
ARGV.each do |png_path|
puts "Processing #{png_path}..."
file = PngQuantizator::Image.new(png_path)
@leviwilson
leviwilson / droid_java_maven
Created Jun 2, 2012
Ubuntu Android, Java and Maven Shell Script
View droid_java_maven
# update packages
sudo apt-get update
# Install git
sudo apt-get install git-core
# Install jdk
sudo apt-get install openjdk-6-jdk
# Setup Maven