Skip to content

Instantly share code, notes, and snippets.

View nateinaction's full-sized avatar
🚀
Think and do

Nate Gay nateinaction

🚀
Think and do
View GitHub Profile
@nateinaction
nateinaction / additional-nodes configuration.nix
Created August 23, 2021 07:54
Raspberry Pi 4 NixOS Kubernetes cluster config
{ config, pkgs, lib, ... }:
let
user = "YOUR_USER";
password = "YOUR_PASSWORD";
sshPubKey = "YOUR_PUBLIC_SSH_KEY";
SSID = "YOUR_WIFI_SSID";
SSIDpassword = "YOUR_WIFI_PASSWORD";
hostname = "HOSTNAME_FOR_YOUR_PI";
k8sApiServerAddr = "https://IP_FOR_YOUR_CONTROL_NODE:6443";
@nateinaction
nateinaction / carlsbad_caverns.ino
Last active April 16, 2021 23:04
Danielle's Carlsbad Caverns Light
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6
#define NUMPIXELS 8
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
@nateinaction
nateinaction / duolingo-word-strength.js
Last active May 15, 2022 21:10
Add Word Strength to Duolingo
// ==UserScript==
// @name Add Word Strength to Duolingo
// @namespace https://gist.githubusercontent.com/nateinaction/e833488d3b67637eb5176b189c52cd0e/
// @version 0.3
// @description Add word strength percentages to Duolingo's words page at the tap of a button.
// @author Nate Gay
// @match https://www.duolingo.com/words
// @run-at document-idle
// @grant none
// @updateUrl https://gist.githubusercontent.com/nateinaction/e833488d3b67637eb5176b189c52cd0e/raw/

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@nateinaction
nateinaction / spectrum.html
Last active September 3, 2017 18:21
Light spectrum displayed with HTML 5 canvas gradient
<html>
<body>
<canvas id="light-spectrum" width="600" height="300"></canvas>
<script>
/*
* deep-violet | 380 | 0
* violet | 400 | 0.05
* blue | 450 | 0.175
@nateinaction
nateinaction / react-firebase-auth.js
Last active November 21, 2022 14:44
This is a version of Facebook's React Conditional Rendering example modified to support firebase authentication.
/*
* This is a version of Facebook's React Conditional Rendering
* example modified to support firebase authentication.
* https://facebook.github.io/react/docs/conditional-rendering.html
*/
import React, { Component, PropTypes } from 'react';
import * as firebase from 'firebase';
function UserAvatar(props) {