Skip to content

Instantly share code, notes, and snippets.

@SniperSister
SniperSister / readmedia.php
Last active June 2, 2024 10:38
readmedia.php for Joomla 4 and 5
<?php
/**
* @version 1.0.0
* @package Readmedia
* @copyright Copyright (C) 2018 David Jardin - djumla GmbH
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.djumla.de
*/
/* Initialize Joomla framework */
@joulgs
joulgs / terminal.txt
Last active June 2, 2024 10:36
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@ciaranjudge
ciaranjudge / eurostat_data.py
Last active June 2, 2024 10:34
Python function to get Eurostat web services data as Pandas DataFrame
__author__ = "Ciaran Judge"
__license__ = "MIT"
def eurostat_data(query_table: str, **kwargs):
"""Given Eurostat web services table with optional params, return a Pandas DataFrame.
Eurostat API doesn't like returning whole tables so need to specify query in advance.
Two ways to achieve this:
1. Pass table name to `query_table`, then add params in function call
@wahengchang
wahengchang / m3nuPage.html
Created November 7, 2023 01:44
m3u8 html sample
<html lang="en">
<head>
<meta charset="utf-8" />
<title>sample m3u8 page</title>
</head>
<body>
<!-- CSS -->
<!-- file source is from: https://gist.github.com/Fazzani/8f89546e188f8086a46073dc5d4e2928 -->
<!-- this html page is from: https://stackoverflow.com/questions/19782389/playing-m3u8-files-with-html-video-tag -->
@yasirkula
yasirkula / CircleGraphic.cs
Last active June 2, 2024 10:32
Create circles/ellipses in Unity UI system in one of three modes: FillInside, FillOutside and Edge.
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
// Custom Editor to order the variables in the Inspector similar to Image component
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects]
public class CircleGraphicEditor : Editor
{
@danpetitt
danpetitt / esmodules.md
Last active June 2, 2024 10:25
Typescript, Jest and ECMAScript Modules

Typescript, Jest and ECMAScript Modules (ESM)

Package.json

Add the type property to package.json to ensure modules are supported:

{
  "type": "module",
}
@r-yeates
r-yeates / qr_overlay.dart
Created March 22, 2022 09:03
Overlay for QR scanner package mobile_scanner
import 'package:flutter/material.dart';
class QRScannerOverlay extends StatelessWidget {
const QRScannerOverlay({Key? key, required this.overlayColour})
: super(key: key);
final Color overlayColour;
@override
Widget build(BuildContext context) {
@maxwellmlin
maxwellmlin / LPX-Trial-Reset.sh
Created April 14, 2021 03:46
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash
@bradtraversy
bradtraversy / terminal-commands.md
Last active June 2, 2024 10:18
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@inkss
inkss / #readme.md
Last active June 2, 2024 10:18
IPV6 直播源

个人向直播源

精简了上游直播源内容,仅保留个人所需的。

一、订阅地址

TVM3U

https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u