Skip to content

Instantly share code, notes, and snippets.

View MasoodGit's full-sized avatar

Mohamed Masood Alam MasoodGit

View GitHub Profile
@MasoodGit
MasoodGit / keybindings.json
Last active February 22, 2024 03:09
vscode vim keybindings and settings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusRightGroup",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.container {
display: flex;
}
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Upload file and read its content and parse textarea">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.ids-section {
display: flex;
@MasoodGit
MasoodGit / index.html
Created April 15, 2018 04:06
JS Bin scrolling , with sticke header // source https://jsbin.com/yibukaq
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="scrolling , with sticke header">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html,body {
font-size: 16px;
npm install --save react react-dom && npm install --save-dev html-webpack-plugin webpack webpack-dev-server babel-{core,loader} babel-preset-{react,es2015,stage-0} style-loader css-loader
@MasoodGit
MasoodGit / scrollbar
Created August 16, 2016 05:02
style scrollbar
.ccScrollBar::-webkit-scrollbar {
height: 18px;
width: 18px;
}
.ccScrollBar::-webkit-scrollbar-button {
background-color: #fff;
background-repeat: no-repeat;
cursor: pointer;
}
1. pact install the_silver_searcher
2. update the vimrc/ctrlp vim plugin
" Make CtrlP use ag for listing the files. Way faster and no useless files.
let g:ctrlp_user_command = 'ag %s -l --hidden --nocolor -g ""'
let g:ctrlp_use_caching = 0
3. Add .agignore similar to .gitignore
@MasoodGit
MasoodGit / Dockerfile
Last active March 11, 2016 05:23
Dockerfile : Jenkins container, with gradle, nodejs, npm and postgres installations
# Dockerfile, installs gradle , nodejs, npm and postgress on jenkins base image
FROM jenkins
MAINTAINER "phoenix"
USER root
# Set proxy if needed
ENV http_proxy ""
ENV https_proxy ""
describe('LogService should log ', function() {
var logger;
var logService;
var LogServiceProviderObj;
beforeEach(module('ccLogService'));
//load the provider
beforeEach(function() {
module(function(LogServiceProvider) {
(function () {
'use strict';
angular.module('remoteMonitorApp').controller('dashboardController', dashboardController);
dashboardController.$inject = ['$rootScope','$http','$state','$scope','$stateParams','deviceListService'];
function dashboardController($rootScope,$http,$state,$scope,$stateParams,deviceListService) {
deviceListService.getDeviceList().then( function(res) {