Skip to content

Instantly share code, notes, and snippets.

View lizTheDeveloper's full-sized avatar

lizthedeveloper lizTheDeveloper

View GitHub Profile
VAR socketdev server_socket;
VAR socketdev client_socket;
VAR jointtarget joint_data;
VAR string joint_data_str;
VAR num send_status;
PROC main()
! Create and bind server socket
SocketCreate server_socket;
SocketBind server_socket, "127.0.0.1", 5000;
import time
import os
import cv2
from pathlib import Path
from PIL import Image
from transformers import AutoModelForVision2Seq, AutoProcessor
import torch
from lerobot import make_robot, init_hydra_config
from lerobot.utils import log_say, log_control_info, busy_wait
import openai
import requests
from gpiozero import Button
from time import sleep
import os
# Replace with your OpenAI API key
openai.api_key = 'your_openai_api_key'
# Define GPIO pins
## This is a windows powershell script! It needs to be run as admin.
# Install Script for PostgreSQL 16 and pgAdmin4 on Windows
Write-Host "Downloading PostgreSQL 16..."
# Download and install PostgreSQL
Invoke-WebRequest -Uri https://get.enterprisedb.com/postgresql/postgresql-16.0-1-windows-x64.exe -OutFile postgresql-16.0-1-windows-x64.exe
Write-Host "Finished Downloading."
#!/bin/bash
# Install Script for PostgreSQL 16 and pgAdmin4 on Mac
# Install PostgreSQL
echo "Installing PostgreSQL 16 and pgAdmin4..."
echo "Downloading PostgreSQL 16..."
curl -O https://get.enterprisedb.com/postgresql/postgresql-16.0-1-osx.dmg
echo "Installing PostgreSQL 16..."
hdiutil attach postgresql-16.0-1-osx.dmg
sudo installer -pkg /Volumes/PostgreSQL\ 16.0-1/PostgreSQL\ 16.0-1.pkg -target /
@lizTheDeveloper
lizTheDeveloper / Data_Model_and_Schema_in_Postgres.md
Created October 24, 2023 18:59
A lesson on how to approach data modeling and schema design in Postgres.

How to Think About Data Model and Schema in Postgres

Introduction

When working with databases like Postgres, understanding how to design your data model and schema is crucial. This lesson will guide you through the key considerations and questions to ask yourself.

Key Concepts

Tables

  • What is it?: A table is a collection of related data held in a structured format.
@lizTheDeveloper
lizTheDeveloper / Creating_Kanban_Boards.md
Created October 24, 2023 17:39
Lesson: Creating Kanban Boards

What is a Kanban Board?

A Kanban board is a visual tool that helps you manage tasks, projects, and workflows. It consists of columns that represent different stages of a process and cards that represent tasks.

Why Use a Kanban Board?

  • Visibility: See the status of all tasks at a glance.
  • Efficiency: Move tasks through stages to focus on what's important.
  • Collaboration: Team members can easily pick up tasks and know their responsibilities.

How to Create a Kanban Board

  1. Identify Columns: Common columns are 'To Do', 'In Progress', and 'Done'.

title

cool body paragraph

  • lists
  • are
  • cool
  • too
1. why does the sun shine
you answer here
3. why is the sky blue
youre answer ehre