Skip to content

Instantly share code, notes, and snippets.

View mikesprague's full-sized avatar

Michael Sprague mikesprague

View GitHub Profile
@mikesprague
mikesprague / localweather.io-20180819T153541.json
Created August 19, 2018 19:42
localweather.io - Google Lighthouse Audits - August 19, 2018 15:35
{
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.42 Safari/537.36",
"lighthouseVersion": "3.0.3",
"fetchTime": "2018-08-19T19:35:41.503Z",
"requestedUrl": "https://localweather.io/",
"finalUrl": "https://localweather.io/",
"runWarnings": [],
"audits": {
"is-on-https": {
"id": "is-on-https",
@mikesprague
mikesprague / install-docker-on-raspberry-pi.sh
Created March 18, 2018 13:10
Install and configure Docker for the Raspberry Pi
# get/start the offical docker installer
curl -sSL https://get.docker.com | sh
# set docker to auto-start
sudo systemctl enable docker
# start the docker daemon
sudo systemctl start docker
# enable docker client
@mikesprague
mikesprague / slack-dark.css
Created February 19, 2018 23:53
My dark Slack theme
html {
background: #404552 !important;
}
body {
background: #404552;
color: #d3dae3;
}
a {
// $ yarn add request request-promise
// $ node count userA userB
const request = require('request-promise')
const get = resource => request({
url: /^https/.test(resource) ? resource : `https://api.github.com/${resource}`,
headers: {
'User-Agent': 'GitHub Contrib Counter',
'Authorization': 'token YOUR_PERSONAL_ACCESS_TOKEN'

Keybase proof

I hereby claim:

  • I am mikesprague on github.
  • I am mikesprague (https://keybase.io/mikesprague) on keybase.
  • I have a public key ASB8qLxlZW7swTIHR_Mu9zBOu8DByYGZUrXl55UklitGJQo

To claim this, I am signing this object:

@mikesprague
mikesprague / index.jade
Created September 10, 2016 03:38 — forked from CodeMyUI/index.jade
Loader #3. Rotation forms
.loader-wrap
.loader-circles
- for(i=0; i < 10; i++)
.circle

Circle Menu

A nice menu effect that when clicked will pop items around and when clicked will animate the button to circle around and then change the background color to the one selected.

A Pen by Willmer Barahona on CodePen.

License.

@mikesprague
mikesprague / web-servers.md
Created August 24, 2016 00:55 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mikesprague
mikesprague / full-width.css
Created August 11, 2016 07:26
Full width container in limited width parent (credit: https://css-tricks.com/full-width-containers-limited-width-parents/)
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}