Skip to content

Instantly share code, notes, and snippets.

View ibratoev's full-sized avatar

Ivaylo Bratoev ibratoev

View GitHub Profile
@ibratoev
ibratoev / useful_cmds.txt
Created June 29, 2016 18:33
Useful commands
# Great way to check disk usage!
du -ahd2 | gsort -h
{
"definitions": {
"User": {
"properties": {
"email": {
"description": "email for user",
"type": "string"
},
"name": {
"description": "name for user",
len_NM(L, N, M):- len_NM(L, 0, N, M).
lenght([],0).
lenght([_|T],R):- lenght(T, R1),R is R1+1.
len_NM([], X, N, _):- X >= N.
len_NM([A|L], X, N, M):-
lenght(A, AL),
AL >= M,