Skip to content

Instantly share code, notes, and snippets.

View iftahnaf's full-sized avatar
🤖

Iftach Naftaly iftahnaf

🤖
View GitHub Profile
@eugeneyan
eugeneyan / mandelbrot-mojo.md
Last active April 4, 2024 15:52
Benchmarking Mojo vs. Python on Mandelbrot sets

Mandelbrot in Mojo with Python plots

Not only Mojo is great for writing high-performance code, but it also allows us to leverage huge Python ecosystem of libraries and tools. With seamless Python interoperability, Mojo can use Python for what it's good at, especially GUIs, without sacrificing performance in critical code. Let's take the classic Mandelbrot set algorithm and implement it in Mojo.

We'll introduce a Complex type and use it in our implementation.

Mandelbrot in python

@rfzeg
rfzeg / ros2_gazebo_and_urdf_robot.launch.py
Last active September 9, 2023 09:00
ROS2 launch Gazebo and spawn URDF robot using Execute Process
"""Launch Gazebo server and client with command line arguments."""
"""Spawn robot from URDF file."""
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import ExecuteProcess
from launch.substitutions import LaunchConfiguration
def generate_launch_description():
@JADC362
JADC362 / ROS2DebugVSCode.md
Last active April 29, 2025 16:37
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

@Kukanani
Kukanani / generate_checkerboard.py
Last active May 7, 2025 15:00
A script to generate a gazebo checkerboard. I built this while interning at Diligent Robotics in Summer 2018. The company is awesome, check them out at diligentrobots.com!
#!/usr/bin/env python
#
# Copyright (c) Diligent Robotics, 2018
# Copyright (c) Adam Allevato, 2018
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
@cyberang3l
cyberang3l / How to setup VirtualGL and TurboVNC on Ubuntu.md
Last active April 6, 2025 04:07
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 21, 2025 12:46
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@hostilefork
hostilefork / listener.c
Last active May 16, 2025 03:20
Simple listener and sender for UDP multicast
//
// Simple listener.c program for UDP multicast
//
// Adapted from:
// http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html
//
// Changes:
// * Compiles for Windows as well as Linux
// * Takes the port and group on the command line
//
#!/usr/bin/env python
import os
import sys
import argparse
import logging
import numpy
from planetaryimage.pds3image import PDS3Image
from struct import pack, unpack