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
// We are on page | |
// http://www.example.com:8080/search?q=devmo#test | |
console.log(window.location.href) | |
// → "http://www.example.com:8080/search?q=devmo#test" | |
console.log(window.location.origin) | |
// → "http://www.example.com:8080" | |
console.log(window.location.protocol) |
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
/** | |
* console.log | |
*/ | |
console.log('Hello'); | |
// → "Hello" | |
var hello = 'Hello'; | |
console.log(hello); | |
// → "Hello" |
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
Show hidden characters
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |
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
var toto = { | |
foundation: 'Mozilla', | |
model: 'box', | |
week: 45, | |
transport: 'bus', | |
month: 7 | |
}; | |
JSON.stringify(toto); | |
// '{"foundation":"Mozilla","model":"box","week":45,"transport":"bus","month":7}' |
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
[ | |
{ | |
"matchNumber": 1, | |
"kickOff": "2015-09-18T20:00:00.000Z", | |
"pool": "A", | |
"teamA": "England", | |
"teamB": "Fiji", | |
"location": "Twickenham, London" | |
}, |
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
module.exports = { | |
attributes: { | |
title: { | |
type: 'text' | |
}, | |
content: { | |
type: 'text' | |
}, | |
NewerOlder