Skip to content

Instantly share code, notes, and snippets.

@jamesmurdza
jamesmurdza / SelectorGadget+Spreadsheet.md
Last active May 22, 2022 07:31
Turn any webpage into a spreadsheet

🐳 Docker Cheatsheet

Build and run

Build an image:

docker build -t myimage .

Build an image, deleting the old one:

@jamesmurdza
jamesmurdza / Python-list-functions.md
Created January 3, 2023 13:55
Important Python functions for working with lists

Standards for data representation

Character sets and encodings

A character set is a standardized set of characters. It is often used to define which characters are supported by a particular format or software program. These characters include printable characters and control characters. Unicode is a character set with 149,186 characters. ASCII has a character set of 128 characters.

A character encoding is a mapping between a character set and binary values.

Text Encoding Binary
[
{"eventDate": "03-12-2020", "description": "Solana Labs, the team behind Solana, announced a $1.76 million fund to support Solana-based projects."},
{"eventDate": "21-04-2021", "description": "Solana announced the launch of 'Wormhole,' a decentralized bridge connecting Solana to other blockchains, including Ethereum."},
{"eventDate": "09-09-2021", "description": "Solana reached an all-time high price of $215.96, following a period of rapid price increases."},
{"eventDate": "26-09-2021", "description": "Solana experienced a sudden and brief outage, which caused the price to drop significantly and led to concerns about the stability of the network."},
{"eventDate": "01-10-2021", "description": "FTX, a major cryptocurrency exchange, announced a $150 million fund to support the development of the Solana ecosystem."}
]
[
{
"eventDate": "03/31/2021",
"description": "Solana's mainnet beta launch."
},
{
"eventDate": "06/08/2021",
"description": "Solana raised $314 million in a token sale led by Andreessen Horowitz and Polychain Capital."
},
{
@jamesmurdza
jamesmurdza / characters.txt
Last active March 14, 2023 15:41
Special characters for coding
" quote
' single quote
^ carrot
& ampersand
/ slash
\ backslash
- dash/hyphen
_ underscore
` backtick
~ tilde
@jamesmurdza
jamesmurdza / Dockerfile
Created March 17, 2023 09:22
Dockerfile for a scheduled Python script
FROM amancevice/pandas:1.4.4
WORKDIR /app
# Copy the Python application.
COPY requirements.txt .
COPY app.py .
# Install all dependencies for the Python application.
RUN pip install -r requirements.txt
@jamesmurdza
jamesmurdza / create_github_repo.sh
Last active March 18, 2023 09:29
GitHub create new repo using access token
GITHUB_USERNAME=username
REPO_NAME=repo
# Get a token from here: https://github.com/settings/tokens
GITHUB_TOKEN=token
mkdir $REPO_NAME
cd $REPO_NAME
git init
@jamesmurdza
jamesmurdza / JS+TS.md
Last active March 23, 2023 09:55
JavaScript and TypeScript comparison

JavaScript and TypeScript comparison

Variable Declarations

JavaScript:

var x = 10;