Skip to content

Instantly share code, notes, and snippets.

@rolurq
rolurq / battstat
Created April 6, 2026 13:26
Minimalistic zjstatus
#!/usr/bin/env sh
format="{t} {p} {i}"
print_help() {
echo "usage: battstat [options] format"
echo ""
echo "options:"
echo " -h, --help display help information"
echo " -f, --format formatted output of battstat"
@rolurq
rolurq / main.dart
Created August 16, 2019 22:18
Paged scrollable in flutter that doesn't center the edge elements
import 'dart:math';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(