Skip to content

Instantly share code, notes, and snippets.

View conor-f's full-sized avatar

Conor Flynn conor-f

View GitHub Profile
@zopieux
zopieux / fipradio.py
Last active September 3, 2024 07:05
FIP radio live metadata
# Displays the currently playing media at FIP radio
# http://www.fipradio.fr/player
# You may want to update the number at the end of the URL
# if you use a specific "style" channel instead of the
# generic (main) channel, which is 7.
import requests
import time
import subprocess
macro for(definition, condition, incrimentation, &block)
{{definition}}
while {{condition}}
{{block.body}}
{{incrimentation}}
end
end
macro for(expr)
({{expr.args.first.args.first}}).each do |{{expr.name.id}}|
@matusnovak
matusnovak / README.md
Last active October 24, 2024 15:50
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
@faustinoaq
faustinoaq / myAngular.html
Last active November 8, 2024 17:44
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;