I hereby claim:
- I am bronzehedwick on github.
- I am bronzehedwick (https://keybase.io/bronzehedwick) on keybase.
- I have a public key ASA1s4RaAOH9R4IT7fV69aYx6RTDkReBzKZJl-hXD8Kslwo
To claim this, I am signing this object:
| /** | |
| * Determines (poorly) the current browser. | |
| * @returns {string} the current browser or 'unknown'. | |
| */ | |
| function getBrowser() { | |
| var ua = navigator.userAgent; | |
| var browsers = [ | |
| 'Vivaldi', | |
| 'OPR', // Opera | |
| 'Firefox', |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>TODO</title> | |
| <style> | |
| [data-status="done"] { | |
| color: #999; | |
| text-decoration: line-through; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| function ordinalize(num) { | |
| const lastDigit = (num + '').slice(-1); | |
| if (lastDigit == 1) { return `${num}st`; } | |
| else if (lastDigit == 2) { return `${num}nd`; } | |
| else if (lastDigit == 3) { return `${num}rd`; } | |
| return `${num}th`; | |
| } |
| function random(min, max) { | |
| return Math.round(Math.random() * (max - min) + min); | |
| } | |
| let vowels = [ 'a', 'e', 'i', 'o', 'u' ]; | |
| let consonents = [ 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'z' ]; | |
| function randomName() { | |
| const clen = consonents.length - 1; | |
| const vlen = vowels.length - 1; |
| 0482ad68d15afc1441d336db5b6eb1c06a8d29b5b1aed4a02173430d36ff5cf46525f4e4b3f46f8055fe678e7f47e027a9b77180bef0ab8aca6274025fa71eb737 |
| #!/bin/sh | |
| command -v dtach >/dev/null 2>&1 || { echo >&2 "Need dtach installed. Aborting." exit 1; } | |
| command -v weechat >/dev/null 2>&1 || { echo >&2 "Need weechat installed. Aborting." exit 1; } | |
| if [ -f /tmp/weechat ]; then | |
| dtach -a /tmp/weechat | |
| else | |
| dtach -A /tmp/weechat weechat | |
| fi |
| #!/bin/sh | |
| GIT_DIR=/path/to/hugo/source | |
| WEB_DIR=/path/to/webroot | |
| # pull the latest code. | |
| git --git-dir "$GIT_DIR/.git" --work-tree "$GIT_DIR" pull origin master | |
| git --git-dir "$GIT_DIR/.git" --work-tree "$GIT_DIR" checkout --force | |
| # build the site. | |
| hugo --source "$GIT_DIR" --destination "$WEB_DIR" |
| #!/usr/local/bin/node | |
| /* eslint-env node, es6 */ | |
| const fs = require('fs'); | |
| const file = process.argv[2]; | |
| const path = require('path'); | |
| const lineReader = require('readline').createInterface({ | |
| input: fs.createReadStream(file) | |
| }); | |
| let characters = new Map(); |
| Verifying my Blockstack ID is secured with the address 1145uHcCDSoHNahWxJ42trCt1dfcmxH5jk https://explorer.blockstack.org/address/1145uHcCDSoHNahWxJ42trCt1dfcmxH5jk |