I hereby claim:
- I am jdb8 on github.
- I am joebateson (https://keybase.io/joebateson) on keybase.
- I have a public key whose fingerprint is 7D9D EDB1 0596 5730 4936 6841 76BD 4C11 1C18 6C02
To claim this, I am signing this object:
#include <stdio.h> | |
#include <string.h> | |
const char *strfind(const char *s, const char *f); | |
int main(int argc, char **argv){ | |
const char *s = argv[1]; | |
const char *f = argv[2]; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
EMAIL="you@example.com" | |
NEAT_DATE=`date +%Y-%m-%d` | |
FULL_DATE=`date +%Y-%m-%d:%H:%M:%S` | |
SUBJECT="New IRC Notification: $NEAT_DATE" | |
SENDER="ZNC-Push" | |
FOOTER="Received on $FULL_DATE" | |
MESSAGE=$(echo "$1" | tr -d '\011\012\015') # Remove tabs, carriage returns and newlines | |
echo "Emailing $EMAIL..." |
export const hi = 'foo'; |
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
#!/usr/bin/env bash | |
set -euo pipefail | |
# Disgusting wrapper around git, which prevents `git clean -fdX` from removing | |
# any .vscode folder that exists in the repo (by moving it to a different path | |
# and back again). I don't want to check the | |
# .vscode folder into git, but I also don't want it to be removed. Apart from that, | |
# git clean -fdX works well as a `make clean` target! | |
if [ "$1" = "clean" ]; then | |
if [ -d ".vscode" ]; then | |
DATA_DIR=${XDG_DATA_HOME-$HOME/.local/share} |
import styles from "./styles.css"; | |
const baz = styles.baz; | |
console.log("classname for baz", baz); |
import css from "./styles.css"; | |
function fn() { | |
return css.foo; | |
} | |
console.log(fn); |
// ==UserScript== | |
// @name Remove t.co on hover | |
// @include https://*.twitter.com/* | |
// @include https://twitter.com/* | |
// @include http://*.twitter.com/* | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
(function() { | |
document.addEventListener('mouseover', (e) => { | |
const t = e.target; |
// ==UserScript== | |
// @name Auto PiP for Youtube | |
// @version 0.1 | |
// @description Auto-enable PiP when scrolling past a YouTube video | |
// @author Joe Bateson | |
// @match https://www.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?domain=youtube.com | |
// @grant none | |
// ==/UserScript== |