Skip to content

Instantly share code, notes, and snippets.

@lsaiken
lsaiken / WeatherContract.java
Created August 7, 2014 20:49
WeatherContract.java Udacity Sunshine App
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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
@lsaiken
lsaiken / MyView.java
Created August 2, 2014 19:59
Wind Speed Indicator Custom View (For Udacity)
package com.pandak.sunshine;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RadialGradient;
import android.graphics.RectF;
@lsaiken
lsaiken / tictactoeai.c
Last active July 14, 2020 23:45
Tic Tac Toe - Minimax (full tree search)
/**
* Author: Lisa Aiken, 2014
* This Tic Tac Toe game allows the Human player to choose
* to play against a Novice, Intermediate, or Expert
* Computer Player.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>