npm install -g @2fd/graphdoc
graphdoc -s ~/Downloads/graphql-introspection.json -o docs
services: | |
postgres-server: | |
image: postgres:17-alpine | |
container_name: postgres-server | |
restart: always | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: root | |
volumes: | |
- pg-data:/var/lib/postgresql/data |
import random | |
from datetime import datetime, timedelta | |
from sqlalchemy import create_engine, Table, Column, BigInteger, DateTime, Numeric, MetaData | |
from sqlalchemy.dialects.mysql import DECIMAL | |
import tqdm | |
# Database connection (replace with your credentials) | |
DB_URL = "mysql+pymysql://root:root@localhost:3306/rambo" | |
engine = create_engine(DB_URL) |
class HTML { | |
private var head: Head? = null | |
private var body: Body? = null | |
fun head(init: Head.() -> Unit): Head { | |
val head = Head() | |
head.init() | |
this.head = head | |
return head | |
} |
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Mise dev tools manager
- Alternative to
node
,python
,cmake
etc
- Alternative to
-
SDK Manager For Java and JVM related pacakages
There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n - 1.
You are given an integer array groupSizes, where groupSizes[i] is the size of the group that person i is in.For example, if groupSizes[1] = 3, then person 1 must be in a group of size 3.
Return a list of groups such that each person i is in a group of size groupSizes[i].
Each person should appear in exactly one group, and every person must be in a group. If there are multiple answers, return any of them. It is guaranteed that there will be at least one valid solution for the given input.
we are need quickbooks library 6.3.0 and the joda-time library is 2.1 is added as transitive dependency. https://mvnrepository.com/artifact/com.intuit.quickbooks-online/ipp-v3-java-data/6.3.0
In our project, we need joda time library is 2.12.7. https://mvnrepository.com/artifact/joda-time/joda-time/2.12.7
Now, we are facing class path conflict in joda libary.
Database isolation refers to the level of isolation between concurrent transactions in a database. Isolation levels control the visibility and accessibility of data to concurrent transactions and can affect the occurrence of race conditions in a database. If your isolation level is not “serializable” - there is a possibility of race conditions.
The Serializable isolation level provides the strictest transaction isolation. This level emulates serial transaction execution for all committed transactions; as if transactions had been executed one after another, serially, rather than concurrently
Example of Race condition, Hotel room booking and movie ticket booking etc
#!/usr/bin/env python | |
# | |
# Converts any integer into a base [BASE] number. I have chosen 62 | |
# as it is meant to represent the integers using all the alphanumeric | |
# characters, [no special characters] = {0..9}, {A..Z}, {a..z} | |
# | |
# I plan on using this to shorten the representation of possibly long ids, | |
# a la url shortenters | |
# |