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
<?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 |
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 = "toggle 461,550 through 564,900|turn off 370,39 through 425,839|turn off 464,858 through 833,915|turn off 812,389 through 865,874|turn on 599,989 through 806,993|turn on 376,415 through 768,548|turn on 606,361 through 892,600|turn off 448,208 through 645,684|toggle 50,472 through 452,788|toggle 205,417 through 703,826|toggle 533,331 through 906,873|toggle 857,493 through 989,970|turn off 631,950 through 894,975|turn off 387,19 through 720,700|turn off 511,843 through 581,945|toggle 514,557 through 662,883|turn off 269,809 through 876,847|turn off 149,517 through 716,777|turn off 994,939 through 998,988|toggle 467,662 through 555,957|turn on 952,417 through 954,845|turn on 565,226 through 944,880|turn on 214,319 through 805,722|toggle 532,276 through 636,847|toggle 619,80 through 689,507|turn on 390,706 through 884,722|t |
OlderNewer