Skip to content

Instantly share code, notes, and snippets.

@denisx
denisx / gist:a06fc2b518ec152d2ef631674ac87b30
Last active October 1, 2025 14:51
rsbuild: lodash transpiling / aliasing / mirgation to es-toolkit
// tested version
lodash: 4.17
es-toolkit: 1.39
@rsbuild/core: 1.5
// for lodash.pullall -> lodash/pullAll
const lodashAllNames = [
'add',
'after',
'ary',
@denisx
denisx / suggest-css-hash-len.js
Created April 27, 2020 12:35
suggest-css-hash-len.js
/*
at webpack settings:
plugins: [
...plugins,
new SuggestCssHashLen({
instance: MyShortCssClasses,
selectedHashLen: cssHashLen
})
]
@denisx
denisx / tiny.sh
Last active December 12, 2019 07:21
Check images at folder, and optimize them with tinypng.com service
#!/bin/bash
# @author denisx
# find iamges at folder and optimize them
# you need a key from https://tinypng.com/developers
# system dependence: jq, curl
# ---=== settings === ---
# you need a key from https://tinypng.com/developers
dev_key="xxx"
@denisx
denisx / jsdoit.css
Created March 28, 2013 18:11
2013-03-29 1st
body {
padding: 1em 3em;
}
ul, li, h2 {
list-style: none;
margin: 0;
padding: 0;
}
@denisx
denisx / dabblet.css
Created March 28, 2013 18:04
Untitled
body {
padding: 1em 3em;
}
ul, li, h2 {
list-style: none;
margin: 0;
padding: 0;
}
/* global */
.myClockJS {
margin: 2em;
}
.myClockJS b {
display: block;
width: 100%;
font-weight: normal;
}
.myClockJS .inner {
/* *************************************** */
/* font by http://www.dafont.com/digital-7.font */
@font-face {
font-family: 'digital-7';
src: url('http://denisx.ru/fonts/digital-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}