Skip to content

Instantly share code, notes, and snippets.

View FQ400's full-sized avatar
🤯
inspired.

Carsten Lamm FQ400

🤯
inspired.
View GitHub Profile
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@paulirish
paulirish / bling.js
Last active February 18, 2025 14:08
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@rendall
rendall / InfernoJSX.d.ts
Last active October 11, 2017 21:20
Inferno JSX Typescript type definitions
// This gist is deprecated. The repo for this file is now here:
// https://github.com/rendall/inferno-jsx-type-definitions/blob/master/InfernoJSX.d.ts
// This is lightly modified version of the React typedefs with 'React' replaced by 'InfernoJSX'.
// Use it as you would any @type library, and it will stop that annoying typescript / jsx error
// when you're using Typescript with Inferno.
// Please do let me know of any problems or issues: https://github.com/rendall
// Inferno's VNode is compatible with JSX.Element, so you can do something like this: