Skip to content

Instantly share code, notes, and snippets.

View crazilazi's full-sized avatar
🎯
Focusing

Rajeev Ranjan crazilazi

🎯
Focusing
View GitHub Profile
use starknet::ContractAddress;
// ANCHOR: interface
#[starknet::interface]
trait IERC20<TContractState> {
fn get_name(self: @TContractState) -> felt252;
fn get_symbol(self: @TContractState) -> felt252;
fn get_decimals(self: @TContractState) -> u8;
fn get_total_supply(self: @TContractState) -> felt252;
fn balance_of(self: @TContractState, account: ContractAddress) -> felt252;
@crazilazi
crazilazi / contracts...ChitChat.sol
Created October 29, 2023 01:53
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.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/NonblockingLzApp.sol";
contract ChitChat is NonblockingLzApp {
string public message = "Initial message";
constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) Ownable() {}
function _nonblockingLzReceive(
@crazilazi
crazilazi / PowerShell Customization.md
Created November 30, 2022 06:25 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@crazilazi
crazilazi / .block
Created December 16, 2020 06:23 — forked from fighterfish/.block
Force-Directed Graph drilldown
license: mit