Skip to content

Instantly share code, notes, and snippets.

View MdKutubuddinSardar's full-sized avatar

Md Kutubuddin Sardar MdKutubuddinSardar

View GitHub Profile
@MdKutubuddinSardar
MdKutubuddinSardar / check_leap_year.c
Created August 19, 2018 06:27
C program to check leap year
/*C program to check leap year */
/* Author : Md Kutubuddin Sardar*/
/*Date: 19.08.2018*/
#include <stdio.h>
int main()
{
int y;
printf("Enter a year to check if it is a leap year y = ");
@MdKutubuddinSardar
MdKutubuddinSardar / Add_n_numbers_using_recursion.c
Created August 19, 2018 06:23
Add n numbers using recursion in C
/*Add n numbers using recursion*/
/* Author : Md Kutubuddin Sardar*/
/*Date : 19.08.2018*/
#include <stdio.h>
long calculateSum(int [], int);
int main()
{
@MdKutubuddinSardar
MdKutubuddinSardar / Add_n_numbers_using_array.c
Created August 19, 2018 06:21
Add n numbers using array in C
/*C programming code using array*/
/* Author : Md Kutubuddin Sardar*/
/*Date : 19.08.2018*/
#include <stdio.h>
int main()
{
int n, sum = 0, c, array[100];
printf("Enter the number of integers you want to add : ");
scanf("%d", &n);
@MdKutubuddinSardar
MdKutubuddinSardar / Add_n_numbers.c
Last active August 19, 2018 06:18
Add n numbers in C programming
/*C program to add n numbers */
/* Author : Md Kutubuddin Sardar/
/*Date : 19.08.2018*/
#include <stdio.h>
int main()
{
int n, sum = 0, c, value;
printf("Enter the number of integers you want to add\n");
@MdKutubuddinSardar
MdKutubuddinSardar / form-submission-handler.js
Created August 12, 2018 17:12
Javascript File to Submit Html Form
(function() {
function validEmail(email) {
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
return re.test(email);
}
function validateHuman(honeypot) {
if (honeypot) { //if hidden form filled up
console.log("Robot Detected!");
return true;
@MdKutubuddinSardar
MdKutubuddinSardar / Signupform.html
Created March 15, 2018 02:50
How To Create a Sign Up Form
<!DOCTYPE html>
<html>
<style>
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box}
/* Full-width input fields */
input[type=text], input[type=password] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
@MdKutubuddinSardar
MdKutubuddinSardar / index.html
Created March 11, 2018 09:24
uploading file to Google Drive without authorization
<html>
<head>
<title>Sample script for uploading file to Google Drive without authorization</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.js"></script>
</head>
<body>
<form action="https://script.google.com/macros/s/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/exec" enctype="multipart/form-data" id="form" method="post" onsubmit="return checkSize(2097152)">
Upload a file
@MdKutubuddinSardar
MdKutubuddinSardar / README.md
Created March 11, 2018 02:23
Send-HTML-form-email-via-google-script-without-server

Send Email from a Static HTML Form using Google Apps Mail!

A Step-by-Step Example of using an HTML Form to send a "Contact Us" Message via Email without a Backend Server using a Google Script - No PHP, Python, Ruby, Java, Node.js etc.

See a working example here: https://dwyl.github.io/html-form-send-email-via-google-script-without-server/

Warning: Google's API has limits on how many emails it can send in a day. This may vary on your Google account, see the limits here. We recommend implementing this tutorial through Part 3, since the data will always be added to the spreadsheet first, then emailed if possible.

@MdKutubuddinSardar
MdKutubuddinSardar / html-form-send-email-via-google-script-without-server
Created March 11, 2018 01:57
html-form-send-email-via-google-script-without-server
https://github.com/dwyl/html-form-send-email-via-google-script-without-server
@MdKutubuddinSardar
MdKutubuddinSardar / Find and delete the following lines.html
Created March 10, 2018 05:06
How to remove "Read More" and show full post instead in Blogger
<p>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/
></div>
<script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);</script>
<div class='readmore-wrap'>
<a class='readmore' expr:href='data:post.url'>Read More</a>
</div>