Skip to content

Instantly share code, notes, and snippets.

View pniedzielski's full-sized avatar

Patrick M. Niedzielski pniedzielski

View GitHub Profile
@FranklyGD
FranklyGD / Spyro the Dragon.asl
Last active March 1, 2024 11:28
An Auto Splitter script for Spyro the Dragon on select emulators
/*
Spyro the Dragon (NTSC-U) Autosplitter
By: FranklyGD
Contributers: lucx40 (lucx1 on Github), ThirstyWraith, goofball564
Special thanks to Laura and lucx40 for helping me test and understand the requirements of
the speedruns of this game
-- FranklyGD
I just gave this autosplitter some updates, enjoy!
@pniedzielski
pniedzielski / etcsl.org
Created November 1, 2020 17:45
How to download the ETCSL Corpus

ETCSL Corpus

I can never remember how to download the ETCSL corpus, because it’s hosted on the the Oxford Text Archive (DOI: 20.500.12024/2518). Here are the instructions to download a local copy to the current directory.

@jclosure
jclosure / tabbar-projectile-support.el
Created April 28, 2019 09:24
Emacs - make tabbar groups based on projectile project membership
;; Make tabbar groups based on projectile project membership
;;; Nice hack of the group function;; Make tabbar groups based on projectile project membership to add projectile aware-ness.
;;; Assign buffer with group name projectile project name if
;;; the buffer is within the project and associated to a file or process.
(use-package tabbar :ensure t
:after projectile
:config
(defun tabbar-buffer-groups ()
@adactio
adactio / blogServiceWorker.js
Last active March 27, 2023 09:26
A Service Worker to progressively enhance a blog by storing assets in a cache, and keeping limited caches of pages and images for offline browsing.
'use strict';
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
(function() {
// A cache for core files like CSS and JavaScript
var staticCacheName = 'static';
// A cache for pages to store for offline
@adactio
adactio / micropub.php
Last active January 20, 2023 16:09
Minimal micropub endpoint.
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
$mysite = 'https://adactio.com/'; // Change this to your website.
$token_endpoint = 'https://tokens.indieauth.com/token';
$_HEADERS = array();
foreach(getallheaders() as $name => $value) {
@otherjoel
otherjoel / webmention.php
Last active February 20, 2023 20:57 — forked from adactio/webmention.php
Add simple file logging
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
#
# Webmention Emailer
# ------------------
#
# An incremental evolution of Jeremy Keith's "minimum viable" webmention,
# I've added some minimal code to have webmentions emailed to an address
@adactio
adactio / webmention.php
Last active March 16, 2024 22:15
Minimum viable webmention in PHP.
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
if (!isset($_POST['source']) || !isset($_POST['target'])) {
header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
exit;
}