Skip to content

Instantly share code, notes, and snippets.

@aharshac
aharshac / contracts...1_Storage.sol
Last active June 5, 2021 16:29
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.0+commit.acd334c9.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
@aharshac
aharshac / env_ros2.sh
Created July 23, 2024 18:07
ROS2 source environment with DDS switcher
#!/usr/bin/env bash
use_fastdds=1
source /opt/ros/humble/setup.bash
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash
ws_setup=/home/XXX/ros2_ws/install/setup.bash
if [ -f $ws_setup ]
then