Skip to content

Instantly share code, notes, and snippets.

View theindianappguy's full-sized avatar
:octocat:
Working...

Sanskar Tiwari theindianappguy

:octocat:
Working...
View GitHub Profile
@theindianappguy
theindianappguy / Code.js
Created December 30, 2023 06:34
GoogleSheets-MailerLite-Integration-Automated-Email-Script
function doPost(request) {
// Open Google Sheet using ID
var sheet = SpreadsheetApp.openById("SHEETID");
var result = { "status": "SUCCESS" };
// try {
// Get all Parameters
var email = request.parameter.email || "";
var source = request?.parameter.source ?? "";
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
---
title: 'Learn how to build a markdown blog'
metaTitle: 'Learn jhow to buil a blog'
metaDesc: 'Learn how to build a markdown blog'
socialImage: image/how-to-convert-canva-to-google-slide.jpeg
date: '2022-04-27'
tags:
- 'blog'
- 'markdown'
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
@theindianappguy
theindianappguy / send-google-forms-response-to-slack.md
Last active August 13, 2021 06:07
Send Google Forms Response to Slack

title: Send Google Forms Response to Slack date: "2021-08-12T10:10:36+0000" template: "post" draft: false slug: "send-google-forms-response-to-slack" category: "Product" tags:

  • "Handwriting"
  • "Learning to write"
@theindianappguy
theindianappguy / Code.gs
Created June 27, 2021 07:31
Get Email Id By Subject
function onOpen() {
var Ui = SpreadsheetApp.getUi()
var menu = Ui.createAddonMenu()
.addItem("Get Message ID", "getMsgIds")
.addToUi()
}
function getMsgIds() {
var MsgSubject = Browser.inputBox("Enter the subject of the Email");
if (!MsgSubject) {
Browser.msgBox("oh oh, seems you forgot to provide the message subject, please try again. I\n\\n\\n\\n Thank you! \\n\\n Regards, l\n G")
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (idna 3.2 (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('idna<3,>=2.5'), {'requests'})
During handling of the above exception, another exception occurred:
import 'package:shared_preferences/shared_preferences.dart';
class SharedPreferenceHelper {
static String userIdKey = "USERIDKEY";
static String userNameKey = "USERNAMEKEY";
static String displayNameKey = "USERDISPLAYNAME";
static String userEmailKey = "USEREMAILKEY";
static String userProfilePicKey = "USERPROFILEKEY";
//save data
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:realtime_chat/helperfun/sharedpref_helper.dart';
import 'package:realtime_chat/services/database.dart';
import 'package:realtime_chat/views/home.dart';
import 'package:shared_preferences/shared_preferences.dart';
class AuthMethods {
final FirebaseAuth auth = FirebaseAuth.instance;
import 'dart:convert';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:recipe_app/models/recipe_model.dart';
import 'package:recipe_app/views/recipe_view.dart';
import 'package:url_launcher/url_launcher.dart';
class Home extends StatefulWidget {