I hereby claim:
- I am PogiNate on github.
- I am natedickson (https://keybase.io/natedickson) on keybase.
- I have a public key whose fingerprint is 9267 405F CA2D 5B0D 51F9 092A FB0B 8022 B199 D5A9
To claim this, I am signing this object:
# | |
# Module manifest for module 'Personal.GitCommands' | |
# | |
# Generated by: Nate Dickson | |
# | |
# Generated on: 12/6/2024 | |
# | |
@{ |
# Christmas Tree with random lights | |
# By Nate Dickson | |
# 19 November 2024 | |
# This code is written in CircuitPython | |
# For a Raspberry Pi Pico 2040 | |
# But should work for any CircuitPython capable microcontroller. | |
import board | |
import digitalio | |
import time |
function pre(text){ | |
// Headings | |
const h1m = /^#\s(.*\b)\s?(#)?$/gm; | |
const h1b = `[h1]$1[/h1]`; | |
text = text.replace(h1m,h1b); | |
const h2m = /^#{2}\s(.*\b)\s?(#{2})?$/gm; | |
const h2b = `[h2]$1[/h2]`; | |
text = text.replace(h2m,h2b); |
-- Sideways Desktop Layout | |
-- Cord Comes Out Here Cord Comes Out Here | |
-- | |
-- │ │ | |
-- │ │ | |
-- ▼ ▼ | |
-- ┌────┬────┬────┬────┐ ┌────┬────┬────┬────┐ | |
-- │ 11 │ 8 │ 5 │ 2 │ │LED │ F6 │ F7 │ F8 │ <- Global Shortcuts, Purple | |
-- │ │ │ │ │ │I/O │ │ │ │ |
#!/usr/bin/python | |
# Prep output from Scrivener for publication by Leanpub. | |
# By Nate Dickson <[email protected]> | |
# 1 August 2018 | |
import os, shutil, errno | |
# Remove the manuscript images folder before creating book.txt |
import socket | |
import requests | |
import sys | |
import os | |
name = socket.gethostname() | |
AUTH_TOKEN = 'YOUR_API_KEY_HERE' | |
PINBOARD_URL = 'https://api.pinboard.in/v1/posts/add' | |
FILE_NAME = './ipAddress' |
#! /usr/bin/env ruby | |
require 'json' | |
require 'open-uri' | |
@api_key = "YOUR_API_KEY" | |
@lat = "40.520882" | |
@long= "-111.962284" | |
forecast = JSON.parse(open("https://api.darksky.net/forecast/#{@api_key}/#{@lat},#{@long}").read) | |
temp = forecast['currently']['temperature'] | |
icon_text = forecast['currently']['icon'] | |
icon = |
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/ruby | |
# This is just a simple toy to play with a Leap Motion and a Blink(1). | |
# Obviously requires both of those. | |
# Leap Motion comes from here: https://www.leapmotion.com/ | |
# Blink(1): http://blink1.thingm.com/ | |
# The 'artoo' below is the artoo-leapmotion gem. Install that and it'll pick up all the | |
# other dependencies for you. | |
# You will need Blink1Control running in API server mode for this to work. |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
full = "★" | |
empty = "☆" | |
battery = "🔋" | |
plug = "⚡" | |
star_count = 5 | |
per_star = 100/star_count |