Skip to content

Instantly share code, notes, and snippets.

View tamalchowdhury's full-sized avatar
🔍
exploring open source

Tamal Chowdhury tamalchowdhury

🔍
exploring open source
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello World Website</title>
</head>
<body>
<h1>Hello World</h1>
<p>My name is Tamal</p>
</body>
<html>
...
</html>
<html>
<head>
...
</head>
<body>
...
</body>
</html>
@tamalchowdhury
tamalchowdhury / index.html
Last active March 6, 2018 18:55
Ep 1: (Mar 6, 2018) HTML/CSS Crash Course
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>7</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="header">
@tamalchowdhury
tamalchowdhury / style.css
Created March 23, 2018 13:03
Left Align The Navigation Menu Links in Divi Theme
@media only screen and (min-width: 981px) {
#et-top-navigation {
float: left;
}
}
@tamalchowdhury
tamalchowdhury / index.html
Created April 21, 2018 16:15
Meta description tag
<head>
<meta name="description" content="This is just another example of a generic meta description. It will show up on google search results.">
</head>
@tamalchowdhury
tamalchowdhury / script.js
Created April 25, 2018 08:48
Bkash Calc JS
$(document).ready(function() {
var btn = $("input[name=submit]");
$(btn).click(function() {
$("#result").hide(0);
$("#result1").hide(0);
var $b = $("input[name=bkashamount]").val();
var $cashout = function() {
if ($b > 0) {
return Math.floor($b - $b * 1.85/100);
}
@tamalchowdhury
tamalchowdhury / index.html
Created April 25, 2018 08:51
Bkash calc html
<!DOCTYPE HTML>
<head>
<title>Bkash Agent Cash Out Calculator</title>
<meta property="og:title" content="Bkash Agent Cash Out Calculator" />
<meta property="og:description" content="This tool helps you figure out how much you have to pay when cashing out through a Bkash agent so that you don't have to pay extra." />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.bkashcalc.tk/" />
<meta property="og:image" content="http://www.bkashcalc.tk/images/bkash-calc.png" />
<link type="text/css" rel="stylesheet" href="style.css"/>
<script type="text/javascript" language="javascript" src="jquery-1.10.2.js"></script>
@tamalchowdhury
tamalchowdhury / infinityGauntlet.js
Last active August 1, 2019 16:33
infinity gauntlet
const infinityGauntlet = {
powerStone: {
equipped: true,
info: 'Controls all of the power in the universe. It can be used to augment or inhibit any force.',
use() {
if(this.equipped) {
return 'Using super strength to crash the moon and throw it over to the Avengers!!';
} else {
return 'No power stone!'
}
const multerOptions = {
storege: multer.memoryStorage(),
fileFilter(req, file, next) {
const isPhoto = file.mimetype.startsWith('image/');
if(isPhoto) {
next(null, true)
} else {
next({message: 'You must supply an image'}, false)
}
}