Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Daniel Kurniadi iqDF

🎯
Focusing
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.
# https://github.com/bhilburn/powerlevel9k/blob/next/segments/context/README.md
DEFAULT_USER='iqDF'
# Disable P9K warning
P9K_IGNORE_VAR_WARNING=true
# Set P9KGT background color, either 'light' or 'dark' (this should match the GNOME Terminal's theme).
P9KGT_BACKGROUND='dark'
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
iqDF / README-Template.md
Created Jul 2, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

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.

Prerequisites