Skip to content

Instantly share code, notes, and snippets.

View cadorn's full-sized avatar

C Dorn cadorn

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active November 12, 2024 19:08
Listen to your web pages
@ghosh
ghosh / micromodal.css
Last active November 1, 2024 17:55
Demo modal styles for micromodal.js and corresponding expected html. If using this, set the `awaitCloseAnimation` in config to true
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
@balupton
balupton / README.md
Last active June 5, 2019 10:26
Summary of the Node.js Board controversy from what I can gather
@kriskowal
kriskowal / danom.md
Last active March 22, 2017 18:57
Introduction for a brown-bag talk, "The Design Pattern That Shall Not Be Named"

The purpose of this talk is to introduce you to a sublime and surprisingly durable design pattern, that strangely has no name. It does not appear in the Gamma et al Gang of Four book bearing the title "Design Patterns", though you might see it there in many guises if you look closely and creatively. This design pattern may not change your life, but it certainly has tilted mine toward better.

You've heard of function calls, like f(x).

@alexmacy
alexmacy / .block
Last active March 7, 2020 03:23
Web Audio Theremin & Oscilloscope
license: mit

Objects in this language are defined as types. They have properties with default values that can be overridden in the constructor literal syntax.

There are no methods, but instead have conditional message handlers. The handlers are scoped by the state of the internal properties. Depending on the state the value is in, different messages can be responded to in different ways.

Also values can actively delete themselves causing all references to them to be deleted and replaces with a null type that doesn't respond to anything. (thus freeing up memory)

@Vestride
Vestride / encoding-video.md
Last active November 15, 2024 17:57
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus

Disclaimer: This is an unofficial post by a random person from the community. I am not an official representative of io.js. Want to ask a question? open an issue on the node-forward discussions repo

io.js - what you need to know

io-logo-substack

  • io is a fork of node v0.12 (the next stable version of node.js, currently unreleased)
  • io.js will be totally compatible with node.js
  • the people who created io.js are node core contributors who have different ideas on how to run the project
  • it is not a zero-sum game. many core contributors will help maintain both node.js and io.js
// This is an example of what will be possible with the v2 cohort of Q, Q-IO,
// and Collections, and Works on My Machine™ at time of writing.
var Q = require("q");
var Http = require("q-io/http");
var Iterator = require("collections/iterator");
// This is a Q-IO HTTP Server. It takes an HTTP "application" function, which
// is the service it provides. Applications receive requests and return
// responses, or promises for responses. The properties of requests and