Skip to content

Instantly share code, notes, and snippets.

View ovistoica's full-sized avatar
🏗️
Building cool stuff

Stoica George-Ovidiu ovistoica

🏗️
Building cool stuff
View GitHub Profile
@ikappaki
ikappaki / say-one-thing.clj
Last active December 17, 2024 06:42
pipecat-ai 01-say-one-thing in Basilisp
(import asyncio aiohttp os sys)
(defmacro import-from
"Helper function to import each name in NAMES from MODULE as a local
variable, allowing them to be referenced without the module name.
https://github.com/basilisp-lang/basilisp/issues/1154."
[module & names]
(let [defs (for [n (vec (map str names))]
`(def ~(symbol n) (importing-resolve (symbol ~(str module "/" n)))))]
@jamesreggio
jamesreggio / react-forwardref-simple-example.js
Last active February 6, 2025 02:06
Simple example usage of React.forwardRef()
// EmailInput wraps an HTML `input` and adds some app-specific styling.
const EmailInput = React.forwardRef((props, ref) => (
<input ref={ref} {...props} type="email" className="AppEmailInput" />
));
class App extends Component {
emailRef = React.createRef();
render() {
return (
@reborg
reborg / rich-already-answered-that.md
Last active January 23, 2025 22:49
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content