Skip to content

Instantly share code, notes, and snippets.

View paulcpederson's full-sized avatar
whipping up spiffy interfaces

Paul Pederson paulcpederson

whipping up spiffy interfaces
View GitHub Profile
@paulcpederson
paulcpederson / Language Pangrams
Last active October 15, 2020 20:06
pangrams in many different languages
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Lot's of languages</title>
</head>
<body>
@paulcpederson
paulcpederson / README.md
Last active December 29, 2023 19:35
Creating Valid Certificates for Local Development

Creating the Root Certificate

You only need to do this once for your computer. All subsequent certificates you make will get generated from this root cert.

First, generate a private key:

openssl genrsa -des3 -out myCA.key 2048
@paulcpederson
paulcpederson / last-six.sh
Created January 26, 2018 18:51
Rename files in folder to last 6 digits of current filename
\ls | while IFS= read f; do mv -vn "$f" "${f: -6}"; done
@paulcpederson
paulcpederson / brew.md
Created October 18, 2016 16:53
Cold Brew experiment results.

Cold brew

Initial test on 10/17/16. Grounds were 20 days old, all Stumptown Hair Bender.

Ratio Water Grounds Ground Size Extraction Time Quality
5/1 500ml 100 21 15:15 A
10/1 500ml 50 21 15:15 B
15/1 500ml 33.3 21 15:15 D
@paulcpederson
paulcpederson / tags.js
Last active April 15, 2019 01:35
Get the top tags of an artist formatted for itunes from their last.fm page
Array.prototype.slice.call(document.querySelectorAll('.tags-list--global .tag a')).map(function (tag) {
return 'genre:' + tag.innerText.replace(/ /g, '-');
}).join(', ')
@paulcpederson
paulcpederson / responsive-video.scss
Created February 13, 2014 19:23
responsive-video css hack
.video-wrap {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
iframe, object, embed {
position: absolute;
top: 0;
left: 0;