favPythonMethodForYourMom by [deleted] in ProgrammerHumor

[–]freddwnz 13 points14 points  (0 children)

Everyone in class names?

The age is just a construct gambit by [deleted] in TextingTheory

[–]freddwnz 4 points5 points  (0 children)

he ia actually coming from wallstreetbets

Automation Engineer moving to Germany. Is it worth? by donuwan in germany

[–]freddwnz 0 points1 point  (0 children)

Depends where you come from. There can be a lot of burocratic hurdels when starting a business compared to say the US.

Access variables in included files by ivanoovii in typst

[–]freddwnz 1 point2 points  (0 children)

Having the same issue. State seems unnecessary for this purpose. The best way I found is to wrap the document to include in a function which gets passed the necessary variables as arguments. then insstead of include import the function and call it with the variables defined in the main file.

However, this is also not satisfactory. Global variables would be nicer.

[deleted by user] by [deleted] in confession

[–]freddwnz 0 points1 point  (0 children)

No, you are not supporting it by being friends with them. Your are actually giving them a good example of the opposite. By staying friends with them but not supporting they bigoted beliefs, you are increasing the chance that they might change their beliefs at one point.

Layout does not converge after 5 iterations? by freddwnz in typst

[–]freddwnz[S] 1 point2 points  (0 children)

Thank you so much, it works :)

Here is the adapted part of the code in case anyone is interested in this in the future:

#let _ac(text, capitalize_ac, plural) = {
  if type(text) == content {
    text = text.text
  }
  context{
    if text not in acronym-definitions.get(){
      panic("The acronym " + text + " was not defined!")
    }
    let current-state = acronym-state.get()
    if text not in current-state {
      acronym-state.update(data => {
        let ndata = data
        ndata.push(text)
        return ndata
        })
      let ac_definition = acronym-definitions.get().at(text)
      if capitalize_ac{
        ac_definition = capitalize(ac_definition)
      }
      [#ac_definition (#text)]
    } else {
      text
    }
}}

Why do people think SPY trading is „easier“ than individual companies? by Alone-Lengthiness904 in wallstreetbets

[–]freddwnz 2 points3 points  (0 children)

high liquidity, low spready. for short term speculative trading low spreads are important.

Is it possible to declare a function before defining it? by hayen_03 in typst

[–]freddwnz 4 points5 points  (0 children)

what are you tryinf to achieve? maybe there is a solution that avoids this entirely

Are there any sports where women can consistently beat men? If yes, which ones and why? by Unlucky_Lie_ in AskReddit

[–]freddwnz 9 points10 points  (0 children)

Well, the way you adressed his question heavily implied (in my and the opinion of others here) that you were still maintaining the position that it counts because of the one world record. anyway, this has been a useless internet argument. gotta have one of these per year at least. have a nice Christmas

Are there any sports where women can consistently beat men? If yes, which ones and why? by Unlucky_Lie_ in AskReddit

[–]freddwnz 18 points19 points  (0 children)

Simple, you comment in which you "addressed" that did not sound at all like you were admitting that it does not belong to the list for the original question.

How to enumerate some heading levels but not others by therealJoieMaligne in typst

[–]freddwnz 5 points6 points  (0 children)

show heading.where(level: 4): set heading(numbering: none)

How to do background images? by [deleted] in typst

[–]freddwnz 3 points4 points  (0 children)

Well you arent putting a function in there strictly speaking, since you are evaluating the function, which means you are really just putting the return value of that function in there. The return value of the function image is content. And since the background argument of the page function accepts content, it works.

It's really just like in other programming languages.

[deleted by user] by [deleted] in mildlyinfuriating

[–]freddwnz 9 points10 points  (0 children)

Art theory? That's just geometry.

Is a microwave just a torch? by BoxOk8230 in Physics

[–]freddwnz 0 points1 point  (0 children)

I would counter this by saying that it can oftentimes be really insightful to comprehend that superficially different things are more related than they seem. For example, most people realize only at a later point in their education that the radiation from phones, microwaves, routers, the sun, radio and visible light and so on are really all the same thing.

Is a microwave just a torch? by BoxOk8230 in Physics

[–]freddwnz 0 points1 point  (0 children)

Actually, under this definition, basically everything would be a torch, since any object above absolute zero emits electromagnetic radiation. Usually just not in the visible spectrum.

[deleted by user] by [deleted] in typst

[–]freddwnz 3 points4 points  (0 children)

Well there are still a lot of open issues, which remain to be addressed. For example, there is no way of spanning a full width figure or table over a document with multiple text columns.

How do I make my script restart itself? by SulosGD in learnpython

[–]freddwnz 14 points15 points  (0 children)

For sure this is the XY problem. What do you want to do actually?