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
; ubuntu@ubuntu:~/Desktop/usr/bin$ ./nasm -f elf hello.asm
; ubuntu@ubuntu:~/Desktop/usr/bin$ gcc -o hello hello.o
; ubuntu@ubuntu:~/Desktop/usr/bin$ ./hello
; a=5, eax=7
extern printf
SECTION .data ; Data section, initialized variables
a: dd 5 ; int a=5;
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Full screen mode on start
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"run the command immediately when starting vim
autocmd VimEnter * call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)
" activate/deactivate full screen with function key <F11>
map <F11> <Esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<CR>
filetype on
@elvircrn
elvircrn / test.js
Last active November 20, 2017 15:28
// Kod za validaciju ide ovdje
function testEmail() {
// Fakultetski email validation tests
console.assert(Validacija.validirajFakultetski('[email protected]') === true);
console.assert(Validacija.validirajFakultetski('elvircrnetf.unsa.ba') === false);
console.assert(Validacija.validirajFakultetski('[email protected]') === false);
console.assert(Validacija.validirajFakultetski('@etf.unsa') === false);
console.assert(Validacija.validirajFakultetski('@etf.unsa.ba') === false);
console.assert(Validacija.validirajFakultetski('') === false);
#include <vector>
#include <limits>
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <utility>
#include <iostream>
#include <fstream>
inline dec(int x) {

Level 1

disp (a) -> display a

a.' -> transponovano

a' -> transponovano konjugovano

feval(X, Y, f);

# Level 1
disp (a) -> display a
a.' -> transponovano
a' -> transponovano konjugovano
feval(X, Y, f);
Package Manager console
Default project: InterkativnaMapa.DAL
EntityFramework\Enable-Migrations -Force
EntityFramework\Add-Migration migration
EntityFramework\Update-Database
/* 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)
@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() { }