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
  • Toronto, ON
View GitHub Profile
@mumairofficial
mumairofficial / gist:458a00955af78250e53c91b0a99f19cc
Created January 18, 2017 19:10
Balsamiq Mockups keys for mac
2.2.x
Name : Sam
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw==
3.3.x
Username: personal
eJzzzU/OLi0odswsqilILSrOz0vMqbFEAjXONYY1fu6ufgA/CA4X
// 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,
### Run following as administrator
npm --add-python-to-path='true' --debug install --global windows-build-tools
// dom links
var sections = new Set(document.getElementsByClassName('videos__segment'));
// programming
var Section = {
heading: "",
chapters: []
}

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.

// initially hide the graph
$('#graph').hide();
$('#dates').submit(function(e) {
e.preventDefault();
});
var headers = ['Year', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
model = headerModel(headers),
plot = null,
@mumairofficial
mumairofficial / loading-placeholder.css
Created July 3, 2018 12:32
image or text loading linear animation
.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
mumairofficial / show-hide-menubar.js
Created July 17, 2018 10:43
Show/Hide menu bar on scroll HTML, Js, JQuery
var scrollValue = 0;
$(window).on('scroll', () => {
$('.navbar').toggleClass('hide', $(window).scrollTop() > scrollValue);
scrollValue = $(window).scrollTop();
})
@mumairofficial
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.
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'numberToWords'
})
export class NumberToWordsPipe implements PipeTransform {
a = [
'',
'one ',
module.exports = [
{
id: 1,
label: 'one',
child: [
{
id: 2,
label: 'two'
},
{