Skip to content

Instantly share code, notes, and snippets.

View azkadev's full-sized avatar
🏠
Working from home

AZKA AXELION GIBRAN - AzkaDev | Engineer azkadev

🏠
Working from home
View GitHub Profile
@bradtraversy
bradtraversy / carbon-lang-snippets.md
Last active July 1, 2025 19:11
Google Carbon Snippets

Google Carbon Snippets

This file contains some of the basic syntax for Google Carbon as well as some info and how to get set up.

The official repo and docs can be found at: https://github.com/carbon-language/carbon-lang

Carbon is an experimental successor to C++. It is NOT ready for production and will not be for a while. This crash course and document were made to explore some of the basic syntax.

How to get started

@morrolinux
morrolinux / linux-full-desktop-container.md
Last active June 16, 2025 15:30
Run a full linux desktop in a container

In the following gist I'm going to guide you through the process of installing and booting an entire linux distribution with full desktop environment just like you would have with a classical VM, but with much better performance and much worse isolation :)

The reason why I did this was mainly because it's cool, but also to test new distros with decent graphics performance without actually booting them on my PC.

If you "try this at home" just keep in mind a container is not as secure as a VM, and some of the option we're going to explore will weaken container isolation from "a bit risky" to "totally unsafe" depending on what you choose.

Also, we're going to use systemd-nspawn for containers as it's probably the best fit for our use case and can also boot any linux partition without needing to prepare an apposite container image.

Less go!

@davidgomesdev
davidgomesdev / main.dart
Last active August 27, 2022 11:42
Isolate bidirectional communication example
import 'dart:isolate';
void main() async {
final recvPort = ReceivePort();
await Isolate.spawn<SendPort>((port) {
print('[2] received port');
final recvMsg = ReceivePort();
@aspose-com-gists
aspose-com-gists / convert-full-image-page-to-text.cpp
Last active October 8, 2022 09:50
Image to Text Conversion | Aspose.OCR for C++
std::string png_image_path = "sample.png";
// Prepare buffer for result (in symbols, len_byte = length * sizeof(wchar_t))
const size_t leng = 4096;
wchar_t bffr[leng] = { 0 };
// Perform OCR on Page
size_t size = aspose::ocr::page(png_image_path.c_str(), bffr, leng);
//Print result
@maheshj01
maheshj01 / darkmode.dart
Last active March 29, 2024 13:55
Sample code showing dark mode transition similar to Telegram in flutter with circular transition. Blog Post: https://maheshmnj.medium.com/leveraging-clippaths-in-flutter-a5f34c795ae5
class DarkTransition extends StatefulWidget {
const DarkTransition(
{required this.childBuilder,
Key? key,
this.offset = Offset.zero,
this.themeController,
this.radius,
this.duration = const Duration(milliseconds: 400),
this.isDark = false})
: super(key: key);
@ityonemo
ityonemo / test.md
Last active July 24, 2025 22:32
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@devhammed
devhammed / countries.json
Last active July 29, 2025 04:29
Countries with Name, Dial Code, Emoji Flag and ISO Code
[
{
"name": "Afghanistan",
"flag": "🇦🇫",
"code": "AF",
"dial_code": "+93"
},
{
"name": "Åland Islands",
"flag": "🇦🇽",
@ggerganov
ggerganov / iss-docking.js
Created May 16, 2020 12:30
Automatic ISS Docking in Javascript
// Auto-pilot for docking with the International Space Station
//
// The program uses Artificial Intelligence and Decision Trees (i.e. basic kinematics and a bunch of if statements)
// to perform docking with the ISS from any starting position.
//
// To use it:
// - open the SpaceX simulation website: https://iss-sim.spacex.com/
// - open the Developer's console and paste the contents of this file
//
// Demo: https://youtu.be/jWQQH2_UGLw
@tallero
tallero / default.prop
Created April 23, 2020 18:37
HOW TO: Modify boot.img to allow usb debugging from recovery adb
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.sys.usb.config=adb
ro.adb.secure=0
@EduApps-CDG
EduApps-CDG / Building Linux Kernel With Android.md
Last active July 25, 2025 23:37
A guide of How to Build Linux Kernel using android

How to Build Linux Kernel with Android

This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.

Minimum Requiriments:

  • 4GB of free space (2GB if delete the temp files)
  • Android 5.0

Preparing the Environment

You need to install Termux