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"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Enumerated value concepts for application building</title> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<link href="http://www.diversitycampus.net/Workbench02.CSS" type="text/css" rel="stylesheet" /> | |
<link href="http://www.diversitycampus.net/Workbench02p.CSS" type="text/css" rel="stylesheet" media="print" /> | |
</head> |
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.example; | |
// Normally you would put each of these classes in their own file | |
class Point { | |
static final Point ORIGIN = new Point(0, 0); | |
private final double x; | |
private final double y; |
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
public interface EnumAdapter<EnumType, ReturnType> { | |
ReturnType getValue(EnumType enumType); | |
} |
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
public enum ImageFormat { | |
DEFAULT(""), | |
PNG("png"), | |
PNG8("png8"), | |
PNG24("png24"), | |
PNG32("png32"), | |
JPG("jpg"), | |
BMP("bmp"), | |
GIF("gif"), |
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
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
class Main { | |
public static void main(String[] args) { | |
Household household = new Household(); | |
final List<Person> people = household.getPeople(); | |
// will throw UnsupportedOperationException |
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.example; | |
public abstract class AbstractBuilder<T> { | |
protected T mObject; | |
public AbstractBuilder() { | |
// Type parameter 'T' cannot be instantiated directly | |
mObject = new T(); | |
} |
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.example; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
class Usage { | |
void use() { | |
String name = "Avery"; |
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
import sys | |
import requests | |
import csv | |
layer = 5 | |
field_names = ('CATEGORY', 'SIGNTYPE', 'STANDARDTEXT') | |
max_records = 1000 | |
url = 'http://gisrevprxy.seattle.gov/ArcGIS/rest/services/SDOT_EXT/sdot_parking/MapServer/{0}/query'.format(layer) | |
count_params = { | |
'f': 'json', |
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
import requests | |
import json | |
import csv | |
csvfile = r'C:\Users\avery\Downloads\iehp.csv' | |
url = ('https://ewebserv.iehp.org' | |
'/provider-search/production/api/Provider/GetSpecificProviderList/{itemsPerPage}/{page}') | |
data = { | |
'ProviderType': 'BH', | |
'AcceptingNewMbr': 'true', |
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.github.genderquery; | |
import android.util.JsonReader; | |
import android.util.JsonToken; | |
import java.io.Closeable; | |
import java.io.IOException; | |
import java.io.Reader; | |
/** |
OlderNewer