Skip to content

Instantly share code, notes, and snippets.

View reymon359's full-sized avatar
🍊
eating

Ramón Morcillo reymon359

🍊
eating
View GitHub Profile
@reymon359
reymon359 / osm_mapbox_gl_example.json
Created August 11, 2022 15:14 — forked from smellman/osm_mapbox_gl_example.json
Mapbox GL Style example using OpenStreetMap tile server
{
"version": 8,
"name": "Raster Tiles",
"glyphs": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/fonts/{fontstack}/{range}.pbf",
"sprite": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/maki-sprites/sprite",
"sources": {
"osm": {
"type": "raster",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
@reymon359
reymon359 / export-import-github-labels.js
Created February 23, 2021 18:18
Export import GitHub labels. Custom ones as default.
/**
* EXPORT LABELS
* 1. Copy and paste the following code into the repository browser console that you want to get the labels
* 2. Copy the result
*/
const labels = [];
[].slice.call(document.querySelectorAll('.js-label-link'))
.forEach(function (element) {
labels.push({
@reymon359
reymon359 / README.md
Last active May 6, 2021 05:31
README.md teamplate
@reymon359
reymon359 / renovate.json
Created July 15, 2020 06:13
Renovate app's custom configuration file
{
"extends": [
"config:base"
],
"packageRules": [
{
"updateTypes": [
"minor",
"patch"
],
@reymon359
reymon359 / main.yml
Created July 15, 2020 06:06
GitHub workflow to build and test a Create React App when a push or pull request is done to the master branch
name: Build and Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build_and_test:
@reymon359
reymon359 / hangmanAminationConsole.js
Created June 9, 2020 19:44
hangmanAminationConsole.js
var hangmanStages = [
`
`,
`
|
|
|
|
|
|
@reymon359
reymon359 / markdownUtils.md
Last active June 9, 2020 18:24
A personal compilation of templates for Markdown

Task Lists

  • text
  • text
  • text
  • text
  • text
  • text
  • text
@reymon359
reymon359 / concurrencyActors.js
Created June 2, 2020 05:07
An example of concurrency programming with actors I learned from the book The Pragmatic Programmer
/***
* Excerpted from "The Pragmatic Programmer, 20th Anniversary Edition",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.
* Visit http://www.pragmaticprogrammer.com/titles/tpp20 for more book information.
***/
const { start, dispatch, stop, spawn, spawnStateless } = require('nact');
@reymon359
reymon359 / hexTransparencyTable.txt
Last active May 31, 2020 15:43
Transparency in Hex values table
Table of percentages to hex values.
E.g. for 50% white you'd use #80FFFFFF.
to use in JavaScript CSS in JS `color: ${ white + '80' };`
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
@reymon359
reymon359 / quotes.json
Last active May 25, 2020 08:18
quotes json
{
"quotes":[
{
"quote":"Life isn’t about getting and having, it’s about giving and being.",
"author":"Kevin Kruse"
},
{
"quote":"Whatever the mind of man can conceive and believe, it can achieve.",
"author":"Napoleon Hill"
},