Skip to content

Instantly share code, notes, and snippets.

View rupl's full-sized avatar
💭
¯\_(ツ)_/¯

Chris Ruppel rupl

💭
¯\_(ツ)_/¯
View GitHub Profile
@rupl
rupl / sw-font-load.js
Created December 7, 2015 11:54
Use Service Worker to load fonts async/direct via client-side logic.
// Load fonts async by default
// Load sync from SW cache when available.
//
// Snippet assumes your Service Worker caches fonts as part of installation, so that
// an 'activated' Service Worker means the fonts are cached with 100% confidence.
if (
'serviceWorker' in navigator &&
navigator.serviceWorker.controller !== null &&
navigator.serviceWorker.controller.state === 'activated'
) {
@rupl
rupl / granimation.css
Last active November 1, 2018 08:10 — forked from anonymous/my.css
CSS Gradient Animation — https://www.gradient-animator.com/
background: linear-gradient(270deg, #430fe4, #234ae8, #15a32d, #f55519, #d71abf);
background-size: 1000% 1000%;
-webkit-animation: AnimationName 6s ease infinite;
-moz-animation: AnimationName 6s ease infinite;
-o-animation: AnimationName 6s ease infinite;
animation: AnimationName 6s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
@rupl
rupl / biking-jacket.ino
Last active May 30, 2022 17:56
Code to power an Arduino biking jacket. Build details here: https://chrisruppel.com/blog/lilypad-arduino-biking-jacket/
/*!
* LilyPad Arduino Biking Jacket
*
* Each sleeve has a button and indicator light near the cuff.
* - Pressing the a button turns the blinker on for a few cycles.
* - Hold the same button to stop it sooner.
* - Pressing both buttons turns on hazard mode.
* - Hold one button to disable hazard mode.
*
* Made with <3 for Karin :)
@rupl
rupl / greenhouse-v2.ino
Created June 20, 2017 12:24
Så Ett Frö — Greenhouse v2, June 2017
/**
* Code to run a basic automatic greenhouse.
*
* - Temp/humidity sensor
* - Soil moisture sensor
* - Water pump
* - Ventilation fan
*
* @see http://saettfro.com/vaxthus/
*/
@rupl
rupl / keybase.md
Created October 25, 2017 13:13
Keybase verification

Keybase proof

I hereby claim:

  • I am rupl on github.
  • I am rupl (https://keybase.io/rupl) on keybase.
  • I have a public key ASBJ5Kg18-StJUZUlN_qgReYd2buApAqCdTjui4FVxqEago

To claim this, I am signing this object: