Skip to content

Instantly share code, notes, and snippets.

View nawedx's full-sized avatar
🏠
Working from home

Nawed Imroze nawedx

🏠
Working from home
  • Hyderabad, India
View GitHub Profile
@nawedx
nawedx / cool-git-aliases.md
Created April 20, 2025 14:44
Cool Git Log Aliases and Commands

Cool Git Log Aliases and Commands

Aliases for colorized form of git log --oneline with commit's time in relative format and actual format.

alias glr='git log --oneline --format="%C(auto)%h %C(green)%ad%Creset %s" --date=relative'
alias gla='git log --graph --pretty=format:"%C(yellow)%h%Creset - %C(bold blue)%an%Creset, %C(green)%ad%Creset : %s" --date=format:"%Y-%m-%d %H:%M:%S"'

Sample output for glr

a1b2c3d 2 hours ago Fix login page styling
@nawedx
nawedx / traveling_salesman.cpp
Last active April 3, 2018 10:28 — forked from jgcoded/traveling_salesman.cpp
Traveling Salesman solution in c++ - dynamic programming solution with O(n * 2^n).
#include <vector>
#include <iostream>
#include <limits.h>
using namespace std;
/**
\brief Given a complete, undirected, weighted graph in the form of an adjacency matrix,
returns the smallest tour that visits all nodes and starts and ends at the same
node. This dynamic programming solution runs in O(n * 2^n).
@nawedx
nawedx / index.html
Last active August 5, 2017 19:03
Tribute to Grace Hopper
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Tribute to Amazing Hopper</title>
</head>
<body>
<div class="wh">
<div class="ls">