Skip to content

Instantly share code, notes, and snippets.

@nullvariable
nullvariable / example.css
Last active October 20, 2019 13:12
Create an image cap for Bootstrap 4 that aligns on the left side of a card
.card-img-left {
border-bottom-left-radius: calc(.25rem - 1px);
border-top-left-radius: calc(.25rem - 1px);
float: left;
padding-right: 1em;
margin-bottom: -1.25em;
}
@mfilej
mfilej / queens.pl
Created June 27, 2009 08:44
8 queens problem solver in prolog
solution([]).
solution([X/Y | Others]) :-
solution(Others),
member(Y, [1, 2, 3, 4, 5, 6, 7, 8]),
noattack(X/Y, Others).
noattack(_, []).