This file contains hidden or 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
/** | |
* Copies the specified range of the specified array into a new array. | |
* The initial index of the range ("from") must lie between zero | |
* and "original.length", inclusive. The value at | |
* "original[from]" is placed into the initial element of the copy | |
* (unless "from == original.length" or "from == to"). | |
* Values from subsequent elements in the original array are placed into | |
* subsequent elements in the copy. The final index of the range | |
* ("to"), which must be greater than or equal to "from", | |
* may be greater than "original.length", in which case |
This file contains hidden or 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
\documentclass{article} | |
% General document formatting | |
\usepackage[margin=0.7in]{geometry} | |
\usepackage[parfill]{parskip} | |
\usepackage[utf8]{inputenc} | |
% Related to math | |
\usepackage{amsmath,amssymb,amsfonts,amsthm} | |
\begin{document} |
This file contains hidden or 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
/** | |
* Michael Lee | |
* Tuesday, April 14, 2015 | |
* Sample program: StackDeck2.java | |
* | |
* This class represents a deck of cards, which you can shuffle | |
* and manipulate. | |
*/ | |
import java.util.*; |
This file contains hidden or 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
// Michael Lee | |
// Section AP | |
// Tuesday, April 14, 2015 | |
// Sample program: Deck.java | |
import java.util.List; | |
interface Deck { | |
public int size(); | |
public boolean isEmpty(); |
This file contains hidden or 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
// Michael Lee | |
// Section AP | |
// Tuesday, April 14, 2015 | |
// Sample program: ListDeck.java | |
// | |
// This class represents a deck of cards, which you can shuffle | |
// and manipulate. | |
import java.util.*; |
This file contains hidden or 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
// Michael Lee | |
// Tuesday, April 14, 2015 | |
// Sample program: StackDeck.java | |
// | |
// This class represents a deck of cards, which you can shuffle | |
// and manipulate. | |
import java.util.*; | |
public class StackDeck implements Deck { |
This file contains hidden or 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
username total comment score | |
------------------- ------------------- | |
exoticmatter 8223 | |
nutrecht 6974 | |
desrtfx 5106 | |
michael0x2a 4971 | |
zifyoip 4849 | |
the_omega99 4175 | |
negative_epsilon 3020 | |
cyrusol 2970 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Feedback: Dog.java</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.css" rel="stylesheet" /> | |
<style type="text/css"> | |
* { | |
box-sizing: border-box; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Feedback: Game13.java</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.css" rel="stylesheet" /> | |
<style type="text/css"> | |
* { | |
box-sizing: border-box; |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
This is a short script that will analyze grades. It uses | |
Python 3, and uses only the default built-in libraries to | |
make it easier to run. | |
This is essentially a cleaner version of the code I demoed | |
in class -- it does a better job of organizing code and | |
showcasing some of the more interesting features of Python. |