Many ideas were inspired and taken from these documents:
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
| <html> | |
| <head> | |
| <style> | |
| body { font-family: Monaco; } | |
| #drop_target { | |
| -webkit-user-drop: element; | |
| border-bottom: 2px dashed black; | |
| background-color: #303030; | |
| color: #909090; | |
| font-size: 16px; |
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
| <html> | |
| <head> | |
| <style> | |
| #square { | |
| background-color: black; | |
| color: white; | |
| font-size: 30pt; | |
| padding: 10px; | |
| width: 350px; | |
| } |
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
| SSH_ENV=$HOME/.ssh/environment | |
| function start_agent { | |
| echo "Initialising new SSH agent..." | |
| /usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV} | |
| echo succeeded | |
| chmod 600 ${SSH_ENV} | |
| . ${SSH_ENV} > /dev/null | |
| /usr/bin/ssh-add ~/.ssh/marshall_github_key; | |
| } |
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
| <ti:app> | |
| <!-- ... --> | |
| <property name="ti.android.google.map.api.key.production">GET_ME_FROM_GOOGLE</property> | |
| </ti:app> |
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
| // Note: this isn't public API, so there should be lots of error checking here | |
| Method gciMethod = Resources.class.getMethod("getCompatibilityInfo"); | |
| Object compatInfo = gciMethod.invoke(view.getResources()); | |
| float appScale = (Float)compatInfo.getClass().getField("applicationScale").get(compatInfo); |
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
| LOCAL_PATH := $(call my-dir) | |
| include $(CLEAR_VARS) | |
| LOCAL_MODULE := v8hi | |
| LOCAL_CFLAGS := -I/Users/marshall/Source/v8/include -g | |
| LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl -llog -L$(TARGET_OUT) | |
| LOCAL_SRC_FILES := v8hi.cpp | |
| PRIVATE_WHOLE_STATIC_LIBRARIES := $(TARGET_OUT)/libv8.a |
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
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.main); | |
| TextView label = (TextView)findViewById(R.id.TextView01); | |
| String dbPath = "/sdcard/test.db"; | |
| SQLiteOpenHelper helper = new SQLiteOpenHelper(this, dbPath, null, 1) { | |
| @Override | |
| public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) { |
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
| var db = Ti.Database.open('/sdcard/test.db'); | |
| var rs = db.execute('SELECT message FROM test'); | |
| if (rs.isValidRow()) { | |
| alert(rs.getFieldByName("message")); | |
| } | |
| rs.close(); | |
| db.close(); |
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
| marshall@snake:~/Code/test/test_python | |
| $ python test.py | |
| modules = set(['Android', 'Android.Calendar', 'UI', 'UI.Android']), should be: Android, Android.Calendar, UI, UI.Android | |
| methods = set(['UI.Android.createActivity', 'UI.createLabel']), should be: UI.createLabel, UI.Android.createActivity |
OlderNewer