Skip to content

Instantly share code, notes, and snippets.

View AaronMT's full-sized avatar
👾
Hacking

Aaron Train AaronMT

👾
Hacking
View GitHub Profile
@AaronMT
AaronMT / gist:1011180
Created June 6, 2011 21:35
Progress Bar
<!DOCTYPE html>
<html>
<head>
<title>Progress Bar Test!</title>
</head>
<script type="text/javascript">
function changeValue() {
window.removeEventListener("load", arguments.callee, false);
window.setInterval(function() {
var pBar = document.getElementById("p");
@AaronMT
AaronMT / alexa_pull_to_google_spreadsheet.py
Created December 17, 2011 20:07
alexa_pull_to_google_spreadsheet
#!/usr/bin/python
__author__ = 'aaron.train@gmail.com'
import sys
import getopt
import alexa
import gdata.spreadsheet.service
class top_site:
E/ ( 3933): egl_image* _egl_create_image_ANDROID_native_buffer(egl_display*, egl_context*, void*, EGLint*, void*) failed to map native buffer
I/AndroidGraphicBuffer( 3933): No valid EGLImage!
E/ ( 3933): egl_image* _egl_create_image_ANDROID_native_buffer(egl_display*, egl_context*, void*, EGLint*, void*) failed to map native buffer
I/AndroidGraphicBuffer( 3933): No valid EGLImage!
E/ ( 3933): egl_image* _egl_create_image_ANDROID_native_buffer(egl_display*, egl_context*, void*, EGLint*, void*) failed to map native buffer
I/AndroidGraphicBuffer( 3933): No valid EGLImage!
E/ ( 3933): egl_image* _egl_create_image_ANDROID_native_buffer(egl_display*, egl_context*, void*, EGLint*, void*) failed to map native buffer
I/AndroidGraphicBuffer( 3933): No valid EGLImage!
E/ ( 3933): egl_image* _egl_create_image_ANDROID_native_buffer(egl_display*, egl_context*, void*, EGLint*, void*) failed to map native buffer
@AaronMT
AaronMT / chromium_updater.sh
Created January 8, 2012 23:33
Chromium Updater
#!/bin/bash
LATEST=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE`
CURRENT=`defaults read /Applications/Chromium.app/Contents/Info SVNRevision 2>/dev/null`
PROCESSID=`ps ux | awk '/Chromium/ && !/awk/ {print $2}'`
if [[ $LATEST -eq $CURRENT ]]; then
echo "You're already up to date ($LATEST)"
exit 0
fi
@AaronMT
AaronMT / gist:1607207
Created January 13, 2012 16:04
table-generator
#!/usr/bin/python
__author__ = 'aaron.train@gmail.com'
import sys
import getopt
import HTML
import json
class generate_table:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
browsers = ['org.mozilla.fennec/.App']
sites = ["http://google.com",
"http://facebook.com",
"http://youtube.com",
"http://yahoo.com",
"http://baidu.com",
"http://wikipedia.org",
"http://live.com",
#!/bin/bash
# This script will try to upgrade to latest OSX Chromium build on your system via the
# command line (right, that means you'll have to open a term and run it from there)
#
# See README for further informations
die() {
echo "$@ => exiting" >&2
exit 1
}
I/ActivityManager( 196): START {flg=0x40010000 cmp=org.mozilla.fennec/org.mozilla.gecko.AwesomeBar (has extras)} from pid 15144
I/GeckoApp(15144): pause
D/GeckoAwesomeBar(15144): creating awesomebar
D/GeckoAwesomeBarTabs(15144): Creating AwesomeBarTabs
D/GeckoAwesomeBarTabs(15144): Creating All Pages tab
D/GeckoAwesomeBarTabs(15144): Creating Bookmarks tab
D/GeckoAwesomeBarTabs(15144): Creating History tab
D/AndroidRuntime(15144): Shutting down VM
W/dalvikvm(15144): threadid=1: thread exiting with uncaught exception (group=0x40a3b1f8)
E/GeckoAppShell(15144): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
W/WindowManager( 197): ActivityRecord{41ae9d00 org.mozilla.fennec/.App} failed creating starting window
W/WindowManager( 197): android.view.InflateException: Binary XML file line #28: Error inflating class <unknown>
W/WindowManager( 197): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
W/WindowManager( 197): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
W/WindowManager( 197): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
W/WindowManager( 197): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
W/WindowManager( 197): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2685)
@AaronMT
AaronMT / Top-sites
Created March 27, 2012 21:41
Monkey Tab Populate
"http://google.com"
"http://facebook.com"
"http://youtube.com"
"http://yahoo.com"
"http://baidu.com"
"http://wikipedia.org"
"http://live.com"
"http://blogspot.com"
"http://qq.com"
"http://twitter.com"