Skip to content

Instantly share code, notes, and snippets.

View koalahamlet's full-sized avatar
㊙️
shhhh

Michael Alan Huff koalahamlet

㊙️
shhhh
View GitHub Profile
@koalahamlet
koalahamlet / gist:5760799
Created June 11, 2013 21:19
that one thing I wanted to show ryan.
#!/usr/bin/python
import MySQLdb
class Database1(object):
host = "localhost"
user = "root"
password = ""
db = "teachscape_focus"
@koalahamlet
koalahamlet / settings.xml
Created September 11, 2013 03:00
hrm, I get this error. but line 32 seems fine. MikesMac:Desktop koalahamlet$ mvn android-bootstrap-archetype:generate [ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effective settings [FATAL] Non-parseable settings /Users/koalahamlet/.m2/settings.xml: Duplicated tag: 'profiles' (position: START_TAG seen ...</…
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>release</id>
<properties>
<sign.alias>androiddebugkey</sign.alias>
<sign.storepass>android</sign.storepass>
@koalahamlet
koalahamlet / stupid problem
Created January 31, 2014 07:50
the getUritoVisit() method works fine when it is still inside the oncreate, but as soon as I move it out of the oncreate and into the activities main body, the edit text always comes back as null when I try to access it. Da fuq?
package com.example.testapplication;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
package com.mikes.Twitter.app;
import org.scribe.builder.api.Api;
import org.scribe.builder.api.FlickrApi;
import org.scribe.builder.api.TwitterApi;
import android.content.Context;
import com.codepath.oauth.OAuthBaseClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
@koalahamlet
koalahamlet / gist:8748886
Created February 1, 2014 06:48
compose tweet activity
package com.mikes.Twitter.app;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
package com.mikes.Twitter.app;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import android.app.Activity;
import android.content.Context;
/* SEND BUTTON */
AjaxSubmitLink sendButton = new AjaxSubmitLink("sendButton", form) {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
target.appendJavascript("newInvitationPage.clearFeedbackIndicators();");
package com.mikes.Twitter.app.fragments;
import java.util.ArrayList;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
package kartography.app;
import java.util.Arrays;
import java.util.List;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.ParseException;
import android.os.Bundle;
@koalahamlet
koalahamlet / gist:9065932
Created February 18, 2014 07:04
manifest for kartography as of 02-17
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="kartography.app"
android:versionCode="1"
android:versionName="1.0" >
<!-- put permissions here -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />