This file contains hidden or 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 inputs = document.getElementsByTagName('input'); | |
for (index = 0; index < inputs.length; ++index) { | |
if (!inputs[index].value) { | |
inputs[index].value = inputs[index].getAttribute("placeholder"); | |
} | |
} |
This file contains hidden or 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
{ | |
"name": "A nickname for the property", | |
"currency": "GBP", | |
"value": 654321, // The value of the property at the moment, subject to change | |
"leasehold": true, | |
"leaseExpiry": 2147483647, | |
"sale": { | |
"date": "1999-12-31", | |
"price": 123456, | |
"currency": "GBP", |
This file contains hidden or 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 add(string) { | |
if (!string) { | |
return 0; | |
} | |
let delimiter = /[\n,]+/; | |
if (string.startsWith('//[')) { | |
const lines = string.split('\n'); | |
delimiter = lines[0].replace(/\/\/\[|\]/g, ''); | |
// const things = lines[0].replace('//', ''); | |
// const delimiters = things.match(/\[(.*?)\]/g); // Can't quite nail the regex on this one |
This file contains hidden or 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
/** | |
* @param int[] $theParam | |
* @return int[] | |
*/ | |
function ints(array $theParam): array | |
{ | |
return [ | |
1, | |
2, | |
3, |
This file contains hidden or 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
{ | |
"aliceblue": { | |
"hex": "#F0F8FF", | |
"rgb": "240,248,255" | |
}, | |
"antiquewhite": { | |
"hex": "#FAEBD7", | |
"rgb": "250,235,215" | |
}, | |
"aqua": { |
This file contains hidden or 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
{ | |
"aqua": { | |
"hex": "#00FFFF", | |
"rgb": "0,255,255" | |
}, | |
"black": { | |
"hex": "#000000", | |
"rgb": "0,0,0" | |
}, | |
"blue": { |
This file contains hidden or 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
body { | |
background-color: deepskyblue; | |
padding: 10px; | |
} | |
div.sunholder { | |
display: inline-block; | |
animation: spin 8s linear 0s infinite; | |
} | |
div.sun { | |
display: block; |