Skip to content

Instantly share code, notes, and snippets.

View cognitus's full-sized avatar

Tomás Flores cognitus

  • Niucode
  • Santiago, Chile
View GitHub Profile
@TheDeadCode
TheDeadCode / JsonModelStreamWriter.php
Created March 3, 2021 22:04
JsonModelStreamWriter
<?php
/**
* Stream-write arrays onto a file on disk as JSON format, to avoid memory leaks.
* Written expressly for /u/devourment77 of reddit.
*
* Copyright (C) 2021 by Vynatu Cyberlabs, Inc. and Felix Lebel
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@juanbrujo
juanbrujo / comunas-regiones.json
Last active May 22, 2024 20:27 — forked from sergiohidalgo/comunas-regiones-chile.json
Comunas y regiones de chile JSON
{
"regiones": [
{
"region": "Arica y Parinacota",
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"]
},
{
"region": "Tarapacá",
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"]
},