Skip to content

Instantly share code, notes, and snippets.

View genderquery's full-sized avatar
🏳️‍🌈

Avery Larsen genderquery

🏳️‍🌈
View GitHub Profile
<?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>
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;
public interface EnumAdapter<EnumType, ReturnType> {
ReturnType getValue(EnumType enumType);
}
public enum ImageFormat {
DEFAULT(""),
PNG("png"),
PNG8("png8"),
PNG24("png24"),
PNG32("png32"),
JPG("jpg"),
BMP("bmp"),
GIF("gif"),
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
package com.example;
public abstract class AbstractBuilder<T> {
protected T mObject;
public AbstractBuilder() {
// Type parameter 'T' cannot be instantiated directly
mObject = new T();
}
package com.example;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
class Usage {
void use() {
String name = "Avery";
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',
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',
package com.github.genderquery;
import android.util.JsonReader;
import android.util.JsonToken;
import java.io.Closeable;
import java.io.IOException;
import java.io.Reader;
/**