Skip to content

Instantly share code, notes, and snippets.

View fergusreiggracia's full-sized avatar
🏠
Trabajando desde casa

Fergus Reig Gracia fergusreiggracia

🏠
Trabajando desde casa
View GitHub Profile
@ajelenak
ajelenak / h5-to-zarr.py
Last active March 29, 2025 23:01
Python code to extract HDF5 chunk locations and add them to Zarr metadata.
# Requirements:
# HDF5 library version 1.10.5 or later
# h5py version 3.0 or later
# pip install git+https://github.com/HDFGroup/zarr-python.git@hdf5
import logging
from urllib.parse import urlparse, urlunparse
import numpy as np
import h5py
import zarr
@jsdario
jsdario / el_quijote.txt
Last active May 2, 2025 17:01
El Quijote en texto plano
This file has been truncated, but you can view the full file.
DON QUIJOTE DE LA MANCHA
Miguel de Cervantes Saavedra
PRIMERA PARTE
CAPÍTULO 1: Que trata de la condición y ejercicio del famoso hidalgo D. Quijote de la Mancha
@kirtan403
kirtan403 / unzip.php
Last active January 22, 2023 12:51 — forked from jonmaim/zip.php
PHP script to remotely zip/unzip archives of your FTP
<?php
function show($str){
echo $str . "<br/>\n";
flush();
ob_flush();
}
$archiveDir = "temp";
describe 'Game of life w/o primitives and one dot per line' do
let(:live_cell) { LiveCell.new }
let(:dead_cell) { DeadCell.new }
context 'live cell' do
it 'dies with less than 2 neighbours' do
alive_cells = Neighbours.new(LiveCell.new)
expect(live_cell.next(alive_cells)).to be_a_kind_of DeadCell
end