Skip to content

Instantly share code, notes, and snippets.

View simonecid's full-sized avatar

Simone Bologna simonecid

  • Taurus SA
  • Geneve, Switzerland
View GitHub Profile
#include<iostream>
#include <assert.h>
template<class TValue, int vecSize, int offset, int range>
class UpperBoundWrapper
{
public:
static int binary_upper_bound(TValue values[vecSize], TValue x);
};
@simonecid
simonecid / moveAddons.sh
Last active May 1, 2020 14:17 — forked from rafaelrpinto/moveAddons.sh
Script that moves incorrect Killing Floor 1 mutators to the correct folder on Linux (fix perk progress reset issue)
#!/bin/bash
# Folder where the incorrect downloaded mutators are
CACHE_FOLDER=~/.killingfloor/Cache
# Folder where they should be after renamed
STEAM_SYSTEM_FOLDER=~/.local/share/Steam/steamapps/common/KillingFloor/System/
pushd $CACHE_FOLDER
@simonecid
simonecid / Vaccinbot.py
Last active May 6, 2021 13:15
Vaccinbot.py
#!/usr/bin/python3
import requests
import json
import dateutil.parser
from datetime import datetime, timezone
import tabulate
import geopy.distance
from operator import itemgetter
[core]
editor = /usr/bin/vim
pager=less -x4
# color {{{
[color]
branch = auto
diff = auto
status = auto