This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright (c) 2010 The Open Planning Project | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var items = [ | |
{ id : 1, value : 'item 1' }, | |
{ id : 2, value : 'item 2' }, | |
{ id : 3, value : 'item 3' }, | |
{ id : 4, value : 'item 4' }, | |
{ id : 5, value : 'item 5' } | |
]; | |
function log(m) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This file will help you build Titanium Mobile on Unix from source | |
# | |
# Follow the HOWTO's here: | |
# http://www.codestrong.com/timobile/howto/ | |
# | |
# Once you have your dependencies working, | |
# Put this file in your path somewhere then cd into the titanium_mobile directory | |
# then exec: builti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Determine Activity Size | |
layout = new ViewAnimator(this){ | |
@Override | |
protected void onSizeChanged(int w, int h, int oldw, int oldh) { | |
super.onSizeChanged(w, h, oldw, oldh); | |
Log.i(LCAT, "Width: " + w + " Height: " + h); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cgi | |
import sys | |
import pprint | |
import simplejson | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
class customHTTPServer(BaseHTTPRequestHandler): | |
pp = pprint.PrettyPrinter(indent=2) | |
def do_GET(self): |
NewerOlder