This file contains 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
<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" |
This file contains 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 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; |
This file contains 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="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" |
This file contains 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.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. |
This file contains 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 | |
$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) { |
This file contains 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
//******************************************************************* | |
// 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 | |
{ |
This file contains 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
/* | |
* 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; |
This file contains 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
/* | |
* 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 |
This file contains 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.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 |
OlderNewer