pkill

joined 1 year ago
[–] [email protected] 2 points 2 weeks ago

Somewhat useful with (neo)vim, where it's (however tiny af) context window spans every open buffer

[–] [email protected] 1 points 2 weeks ago

Akkoma's bubble feature should be ported to other software

[–] [email protected] 2 points 2 weeks ago

Notesnook ftw

[–] [email protected] 1 points 2 weeks ago

https://altcha.org is nice plus a crowdsec bouncer

[–] [email protected] 10 points 3 weeks ago

Meta or microshit would fill the market gap then...

[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago)

In Clojure, -> is used for inserting the piped argument at the head position in the arguments of whatever it is passed to, while ->> is used for inserting it at the tail. This approach is great for working with immutable data in a series of approachable transformations, which I believe is one reason why so many Domain-Specific Languages for generative programming are written in that language, aside from its interactive REPL. Additionally, there is no need to worry about excessive copying, as this is generally well optimized.

This can be particularly useful with HoneySQL, which is more of a DSL for SQL rather than a typical ORM tool. For example:

(defn apply-filters [query filters]
"applies WHERE clauses to a query"
  (reduce (fn [q [column value]]
            (helpers/where q [:= column value]))
          query
          filters))

(defn build-dynamic-query [{:keys [table columns filters sort-by limit]}]
  (-> {}
      (helpers/select columns)
      (helpers/from table)
      (apply-filters filters)
      (helpers/order-by sort-by)
      (helpers/limit limit)
      sql/format))

;; Result - a super readable function call that resembles a natural language 
(build-dynamic-query 
  {:table :products 
   :columns [:id :name :price] 
   :filters {:category "electronics" :in-stock true}
   :sort-by [:price :desc]
   :limit 20})
[–] [email protected] 1 points 3 weeks ago (1 children)

Lenin was 47 in 1917

[–] [email protected] 2 points 3 weeks ago

(\r (frequencies "strawberry"))

[–] [email protected] 4 points 3 weeks ago

the 'I' in LLM stands for intelligence

[–] [email protected] 2 points 1 month ago (1 children)

lots of onions cut in rings as they resemble parentheses the most

 

Alt text: O'RLY? generated book cover with a donkey, navy blue accent, header: "It's only free if you don't value your time", title: "Handling Arch Linux Failures", subtitle: "Mom, please cancel my today's agenda!"

 

...from people who seem to refuse to install paredit or coloring plugins for either? ps lisp syntax ftw, it's a feature!

46
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

Alternative links: YT Tubo Invidious Piped 0 Piped 1

 

As in title. Do you know any good alternative i2p trackers?

view more: next ›