Skip to content

Instantly share code, notes, and snippets.

View theharithsa's full-sized avatar
🥦
Uncertainity Prospects

Harithsa, Vishruth theharithsa

🥦
Uncertainity Prospects
View GitHub Profile
@theharithsa
theharithsa / app.js
Created December 21, 2023 07:49
Script to send an email by parsing the received JSON from the internet or locally.
const express = require('express');
const nodemailer = require('nodemailer');
const app = express();
app.use(express.json());
app.post('/send-email', (req, res) => {
const { toEmail, subject, jsonData } = req.body;
console.log("Received JSON data:", req.body.jsonData);
const htmlContent = generateHtmlTable(jsonData);
@theharithsa
theharithsa / index.html
Last active October 18, 2020 08:42
Introduction To Web - Part One (HTML Basics 1)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web Development Series</title>
</head>
<body>
<header>
<h1>What is HTML?</h1>
@theharithsa
theharithsa / androidCodeSnippets.java
Created November 7, 2019 06:53
List of small snippet codes that can save your day
// Intent to Close the Application
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
startActivity(intent);
// Switching Fragment with Zero BackStyack
FragmentManager fm = getActivity().getSupportFragmentManager();
for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {
fm.popBackStack();
}