Skip to content

Instantly share code, notes, and snippets.

@cl0v
cl0v / delete_git_submodule.md
Created November 12, 2024 10:33 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@cl0v
cl0v / macos-app-icon.md
Created October 14, 2024 20:13 — forked from ansarizafar/macos-app-icon.md
How to create an .icns macOS app icon
@cl0v
cl0v / main.dart
Created November 14, 2023 22:08
env01
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
A Python script that utilizes the OpenAI API to generate Python code based on user prompts, execute the generated code, check for errors, and suggest new features while ensuring their correctness.