Skip to content

Instantly share code, notes, and snippets.


Daniel Kurniadi iqDF

View GitHub Profile
View dijkstra.go
// minHeap is used in Dijkstra algorithm
// to ensure the node with minimum distance
// from source is popped first, hence the
// nearest path to target will be discovered
// first.
// Each node is represented by tuple of 2 ints:
// - nodeID: unique node identifier
// - dist: distance from source node
type minHeap [][2]int // nodeID, dist
View .p9gkt.zshrc
# Set username to consider a default context, which by default will not be shown.
# Disable P9K warning
# Set P9KGT background color, either 'light' or 'dark' (this should match the GNOME Terminal's theme).
if [[ $P9KGT_BACKGROUND != 'light' ]] && [[ $P9KGT_BACKGROUND != 'dark' ]]
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export XDG_CONFIG_HOME=/home/iqdf/.config
# TERM color
export TERM="xterm-256color"
# Path to your oh-my-zsh installation.
export ZSH="/home/iqdf/.oh-my-zsh"
View .tmux.conf
# TMUX Configuration
#1: remap command prefix C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
#2: split panes using | and -
bind \ split-window -h
bind - split-window -v
iqDF /
Created Jul 2, 2018 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.