Skip to content

Instantly share code, notes, and snippets.

View AtkinsSJ's full-sized avatar
🦡
That's the badger!

Sam Atkins AtkinsSJ

🦡
That's the badger!
View GitHub Profile
@linusg
linusg / a.patch
Created October 19, 2022 08:37
SerenityOS Browser support in WPT
diff --git a/tools/wpt/browser.py b/tools/wpt/browser.py
index 66796a8968..6a581b0675 100644
--- a/tools/wpt/browser.py
+++ b/tools/wpt/browser.py
@@ -2046,3 +2046,27 @@ class Epiphany(Browser):
# Tech Preview output looks like "Web 3.31.3-88-g97db4f40f"
return output.split()[1]
return None
+
+class SerenityOSBrowser(Browser):
@AtkinsSJ
AtkinsSJ / .gitconfig
Last active February 25, 2024 15:02
My Git settings and aliases
[user]
# ...
[alias]
# Note: This assumes two remotes:
# - origin: My fork
# - upstream: The "main" repo
#
# Also, the name of the main branch (usually "master" or "main") is read from the `var.master-branch` git config var.
# It defaults to "master". Change it for the current repo with `git config --local var.master-branch BRANCH_NAME_HERE`.
@nico
nico / quine.py
Created March 24, 2021 12:44
This produces itself as output when run (`python3 quine.py`). Original from https://twitter.com/relsqui/status/1136130759784259584 , but that profile is now hidden
File "quine.py", line 1
File "quine.py", line 1
^
IndentationError: unexpected indent
@paulirish
paulirish / gist:854293
Created March 4, 2011 07:18
jQuery unserialize Form plugin
// Unserialize (to) form plugin - by Christopher Thielen
// adapted and desuckified (a little) by Paul Irish
// takes a GET-serialized string, e.g. first=5&second=3&a=b and sets input tags (e.g. input name="first") to their values (e.g. 5)
(function($) {
$.fn.unserializeForm = function(values) {
@paulirish
paulirish / utmstrip.user.js
Last active April 11, 2024 07:53
userscript: Drop the UTM params from a URL when the page loads
// ==UserScript==
// @name UTM param stripper
// @author Paul Irish
// @namespace http://github.com/paulirish
// @version 1.2
// @description Drop the UTM params from a URL when the page loads.
// @extra Cuz you know they're all ugly n shit.
// @include http*://*
// ==/UserScript==
cd [file dirname [info script]]
set file1 aaa.dlw
set file2 aaa2.dlw
set f1 [open $file1]
fconfigure $f1 -translation binary
set f2 [open $file2]
fconfigure $f2 -translation binary