Pebbling Club 🐧🪨

  • Scroll Buddy
    Notes
    Instead of a boring scrollbar thought it would be fun to have an animated stick figure that walks up and down the side of your page when you scroll.
    Unfurl
  • Bookmarklets (and Custom URL Schemes) Are Criminally Underrated | silly business
    Notes
    "Bookmarklets" are an underutilized and frankly little-known feature in Chrome and Firefox (and probably most other browsers too) that allows you to create a bookmark that contains a little bit of JavaScript instead of a link to a web page.
    Unfurl
  • Belle Nuit Montage - A web component called tiny-ps
    Notes
    What if you could add PostScript code just into your HTML code and forget about all the JavasScript? What if you could configure it just with the properties of the tag, having your PostScript graphics at the size as you want and at the format you want? Like an canvas tag, but without JavaScript. Like an SVG tag, but programmable.
    Unfurl
  • Importing a frontend Javascript library without a build system
    Notes
    I like writing Javascript without a build system and for the millionth time yesterday I ran into a problem where I needed to figure out how to import a Javascript library in my code without using a build system, and it took FOREVER to figure out how to import it because the library’s setup instructions assume that you’re using a build system.
    Feed
    Unfurl
  • Why would anyone need JavaScript generator functions?
    Notes
    Generators are an odd part of the JavaScript language. And some people find them a bit of a puzzle. You might be a successful developer for decades and never feel the need to reach for them. Which raises the question, if you can go so long without ever needing them, what are they good for?
    Feed
    Unfurl
  • I didn't know you could use sibling parameters as default values in functions. | Alex MacArthur
    Notes
    Default parameter values have been in JavaScript for a while. But I just found out you can use sibling parameters as the default values themselves.
    Feed
    Unfurl
  • sindresorhus/p-queue: Promise queue with concurrency control
    Notes
    Promise queue with concurrency control. Contribute to sindresorhus/p-queue development by creating an account on GitHub.
    Unfurl
  • dahlia/fedify: ActivityPub server framework in TypeScript
    Notes
    ActivityPub server framework in TypeScript. Contribute to dahlia/fedify development by creating an account on GitHub.
    Unfurl
  • Don't Sleep on AbortController - kettanaito.com
    Notes
    If you are creating libraries in JavaScript where aborting or cancelling operations makes sense, I highly encourage you to look no further than the AbortController API. It's incredible! And if you are building applications, you can utilize the abort controller to a great effect when you need to cancel requests, remove event listeners, abort streams, or teach any logic to be abortable.
    Unfurl
  • What Is React.js?
    Notes
    Highlight:Its proponents can be weird, it takes itself far too seriously, and its documentation is interminable. These are some ways that some people have described Christianity. This video is about React.js. A video from Webbed Briefs
    Unfurl
  • wasmati: You should write your WebAssembly in TypeScript - ZKSECURITY
    Notes
    The solution is wasmati, a TypeScript library to write Wasm at the instruction level. The wasmati API looks exactly like Webassembly text format (WAT).
    Unfurl
  • Server-side rendering (SSR) – Lit
    Notes
    Lit supports server-side rendering through the Lit SSR package. Lit SSR renders Lit components and templates to static HTML markup in non-browser JavaScript environments like Node. It works without fully emulating the browser's DOM, and takes advantage of Lit's declarative template format to enable fast performance, achieve low time-to-first-byte, and support streaming.
    Feed
    Unfurl
  • Creating a 2D physics engine from scratch in Javascript – AILEF
    Notes
    In this article, we will implement a toy 2d physics engine that supports basic forces, collisions and constraints (joints) for circle-shaped objects.
    Feed
    Embed
    Unfurl
  • Testing native ES modules using Mocha and esm. – Alex Gibson
    Notes
    Turns out, many JavaScript testing frameworks don’t yet support native ES modules out of the box, and I was struggling to find an easy solution that didn’t require transpiling my code back to ES5.
    Unfurl
  • Tangle: a JavaScript library for reactive documents
    Notes
    Tangle is a JavaScript library for creating reactive documents. Your readers can interactively explore possibilities, play with parameters, and see the document update immediately. Tangle is super-simple and easy to learn.
    Unfurl
  • Back to Basics: Running Promises in Serial with Array.reduce()
    Notes
    const tasks = getTaskArray();return tasks.reduce((promiseChain, currentTask) => { return promiseChain.then(chainResults => currentTask.then(currentResult => [ ...chainResults, currentResult ] ) );}, Promise.resolve([])).then(arrayOfResults => { // Do something with all results});
    Unfurl
  • Underrun – Making Of - PhobosLab
    Notes
    I participated in this year's js13kGames, a JavaScript game development competition with a file size limit of 13kb, including code, assets and everything else. My entry was Underrun, a twin stick shooter using WebGL.
    Feed
    Unfurl
  • Generative Artistry
    Unfurl
  • Six nifty ES6 tricks
    Notes
    const Storage = Sup => class extends Sup { save(database) { ¡¡¡ } }; const Validation = Sup => class extends Sup { validate(schema) { ¡¡¡ } }; You can use them to compose a class Employee as follows. class Person { ¡¡¡ } class Employee extends Storage(Validation(Person)) { ¡¡¡ }
    Feed
    Unfurl
  • AppHub
    Notes
    Use git push to instantly update React Native apps in production.
    Unfurl
  • Neon: Node + Rust = 💖
    Notes
    I’ve been working on Neon, a set of APIs and tools for making it super easy to write native Node modules in Rust.
    Feed
    Unfurl
  • Aerotwist - FLIP Your Animations
    Notes
    What we’re trying and do is to turn animations on their head (flip, see? Gosh darnit, I’m so funneh) and, instead of animating “straight ahead” and potentially doing expensive calculations on every single frame we precalculate the animation dynamically and let it play out cheaply.
    Feed
    Unfurl
  • ES6 Promises in Depth
    Notes
    Promises are a very involved paradigm, so we’ll take it slow.
    Feed
    Unfurl
  • SqueakJS by Bert Freudenberg
    Notes
    SqueakJS executes Squeak in a web page without a plugin. It is a fully capable virtual machine implemented in pure JavaScript running unmodified Squeak images. Squeak is a modern implementation of Smalltalk, the original dynamic object-oriented programming environment. It runs bit-identically on virtually any platform, and now in the web browser, too.
    Unfurl
  • How to Use npm as a Build Tool
    Notes
    I suggested we should start uing npm instead. npm's scripts directive can do everything that these build tools can, more succinctly, more elegantly, with less package dependencies and less maintainence overhead.
    Unfurl
  • Ronin - Toolkit for building shining CLI programs with Node.js
    Notes
    Automatically builds commands based on project structure
    Unfurl
  • ES6 Modules, AMD and CommonJS — Medium
    Notes
    This article shares some techniques and tools for building web apps using future friendly ES6 module syntax.
    Unfurl
  • Dexie.js - Minimalistic IndexedDB Wrapper
    Notes
    A Minimalistic Wrapper for IndexedDB
    Unfurl
  • Seth Ladd's Blog: Minification is not enough, you need tree shaking
    Notes
    I believe that web developers need a better workflow that automates tree shaking, dead code elimination, minification, and more. Stop caring how big a library is, and instead let a tool or build step produce the smallest output possible for you, ideally by tree shaking the application.
    Feed
    Unfurl
  • 10 things I learned from reading (and writing) the PouchDB source
    Notes
    The fact that PouchDB works at all is a tiny miracle.
    Feed
    Unfurl
  • Six reasons to define constructors with only one argument
    Feed
    Unfurl
  • <x-gif>
    Unfurl
  • Crush & Lovely — 7 Patterns to Refactor JavaScript Applications: Value Objects
    Notes
    Here at Crush & Lovely, this post is a core reference for all Rails developers on how to separate concerns, write modular, concise and expressive code, and make testing exceedingly simple.
    Unfurl
  • Microjs: Fantastic Micro-Frameworks and Micro-Libraries for Fun and Profit!
    Feed
    Unfurl
  • wavepot
    Notes
    Nifty music making with JavaScript and web audio
    Unfurl
  • Unheap - A tidy repository of jQuery plugins
    Notes
    A tidy repository of jQuery plugins
    Unfurl
  • OCRAD.js: Pure Javascript OCR via Emscripten – Blog
    Notes
    The idea of the extension was kind of simple and also kind of magical: a browser extension that allowed users to highlight, copy, and paste text from any image as if it were plain text. Of course the implementation is a bit difficult and actually relies on the advent of a number of newfangled technologies.
    Unfurl
  • Announcing Elasticsearch.js For Node.js And The Browser | Blog | Elasticsearch
    Notes
    A few months ago we released client libraries for PHP, Ruby, Python, and Perl and today we add another to the family, JavaScript! This new client runs in Node.js and modern browsers, and aims to solve the same problems that the others do
    Unfurl
  • BackboneORM
    Notes
    A polystore ORM for Node.js and the browser
    Unfurl
  • Chosen: A jQuery Plugin by Harvest to Tame Unwieldy Select Boxes
    Notes
    Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.
    Unfurl
  • Sir Trevor JS | Made by Many
    Notes
    Sir trevor content is made up of blocks. By default Sir Trevor ships with the following block types, but you can easily add your own
    Unfurl
  • dat-gui - A lightweight controller library for JavaScript. - Google Project Hosting
    Notes
    A lightweight graphical user interface for changing variables in JavaScript.
    Unfurl
  • requestAnimationFrame is not your [logic's] friend | Chandler Prall
    Notes
    I think requestAnimationFrame is a great addition to Javascript, but these two points need some emphasizing: Use requestAnimationFrame for animations / screen updates Do not use it for anything else (especially game logic!)
    Unfurl
  • Should JavaScript devs build real things? | Technology Treason
    Notes
    If you’re a web developer and you’re looking at playing with hardware, don’t shy away from the electronics. There are no magic bits of hardware that will give you full control of the physical world in a box – though there are plenty of attempts at this. Develop your knowledge the same way you do with the web – by reading, tinkering, playing with code and breaking stuff. Go join a hackerspace, get some learning materials, visit electronics shops, pull things apart and learn how they work.
    Unfurl
  • KineticJS HTML5 Canvas Framework
    Notes
    KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more. Try it out!
    Unfurl
  • HTML5 Hub | Build a JavaScript Particle System in 200 Lines
    Notes
    In less than 200 lines of vanilla JavaScript you will have a flexible particle system with multiple emitters and fields that repel and attract thousands of particles.
    Unfurl
  • Adding Comments to JSON - FADE FADE
    Notes
    "api_host" : "The hostname of your API server. You may also specify the port.", "api_host" : "hodorhodor.com",
    Unfurl
  • Concurrency in JavaScript | TypedArray.org
    Notes
    Web Workers are now broadly available in most browsers even on mobile (caniuse.com stats for Web Workers) and give you the power of concurrency from within JavaScript. It will allow you to move expensive computations to other threads, to permit best responsive programming, and ideally open the doors in the future to true parallelization in JavaScript. Let’s have a look at the reasons why you may be interested into leveraging Web Workers.
    Feed
    Embed
    Unfurl
  • Enough with the JavaScript already!
    Notes
    After consulting with several companies on performance related issues, it became clear that one of the biggest performance issues facing websites today is the sheer amount of JavaScript needed to ...
    Embed
    Unfurl
  • Referencing DOM from JS: there must be a DRYer, safer way
    Notes
    It bothers me when I realize that I'm relying on CSS class names in my JS
    Feed
    Unfurl