Skip to content

Instantly share code, notes, and snippets.

View elvircrn's full-sized avatar

Elvir Crnčević elvircrn

  • Red Hat
  • Brno/Graz/Sarajevo
View GitHub Profile

User credentials:

  • Bibliotekar: username: bibliotekar0 password: aaa

  • Admin: username: admin password: admin

Select bracket content, f(v%y would do this:
f(: Move to the next ( on the current line
v: Start a visual selection
%: Select the text up to and including the next bracket
y: Yank the text
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <sstream>
@elvircrn
elvircrn / splajn
Last active December 25, 2016 16:56
SplineInterpolator::SplineInterpolator(std::vector<GMath::Point2D> data) : cache(0)
{
DataSizeCheck(data);
sort(data.begin(), data.end());
for (auto& elem : data)
{
x.push_back(elem.first);
y.push_back(elem.second);
@elvircrn
elvircrn / lol
Created December 21, 2016 04:43
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <sstream>
#include <stdio.h>
int main(void)
{
int i, n;
scanf ("%d", &n);
for (i = 1; i <= n; i++)
{
if (i % 3 != 0 && i % 5 != 0)