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 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; |
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
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) { |
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
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 |