Skip to content

Instantly share code, notes, and snippets.

View aphilas's full-sized avatar

Neville aphilas

View GitHub Profile
@ankurk91
ankurk91 / 1-elementary-os-apps.md
Last active December 25, 2023 19:14
elementary OS 5.1 Hera

elementaryOS Apps and Configs

⚠️ No longer maintained! ⚠️

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common
@jucrouzet
jucrouzet / extract.go
Last active July 15, 2024 00:54
Extract an Icecast stream title (current song) with go (golang)
import (
"bufio"
"bytes"
"fmt"
"net/http"
"strconv"
)
// GetStreamTitle get the current song/show in an Icecast stream
func (r *Radio) GetStreamTitle(streamUrl string) (string, error) {
@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;