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
#!/usr/bin/env ruby | |
# Gets comments from a pooleapp (http://www.pooleapp.com) form and writes | |
# the results to a YAML file indexed by the path the comment was submitted from. | |
# This allows you to more easily associate a comment with the page it was submitted | |
# from. | |
# | |
# Given a pooleapp form created on pooleapp.com with an API KEY of "MY_API_KEY" and the following | |
# form in a Jekyll template: | |
# |
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
" File: _vimrc | |
" Version: 1 | |
" Author: Seth Mason | |
" Created: 19 Nov 2003 10:20:19 | |
" Last-modified: 12 Mar 2015 16:38:42 | |
" All my Vim commands for the taking | |
" Works on cygwin but not very well on unix machines...still trying to figure | |
" it out | |
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
/** | |
* Stringifies a DOM node. | |
* @param {Object} el - A DOM node. | |
* @param {Number} truncate - How much to truncate innerHTML of element. | |
* @returns {String} - A stringified node with attributes | |
* retained. | |
*/ | |
function stringifyEl(el, truncate) { | |
var truncateLen = truncate || 50; | |
var outerHTML = el.outerHTML; |
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
"use strict"; | |
module.exports = { | |
// 1. Run your custom tests along with all the default Lighthouse tests. | |
extends: "lighthouse:default", | |
// 2. Add gatherer to the default Lighthouse load ('pass') of the page. | |
passes: [ | |
{ | |
passName: "defaultPass", |
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
"use strict"; | |
const Audit = require("lighthouse").Audit; | |
class NCBIAppAudit extends Audit { | |
static get meta() { | |
return { | |
id: "ncbi_app-audit", | |
title: 'meta name="ncbi_app" is set', |
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
"use strict"; | |
const Gatherer = require("lighthouse").Gatherer; | |
/** | |
* @fileoverview Extracts `window.myLoadMetrics` from the test page. | |
*/ | |
class NCBIAppMeta extends Gatherer { | |
async afterPass(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
{ | |
"window.zoomLevel": 2, | |
"git.autofetch": true, | |
"breadcrumbs.enabled": true, | |
"editor.minimap.maxColumn": 90, | |
"files.autoSave": "afterDelay", | |
"editor.tabSize": 2, | |
"javascript.updateImportsOnFileMove.enabled": "never", | |
"javascript.suggest.autoImports": false, | |
"files.trimFinalNewlines": true, |
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
source ~/bash-utils/bu.sh | |
# General unix | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
# Remove safe, sends to trash. | |
# Removes items from the trash that are over | |
# 30 days old. | |
function rms { | |
mv "$1" ~/.Trash |
OlderNewer