Hey friends!
I hope your week was smashing. Mine was super productive! Let's ride.
Â
Web links of the week
How to theme with CSS variables
Disallow large imports from JavaScript projects
GSAP 2.1 Released
CSS Scroll Snap — How It Really Works
Write your first React Hook!
How to Create a Simple CRUD App with Rails and React
Â
Something that interested me this week
This past week was a good one for me. I got some laser cutting done, we released some new stuff at CodePen, I got my inbox down to less than 10 (!!) emails, I got to see some friends from out of town, I cleaned a lot around the house, and I started a couple good books. I admit I've been fairly stressed out in weeks prior to this one, so it was nice to clear my head and get a ton of tasks done. It really is a domino effect, once you get one big thing done, it's like you hunger for finishing more and more!
Moral of the story: finish that thing!
Â
Interview question of the week
Last week I had y'all remove an element from an array to make its sum odd, and we got a bunch of great responses! Nice work
Karthik,
Stuart,
Hank, and as always,
Kyle! It was fun seeing this problem solved in so many different languages! Michael also emailed his in:
def removeForOdd(arr)
  first_odd =-1
  sum = 0
  arr.each_index { |x|
   sum += arr[x]
   # next loop if we found the odd already
   next if first_odd >= 0
   first_odd = x if arr[x].odd?
  }
  return -1 if sum.odd?
  return -1 if first_odd == -1 # no odds
  # if the two above don’t return then
  # we are even and have identified the first
  # odd so return that index
  first_odd
end
This week's question:
Write a function that takes in a string of integers and returns all possible letter combinations you could create with them by mapping the digits to the letters according to a phone dial pad.
Â
Cool things from around the internet
How to Shine Online: Networking and Marketing in the Digital Age
Preonic with Maxkey SA Black keycaps
When Sea Levels Attack!
PAN-Cabins Have A Mythological Link To Their Norwegian Surroundings
Joke
We all just want to belong. But some of us are too short.
Â
That's all for now, folks! Have a great week. Be safe, make good choices, and respond to those emails you've been putting off!
cassidoo