Skip to content

Instantly share code, notes, and snippets.

View elvircrn's full-sized avatar

Elvir Crnčević elvircrn

  • TU Graz
  • Graz/Sarajevo
View GitHub Profile
#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)
@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>
@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);
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <sstream>
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

User credentials:

  • Bibliotekar: username: bibliotekar0 password: aaa

  • Admin: username: admin password: admin

@elvircrn
elvircrn / PV8.cpp
Last active December 30, 2016 00:04
template<class T, class U>
class Node
{
public:
T key;
U value;
std::shared_ptr<Node<T, U>> left, right;
Node() { }
/* Drop all non-system stored procs */
DECLARE @name VARCHAR(128)
DECLARE @SQL VARCHAR(254)
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name])
WHILE @name is not null
BEGIN
SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']'
EXEC (@SQL)
Package Manager console
Default project: InterkativnaMapa.DAL
EntityFramework\Enable-Migrations -Force
EntityFramework\Add-Migration migration
EntityFramework\Update-Database