I hereby claim:
- I am nicksuch on github.
- I am nicksuch (https://keybase.io/nicksuch) on keybase.
- I have a public key ASDEyMYy5-liQuyFpxcsZRfF10hDmVJM0iiUzckd2cmqsAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Stock Code to Fetch Weather | |
public class FetchWeatherTask extends AsyncTask<String, Void, String[]> { | |
private final String LOG_TAG = FetchWeatherTask.class.getSimpleName(); | |
String city; | |
/* The date/time conversion code is going to be moved outside the asynctask later, | |
* so for convenience we're breaking it out into its own method now. | |
*/ |
/* The date/time conversion code is going to be moved outside the asynctask later, | |
* so for convenience we're breaking it out into its own method now. | |
*/ | |
private String getReadableDateString(long time){ | |
// Because the API returns a unix timestamp (measured in seconds), | |
// it must be converted to milliseconds in order to be converted to valid date. | |
Date date = new Date(time * 1000); | |
SimpleDateFormat format = new SimpleDateFormat("E, MMM d"); | |
return format.format(date).toString(); | |
} |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.helloworld" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="11" | |
android:targetSdkVersion="21" /> |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.example.helloworld.MainActivity" > |
package com.example.helloworld; | |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
public class MainActivity extends ActionBarActivity { | |
@Override |
<style type="text/css"> | |
ul.posts { | |
list-style-type: none; | |
margin: 0 auto; | |
width: 60%; | |
} | |
li { | |
margin-bottom: 35px; | |
text-align: center; |
#!/usr/bin/ruby | |
# | |
# This work is licensed under a Creative Commons Attribution 3.0 Unported License. | |
# http://creativecommons.org/licenses/by/3.0/ | |
# | |
# With some slight modifications, this script should create | |
# a new discount code for each of the 'live' events which are | |
# owned by the user (who is identified by the user_key value). | |
# | |
# See the above license info and Eventbrite API terms for usage limitations. |