Skip to content

Instantly share code, notes, and snippets.

View rhernandog's full-sized avatar
🐯

Rodrigo Hernando rhernandog

🐯
View GitHub Profile
@rhernandog
rhernandog / regiones-comunas.json
Last active December 9, 2020 04:02
Archivo en formato JSON con las regiones y sus respectivas provincias y comunas.
[
{
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP",
"provincias": [
"Arica",
"Parinacota"
],
"comunas": [
@rhernandog
rhernandog / regiones-provincias-comunas.json
Last active October 14, 2021 14:40
Archivo en formato JSON con las regiones de Chile, sus provincias y las respectivas comunas de cada provincia.
[
{
"region": "Arica y Parinacota",
"region_number": "XV",
"region_iso_3166_2": "CL-AP",
"provincias": [
{
"name": "Arica",
"comunas": [
{
@rhernandog
rhernandog / pixi-sprite-generator.js
Last active September 21, 2016 04:03
Suggestion of a class that returns a PIXI Sprite object with a simple configuration.
/* CREATE PIXI SPRITE CLASS
* In order to clean the code create a class that returns the sprite
* for the background image.
* Most common cases for sprites are position, scale, width, height,
* anchor and alpha;
* @param {string} the image url
* @param {object} configurations of the sprite
*/
var createPixiSprite = function(imgURL, config){