Skip to content

Instantly share code, notes, and snippets.

@facundoolano
facundoolano / webrtc.md
Last active May 16, 2019 12:58
webrtc.md

WebRTC

WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. It's supported by most major browsers (except Safari).

WebRTC APIs

To acquire and communicate streaming data, WebRTC implements the following APIs:

  • MediaStream: get access to data streams, such as from the user's camera and microphone.
@beesandbombs
beesandbombs / cylWedges.pde
Created September 25, 2017 23:29
spinning cylinder wedges
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@beesandbombs
beesandbombs / wavingCubes.pde
Created September 11, 2017 22:23
waving cubes
// gif by dave @beesandbombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@reborg
reborg / rich-already-answered-that.md
Last active December 29, 2025 09:04
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

Back at the theater in Tripoli, it was the year 1885, the first theater in the Middle East.
The vendor woman, an old Alawite, told us that once they had rolled the red carpet all the
way from the harbor to the theater for Oum Kalthoum to perform at the glorious Ottoman building.
There was nothing but rubble to be seen now, and the sound of diggers and hammers.
The Ingea Theater was no more. Now I recalled, it was Rabih Mroué who had asked Catherine Deneuve
in that film, "You wanted to see, I also want to see but I can't seem to. Do you see that?"
And the truth is that neither of us would see anything, but diggers, hammers and rubble.
It wasn't only the theater, but the city and the whole country, there was nothing to see but rubble.
At some point I wanted to ask him if maybe the whole world was made of rubble now.
As we drove away, he told me: "You know, we, the Lebanese and the Jews, we are perhaps the first
@georgebrock
georgebrock / Info.plist
Last active October 9, 2025 11:00
AppleScript to handle URLs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<!-- Add this section: -->
<key>CFBundleURLTypes</key>
<array>
<dict>
@JMichaelTX
JMichaelTX / JXA Resources.md
Last active January 6, 2026 12:57
JavaScript for Automation (JXA) Resources

JXA Resources

Revised: 2019-11-28 16:16 GMT-6

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.

@shibukawa
shibukawa / goto.c
Last active June 16, 2024 15:11
goto for JS
first:
printf("first\n")
goto third;
second:
printf("second\n");
thrid:
printf("third\n");
@pleasetrythisathome
pleasetrythisathome / form.cljs
Last active May 7, 2016 05:45
om forms - form parent local state as cursor
(def inputs [{:korks :email}
{:korks [:name :first]}
{:korks [:name :last]}])
(defn form [app owner]
(reify
om/IInitState
(init-state [this]
(reduce (fn [state {:keys [korks]}]
(assoc-in state korks nil))
@staltz
staltz / introrx.md
Last active January 31, 2026 10:10
The introduction to Reactive Programming you've been missing