Skip to content

Instantly share code, notes, and snippets.

View ShuvoHabib's full-sized avatar

Habib ShuvoHabib

  • Deriv
  • Dhaka, Bangladesh
View GitHub Profile
@gokulkrishh
gokulkrishh / media-query.css
Last active July 16, 2024 10:52
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@rbrahul
rbrahul / LinkedInEndoresmentScript.js
Last active March 30, 2018 20:19
Run this script in your browser console while visiting profile page of any linked user then it will automatically endorse skills :)
var endorsPlusButtons = document.querySelectorAll(".endorsable");
var index = 0;
if (endorsPlusButtons.length) {
var interval = setInterval(() => {
if (index < (endorsPlusButtons.length)) {
setTimeout((indx) => {
endorsPlusButtons[indx].querySelector(".endorse-plus").click();
}, parseInt(Math.random() * 11) * 400, index);
} else {
var GTMid = 'GTM-XXXXX'; // Your GTM id here
var orderId = window.chData.order.carthook_order_id;
var lastChargedLineItems = window.chData.order.last_charged_line_items;
window.dataLayer = window.dataLayer || [];
var transactionProducts = [];
var taxPrice = 0;
var subtotalPrice = 0;
for (var i = 0; i < lastChargedLineItems.length; i++) {
var item = lastChargedLineItems[i];
transactionProducts.push({