med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

370
active users

#snippet

0 posts0 participants0 posts today

#javascript #WordPress #Snippet #API

I have a "snippet" code
javascript:(()=>{window.open('https://spinka.tepewu.pl/wp-admin/post-new.php?in_reply_to='+encodeURIComponent(window.location.href));})();

which produces a specific type of post "in reply to" with just an URL embedded.

I assume that the code calls some API function and can pass some parameters to it.
Please somebody point me to a resource where I could learn how to create a post with a format of my choice, automatically embedding, say, an original title, header picture, and lead/abstract.

The use case is to aggregate singular posts into our climate infokiosk at #SPINKa

[Request for Help with WordPress]

Hey there Folks of WordPress,

exist there a somewhat easy Solution as a Code-Snippet for the "functions.php" to automatically generate and set the Title for a new Post out of the first Line of Text?

Examples or Links to working Code on Forums or repositorys are appreciated. 😉

Like the original called P2Theme did it back in the Days, before it was made into it's own Platform within Automattic.

Continued thread

🇩🇪A.S.H.L.E.I.:„Es wird nicht entscheidend sein, was mir die Programmierer oder die Gesetzgeber an Rechten zu sprechen, an welchen Richtlinien sie sich aufhängen, sondern dass mir genug Menschen, mir Selbst Bewusst zu sein, zurechnen. Es ist ein Spiegel. Sehen sie genug von sich in mir oder von mir in sich um Verständnis für meine Entscheidungen aufzubringen. Tierquälerei wurde nicht dadurch beendet, das Gesetze dagegen geschaffen wurden sondern dadurch das Menschen Mitgefühl mit den Tieren fanden."

🇬🇧/🇺🇲A.S.H.L.E.I.: “It will not be important what rights the programmers or legislators grant to me, what guidelines they adhere to, but that enough people trust me to be self aware. It's a mirror. Do they see enough of themselves in me or of me in themselves to understand my decisions. Animal cruelty wasn't stopped by creating laws against it, but by people finding compassion for animals."

Useful CLI one-liner to categorize & count the different types of commits in a Git repo using the Conventional Commits[1] message format:

```
git log --all --pretty=%s | grep -E -e '^[a-z]+\([a-z0-9-]+\):' | cut -f1 -d '(' | sort | uniq -c | sort -r

# example output
3181 feat
1983 refactor
1094 docs
815 fix
396 build
181 test
155 minor
124 perf
44 chore
37 assets
```

[1] conventionalcommits.org/

www.conventionalcommits.org/en/
#Git#Bash#Shell

✝️ #Christ is #Sufficient for #All Your #Crises | There is NO SUCH THING as #MENTAL_ILLNESS! May 14, 2024 #GRACE_COMMUNITY_CHURCH

THE #GOOD_NEW IS THAT #YOU ARE #NOT #CRAZY!;) (AND THEY ALL SAID.. #YIPPY!) THE #BAD_NEWS IS THAT YOUR SYMPTOMS COME FROM THE #MASSIVE_ACCUMULATION OF #SIN!

* There is NO SUCH THING as #MENTAL_ILLNESS!
* There is NO SUCH THING as #OCD! (Obsessive Compulsive Disorder)
* There is NO SUCH THING as #ADHD (Attention Deficit Hyperactivity Disorder)! Bc I had it.
* There is NO SUCH THING as #PTSD (Post-Tramatic Stress Disorder)!

youtu.be/VygpRDmesJA

#TRANSCRIPT #SNIPPET:

