Well, my car’s title has been mailed off and I have gotten everything out of my car and released it to the collision shop. The insurance is picking up my car on Monday. Then they will give me my settlement money. I’m sad to see my Bug go. There are a lot of memories with my Bug. I have a bag full of the stuff that was in my car. I didn’t have too many things in there. I have to go through that stuff this weekend.
Currently finishing up the Thanksgiving menu. Then I will put together the shopping list.
Tonight we are having green chile pork stew. It’s a cozy dinner for a snowy day. We got snow today!
Merlin got neutered today. The hardest part of all this is keeping him from running, jumping, playing… ya know, from being a dog so he will heal quickly. He has finally calmed down a little bit. I’m hoping he will take a small nap.
I’m quickly writing this so I can get back to the Thanksgiving menu. I’m currently listening to Charlie Brown Thanksgiving on Spotify. https://open.spotify.com/album/1QR6ML39zy3dKwIclFsmk8
I will try to write more a bit later.
JavaScript notes…
———————————————
Flatten a nested array. You must account for varying levels of nesting.
function steamrollArray(arr) { return arr; } steamrollArray([1, [2], [3, [[4]]]]);
function steamrollArray(arr) { const flattenedArray = []; // Loop over array contents for (let i = 0; i < arr.length; i++) { if (Array.isArray(arr[i])) { // Recursively flatten entries that are arrays // and push into the flattenedArray flattenedArray.push(...steamrollArray(arr[i])); } else { // Copy contents that are not arrays flattenedArray.push(arr[i]); } } return flattenedArray; }; // test here steamrollArray([1, [2], [3, [[4]]]]);
Return an English translated sentence of the passed binary string.
The binary string will be space separated.
function binaryAgent(str) { return str; } binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111");
Category: Uncategorized