Skip to content

Instantly share code, notes, and snippets.

@Hammy223
Hammy223 / GarageClient.java
Created March 6, 2017 03:16
Particle Photon Android GarageClient.java
import android.app.Activity;
import java.io.IOException;
import io.particle.android.sdk.cloud.ParticleCloud;
import io.particle.android.sdk.cloud.ParticleCloudException;
import io.particle.android.sdk.cloud.ParticleCloudSDK;
import io.particle.android.sdk.cloud.ParticleDevice;
import io.particle.android.sdk.cloud.ParticleEvent;
import io.particle.android.sdk.cloud.ParticleEventHandler;
@Hammy223
Hammy223 / what-to-wear.js
Created February 4, 2016 02:05 — forked from monkbroc/what-to-wear.js
What to wear
function forecastUrl(apiKey, location) {
var apiUrl = "https://api.forecast.io/forecast";
var excludeFields = "exclude=minutely,hourly";
return apiUrl + "/" + apiKey + "/" + location + "?" + excludeFields;
}
function getForecast(url) {
var got = require("got");
return got(url)
.then(function (response) {
http://snag.gy/GH8w4.jpg
Profile picture circle and name centered on top of the profile's cover photo (the large picture).
Similar to Google Drive's android app for reference..
Below is current code