Skip to content

Instantly share code, notes, and snippets.

View szerintedmi's full-sized avatar

Peter Petrovics szerintedmi

  • Equal Experts
  • London, UK
View GitHub Profile
@szerintedmi
szerintedmi / statusline-battery.sh
Last active September 2, 2026 08:31
Claude Code custom statusline with context bar, git status, and lines of code
#!/bin/bash
#
# Claude Code Custom Statusline
# ==============================
# Shows model name, effort level, context usage, git status, and lines changed.
#
# Example output:
# Fable 5.1 ▌▌▌▌▌ ⛁⛁⛁⛁⛁⛶⛶⛶⛶⛶⛶⛶⛶⛶⛶⛶ 67% │ ~/project [main ↑2 ●3] │ +127 -45
#
# Features:
@duluca
duluca / npm-scripts-for-docker.md
Last active August 5, 2026 05:48
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

How to Use

npm i -g mrm-task-npm-docker
npx mrm npm-docker

Contribute

Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker

@mairh
mairh / Redux-Form-Semantic-UI-React
Last active August 12, 2021 23:03
Semantic-UI-React form validation using redux-form example
// semantic-ui-form.js
import React from 'react';
import PropTypes from 'prop-types';
import { Form, Input } from 'semantic-ui-react';
export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) {
function handleChange (e, { value }) {
return input.onChange(value);
}
@ethers
ethers / itmap.sol
Last active May 19, 2022 02:29 — forked from Arachnid/itmap.sol
Solidity iterable map
library itmap {
struct entry {
// Equal to the index of the key of this item in keys, plus 1.
uint keyIndex;
uint value;
}
struct itmap {
mapping(uint => entry) data;
uint[] keys;