Skip to content

Instantly share code, notes, and snippets.

View antoniojps's full-sized avatar
🐬
Always learning

António Santos antoniojps

🐬
Always learning
View GitHub Profile
@antoniojps
antoniojps / mastering-frontend.md
Last active January 24, 2022 12:09
Mastering Frontend

Mastering Frontend

Plan of studies to deepen my knowledge as a frontend developer.

Fundamentals

  • HTML accessibility features
  • CSS:
    • Alignment features & grids(flexbox, grid)
  • Advanced Pseudo-classes/elements
@antoniojps
antoniojps / index.spec.tsx
Created May 13, 2021 10:36
Component boilerplate
import React from "react";
import { render } from "@testing-library/react";
import Component from ".";
describe("Component", () => {
it("should render successfully", () => {
const { baseElement } = render(<Component />);
expect(baseElement).toBeTruthy();
});
@antoniojps
antoniojps / components.esm.js
Created February 14, 2021 23:23
Expected bundle with 'styled-jsx/babel'
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _JSXStyle = _interopDefault(require('styled-jsx/style'));
var React = _interopDefault(require('react'));
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");

António Santos - @antoniojmps

Hey! I'm António Santos.

I've been working on multiple projects, professionally @mindera with the University of Aveiro creating a custom CMS for their highly collaborative digital communication needs. While that's going I've developed ytrank.net as a free web-based youtube rank checker and it's currently being used by thousands of users monthly, also made Voluntários which is a platform for people interested in volunteering in non-profits.

Oh, I'm also currently taking my Master in Multimedia Communication, loving it.

@antoniojps
antoniojps / _redirects
Created May 24, 2020 15:07
Netlify SPA - Add a _redirects file to /public
/robots.txt /robots.txt 200
/sitemap.xml /sitemap.xml 200
/* /index.html 200
@antoniojps
antoniojps / ts.md
Last active December 6, 2021 00:16
Typescript cheatsheet
@antoniojps
antoniojps / warning-remarkable-plugin.js
Created January 20, 2020 11:39
Warning tag remarkable plugin
/* eslint-disable no-param-reassign */
const TOKENS = {
WARNING: "warning",
WARNING_OPEN: "warning_open",
WARNING_CLOSE: "warning_close"
};
/**
* Remarkable block parser that recognizes callouts.
{
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "vue", "autoFix": true }
],
"editor.fontFamily": "Fira Code, Consolas , Menlo, Monaco, 'Courier New', monospace, 'Apple Color Emoji'",
"editor.fontSize": 14,
"editor.lineHeight": 25,
"editor.letterSpacing": 0.5,

Backoffice API Requirements

Recommended reading: Microsoft REST API Guidelines

This are the required endpoints for the UA's Portal Backoffice, some of them might already exist.

◀️ Priority 🍑 Next in line

@antoniojps
antoniojps / react-hooks-context-usage.js
Last active June 19, 2019 11:52
React Hooks and Context for Global State Management Example
import React, { useEffect } from 'react';
import { useExampleContext, actions, ExampleProvider } from 'context/ExampleContext';
const Page = () => {
// first element is the state
// second is the actions dispatcher
const [{ greet }, dispatch] = useExampleContext();
useEffect(() => {
dispatch({
type: actions.GREET_UPDATE,