CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
| brew update && brew upgrade --greedy && brew upgrade --cask --greedy && brew cleanup && rbenv install $(rbenv install -l | sed -n '/^[[:space:]]*[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}[[:space:]]*$/ h;${g;p;}') -s && gem update --system && gem update && nvm install --lts && nvm use --lts && nvm alias default node && npm update -g && npm install -g npm@latest && npm install -g corepack@latest && corepack install -g yarn@latest pnpm@latest && sdk update && pip install --upgrade pip |
| package com.dipendrasharma.myapplication | |
| import android.app.ActivityManager | |
| import android.content.Context | |
| import android.content.pm.ConfigurationInfo | |
| fun getOpenGLESVersion(context: Context): String { | |
| val activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager | |
| val configurationInfo: ConfigurationInfo = activityManager.deviceConfigurationInfo |
CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
| import 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'multi_drag_gestures.dart'; | |
| typedef GestureMultiDragUpdateCallback = void Function( | |
| Offset initialPosition, Offset latestPosition, double delta); | |
| typedef GestureMultiDragEndCallback = void Function( | |
| Offset initialPosition, Offset latestPosition, double delta); | |
| typedef GestureMultiDragCancelCallback = void Function(); |
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| version: "2" | |
| services: | |
| zookeeper: | |
| image: docker.io/bitnami/zookeeper:3 | |
| ports: | |
| - "2181:2181" | |
| volumes: | |
| - "zookeeper_data:/bitnami" | |
| environment: |
| class AppInitializer extends StatefulWidget { | |
| final Future Function() onAppInit; | |
| final Widget Function(BuildContext) splashBuilder; | |
| final Widget Function(BuildContext) appBuilder; | |
| const AppInitializer( | |
| {super.key, | |
| required this.splashBuilder, | |
| required this.appBuilder, |
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| typedef Selector<T, V> = V Function(T value); | |
| typedef WidgetReBuilder<T> = Widget Function( | |
| BuildContext context, T value, Widget? child); | |
| class ReBuilder<T> extends StatefulWidget { | |
| final WidgetReBuilder<T> builder; | |
| final List<Selector<T, dynamic>> selectors; |
| import 'dart:async'; | |
| class Debouncer { | |
| final Duration delay; | |
| Timer? _timer; | |
| Debouncer({required this.delay}); | |
| Future<T> run<T>(Future<T> Function() action) async { | |
| if (_timer != null) { |