Skip to content

Instantly share code, notes, and snippets.

View SmBe19's full-sized avatar

Benjamin Schmid SmBe19

View GitHub Profile
@SmBe19
SmBe19 / leetcode_template.cpp
Last active March 25, 2021 16:51
Leetcode template
#define FOR(i,n) for(int i = 0; i < (n); i++)
#define FORS(i,s,n) for(int i = (s); i < (n); i++)
#define ALL(x) x.begin(), x.end()
template <typename T> using v=vector<T>;
using pi=pair<int, int>;
using vi=v<int>;
using vvi=v<vi>;
using vp=v<pi>;
using vvp=v<vp>;
constexpr int INF = numeric_limits<int>::max();

Keybase proof

I hereby claim:

  • I am smbe19 on github.
  • I am smbe19 (https://keybase.io/smbe19) on keybase.
  • I have a public key ASBPCOrahf3KWW2uHipCqAUifRCwOTaszvb5S11kHLSqmgo

To claim this, I am signing this object:

@SmBe19
SmBe19 / new
Last active October 30, 2019 21:12
SPOJ C++ Template
#!/bin/sh
if [ -z $1 ]; then
echo Usage $0 filename
exit 1
fi
SOURCE=$(dirname $0)
cp $SOURCE/template.cpp ./$1
@SmBe19
SmBe19 / cVimrc
Last active July 14, 2019 17:12
cVimrc for cvim chrome extension
set smoothscroll
let blacklists = ["http://localhost/*"]
let searchengine eleo = "https://dict.leo.org/englisch-deutsch/%s"
let searchengine fleo = "https://dict.leo.org/französisch-deutsch/%s"
site 'https://todoist.com/*' {
unmap q
unmap p
unmap d
unmap /