Skip to content

Instantly share code, notes, and snippets.

View nmschorr's full-sized avatar
🏠
Working from home

Nancy Schorr nmschorr

🏠
Working from home
View GitHub Profile
@nmschorr
nmschorr / Url Reading
Last active October 14, 2017 03:47
The secret to easily reading a URL
static void readUrlData () throws Exception {
String builderLine;
String locUrlString = "http://jsonplaceholder.typicode.com/albums";
System.out.println("\nRunning readUrlData");
HttpURLConnection newUrlConn = (HttpURLConnection) new URL(locUrlString).openConnection();
newUrlConn.setRequestMethod("GET");
newUrlConn.setRequestProperty("Accept", "application/json");
if (newUrlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
System.err.println("Can't connect to Webserver!");
}
JSONArray myJsonArry = new JSONArray(longJsonString);
List<Object> myArrayList = new ArrayList<Object>(toList(myJsonArry));
Collection<Map<String,String>> mapsCol = new HashSet<Map<String,String>>();
for (int i=0; i < myArrayList.size(); i++) {
mapsCol.add((HashMap<String, String>)myArrayList.get(i));
}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>schorrmedia.com</groupId>
<artifactId>YourProgramOrClassName</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>YourProgramOrClassName</name>
</project>

NULS Q4 Top 5 Contributors

Election Results

In response to everyone who loved and supported NULS during this bear market, we initiated the Q4 2020 NULS Community Contributors Recognition Award.

After nearly one month of voting, the NULS community has selected the top 5 contributors of the fourth quarter of 2020.

So without further ado, please applaud our top five Contributors for Q4, 2020!