I hereby claim:
- I am tmountjr on github.
- I am tmountjr (https://keybase.io/tmountjr) on keybase.
- I have a public key whose fingerprint is E15E 25EC 5004 E2A9 D4FB 2E4D 2DEA 3733 3294 7821
To claim this, I am signing this object:
import network | |
import uasyncio | |
from time import sleep | |
class NetworkManager: | |
def __init__(self, ssid, password): | |
self.ssid = ssid | |
self.password = password | |
self.station = network.WLAN(STA_IF) | |
self.last_known_ip = None |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Weather</title> | |
</head> | |
<body> | |
<h1>Weather</h1> | |
<p>Your location: [lat/lng]</p> |
import wifi | |
print(f'IP address: {wifi.radio.ipv4_address}') | |
import time | |
import board | |
import neopixel | |
import socketpool | |
import microcontroller | |
from adafruit_httpserver import Server, Request, Response, POST |
import os | |
import ssl | |
import time | |
import wifi | |
import board | |
from neopixel import NeoPixel | |
from socketpool import SocketPool | |
from adafruit_requests import Session | |
print(f'IP address: {wifi.radio.ipv4_address}') |
const { min, max, round } = Math | |
// Conversion functions. See https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative. | |
const a = (S, L) => S * min(L, 1 - L) | |
const k = (n, H) => (n + (H / 30)) % 12 | |
const f = (n, H, S, L) => L - a(S, L) * max(-1, min(k(n, H) - 3, 9 - k(n, H), 1)) | |
// Calculate individual red, green, and blue values. | |
const red = (H, S, L) => round(255 * f(0, H, S, L)) | |
const green = (H, S, L) => round(255 * f(8, H, S, L)) |
#!/usr/bin/env node | |
const fs = require('fs'); | |
const https = require('https'); | |
const url = 'https://api.fastly.com/public-ip-list'; | |
https.get(url, res => { | |
let body = ''; | |
res | |
.setEncoding('utf8') |
04e1110a48b0d9051cde9d247eb76a515f90f966435e82055cc66ab80fe713ec25c5dba646332d5647f5126e6a9cc7fdc337f93ff5229b25d16c5ce9a554592047 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env node | |
var fs = require('fs'), | |
path = require('path'), | |
infile = process.argv[2] || '', | |
outfile = process.argv[3] || '', | |
saveToDisk = false; | |
if (infile == '') { | |
console.error('Please supply a filename.'); |
<?php | |
/** | |
* This trait defines functionality used to generate an HTML select box directly from the eloquent model. | |
* Three static values are accessed by this trait and should be defined by the model: | |
* static $valueField | |
* static $formControlId | |
* static $valueFieldClosure (optional) | |
*/ |