Unsere Setup-Routine für eine Rails-App mit Nginx, Passenger, rvm auf einen Host Europe-VPS mit Ubuntu 10.4.
apt-get update
apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \
| <!DOCTYPE> | |
| <html> | |
| <head><title>GA Dash Demo</title></head> | |
| <body onload="chart1.render();" > | |
| <!-- Add Google Analytics authorization button --> | |
| <button id="authorize-button" style="visibility: hidden"> | |
| Authorize Analytics</button> | |
| <!-- Div element where the Line Chart will be placed --> |
| import urllib2 | |
| def xiami_decode(s): | |
| s = s.strip() | |
| if not s: | |
| return False | |
| result = [] | |
| line = int(s[0]) | |
| rows = len(s[1:]) / line | |
| extra = len(s[1:]) % line |