This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$paises = array("Afganistán","Albania","Alemania","Andorra","Angola","Antigua y Barbuda","Arabia Saudita","Argelia","Argentina","Armenia","Australia","Austria","Azerbaiyán","Bahamas","Bangladés","Barbados","Baréin","Bélgica","Belice","Benín","Bielorrusia","Birmania","Bolivia","Bosnia y Herzegovina","Botsuana","Brasil","Brunéi","Bulgaria","Burkina Faso","Burundi","Bután","Cabo Verde","Camboya","Camerún","Canadá","Catar","Chad","Chile","China","Chipre","Ciudad del Vaticano","Colombia","Comoras","Corea del Norte","Corea del Sur","Costa de Marfil","Costa Rica","Croacia","Cuba","Dinamarca","Dominica","Ecuador","Egipto","El Salvador","Emiratos Árabes Unidos","Eritrea","Eslovaquia","Eslovenia","España","Estados Unidos","Estonia","Etiopía","Filipinas","Finlandia","Fiyi","Francia","Gabón","Gambia","Georgia","Ghana","Granada","Grecia","Guatemala","Guyana","Guinea","Guinea ecuatorial","Guinea-Bisáu","Haití","Honduras","Hungría","India","Indonesia","Irak","Irán","Irlanda","Islandia","Islas Marshall","Islas Salomón |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Processwire module to allow tiff image upload | |
// | |
// You must create a 'imagen_tiff' file upload field, and another 'imagen_web' image field. | |
// This module hooks on InputfieldFile::fileAdded and creates a temporary .png image through Imagick | |
// It then adds this temp .png to the 'imagen_web' field | |
class AjaxTiffToPng extends WireData implements Module { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xoff = melt.PenPosition().x, yoff = melt.PenPosition().y; | |
var grid = 3; | |
var alto = 330, ancho = 490; | |
for(let i=0; i<ancho/grid; i++){ | |
for(let j=0; j<alto/grid; j++){ | |
PickOne()? LtR(i*grid, j*grid) : RtL(i*grid, j*grid); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var totalHeight = 500; | |
var totalWidth = 1000; | |
var W = totalWidth; | |
var H = totalHeight; | |
var maxResolution = 5; | |
var branchLength, divergence, reduction, reductionOfReduction, line_width, start_points = []; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on Shiffman's Reaction Diffusion Tut: https://youtu.be/Cl_Gjj80gPE | |
// | |
// Changed to simulate once, on startup | |
// Then draw the lines of the resulting chains | |
// Will need to update vector to Victor.js in order to use with plotter | |
var tree = []; | |
var walkers = []; | |
var maxWalkers = 40; | |
var iterations = 1000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by gonzalo moiguer www.gonzamoiguer.com.ar | |
// p5.js sketch | |
// simulates patterns arising from a transport network | |
// Based on this 2010 paper by Jeff Jones "Characteristics of pattern formation and evolution in approximations of Physarum transport networks." http://eprints.uwe.ac.uk/15260/1/artl.2010.16.2.pdf | |
// Also helped by Sage Jenson breakdown and awesome GPU-powered work: https://sagejenson.com/physarum | |
var mapWidth = 500; | |
var mapHeight = 500; | |
var trailMap = []; |