@erictleung@mastodon.social avatar

erictleung

@erictleung@mastodon.social

data scientist, wikipedia + library evangelist, open-source tinkerer #RStats #Python #DataViz

former work in biomedical informatics and the human microbiome, now doing marketing measurement and experimentation for a media company

other interests: #Education, #HigherEd, #Baduk + #Weiqi, #Wikipedia, #Emacs, #Math, #FountainPens

here as an experiment for more ways to connect, reflect, and share my learnings.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

erictleung, to programming
@erictleung@mastodon.social avatar

R has fun codenames for its releases

In case you didn't know, the codenames for each release is in reference to the Peanuts comics or films

With initial research efforts from Lucy D'Agostino McGowan and Martin Monkman, I helped put the full list of R version names on Wikipedia, so that an ongoing list can be updated and referenced.

https://en.wikipedia.org/wiki/R_(programming_language)#Version_names#Version_names)

Enjoy!

erictleung, to python
@erictleung@mastodon.social avatar

for any user who needs a cheatsheet for dealing with f-strings.

it was useful to me to remember how to pad strings and align text quickly

https://fstring.help/cheat/

erictleung, to til
@erictleung@mastodon.social avatar

the source code for the Zen of Python is actually not very Pythonic!

https://github.com/python/cpython/blob/main/Lib/this.py

erictleung, to til
@erictleung@mastodon.social avatar

about the Jastrow illusion, where two identical train track-like items will appear different

https://en.wikipedia.org/wiki/Jastrow_illusion?wprov=sfla1

erictleung, to Baduk
@erictleung@mastodon.social avatar

"My guess is that AlphaGo’s success forced the humans to reevaluate certain moves and abandon weak heuristics. This let them see possibilities that had been missed before."

a hopeful take on what AI can do to push us to innovate

https://www.henrikkarlsson.xyz/p/go

erictleung, to python
@erictleung@mastodon.social avatar

I'm more of an R programming who uses Python when it fits better.

and being seven years late, I didn't realize the built-in Python virtual environment, venv, got deprecated in 3.6.

apparently now pyenv is recommended. I've luckily used it in the past, but set up time is variable and sometimes not as straight forward, especially on a non-WSL Windows setup.

https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-venv

erictleung,
@erictleung@mastodon.social avatar

@isagalaev ah good catch! should've reread it a couple more times. trying to catch up on all these updates after being away for a couple of years is hard.

good to know python3 -m venv still works!

erictleung, to programming
@erictleung@mastodon.social avatar

Really cool to see this concise way to read text from a file in Python using the built-in pathlib module.

from pathlib import Path
line_lst = Path("to/the/file.txt").read_text().splitlines()

https://stackoverflow.com/a/71631196/6873133

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • tsrsr
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • hgfsjryuu7
  • Youngstown
  • InstantRegret
  • slotface
  • khanakhh
  • rosin
  • ngwrru68w68
  • kavyap
  • PowerRangers
  • normalnudes
  • tacticalgear
  • cisconetworking
  • everett
  • vwfavf
  • GTA5RPClips
  • osvaldo12
  • Durango
  • mdbf
  • modclub
  • tester
  • cubers
  • ethstaker
  • anitta
  • All magazines