Shortcut to perform a Google I'm Feeling Lucky search on https://developer.mozilla.org.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ "student_id" : 0, "type" : "exam", "score" : 54.6535436362647 } |
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 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, |
Using the Open Weather API (https://openweathermap.org/current#geo), display the weather for the user
A Pen by Stephen Fox on CodePen.
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
/* 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 = () => { |
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
/* | |
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()}`) |