Skip to content

Instantly share code, notes, and snippets.

View mumairofficial's full-sized avatar
Trying to invent useful tools

Muhammad Umair mumairofficial

Trying to invent useful tools
  • Lahore, Pakistain
View GitHub Profile
mumairofficial / gist:458a00955af78250e53c91b0a99f19cc
Created January 18, 2017 19:10
Balsamiq Mockups keys for mac
View gist:458a00955af78250e53c91b0a99f19cc
Name : Sam
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw==
Username: personal
View gist:7671044778ad5c92a8c2b2826d48332d
// Place your settings in this file to overwrite the default settings
// E
"editor.cursorStyle": "line",
"editor.codeLens": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 12,
"editor.formatOnPaste": false,
"editor.formatOnType": true,
View [FIX] Python error while create react app from cli
### Run following as administrator
npm --add-python-to-path='true' --debug install --global windows-build-tools
View course-outline.js
// dom links
var sections = new Set(document.getElementsByClassName('videos__segment'));
// programming
var Section = {
heading: "",
chapters: []
View gist:406fa2cdc91d9a708a87947519655393

Use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install PHP 7.0 version.

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.0

Now use the following command to check installed php version on your system.

View logic.js
// initially hide the graph
$('#dates').submit(function(e) {
var headers = ['Year', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
model = headerModel(headers),
plot = null,
mumairofficial / loading-placeholder.css
Created July 3, 2018 12:32
image or text loading linear animation
View loading-placeholder.css
.shot-loading.shot {
background: #E7E7E7;
width: 100%;
padding-top: 77%;
border-radius: 2px;
-moz-animation: 1s linear infinite;
-webkit-animation: 1s linear infinite;
animation: loading-glow 1s linear infinite;
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
mumairofficial / show-hide-menubar.js
Created July 17, 2018 10:43
Show/Hide menu bar on scroll HTML, Js, JQuery
View show-hide-menubar.js
var scrollValue = 0;
$(window).on('scroll', () => {
$('.navbar').toggleClass('hide', $(window).scrollTop() > scrollValue);
scrollValue = $(window).scrollTop();
mumairofficial / number-to-words.pipe.ts
Created August 3, 2018 21:11 — forked from itsTeknas/number-to-words.pipe.ts
An Angular 4 pipe to convert a number to an equivalent words representation for Indian Rupees.
View number-to-words.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
name: 'numberToWords'
export class NumberToWordsPipe implements PipeTransform {
a = [
'one ',
View data.js
module.exports = [
id: 1,
label: 'one',
child: [
id: 2,
label: 'two'