Skip to content

Instantly share code, notes, and snippets.

View devded's full-sized avatar
🎯
Focusing

Dedar Alam devded

🎯
Focusing
  • Dhaka, Bagladesh
View GitHub Profile
@devded
devded / Firebase.md
Created April 12, 2021 21:37 — forked from victorbruce/Firebase.md
My journey with Firebase so far. Cheatsheet to serve as a quick reference when developing firebase applications

Firebase

Set up firebase and Deploy

  • Head over to firebase. Sign in and create a project.

  • Copy your project settings under Firebase SDK snippet into your local project (ie your project's api key, auth domain, databaseURL, etc)

  • Create a file (firebase.js or config.js Any name that suits you is fine)

@devded
devded / date type
Created January 6, 2022 09:54 — forked from aaggour/date type
date type
<input type=date step=7 min=2014-09-08> - Monday only
<input type=time min=9:00 max=17:00 step=900> - 15m increments
<input type=week step=2 min=2014-W30>
@devded
devded / GetTotalContributinonsInGitlab.md
Last active January 1, 2024 16:25 — forked from qerdcv/GetTotalContributinonsInGitlab.md
Get total count of contributions in gitlab for current year

Just paste it into the browser console, and it will count contributions for you.

const currentYear = String(new Date().getFullYear());
const targetElement = document.querySelector(".col-12.calendar-block.gl-my-3");

if (targetElement) {
  const userContribElements = Array.from(document.querySelectorAll(".user-contrib-cell"));

  const totalContribution = userContribElements.reduce((acc, el) => {