Skip to content

Instantly share code, notes, and snippets.

View Selich's full-sized avatar
🏠
Working from home

Nikola Selic Selich

🏠
Working from home
View GitHub Profile
@Selich
Selich / List.md
Created February 25, 2017 16:34 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@Selich
Selich / best-design-resources.md
Created March 23, 2017 14:39 — forked from MWins/best-design-resources.md
Best Web Design Resources
@Selich
Selich / .vimrc
Created April 11, 2017 11:55 — forked from gosukiwi/.vimrc
.vimrc
" ---------------------- USABILITY CONFIGURATION ----------------------
" Basic and pretty much needed settings to provide a solid base for
" source code editting
" don't make vim compatible with vi
set nocompatible
" turn on syntax highlighting
syntax on
" and show line numbers
@Selich
Selich / README.md
Created May 27, 2017 14:57 — forked from niko/README.md
i3wm & mutt: check mails, blink caps lock led, mark mail workspace as urgent.

This puzzle has 3 parts:

  • A i3wm config that opens mutt in a dedicated workspace. $mod+m will switch to this workspace and will launch mutt, if not already running. Actually it doesn't launch mutt, but…
  • a small wrapper script, which opens a named pipe and then starts mutt.
  • a checkmail script which uses mailcheck(1) to tara check mail. If new mail is available, it blinks the CAPS LOCK led (which I mapped to CTRL anyway) and marks the mutt workspace via a bell.

Additional configuration:

  • set your terminal to mark urgent bells. In Termite the setting is "urgent_on_bell = true".
  • adopt you ~/.mailcheckrc to include paths to your mailboxes. In the simplest case it contains just the line "$(HOME)/Maildir/INBOX"
#include <stdio.h>
#include <stdlib.h>
#define MAX 30
typedef struct {
char* ime[MAX];
char* prezime[MAX];
double avg;
# jan 31
# feb 28
#// mart 31
#// apr 30
#// maj 31
#// jun 30
#// jul 31
# jan 31
# feb 28
#// mart 31
#// apr 30
#// maj 31
#// jun 30
#// jul 31
def print_datum(dan,mesec,godina):
print(str(dan)+"/"+str(mesec)+"/"+str(godina))
def je_prestupna_godina(godina):
if((godina % 4 == 0) and (godina % 100 != 0)) or (godina % 400 == 0):
return True
else:
return False
def dadilja(pv, zv):
ps = int(pv[0] + pv[1])
pm = int(pv[3] + pv[4])
zs = int(zv[0] + zv[1])
zm = int(zv[3] + zv[4])
p = pm + ps * 60
z = zm + zs * 60
kvota = 100 / 60
suma = 0
def dadilja(pv, zv):
ps = int(pv[0] + pv[1])
pm = int(pv[3] + pv[4])
zs = int(zv[0] + zv[1])
zm = int(zv[3] + zv[4])
p = pm + ps * 60
z = zm + zs * 60
kvota = 100 / 60
suma = 0