Skip to content

Instantly share code, notes, and snippets.

Working from home

Junaid Anwar Juni4567

Working from home
View GitHub Profile
View technews blogger template.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' expr:dir='data:blog.languageDirection' xmlns='' xmlns:b='' xmlns:data='' xmlns:expr=''>
<head><!--[if IE]><script type="text/javascript" src=""></script>
<meta charset='utf-8'/>
<meta content='IE=edge' http-equiv='X-UA-Compatible'/>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<link href='//,700|Roboto:400,700,500,700italic,500italic,400italic|Open+Sans:400,700,700italic,400italic' rel='stylesheet' type='text/css'/>
<link href='//;ver=1.0.0' id='fonts-css' media='all' rel='stylesheet' type='text/css'/>
Juni4567 / Javascript Sort an array based on importance given as an object
Created Mar 23, 2019
How to sort emails array with JavaScript based on given importance object as number
View Javascript Sort an array based on importance given as an object
function emailSort(a, b) {
const importance = {"": 1, "": 2, "": 3, "": 4};
const importanceOfA = importance[a.split('@')[1]];
const importanceOfB = importance[b.split('@')[1]];
if (importanceOfA && !importanceOfB) return -1;
if (importanceOfB && !importanceOfA) return 1;
if (importanceOfA && importanceOfB) return importanceOfA - importanceOfB;
View Bootstrap open another modal popup from one modal popup and on closing the second modal show the previous one
1. Open first popup
2. click a button inside that popup
- save the current popup somewhere and close it
- show the login popup
- on clicking close button on login popup show the previous popup back
1. Add a custom class to the "modal" & name it : "saveState"
Juni4567 / wp-multi-level-navigation.css
Last active Feb 12, 2016
A simple css code that makes your wordpress navigation to support multilevel navigation with dropdown sub menus
View wp-multi-level-navigation.css
/* This is just a simple block of code but if you want to see more explaination
pleae visit my blog at
.menu-item-has-children > .sub-menu {
display: none;
position: relative;
z-index: 100;
View Things that Excites me most and least
Things that excites me most!
1. Make Zap templates to help showcase the thousands of ways customers can use Zapier
2. Work with the product team to develop a new feature based on feedback from customers
3. Respond to Zapier fans on Twitter, Facebook, Reddit, and other 3rd party sites
4. Work with people to figure out if Zapier can solve a particular workflow or integration challenge they have
5. Find and recruit teammates for the support team
Things that excites me Least!
Write and maintain thousands of pages of help documentation
Juni4567 / icons.less
Last active Dec 11, 2015
This is a small file that uses less css for loop to create multiple icons style
View icons.less
@icons: 'cardboard','chevron-left','chevron-right','expand','image','mail','pencil','qoute-left','mouse-pointer';
.icon {
display: inline-block;
background-repeat: no-repeat;
background-size: contain;
vertical-align: middle;
.for(@icons); .-each(@icon) {
You can’t perform that action at this time.