Using the Open Weather API (https://openweathermap.org/current#geo), display the weather for the user
A Pen by Stephen Fox on CodePen.
/* | |
This shows that, because of block-scoping, const function references must be | |
invoked in-order or else things will fail silently. | |
const's are added the name space serially (in the order in which they appear) | |
and much of the body isn't declared when we first try to invoke or functions | |
*/ | |
const tryDoTheThing = () => { | |
console.log(`This is me trying to be awesome ${getAwesome()}`) |
/* Read the text from our elements and compose a tweet POST request string*/ | |
const formTweetUrl = () => { | |
// Element initializations elided | |
const text = mainQuoteElement.innerHTML; | |
const author = authorElement.innerHTML; | |
const tweetUrl = `https://twitter.com/share?text="${text}" - ${author}&url=http://codepen.io/stevemasta34/full/GrWmjJ/`; | |
return tweetUrl; | |
}; | |
const sendTweet = () => { |
Using the Open Weather API (https://openweathermap.org/current#geo), display the weather for the user
A Pen by Stephen Fox on CodePen.
Shortcut to perform a Google I'm Feeling Lucky search on https://developer.mozilla.org.
import com.fasterxml.jackson.annotation.JsonAlias | |
import com.fasterxml.jackson.annotation.JsonProperty | |
import com.fasterxml.jackson.annotation.JsonRootName | |
import java.util.* | |
data class LedgerActivityDetail( | |
@set:JsonProperty("TransactionType") | |
var loanType: String? = null, |
{ "student_id" : 0, "type" : "exam", "score" : 54.6535436362647 } |