Skip to content

Instantly share code, notes, and snippets.

View Rubanrubi's full-sized avatar
:fishsticks:
Building

Ruban Kumar Rubanrubi

:fishsticks:
Building
View GitHub Profile
@Rubanrubi
Rubanrubi / gist:c708b3b5725da983cbfd079796fb488d
Created February 4, 2026 05:11
Angular 21 Best Practices and Coding Standards
# Angular 21 Best Practices and Coding Standards
## Scope
- Treat the versioned Angular docs (v21.angular.dev) as the source of truth for Angular-specific guidance.
- Use the Angular Style Guide for naming, file structure, and class organization.
- Use the Google TypeScript Style Guide for TypeScript conventions.
## Naming and File Structure (Angular Style Guide)
- Use hyphenated file names; match the file name to the primary symbol in the file.
- Use `feature.type.ts` naming (for example, `hero-list.component.ts`).
**Exponential Growth**
The following contract uses integer-based fixed-point math to calculate exponential growth in token price as tokens are purchased.
This will help the price increase with each token, rather than returning a static value.
pragma solidity ^0.8.0;
contract BondingCurve {
uint256 public constant SCALE = 1e18; // Scale factor for fixed-point math (18 decimals)
uint256 public initialPrice = 27000000000000; // Scaled initial price (2.7e-8 * 1e18)

Arenabit NFT Marketplace

NFT Marketplace" is an innovative digital platform designed to facilitate the buying, selling, and trading of non-fungible tokens (NFTs). Leveraging blockchain technology, this marketplace provides artists, creators, and collectors with a decentralized space to showcase and exchange unique digital assets, ranging from digital art and collectibles to virtual real estate and beyond. With a focus on security, transparency, and user experience, NFT Marketplace aims to revolutionize the way digital assets are bought, sold, and valued in the burgeoning NFT ecosystem.

Configuration & Dependencies

We are using zKfair Blockchain

@Rubanrubi
Rubanrubi / gist:94dfae38aba0145dc395968ef502e2ca
Created February 10, 2023 06:15
Zoho CRM Integeration in contact form using angular
Here is an example of how you can integrate a contact form with Zoho CRM in Angular:
Create a form in your Angular application to collect the data you want to send to Zoho CRM.
In Zoho CRM, go to the "Developer Space" and create an API key. This key will be used to authenticate your API calls to Zoho CRM.
In your Angular application, you'll need to make an HTTP POST request to the Zoho CRM API endpoint to send the form data. You can use the HttpClient module in Angular to do this. Here's an example of the code:
import { HttpClient } from '@angular/common/http';