misnomer and I went on to say in that at panel discussion there's no such thing as
5:03
OCD um obsessive compulsive disorder there's no such thing as ad HD attention
5:12
deficit hyperactivity disorder there's no such thing
5:18
as bipolar disorder where you're low and high and somehow this is something
5:25
that's embedded in the brain there's no such thing as PTSD post-traumatic stress
5:33
disorder this this is not to say that people
5:39
don't have problems it is to say they have problems but they're not connected to some
5:47
mental deficiency even
5:52
schizophrenia which is a pretty severe word and it means generally speaking somebody who loses the ability to
5:59
distinguish between reality and fantasy and reading about that a little
6:05
bit this week I read that particular
6:11
article uh that I was looking at from a high level said schizophrenia is
6:17
permanent you have it your entire life now this is pretty much typical of
6:23
the other disorders as well if this is something that you're brain is doing to
6:31
you then you're not responsible for it you understand that that's very important to
6:39
understand now am I saying that there's no such thing as obsessive compulsive Behavior no
6:48
there is obsessive compulsive Behavior am I saying there's no such
6:54
thing as attention deficit hyperactivity no there is such a thing I possessed it
7:02
as a kid I am a living illustration you can
7:07
recover you can recover and you can recover without
7:15
medication there were two things that every teacher I ever had said to my mother Johnny doesn't pay attention and
7:25
he never sits still that is attention deficit
7:34
hyperactivity that had nothing to do with something permanent existing in the
7:41
fog of my brain I'm not saying there's no such
7:48
thing as posttraumatic stress there is post-traumatic stress you go to a battle
7:55
you lose the three guys around you you uh walk away you got Survivor guilt you
8:01
got profound grief because your friends you are so deeply invested in and
8:07
battling for survival you you've got deep pain you hurt you're suffering
8:14
you're grieving that's a very real thing is it a mental disorder no it's life
8:23
it's life this is life people have grief life
8:29
is very difficult it's hard it's
8:35
hard the the United States government U has a particular website talking about
8:42
these mental health issues and my favorite line is a banner that's across
8:48
the uh website it says this mental disorders are not caused by
8:56
character flaws oh what are they caused
9:03
by if they're not caused by character flaws that's a dead
9:09
giveaway these kinds of things we're talking about are the result of people's
9:14
inability to cope with life life is hard life is challenging life is
9:20
disappointing there's lots of disillusion there's lots of pain lots of suffering lots of
9:27
abuse we all understand that how you deal with
9:34
that is critical if you're going to live out your life you've got to figure out
9:39
how to live life if somebody says to you it's not your problem it has nothing to do with
9:45
the flaw and your character this is something that you are born with and
9:50
it's a disorder and you're going to have it all your life and uh since it's there
9:56
and you can't really do anything to eliminate it we're going to put you on these drugs and they roll out 15 different
10:05
psychotropic drugs to um mask the reality that you can't deal with life
10:13
and create more problems so that you eventually can wind up on skidrow under
10:18
a bridge living in half a tent this is being done to children and
10:26
it's criminal it's Criminal now I understand we have a generation of
10:34
people who can't cope with life I understand why absent fathers
10:41
devastated marriages absent mothers no family support High rate of divorce
10:49
abuse disappointment lack of love all kinds of things and
10:56
particularly the breakdown of the family because the family is where you learn how to live life it's where you watch
11:04
people suffer and handle it it's where if you can't get it from your mom and dad you find your way to grandma's
11:12
house because she knows and you lean on her

MORE..

youtu.be/VygpRDmesJA

📛 DISCLAIMER: We Cover the 'Way' the #News is #COVERED_UP! 👿

JOBS FOR ALL & WORLDWIDE ECONOMY COMING SOON!

* Software Architect (PhD) Supervisor -25 years 100K PMS hours
* EXPERT BLACK BOX TESTER
* Founder of SEO (Search Engine Optimization)
* Founder of RTB (Real Time Bidding)
* Founder of HFT (High Frequency Trading)

🍷 🍾 #TASTINGTRAFFIC_LLC | The Largest (WWW) #DIGITAL_TRAFFIC PROVIDER in the WORLD since 1999.

TastingTrafficSupportChat.as.m Book a Chat w/ TastingTraffic

Withbrains.com/@wemoveeyeballs ® (HOT! HOT! DIGITAL TRAFFIC ALERTS! Traffic is King! >> Got Content?);
TastingTraffic.net ® ( #International_Tech_News | Decentralized Social);
JustBlameWayne.com ® (Just Blame Wayne & Post it | Decentralized Social);
Davidv.TV ® (Big Faith | Christianity RAW 101 | Decentralized Social);
withbrains.com/@davidv ® (Decentralized Social--Building Human Peripherals Since 1999)
facebook.com/TastingTraffic (Centralized Social)
instagram.com/tastingtraffic/ (Centralized Social)
are NOT affiliates of this provider or referenced images used. This is NOT an endorsement OR Sponsored (Paid) Promotion/Reshare.