Skip to content

Instantly share code, notes, and snippets.

View PaulKovalov's full-sized avatar
🐧

Paul PaulKovalov

🐧
  • Google
  • Kharkiv, Ukraine
View GitHub Profile
@drucoder
drucoder / .bashrc
Created June 1, 2016 06:50
Git shell settings
# Show a current active git branch in the shell prompt
export PS1='\t \[\033[01;32m\]\u\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
# Shortcat for the pretty git log. Can be extended with the commit count parameter (last -10, last -35)
alias last='git log --graph --all --oneline --decorate '
@molpopgen
molpopgen / cppbinary.cc
Last active February 20, 2024 06:33
Basics of binary I/O in C++
/*
Example of how to write binary stuff in C++
Illustrates some of the various quirks/annoyances
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>