Skip to content

Instantly share code, notes, and snippets.

View Nidal-Bakir's full-sized avatar
🏹
segmentation violation

Nidal Bakir Nidal-Bakir

🏹
segmentation violation
View GitHub Profile
@Nidal-Bakir
Nidal-Bakir / name_tagging.dart
Created December 6, 2023 21:23 — forked from slightfoot/name_tagging.dart
Name Tagging during input example - by Simon Lightfoot - Humpday Q&A :: 6th December 2023 #Flutter #Dart - https://www.youtube.com/watch?v=TaHhT1QdYUM
// MIT License
//
// Copyright (c) 2023 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Nidal-Bakir
Nidal-Bakir / chat_message_render_box.dart
Created April 19, 2023 08:47 — forked from craiglabenz/chat_message_render_box.dart
Demonstrates a custom RenderObject that draws chat messages like WhatsApp, where the `sentAt` timestamp is tucked into the last line if it fits
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@Nidal-Bakir
Nidal-Bakir / main.dart
Last active January 13, 2023 10:22 — forked from slightfoot/main.dart
A base line to code an overlay in flutter. like search overlay on Text-Field
// MIT License
//
// Copyright (c) 2023 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Nidal-Bakir
Nidal-Bakir / a_logger.dart
Last active March 9, 2025 13:36
Flutter console logger with colors
// MIT License
//
// Copyright (c) 2025 Nidal Bakir
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Nidal-Bakir
Nidal-Bakir / either.dart
Last active March 9, 2025 13:37
Either class in dart to hold Either Left or Right value. useful for holding data OR error.
// MIT License
//
// Copyright (c) 2025 Nidal Bakir
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Nidal-Bakir
Nidal-Bakir / Enforce_conventional_Commit_Messages_locally.md
Last active October 16, 2022 20:51
Enforce Conventional-Commit messages locally

Enforce Conventional-Commit messages locally

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@Nidal-Bakir
Nidal-Bakir / conventional_commit_messages.md
Last active October 16, 2022 11:54 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@Nidal-Bakir
Nidal-Bakir / makeBootable.sh
Last active March 9, 2025 13:37
Make bootable USB using dd command
#!/bin/sh
# MIT License
#
# Copyright (c) 2025 Nidal Bakir
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@Nidal-Bakir
Nidal-Bakir / remove_old_revisions_of_snaps.sh
Last active March 9, 2025 13:38
Removes old revisions of snaps
#!/bin/bash
# MIT License
#
# Copyright (c) 2025 Nidal Bakir
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@Nidal-Bakir
Nidal-Bakir / geonames-all-cities-with-a-population-1000
Last active March 9, 2025 13:38
geonames all cities with a population 1000
# MIT License
#
# Copyright (c) 2025 Nidal Bakir
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: