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 class MainActivity extends ActionBarActivity { | |
private EventBus eventBus; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
eventBus = EventBus.getDefault(); | |
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
package com.fenchtose.checklistdemo; | |
import com.fenchtose.checklistdemo.views.CheckListItemView; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.ArrayList; |
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
package com.fenchtose.amqptest; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.os.IBinder; | |
import android.os.Message; | |
import android.util.Log; |
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
/* | |
* Copyright (C) 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
<?php | |
require './inc/aws.phar'; | |
use Aws\Ses\SesClient; | |
/** | |
* SESUtils is a tool to make it easier to work with Amazon Simple Email Service | |
* Features: | |
* A client to prepare emails for use with sending attachments or not | |
* | |
* There is no warranty - use this code at your own risk. |
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 class PlayListObject extends ArrayAdapter<AudioObject> { | |
private int layoutResource; | |
private LayoutInflater inflater; | |
private float density = 2f; | |
private ListView listView; | |
public SPlayerPlayListObject(Context con, int resource) { | |
super(con, resource); | |
layoutResource = resource; |
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 class SignUpActivity extends Activity { | |
private String nameString; | |
private String emailString; | |
private String fbID; | |
// some stuff | |
// onCreate, onPause, set layout, create buttons, etc | |
private void signUpUsingFacebook() { | |
Toast.makeText(this, "Connecting to facebook", Toast.LENGTH_LONG).show(); | |
Session.openActiveSession(this, true, Arrays.asList("email", "user_birthday"), new Session.StatusCallback() { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="60dp" | |
android:weightSum="3" | |
android:background="@color/orange_color_1" | |
android:orientation="horizontal"> | |
<ImageView | |
android:layout_width="0dp" |
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 class PlayList extends ArrayAdapter<AudioObject> { | |
private int layoutResource; | |
private LayoutInflater inflater; | |
private final Context context; | |
public PlayList(Context con, int resource) { | |
super(con, resource); | |
layoutResource = resource; | |
context = con; |