Skip to content

Instantly share code, notes, and snippets.

View pau1a's full-sized avatar
🏠
Working from home

Paula Livingstone pau1a

🏠
Working from home
View GitHub Profile
@pau1a
pau1a / fonstr.py
Created May 23, 2023 16:18 — forked from melvincarvalho/fonstr.py
fonstr.py
import json
import argparse
from typing import List, Dict, Optional
from fastapi import FastAPI, WebSocket
from pydantic import BaseModel
from nostr import tools
import ssl
import uvicorn
parser = argparse.ArgumentParser()
@pau1a
pau1a / Untitled2.ipynb
Created July 30, 2019 14:46
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / Untitled1.ipynb
Created July 30, 2019 14:46
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / PY0101EN-4-1-ReadFile.ipynb
Created July 30, 2019 14:46
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / PY0101EN-2-1-Tuples.ipynb
Created July 30, 2019 14:46
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / PY0101EN-1-2-Strings.ipynb
Created July 30, 2019 14:45
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / PY0101EN-1-1-Types.ipynb
Created July 30, 2019 14:45
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pau1a
pau1a / PY0101EN-4-1-ReadFile.ipynb
Created July 30, 2019 14:45
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var DOMElements = document.getElementsByTagName("*"), DOMIds = {}, duplicateIDs = [];
for (var x = 0, len = DOMElements.length; x < len; ++x) {
var element = DOMElements[x];
if (element.id) {
if (DOMIds[element.id] !== undefined) duplicateIDs.push(element.id);
DOMIds[element.id] = element.name || element.id;
}
}
if (duplicateIDs.length) { console.error("Duplicate ID's:", duplicateIDs);} else { console.log("No Duplicates Detected"); }
@pau1a
pau1a / OpenWRT.Armbian.OPZ
Created January 16, 2018 09:39 — forked from praveenbm5/OpenWRT.Armbian.OPZ
OpenWRT on Orange Pi Zero using Armbian uBoot and Kernel
Guide:
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted.
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware.
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt