Skip to content

Instantly share code, notes, and snippets.

View MinhasKamal's full-sized avatar

Minhas Kamal MinhasKamal

View GitHub Profile
>> init a git branch
git checkout devel/multimedia/master
git branch
git fetch origin devel/multimedia/master
git reset --hard FETCH_HEAD
git pull --rebase
git status
git clean -f
git clean -d -f
git config core.filemode false
@MinhasKamal
MinhasKamal / commit-message-examples.md
Last active August 1, 2018 12:35
tags for commit message for better understandability

one simple tag may mean a lot...

Commit Message Tags

  • [feat]/[feat-impl]: New Feature Implementation - implementing new feature/functionality
  • [enhnc]: Enhancement - adding more functionality to existing feature
  • [req]/[req-chng]: Requirement Change - introducing requirement change, doing something in a different way
  • [fix]/[bug-fix]: Bug Fix - patch fixing bug/issue/defect
  • [refact]: Refactoring - code refactoring, like- name, indentation, formatting, spacing, code-block removal, etc.
  • [config]: Changing Configuration - changing build confuration, or external dependencies, or libraries, etc.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Egami</title>
</head>
<body>
@MinhasKamal
MinhasKamal / JSEditor.link
Created January 6, 2018 14:07
Simply paste in your url box, and start coding!
body{
filter: invert(100%) !important;
background-color: rgb(0,20,40) !important;
}
DATA_ROOT=/home/root/directory/path/
for root in */ ; do
for dir in "$root"* ; do
i=0
for file in "$dir"/* ; do
printf "$DATA_ROOT$file $i\n" >> rawimagelabel.txt
#echo "$(pwd)/$file $i"
[
{
'repeat:100': {
_id: '{{objectId()}}',
title: '{{lorem(4, "words")}}',
description: '{{lorem(1, "paragraphs")}}',
type: '{{random(["apartment"], ["office space"], ["single room"])}}',
city: '{{city()}}',
location: '{{street()}}',
country_state: '{{state()}}',
#include <stdio.h>
#include <mpi.h>
void printHostName();
int main(int argc, char **argv) {
int rank;
int number[] = {10, 20, 30, 40, 50, 60};
int slave = 0;
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int main(int argc, char** argv) {
int myrank, nprocs;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &myrank);