Skip to content

Instantly share code, notes, and snippets.

View etherealite's full-sized avatar

Etherealite etherealite

View GitHub Profile
@etherealite
etherealite / vma-internal-plugin.php
Created September 2, 2022 06:12
Remove rewrite front from event post type archives
<?php
/**
* Plugin Name: VMA Internal Plugin
* Description: General purpose plugin for site specific integrations.
* Author: Evan Bangham
* Version: 0.0.1
* Author URI: https://github.com/etherealite
*
* Text Domain: VMA
**/
@etherealite
etherealite / WpCsp.php
Created September 12, 2022 01:16
Wordpress class to enable Content Security Policies
<?php
class WpCsp {
public function register(): void
{
add_filter('script_loader_tag', [$this, 'filter_script_loader_tag'], 3, 50);
add_filter('wp_inline_script_attributes', [$this, 'action_wp_inline_script_attributes']);
@etherealite
etherealite / FSRS4Anki scheduler snippet
Last active January 13, 2024 07:36
FSRS4Anki scheduler snippet
// FSRS4Anki v4.11.1 Scheduler Qt6
set_version();
// The latest version will be released on https://github.com/open-spaced-repetition/fsrs4anki/releases/latest
// Configuration Start
const deckParams = [
{
// Default parameters of FSRS4Anki for global
"deckName": "global config for FSRS4Anki",
1
00:00:00,100 --> 00:00:01,550
はい皆さん、こんにちは。
2
00:00:01,550 --> 00:00:04,010
Bite size Japaneseのレイラです。
3
00:00:04,010 --> 00:00:10,890
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<style>
"""
App configuration.
"""
import os
import yaml
from dataclasses import dataclass, field
from platformdirs import PlatformDirs