Skip to content

Instantly share code, notes, and snippets.

View azkadev's full-sized avatar
🤒
Out sick Help Me I'dont Have More Money For Make appl or developer library

AZKA azkadev

🤒
Out sick Help Me I'dont Have More Money For Make appl or developer library
View GitHub Profile
@bradtraversy
bradtraversy / carbon-lang-snippets.md
Last active March 21, 2024 11:31
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

@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 19, 2024 06:53
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
Created October 17, 2020 05:21
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 May 26, 2024 00:13
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

@kenkit
kenkit / default.prop
Created May 25, 2019 14:30
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