Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Junaid Anwar Juni4567

🏠
Working from home
Block or report user

Report or block Juni4567

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head><!--[if IE]><script type="text/javascript" src="https://www.blogger.com/static/v1/jsbin/3382421118-ieretrofit.js"></script>
<![endif]-->
<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='//fonts.googleapis.com/css?family=Montserrat:400,700|Roboto:400,700,500,700italic,500italic,400italic|Open+Sans:400,700,700italic,400italic' rel='stylesheet' type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Exo%3A400%2C700%2C800%7CRoboto%3A400%2C700%26subset%3Dlatin%2Clatin-ext&amp;ver=1.0.0' id='fonts-css' media='all' rel='stylesheet' type='text/css'/>
@Juni4567
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 = {"gmail.com": 1, "yahoo.com": 2, "rocketmail.com": 3, "ymail.com": 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
Solution:
1. Add a custom class to the "modal" & name it : "saveState"
@Juni4567
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 http://gamier.blogspot.com/2016/02/how-to-make-wordpress-multi-level.html
*/
.menu-item-has-children > .sub-menu {
display: none;
color:#fff;
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
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 {
width:20px;
height:20px;
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.