Instantly share code, notes, and snippets.

View webtorrent-v3.1.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 1 - top dependencies.txt
`standard` is the 52th most depended on npm module. (counting dependencies and devDependencies)
--------
SPECIFIC MODULES
--------
standard 9860
snazzy 1004
eslint-config-standard 4235
View top-100-dev-dependents.txt
mocha 44731
chai 17944
grunt 17447
should 11882
grunt-contrib-jshint 11466
gulp 8619
istanbul 7374
tape 7313
sinon 6851
grunt-contrib-clean 6807
View index.js
var shell = require("mesh-viewer")()
var mesh
shell.on("viewer-init", function() {
mesh = shell.createMesh(require("bunny"))
})
shell.on("gl-render", function() {
mesh.draw()
})
View index.js
var VText = require('virtual-dom/vnode/vtext')
View WebTorrent Roadmap.md

WebTorrent Roadmap

v1.0.0 Prove the vision

WebTorrent.tv. YouTube for public domain content

  • Make website
  • Find public domain content
  • Host content to ensure it’s always available
  • Need web seed support
View jsonp.js
/**
* Make a JSONP request. Server must support JSONP with callback name specified as a GET
* parameter with the name `callback`. Callback function will be called when data arrives.
* If request times out, callback is called with an Error object.
* @param {string} uri
* @param {Object} params Object of url params. Gets transformed into ?key1=value1&key2=value2
* @param {function} cb
*/
exports.jsonp = function (uri, params, cb) {
cb = once(cb)
View keybase.md

Keybase proof

I hereby claim:

  • I am feross on github.
  • I am feross (https://keybase.io/feross) on keybase.
  • I have a public key whose fingerprint is 943C B6B5 0E7D 0C89 117B D3BF 2561 DA99 9430 52BC

To claim this, I am signing this object:

View toAbsoluteURL.js
/**
* Given a filename for a static resource, returns the resource's absolute
* URL. Supports file paths with or without origin/protocol.
*/
function toAbsoluteURL (url) {
// Handle absolute URLs (with protocol-relative prefix)
// Example: //domain.com/file.png
if (url.search(/^\/\//) != -1) {
return window.location.protocol + url
}
View Respect Rollcall.html
<!-- Respect Rollcall -->
<li><a href="http://www.alistapart.com/articles/">A List Apart &#8212; for website builders</a></li>
<li><a href="http://abstrusegoose.com/">Abstruse Goose &#8212; my favorite comic</a></li>
<li><a href="http://al3x.net/">Alex Payne &#8212; technology rambling</a></li>
<li><a href="http://dashes.com/anil/">Anil Dash &#8212; on culture, apple &amp; design</a></li>
<li><a href="http://weblogs.mozillazine.org/asa/">Asa Dotzler &#8212; on mozilla &amp; software</a></li>
<li><a href="http://www.azarask.in/blog/">Aza Raskin &#8211; on design &amp; firefox</a></li>
<li><a href="http://christophzillgens.com/en/">Christoph Zillgens &#8212; interface design</a></li>
<li><a href="http://cssremix.com/">CSS Remix &#8212; gorgeous designs</a></li>
<li><a href="http://css-tricks.com/">CSS Tricks</a></li>