This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def parse_wiegand_32(binary_str): | |
""" | |
Parse a 32-bit Wiegand code | |
Args: | |
binary_str (str): 32-bit binary string | |
Returns: | |
dict: Contains parity check result, facility code, and card number | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Usage: | |
# To convert: | |
# ./display_raw.py thingy.raw --convert more_accessible_thingy.tiff | |
# To display: | |
# ./display_raw.py thingy.raw | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import argparse |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @settings | |
name: Bjonnh | |
id: bjonnh-theme-snippet | |
settings: | |
- | |
id: bjonnh-page-width | |
title: Page width | |
type: variable-number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module top | |
( | |
input clk_25mhz, | |
output [27:0] gp, | |
); | |
wire [3:0] clocks; | |
wire [3:0] clocks2; | |
ecp5pll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module I2SInterface( | |
input sclk, // 25 MHz System clock | |
input bclk, // 6.25 MHz Bit Clock | |
input lr, // Left/Right Channel Select | |
input linData, // Line In Data | |
output loutData, // Line Out Data | |
input [23:0] inLeft, // left signal to line out | |
input [23:0] inRight, // right signal to line out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Benchmark Mode Cnt Score Error Units | |
Day1Bench.Dumb sample 1687 2.966 ± 0.006 ms/op | |
Day1Bench.Dumb:Dumb·p0.00 sample 2.925 ms/op | |
Day1Bench.Dumb:Dumb·p0.50 sample 2.953 ms/op | |
Day1Bench.Dumb:Dumb·p0.90 sample 2.990 ms/op | |
Day1Bench.Dumb:Dumb·p0.95 sample 3.015 ms/op | |
Day1Bench.Dumb:Dumb·p0.99 sample 3.191 ms/op | |
Day1Bench.Dumb:Dumb·p0.999 sample 4.326 ms/op | |
Day1Bench.Dumb:Dumb·p0.9999 sample 4.473 ms/op | |
Day1Bench.Dumb:Dumb·p1.00 sample 4.473 ms/op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun decode-url-at-point (&optional arg) | |
"Decode the outlook protection encoded url, display it as a message and put in the kill-ring." | |
(interactive "P") | |
(let ((url (browse-url-url-at-point))) | |
(if url | |
(let ((decodedurl (url-unhex-string (nth 1 (split-string (nth 0 (split-string url "&")) "="))))) | |
(message "%s" decodedurl) | |
(kill-new decodedurl)) | |
(error "No URL found")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://modernsecuritymethods.com/2019/10/04/url-decoding/ | |
from urllib.parse import unquote | |
import re | |
import sys | |
def decode_url(url): | |
decoded_url = unquote(url.lower()) | |
try: | |
final_url = '' | |
h = decoded_url.split('http') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/pho.owl#" | |
xml:base="http://purl.obolibrary.org/obo/pho.owl" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:eco="http://purl.obolibrary.org/obo/eco#" | |
xmlns:obo="http://purl.obolibrary.org/obo/" | |
xmlns:owl="http://www.w3.org/2002/07/owl#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:xml="http://www.w3.org/XML/1998/namespace" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" |
NewerOlder