Skip to content

Instantly share code, notes, and snippets.

View Kurolox's full-sized avatar

Carlos Gómez Kurolox

  • StriveLabs
  • Spain
View GitHub Profile
class String(BaseModel):
"""This class stores all the strings in their respective languages."""
string_id = CharField(primary_key=True)
spanish = CharField(null=True)
english = CharField(null=True)
french = CharField(null=True)
class Ammo(BaseModel):
@Kurolox
Kurolox / minimal_example.py
Created March 19, 2019 09:37
Attempt at using peewee with FastAPI
from peewee import SqliteDatabase, Model, CharField, IntegerField, ForeignKeyField
from fastapi import FastAPI
from uvicorn import run
# DB creation
db = SqliteDatabase("fastapi.db")
# Defining two models with a relation for the sake of an example
@Kurolox
Kurolox / Test.java
Created December 1, 2018 16:58
AdventOfCode day 1 part 2 made in java
import java.util.*;
public class Test{
public static void main(String[] args){
int[] inputArray = {+7, +7, -2, -7, -4};
List<Integer> checkedFrequencies = new ArrayList<Integer>();
int indexCounter = 0, currentFrequency = 0;
Boolean hasFoundSolution = false;
FROM i386/debian:stretch-slim
MAINTAINER Panard <panard@backzone.net>
CMD mtgo
ENV WINE_USER wine
ENV WINE_UID 1000
ENV WINEPREFIX /home/wine/.wine
# Creating a special user for pulseaudio support
RUN apt-get update \

Keybase proof

I hereby claim:

  • I am kurolox on github.
  • I am kurolox (https://keybase.io/kurolox) on keybase.
  • I have a public key ASDwc7IQ7LspNRSs2FXIDI0hNtDqsc8dtG6gtwa4ys95DQo

To claim this, I am signing this object: