Skip to content

Instantly share code, notes, and snippets.

View TristanWiley's full-sized avatar

Tristan Wiley TristanWiley

View GitHub Profile
<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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
package terranovaproductions.newcomicreader;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
package adammcneilly.capturethetag;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
import android.nfc.Tag;
<?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="match_parent"
>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:elevation="@dimen/cardview_default_elevation"
package com.novaapps.booktrackr.Database;
import android.provider.BaseColumns;
/**
* Created by tristan.wiley on 10/6/2015.
*/
public final class BookContract {
// To prevent someone from accidentally instantiating the contract class,
// give it an empty constructor.
<?php
$last = file_get_contents("http://www.tristanwiley.com/latest.txt");
$url = "http://xkcd.com/info.0.json";
$json = file_get_contents($url, true);
$json_a = json_decode($json, true);
$newLatest = $json_a["num"];
if ($last != $newLatest) {
//*******************************************************************
// Java compiler created in PHP to quickly and safely test code.
// NOTE: please read the 'More Info' tab to the right for shortcuts.
//*******************************************************************
import java.lang.Math; // header stuff MUST go above the first class
// our main class becomes a file but the main method is still found
public class HelloWorld
{
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package adventofcode2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package adventofcode3;
/**
*
* @author tristan.wiley
@TristanWiley
TristanWiley / Main.java
Created December 6, 2015 18:28
AOC 5 part 2
package com.tristanwiley;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
String input = "uxcplgxnkwbdwhrp,suerykeptdsutidb,dmrtgdkaimrrwmej,ztxhjwllrckhakut,gdnzurjbbwmgayrg,gjdzbtrcxwprtery,fbuqqaatackrvemm,pcjhsshoveaodyko,lrpprussbesniilv,mmsebhtqqjiqrusd,vumllmrrdjgktmnb,ptsqjcfbmgwdywgi,mmppavyjgcfebgpl,zexyxksqrqyonhui,npulalteaztqqnrl,mscqpccetkktaknl,ydssjjlfejdxrztr,jdygsbqimbxljuue,ortsthjkmlonvgci,jfjhsbxeorhgmstc,vdrqdpojfuubjbbg,xxxddetvrlpzsfpq,zpjxvrmaorjpwegy,laxrlkntrukjcswz,pbqoungonelthcke,niexeyzvrtrlgfzw,zuetendekblknqng,lyazavyoweyuvfye,tegbldtkagfwlerf,xckozymymezzarpy,ehydpjavmncegzfn,jlnespnckgwmkkry,bfyetscttekoodio,bnokwopzvsozsbmj,qpqjhzdbuhrxsipy,vveroinquypehnnk,ykjtxscefztrmnen,vxlbxagsmsuuchod,punnnfyyufkpqilx,zibnnszmrmtissww,cxoaaphylmlyljjz,zpcmkcftuuesvsqw,wcqeqynmbbarahtz,kspontxsclmbkequ,jeomqzucrjxtypwl,ixynwoxupzybroij,ionndmdwpofvjnnq,tycxecjvaxyovrvu,uxdapggxzmbwrit