Skip to content

Instantly share code, notes, and snippets.

View SamuelTilly's full-sized avatar
🧀
Cheese

Samuel Tilly SamuelTilly

🧀
Cheese
View GitHub Profile
@SamuelTilly
SamuelTilly / focus-lock.patch
Created December 5, 2023 09:30
focus-lock patch
diff --git a/dist/es2015/utils/DOMutils.js b/dist/es2015/utils/DOMutils.js
index e724274ff5bf1acc6359d81a4a57a119ea42cc9a..82fd0437674a3919b73e2913b1ff711016f346d8 100644
--- a/dist/es2015/utils/DOMutils.js
+++ b/dist/es2015/utils/DOMutils.js
@@ -54,24 +54,24 @@ export var parentAutofocusables = function (topNode, visibilityCache) {
* Determines if element is contained in scope, including nested shadow DOMs
*/
export var contains = function (scope, element) {
- if (scope.shadowRoot) {
- return contains(scope.shadowRoot, element);

Keybase proof

I hereby claim:

  • I am samueltilly on github.
  • I am samueltilly (https://keybase.io/samueltilly) on keybase.
  • I have a public key ASAXOnqS0ADYVF-lEz8nqcGqMycKCpKZlTOU9CdAvr15DQo

To claim this, I am signing this object:

###
CoffeeScript Template Engine
Very simple templating engine that only depends on CoffeeScript
###
cte = do ->
o = {
# Doctypes
_dt:
'5': '<!DOCTYPE html>'
'xml': '<?xml version="1.0" encoding="utf-8" ?>'
#/bin/bash
if [ $(id -u) -ne 0 ]; then
exec sudo bash "$0" "$USER"
fi
if [ -z $1 ]; then
echo "Please do not runt this script as root"
fi
# Cleanup
@SamuelTilly
SamuelTilly / autoexec.cfg
Last active September 29, 2015 17:34
CS:GO Config
// eldamar's CS:GO config
// Rates
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_lagcompensation "1"
@SamuelTilly
SamuelTilly / bulk-video-convert.sh
Created August 17, 2015 20:57
Bulk video conversion
#! /bin/bash
# Simple script for extracting and recoding all video files from
# a folder to high quality with smaller size using libx246 for video and aac for the audio with great codecs
#
# Dependencies
# * NeroAAC
# * mkvtools
# * tesseract-data
# * vobsub2srt
# * ffmpeg
@SamuelTilly
SamuelTilly / screencapture.sh
Created August 11, 2013 21:41
Trying different ways to do screen capture
#!/bin/sh
tmp_path='/tmp/'
date='date +%Y%m%d'
time='date +%Hh%M'
name='screencast'
progress () {
echo "working! $@"
#tail -f progress