Skip to content

Instantly share code, notes, and snippets.

View beganovich's full-sized avatar

Benjamin Beganović beganovich

View GitHub Profile
@beganovich
beganovich / repeating-header-and-footer-layout.html
Created October 29, 2021 13:49
Repeating header & footer layout
@beganovich
beganovich / flatpak-cursor-fix
Created January 3, 2021 12:04
Flatpak cursor fix
flatpak --user override --filesystem=/home/$USER/.icons/:ro
flatpak --user override --filesystem=/usr/share/icons/:ro
function FindProxyForURL (url, host) {
if (dnsDomainIs(host, '.wip')) {
return 'PROXY localhost:7080';
}
return 'DIRECT';
}
@beganovich
beganovich / es6.js
Created June 23, 2019 01:46
Javascript: Highest, lowes and average in array of objects
const orderBy = (order, array) => Math[order](...array.map(i => i.number))
const getAvg = (array) => array.reduce((previous,next) => previous + next.number, 0) / array.length
let values = [
{ name: "Benjamin", number: 1 },
{ name: "Someone Else", number: 3 }
]
<template>
<div>
<div class="container">
<div class="row my-5">
<div class="col-md-4 offset-md-4">
<div class="alert alert-success">
Dodano!
</div>
<div class="alert alert-danger">
Dodano!