Skip to content

Instantly share code, notes, and snippets.

View hlibco's full-sized avatar
🌵
The treasure is within

Felipe Hlibco hlibco

🌵
The treasure is within
View GitHub Profile
export const countries = [
({ code: 'AD', emoji: '🇦🇩', name: 'Andorra' },
{ code: 'AE', emoji: '🇦🇪', name: 'United Arab Emirates' },
{ code: 'AF', emoji: '🇦🇫', name: 'Afghanistan' },
{ code: 'AG', emoji: '🇦🇬', name: 'Antigua and Barbuda' },
{ code: 'AI', emoji: '🇦🇮', name: 'Anguilla' },
{ code: 'AL', emoji: '🇦🇱', name: 'Albania' },
{ code: 'AM', emoji: '🇦🇲', name: 'Armenia' },
{ code: 'AO', emoji: '🇦🇴', name: 'Angola' },
{ code: 'AQ', emoji: '🇦🇶', name: 'Antarctica' },
@hlibco
hlibco / api.ts
Last active August 9, 2020 18:40
/*
API Proposal for a Router Module for Hyperapp:
Problems to solve:
1. In large applications, managing the construction of dynamic urls very often is required to avoid broken links in the application.
One way to enforce this is using in the view, some helpers, for example:
<Link to={routes.profile.url({id: 10})} />Profile</Link>
In this case, 2 validations are performed by the compiler (Typescript):
a) The url for the alias `profile` does exist in the routes definition.
b) The developer is passing All the required parameters (id) to build the url.
@hlibco
hlibco / README.md
Created July 13, 2018 17:46 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
'use strict';
/**
* See http://notes.webutvikling.org/send-aws-cloudwatch-alarms-to-slack/ for instructions
* But I like this code better because the snsToSlack.js code doesn't parse the CloudWatch JSON
*
* Follow these steps to configure the webhook in Slack:
*
* 1. Navigate to https://<your-team-domain>.slack.com/services/new
*