Skip to content

Instantly share code, notes, and snippets.

View barelyhuman's full-sized avatar

Siddharth Gelera (reaper) barelyhuman

View GitHub Profile
barelyhuman /
Last active March 13, 2024 22:08
Preact Ecosystem, missing list

But does Preact has/supports/can do this?

Comment down things you think React has and preact doesn't and we'll have a definitive list of things that people think preact lacks and things that need to be worked on.

You can follow the Public Board

Docker Deploy

Simple setup to use SSH as the way to transfer the docker image instead of using a registry

  • Certificate Management
  • Upload Inconsistencies
barelyhuman / extensions.json
Last active January 16, 2024 11:12
Simple but Minimal
"id": "adpyke.codesnap",
"name": "codesnap",
"publisher": "adpyke",
"version": "1.3.4"
"id": "antfu.icons-carbon",
"name": "icons-carbon",
barelyhuman / zoned-date-fns.js
Last active November 3, 2023 08:28
zoned date-fns-utils
// import { addDays, subDays } from 'npm:date-fns'; // uncomment for deno
import {addDays,subDays} from "date-fns"
const getCurrentZone = () => Intl?.DateTimeFormat()?.resolvedOptions().timeZone
export function getZonedWeekday(date, zone = getCurrentZone()) {
const weekdayString = new Date(date).toLocaleString('en-GB', {
timeZone: zone,
weekday: 'long',
barelyhuman / *
Last active September 29, 2023 22:02
simple callback based store


Simple store to write code based on value changes

const s = store({ data: 1 });

s.onChange((v) => {
 console.log({ v });
barelyhuman / *
Created August 13, 2023 11:10
Wrapper around react to write Vue options like components

It's loosely inspired by Vue options and takes the separation of concerns a bit more seriously. It is decently typed to satify the basic DX, if you've got improvements, please let me know.


The snippet depends on

  • lodash.isequal
  • @vue/reactivity
npm i lodash.isequal @vue/reactivity
barelyhuman / Subliminal-Theme-Flat-mod-vscode.json
Last active May 12, 2023 11:07
Subliminal Theme Flat mod
"editor.suggestOnTriggerCharacters": false,
"editor.lightbulb.enabled": false,
"editor.selectionHighlight": true,
"editor.occurrencesHighlight": true,
"editor.formatOnSave": true,
"editor.fontFamily": "Hermit",
"editor.fontSize": 13.5,
"editor.formatOnPaste": false,
"editor.tabSize": 2,
"font_face":"JetBrains Mono",
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
"theme": "ayu-dark.sublime-theme",
# Install dependencies
RUN apk add --no-cache git curl bash build-base openssl openssh-client libffi-dev libxml2-dev libxslt-dev libgcrypt-dev libressl-dev readline-dev yaml-dev zlib-dev ncurses-dev gdbm-dev pcre-dev mariadb-dev sqlite-dev
# Install rbenv