Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stellasphere
stellasphere / descriptions.json
Last active July 20, 2025 14:07
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/01d@2x.png"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/01n@2x.png"
}
import base64
from PIL import Image
import pytesseract
from io import BytesIO
import requests
import time
import re
import threading
import json
from tqdm import tqdm
@CodingDoug
CodingDoug / README.md
Last active July 20, 2025 14:05
Copying Data from a Google Sheet into Firebase Realtime Database in real time via Apps Script
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 20, 2025 14:01
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mdang
mdang / RAILS_CHEATSHEET.md
Last active July 20, 2025 14:01
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@tvst
tvst / streamlit_app.py
Last active July 20, 2025 13:52
Simple way to run heavy computations without slowing down other Streamlit users
import streamlit as st
import concurrent.futures # We'll do computations in separate processes!
import mymodule # This is where you'll do the computation
# Your st calls must go inside this IF block.
if __name__ == '__main__':
st.write("Starting a long computation on another process")
# Pick max number of concurrent processes. Depends on how heavy your computation is, and how
# powerful your machine is.
import streamlit as st
import pandas as pd
@st.cache
def get_data():
return pd.read_csv('https://datahub.io/core/gdp/r/gdp.csv')
'# World GDP'
@en4rab
en4rab / CF-U1-BIOS.md
Last active July 20, 2025 13:47
Recovering the BIOS password from a Panasonic CF-U1 mk2 (AMI Aptio UEFI)

Recovering the BIOS password from a Panasonic CF-U1 mk2 (AMI Aptio UEFI)

A mess of my own making

While messing with a CF-U1 handheld PC that I bought off ebay I managed to mess up the BIOS and it seems it reverted to previous settings which included an unknown BIOS password, it would however still boot into windows. Since I could still boot windows I was able to dump the bios flash using AFUWINGUI.EXE the version I used was 3.09.03.1462 which is available here:
https://www.ami.com/support-other/ Click on Aptio 4 AMI Firmware Update Utility

@codecademydev
codecademydev / notebook.Rmd Secret
Created July 20, 2025 13:27
Codecademy export
---
title: "Cleaning US Census Data"
output: html_notebook
---
```{r message=FALSE, warning=FALSE, error=TRUE}
# load libraries
library(readr)
library(dplyr)
library(tidyr)