Skip to content

Instantly share code, notes, and snippets.

View rahulbhadani's full-sized avatar
🎯
Panda boy! 🍫

Rahul Bhadani rahulbhadani

🎯
Panda boy! 🍫
View GitHub Profile
@rahulbhadani
rahulbhadani / rosbag_record.py
Created November 7, 2019 11:45 — forked from marco-tranzatto/rosbag_record.py
Rosbag record from python node
#!/usr/bin/env python
import rospy
import subprocess
import os
import signal
class RosbagRecord:
def __init__(self):
@AFAgarap
AFAgarap / autoencoder-full.py
Last active August 17, 2024 08:17
TensorFlow 2.0 implementation for a vanilla autoencoder. Link to tutorial: https://medium.com/@abien.agarap/implementing-an-autoencoder-in-tensorflow-2-0-5e86126e9f7
"""TensorFlow 2.0 implementation of vanilla Autoencoder."""
import numpy as np
import tensorflow as tf
__author__ = "Abien Fred Agarap"
np.random.seed(1)
tf.random.set_seed(1)
batch_size = 128
epochs = 10
@CorradoLanera
CorradoLanera / 01-pkgsetup-renv.R
Last active July 10, 2022 18:32
Script to start the development of R projects/packages in a reproducible way
#' ---
#' title: "Setup (with `{renv}`)"
#' author: "Corrado Lanera"
#' date: "`r date()`"
#' output:
#' html_document:
#' toc: true
#' toc_float: true
#' keep_md: true
#' ---
@jackm
jackm / can-packages-and-tools.md
Last active April 12, 2025 11:22
Collection of CAN bus packages and tools

Collection of CAN bus packages and tools

This document assumes the use of Linux as the chosen development platform. Items in bold are highly recommended.

It is recommended to use SocketCAN when working with CAN bus on Linux. It is supported by the Linux kernel mainline and follows the Linux interface model, allowing you to use other network tools such as Wireshark. This also allows the creation of virtual CAN interfaces where no physical hardware is required to simulate or replay CAN messages.

@jakgel
jakgel / DeepSpace.md
Last active September 28, 2021 12:30
Some notes about marrying astrophysics with modern machine learning with particular focus on deep learning.

Machine learning and deep learning in astronomy: from 2016, sparse after after mid 2019

Machine learning has a long history in astronomy, but since around 2016 deep learning (DL) only got traction. Here I summarise effords and publications of DL in the astrophysical community.

The main field of ML applications in astrophysics is object classification. With source counts now ranging into the 107-108 for most surveys, machine learning is put to use to allow the classification of a large number of sources which would otherwise need an infeasible amount of manpower:

@marco-tranzatto
marco-tranzatto / rosbag_record.py
Created April 28, 2017 10:41
Rosbag record from python node
#!/usr/bin/env python
import rospy
import subprocess
import os
import signal
class RosbagRecord:
def __init__(self):
@alexlee-gk
alexlee-gk / configure_cuda_p70.md
Last active March 10, 2025 15:31
Use integrated graphics for display and NVIDIA GPU for CUDA on Ubuntu 14.04

This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)

A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.

@awesomebytes
awesomebytes / debian_from_ros_pkg.md
Last active February 18, 2025 13:59
How to create a debian from a ROS package
@floriandotpy
floriandotpy / optimize.py
Created October 5, 2016 08:46
Hyperopt script for Tensorflow model
#!/usr/bin/python3
from cnn import cnn
import hyperopt
def objective(args):
params = cnn.ExperimentParameters()