Todos Nuevo

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

Iniciar sesión


Todos Nuevo
's Avatar

kristofer

Unido 1714567308

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
Todos los gists 108
kristofer's Avatar

kristofer / vscode and Maven

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1747849893
Maven and POM.xml with VS Code: A Beginner's Guide

Maven and POM.xml with VS Code: A Beginner's Guide

VS Code provides excellent support for Maven projects through extensions, making it a powerful environment for Java development. Here's how Maven and POM.xml work with VS Code:

Essential Extensions

First, you'll need to install these VS Code extensions:

kristofer's Avatar

kristofer / FASTAPI and Data Modeling Python

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1747839889

FastAPI, a modern Python web framework, is often used with database modeling to create robust APIs. Here's how it's typically done:

  1. Database Choice: FastAPI doesn't enforce a specific database. You can choose SQL (like PostgreSQL, MySQL, SQLite) or NoSQL databases. For SQL databases, SQLAlchemy is a common choice as an ORM (Object-Relational Mapper). SQLModel, created by the same author as FastAPI, is designed to work seamlessly with it.
  2. Data Models: Pydantic: FastAPI uses Pydantic for data validation and serialization. You define data models using Pydantic, which are then used to validate incoming requests and structure responses. SQLModel: SQLModel extends Pydantic to define database tables directly as Python classes. This allows you to define both data structures and database schemas in one place. SQLAlchemy: If using SQLAlchemy, you define models that map to database tables.
kristofer's Avatar

kristofer / Java & Python Git Ignore

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1747762198
1 # Java
2 *.class
3 *.jar
4 *.war
5 *.ear
6 *.zip
7 *.iml
8 *.ipr
9 *.iws
10 .settings/
kristofer's Avatar

kristofer / LLM concepts and limits

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1746714721

A Short Personal Reference Guide to LLM Concepts & Limitations

Core Concepts

Foundation

  • Large Language Models: Neural networks trained on vast text data to predict next tokens
  • Architecture: Primarily transformer-based with attention mechanisms
  • Parameters: Model size/capacity (billions to trillions)
  • Training: Self-supervised learning on text corpora
  • Inference: Generation of text responses to prompts
kristofer's Avatar

kristofer / API Introduction for Java & Python

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1746712128

Introduction to APIs for Python and Java Newbies

APIs (Application Programming Interfaces) serve as bridges between different software applications, allowing them to communicate and share data with each other. For beginner programmers in Python and Java, understanding APIs opens up vast possibilities to enhance your applications with external data and functionality.

What is an API?

An API is essentially a set of rules and protocols that allows one software application to interact

kristofer's Avatar

kristofer / C Intro

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1746473889

Introduction to C for Java and Python Programmers

As a Java or Python programmer, you'll find C both familiar and different. C is a procedural language that directly influenced both Java and Python, but it's lower-level, giving you more direct control over memory and hardware. Here's an introduction to help you bridge the gap.

Core Characteristics of C

C is a compiled, statically-typed language with manual memory management. Unlike Java's JVM or Python's interpreter, C code compiles directly to machine code for your specific hardware. There's no garbage collection - you allocate and free memory yourself.

Basic Syntax and Data Types

kristofer's Avatar

kristofer / Remove Quarantine Attribute

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1746368893

Remove the Apple Quarantine

Remove the Apple Quarantine attribute when downloading files that haven't been signed. This is obviously a very bad idea.

xattr -d com.apple.quarantine filename (or directory)

xattr -d com.apple.quarantine *

kristofer's Avatar

kristofer / Intro JDBC

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1744317935

Introduction to Java JDBC for Beginners

What is JDBC?

Java Database Connectivity (JDBC) is a Java API that enables Java applications to interact with relational databases. Think of it as a bridge between your Java code and database systems like MySQL, PostgreSQL, Oracle, and SQL Server. JDBC provides a standard way to query and update data in databases, regardless of which database management system you're using.

For beginners starting their Java journey, JDBC represents a fundamental skill set that opens the door to creating data-driven applications. Whether you're building a simple application that needs to store user information or a complex system that processes large datasets, JDBC gives you the tools to connect your Java code to the database world.

Core Components of JDBC

kristofer's Avatar

kristofer / Docker & Data Engineering

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1744203714

Docker and Docker Compose for Beginner Data Engineers

As a data engineer just starting your journey, understanding containerization technologies like Docker and Docker Compose is becoming increasingly essential. These tools will fundamentally change how you build, deploy, and scale data pipelines and applications. Let me walk you through what they are, why they matter for data engineering, and how to start using them effectively.

What is Docker?

Docker is a platform that allows you to package your application and all its dependencies into a standardized unit called a "container." Think of a container as a lightweight, standalone, executable package that includes everything needed to run your application: code, runtime, system tools, libraries, and settings.

The Problem Docker Solves

kristofer's Avatar

kristofer / Java ENUMS

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1743703594
Stop and Go!

Java Enums: From Basics to Advanced Techniques

Java enumerations (enums) are special data types that allow a variable to be a set of predefined constants. They provide a powerful way to represent a fixed set of values in a type-safe manner. If you're a beginner Java programmer already familiar with basic concepts, understanding enums will significantly enhance your coding toolkit.

What Are Enums?

An enum is a special "class" that represents a group of constants (unchangeable variables, like final variables). Here's a simple example:

enum Day {
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 143ms⋅

Español
Čeština Deutsch English Español Français Magyar Português Русский 中文 繁體中文