Skip to content

Instantly share code, notes, and snippets.

View machalvan's full-sized avatar
💻
Working hard

Marcus Hansson machalvan

💻
Working hard
View GitHub Profile
@machalvan
machalvan / prompt.sh
Last active June 22, 2020 16:06
A fancy bash prompt in colors
# A fancy bash prompt in colors
#
# Shows user, host, current directory and git branch (if any).
# Ex. halvan@arch > ~/Code/my-project > master >
#
# The  character is a right pointing arrow simular to ▶,
# replace it with your character of choice if it does not
# display as an arrow.
# Colors
@machalvan
machalvan / main.var
Last active December 13, 2018 18:46
Solutions to Advent of Code 2018, day 1, part 1 and 2 in VAR
// Solutions to Advent of Code 2018, day 1, part 1 and 2
// https://adventofcode.com/2018/day/1
//
// Written in VAR
// https://github.com/machalvan/VAR
//
// Approximate running time for large input: 5 min
var input_values 0 // Initialize variables
var counter 0