This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MY_DOMAIN = "your domain" | |
const START_PAGE = "start page url" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://www.gutenberg.org/cache/epub/2701/pg2701.txt > moby-dick.txt | |
$ tr -cs "[:alpha:]" "\n" < moby-dick.txt | egrep "^(she|her|hers|herself)$" | wc -l | |
439 | |
$ tr -cs "[:alpha:]" "\n" < moby-dick.txt | egrep "^(he|him|his|himself)$" | wc -l | |
5384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET_PID=$1 | |
shift | |
cd /proc/$TARGET_PID/fd/ | |
if [ -n "$1" ] | |
then | |
TARGET_FDS=$@ | |
else | |
TARGET_FDS=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<style> | |
table.container { | |
width: 522px; | |
border-spacing: 0; | |
border:1px solid gray; | |
} | |
.container td { | |
text-align: center; |