Skip to content

Instantly share code, notes, and snippets.

🤹‍♂
Learning and working

Md_ZubairAhmed M-ZubairAhmed

🤹‍♂
Learning and working
Block or report user

Report or block M-ZubairAhmed

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 verified-icon-vector.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View search-icon-vector.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View exclamation-icon-vector.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View freshchat.js
function initFreshChat() {
window.fcWidget.init({
token: '953ac1a4-76e2-4175-961c-931c4cad1ddd',
host: 'https://wchat.freshchat.com',
})
}
function initialize(i, t) {
var e
i.getElementById(t)
View postcss.config.js
/* eslint-disable global-require */
module.exports = { map: false, plugins: [ // Transfer @import rule by inlining content, e.g. @import 'normalize.css' // https://github.com/postcss/postcss-import require('postcss-import')(), // W3C variables, e.g. :root { --color: red; } div { background: var(--color); } // https://github.com/postcss/postcss-custom-properties require('postcss-custom-properties')(), // W3C CSS Custom Media Queries, e.g. @custom-media --small-viewport (max-width: 30em); // https://github.com/postcss/postcss-custom-media require('postcss-custom-media')(), // CSS4 Media Queries, e.g. @media screen and (width >= 500px) and (width <= 1200px) { } // https://github.com/postcss/postcss-media-minmax require('postcss-media-minmax')(), // W3C CSS Custom Selectors, e.g. @custom-selector :--heading h1, h2, h3, h4, h5, h6; // https://github.com/postcss/postcss-custom-selectors require('postcss-custom-selectors')(), // W3C calc() function
@M-ZubairAhmed
M-ZubairAhmed / prettier.config.js
Created May 2, 2019
My default personal opiniated prettier config
View prettier.config.js
module.exports = {
endOfLine: 'lf',
semi: false,
singleQuote: true,
tabWidth: 2,
printWidth: 80,
trailingComma: 'all',
jsxBracketSameLine: true,
arrowParens: 'always',
}
@M-ZubairAhmed
M-ZubairAhmed / translation-strings-to-ids.js
Created Jul 10, 2018
Simple node program that normalizes string of react int to be used as ids in translation json file
View translation-strings-to-ids.js
const readline = require('readline');
var ncp = require('copy-paste');
const inputMessage = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
// Promt to enter the string eg.
// This ain't your username, is it?
@M-ZubairAhmed
M-ZubairAhmed / routerSwitch.js
Created May 23, 2018
Client side subdomain switching route
View routerSwitch.js
import React from 'react'
import ReactDOM from 'react-dom'
import ClientApp from './client-app'
import CustomerApp from './customer-app'
const extractSubdomain = host => {
const endSubdomain = host.indexOf('.localhost')
if (endSubdomain !== -1) {
return host.slice(0, endSubdomain)
}
@M-ZubairAhmed
M-ZubairAhmed / mustApps.md
Last active May 9, 2018
Apps i use on my Linux
View mustApps.md

List of must apps i use in my Linux PC

Sorted from top to down in order of installation

Package managers

You can’t perform that action at this time.