Sharon Machlis · @smach
1979 followers · 921 posts · Server fosstodon.org

My RStudio code snippets to get an object from a character string and get the object name as a strong from the object:

snippet string2obj
eval(parse(text = "${1:obj_name}"))

snippet obj2string
deparse(substitute(${1:obj_name}))


@rstats

#rstats #rstudio #codesnippets

Last updated 2 years ago

Raiola Networks :verified: · @RaiolaNetworks
102 followers · 1460 posts · Server seommunity.com

✅ Cómo insertar código en el functions.php del tema activo de tu WordPress con el plugin 👉 buff.ly/3i7BdMm

#codesnippets #Plugins #WordPress

Last updated 2 years ago

John Kelly · @jnkly
0 followers · 1 posts · Server mastodon.social

Hello everyone,

I'm a , based in ,

I create and that are clear to understand and simple to use. I love sharing , , and

I've been working in on products for over 10 years. My current areas of interest include and

I'm currently learning and

I'm also a

#introduction #webdesigner #yorkshire #uk #websites #digitalservices #webdesign #tips #codesnippets #templates #localgov #gov #digital #userexperience #userinterface #accessibility #a11y #tailwindcss #astro #volunteer #grassroots #football #coach

Last updated 2 years ago

Stephen Gruppetta · @s_gruppetta
287 followers · 232 posts · Server qoto.org

I think a good way to show code (until we wait for all servers to have Markdown like , at least) is to show a generated code image (from one of several online tools, or screenshot if you must) and add the code as the ALT text/description of the image, as in the quoted toot.

If, as in this case, the code is too long for the ALT text (this will only happen for long code snippets like this) the code could go in an unlisted reply to the toot with the image (or in the same toot, if you prefer/have space)

I think it’s useful to have both a properly-formatted version for those who just want to read code and text which people can copy-paste

gist and other solutions means you need to leave the site - not ideal, I think

#code #qoto #codesnippets #python

Last updated 2 years ago

ITSEC News · @itsecbot
687 followers · 32461 posts · Server schleuss.online