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 / 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" />
@koalahamlet
koalahamlet / gist:9066021
Created February 18, 2014 07:15
current mainActivity of project.
package kartography.app;
import java.util.Date;
import kartography.fragments.CustomMapFragment;
import kartography.fragments.PoiListFragment;
import kartography.fragments.PoiMapFragment;
import kartography.models.Poi;
import kartography.models.PoiLocation;
<VirtualHost *:80>
ServerAdmin webmaster@grio.com
DocumentRoot /var/www/griogames.com
ServerName griogames.com
ServerAlias whobert.games.grio.com
ServerAlias www.whobert.com
ServerAlias www.whobertspath.com
<Directory "/var/www/griogames.com">
RewriteEngine On
RewriteRule ^whobert(.*) http://www.griogames.com/whobert.html [L,NC]