Skip to content

Instantly share code, notes, and snippets.

View PandarinDev's full-sized avatar

Krisztián Szabó PandarinDev

  • HTEC Group
  • Hungary
View GitHub Profile
@PandarinDev
PandarinDev / fc-list_grep_overpass
Created January 16, 2018 21:58
The result of `fc-list | grep Overpass`.
/usr/share/fonts/OTF/overpass-bold-italic.otf: Overpass:style=Bold Italic
/usr/share/fonts/OTF/overpass-thin.otf: Overpass,Overpass Thin:style=Thin,Regular
/usr/share/fonts/OTF/overpass-extralight.otf: Overpass,Overpass ExtraLight:style=ExtraLight,Regular
/usr/share/fonts/OTF/overpass-heavy.otf: Overpass,Overpass Heavy:style=Heavy,Regular
/usr/share/fonts/OTF/overpass-regular.otf: Overpass:style=Regular
/usr/share/fonts/OTF/overpass-semibold-italic.otf: Overpass,Overpass SemiBold:style=SemiBold Italic,Italic
/usr/share/fonts/OTF/overpass-extralight-italic.otf: Overpass,Overpass ExtraLight:style=ExtraLight Italic,Italic
/usr/share/fonts/OTF/overpass-mono-bold.otf: Overpass Mono:style=Bold
/usr/share/fonts/OTF/overpass-bold.otf: Overpass:style=Bold
/usr/share/fonts/OTF/overpass-mono-light.otf: Overpass Mono,Overpass Mono Light:style=Light,Regular
@PandarinDev
PandarinDev / fonts.conf
Created January 16, 2018 21:57
Fontconfig
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<edit mode="prepend" name="family"><string>Overpass SemiBold</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="assign" binding="same"><string>Overpass SemiBold</string></edit>
</match>
@PandarinDev
PandarinDev / cached_sort.cpp
Created April 16, 2017 14:23
Cached std::sort
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <vector>
struct Foo {
int value;
bool operator==(const Foo& other) const {
return value == other.value;