Skip to content

Instantly share code, notes, and snippets.

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

Hamayun Aziz TheCodonist

🏠
Working from home
View GitHub Profile
@TheCodonist
TheCodonist / script.js
Last active July 20, 2019 01:09
Owl Carousel Arrows Style
var owl = $('.owl-carousel');
owl.owlCarousel({
items: 5,
loop: true,
margin: 10,
autoplay: true,
autoplayTimeout: 2000,
autoplayHoverPause: true,
nav: true,
navText: ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']
@TheCodonist
TheCodonist / countries.json
Created January 15, 2022 10:51
Countries name with country code in json format
[
{
"code": "+7 840",
"name": "Abkhazia"
},
{
"code": "+93",
"name": "Afghanistan"
},
{
@TheCodonist
TheCodonist / ports.txt
Created January 15, 2022 11:02
ports and their names
0/tcp Reserved
tcpmux 1/tcp TCP Port Service Multiplexer
compressnet 2/tcp Management Utility
compressnet 3/tcp Compression Process
rje 5/tcp Remote Job Entry
echo 7/tcp Echo
discard 9/tcp Discard
systat 11/tcp Active Users
daytime 13/tcp Daytime (RFC 867)
qotd 17/tcp Quote of the Day
$(".scroll-to").on('click', function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function(){
window.location.hash = hash;
});
} // End if
<section class="bg-img" style="--bg-img: url('/path-to-image/image.png')"></section>
<style>
.bg-img{
background-image: var(--bg-img);
background-repeat: no-repeat;
background-position: 0 0;
}
</style>