Skip to content

Instantly share code, notes, and snippets.

@domenic
domenic / default-export.md
Last active May 6, 2024 10:56
Default default export = MIO?

Intro

Idea: could we make the "default default export" the module instance object?

So for:

// a.js
export const x = 1;
export const y = 2;
@fogti
fogti / inspect.js
Created January 10, 2022 20:21
nixpkgs/lib/systems with-import cycle
let nixOp = nixBlti.nixOp;
let nixBltiRT = nixBlti.initRtDep(nixRt);
let nixInScope = nixBlti.mkScopeWith();
return async (nixBound) => {
nixBound = await nixBound;
let nix__lib = nixOp._lambdaA2chk(nixBound, "lib");
return (async (nixInScope) =>
(async (nixInScope) =>
(async (nixInScope) =>
nixBlti.PLazy.from(async () => {
@tasdikrahman
tasdikrahman / irssi.md
Last active May 6, 2024 10:54
irssi cheatsheet
<?php get_header(); ?>
<div class="f--container">
<div class="f--row">
<div class="f--col-6">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
// Your loop code
$blocks = parse_blocks( $post->post_content );
$content_markup = '';
@NereaFontecha
NereaFontecha / Lazy Loading
Created May 16, 2023 14:31
Lazy Loading + load Invisible
const lazy = new Blazy({
selector: ".g--lazy-01",
successClass: "g--lazy-01--is-loaded",
offset: 300,
loadInvisible: true,
});
@NereaFontecha
NereaFontecha / i18n - en.json
Last active May 6, 2024 10:54
i18n with Nuxt
{
"heroA": {
"title" : "This is a Test",
"subtitle" : "Consectetur adipiscing, elit netus semper arcu velit, pretium scelerisque pellentesque lacus vehicula."
},
"SEO": {
"title": "EN Meta Title",
"description": "EN Meta Description",
"image": "/OG-Image.jpeg"
}
const mutations = [{
patch: {
id: item.id,
set: {
quantity: "222"
}
}
}]
@rxaviers
rxaviers / gist:7360908
Last active May 6, 2024 10:54
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@NereaFontecha
NereaFontecha / HomeIntro
Last active May 6, 2024 10:53
async await with Clases
import gsap from 'gsap';
import imagesLoaded from 'imagesloaded';
class HomeIntro{
constructor(){
}
async init(){
const imgLoad = imagesLoaded(document);
return await new Promise((resolve, reject)=> {
@doichev-kostia
doichev-kostia / index.js
Last active May 6, 2024 10:53
OpenAPI typescript codegen for ESM imports
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
var e,
t,
n = require("camelcase"),
r = require("json-schema-ref-parser"),
o = require("os"),
a = require("path"),
l = require("fs-extra");
(exports.HttpClient = void 0),