Skip to content

Instantly share code, notes, and snippets.

View ratul16's full-sized avatar
🎯
Focusing

Hasibul Alam Ratul ratul16

🎯
Focusing
View GitHub Profile
//Html
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<button type="button" class="btn btn-primary" id="pdfDownloader">Download</button>
<div id="printDiv">
@ratul16
ratul16 / gist:1abf383e1f80575fc5aca508e72590cd
Created September 1, 2020 07:36 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
{
"blocks": [
{
"type": "header",
"data": {
"text": "Editor.js",
"level": 2
}
},
{
@ratul16
ratul16 / docker-help.md
Created October 15, 2020 04:01 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

// Input Field formatter
function seprator(input) {
let nums = input.value.replace(/,/g, '');
if(!nums || nums.endsWith('.')) return;
input.value = parseFloat(nums).toLocaleString();
}
<input type="text" id="inputSep" oninput="seprator(this)" placeholder="123,456,789"/>
// Formatter function
let url = window.location.href
let arr = url.split("/");
console.log(arr)
@ratul16
ratul16 / readTime.js
Last active April 6, 2022 05:51
Medium like read time indicator
readTime() {
var minutes = 0;
const contentText = JSON.stringify(this.page);
const words = contentText.split(' ').length;
const wordsPerMinute = 200;
minutes = Math.ceil(words / wordsPerMinute);
console.log(minutes);
return minutes;
},
@ratul16
ratul16 / sendEmail.js
Last active April 6, 2022 05:50
Email js Function for Vue js
sendEmail() {
emailjs
.send(
"<SERVICE_ID>",
"<TEMPLATE_ID>",
{
subject: this.subject,
user_name: this.name,
user_email: this.email,
message: this.message,
@ratul16
ratul16 / copyToclipboard.vue
Last active September 9, 2024 07:15
Social share button and copyToclipboard with nuxt js
<template>
<v-card id="create">
<v-speed-dial
v-model="fab"
:top="top"
:bottom="bottom"
:right="right"
:left="left"
:direction="direction"
:open-on-hover="hover"
@ratul16
ratul16 / Circle Image with css
Last active April 29, 2021 17:05
All Size Image circle maker with css only
img {
object-fit: cover;
width: 180px;
height: 180px;
border-radius: 50%;
}