Skip to content

Instantly share code, notes, and snippets.

View fuzzyalej's full-sized avatar
🎯
Focusing

Alejandro Andrés fuzzyalej

🎯
Focusing
View GitHub Profile
@fuzzyalej
fuzzyalej / about.md
Created February 2, 2012 09:28 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@fuzzyalej
fuzzyalej / introrx.md
Last active August 29, 2015 14:10 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@fuzzyalej
fuzzyalej / redact.js
Last active August 29, 2015 14:14 — forked from werelax/redact.js
// utils
var slice = Array.prototype.slice;
var concat = Array.prototype.concat;
var flatten = function(l) { return concat.apply([], l); };
// really stupid DSL
function nodeOrTextNode(n) {
if (typeof(n) === "object")

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

$ = jQuery;
/*
* jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
@fuzzyalej
fuzzyalej / llm.html
Created June 8, 2024 05:02 — forked from edutrul/llm.html
AI WITHOUT EXTERNAL APIS IN THE BROWSER https://eduardotelaya.com
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MLC AI Web LLM</title>
<script type="module">
import { MLCEngine } from "https://esm.run/@mlc-ai/web-llm";
async function initialize() {