Skip to content

Instantly share code, notes, and snippets.

View boriel's full-sized avatar
🏳️‍🌈

Jose Rodriguez boriel

🏳️‍🌈
View GitHub Profile
@boriel
boriel / list27.txt
Last active January 8, 2021 21:43 — forked from anonymous/list27.txt
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)
@boriel
boriel / comecoquitos.bas
Created May 10, 2020 22:14
Conversión del Comecocos de MicroHobby Nº18 a ZX BASIC. Compilar con -Z
10 REM COMECOQUITOS Luis Amado y MICROHOBBY SEMANAL
11 DIM max, punt as UINTEGER: REM Needed to avoid overflow, since ZX BASIC will try byte
15 BORDER 1: PAPER 1: INK 7: CLS : PRINT AT 10,10; FLASH 1;"PARE LA CINTA": PAUSE 200
20 GO SUB 680
30 LET max=0
40 LET x2=18: LET x3=4: LET y3=18: LET y2=15: LET px=10: LET py=15: LET v$="\G": LET j$="\B"
50 FUNCTION p$(a): RETURN ("000"+ STR$ a)( LEN STR$ a TO ): END FUNCTION : REM Needed because DEF FN is not allowed
60 BORDER 4: PAPER 6: INK 2: CLS
70 LET punt=0
80 DIM l$(19)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@boriel
boriel / mazeo2.bas
Created December 11, 2017 23:03
Fills a figure with a random maze-like pattern
#include <point.bas>
10 REM Algoritmo para generar laberintos aleatorios
REM Inicializa el laberinto
20 CONST Filas As UInteger = 21
30 CONST Columnas As UInteger = 31
40 DIM i, j As UInteger
DIM Arriba, Abajo, Izquierda, Derecha as Ubyte
DIM direccion AS UByte
@boriel
boriel / rndhostname
Last active August 13, 2023 10:53
Simple proxmox container scaling (Elastic cloud project)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import random
LEN = 5
PREFIX = 'ct-dm-core-job-'
DIGITS = ''.join(str(x) for x in range(10))
# coding=UTF-8
from __future__ import division
import nltk
from collections import Counter
# This is a simple tool for adding automatic hashtags into an article title
# Created by Shlomi Babluki
# Sep, 2013