Skip to content

Instantly share code, notes, and snippets.

View AyoAlfonso's full-sized avatar
:octocat:
Building

Ayo Alfonso AyoAlfonso

:octocat:
Building
View GitHub Profile
{
"basics": {
"name": "Ayo Alfonso",
"label": "Mobile & Fullstack Engineer | React Native, Flutter, Riverpod, MobX, AI Tools",
"email": "[email protected]",
"location": {
"city": "United Kingdom"
},
"url": "https://ayoalfonso.com",
"profiles": [
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@AyoAlfonso
AyoAlfonso / vanilla-js-cheatsheet.md
Created November 2, 2022 22:16 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@AyoAlfonso
AyoAlfonso / component.js
Created November 2, 2022 19:54 — forked from Chojiu15/component.js
index.js
import React, { useState, useEffect } from "react";
import axios from "axios";
const Test = () => {
const [data, setData] = useState([]);
const [land, setLand] = useState("");
const [pop, setPop] = useState({
country: "",
population: "",
year: "",
@AyoAlfonso
AyoAlfonso / text_nodes.js
Created October 30, 2022 14:48 — forked from mwunsch/text_nodes.js
Get the text nodes out of a document, ignoring the ones that are in Elements where the text value aren't likely to be valuable (like <script> tags) and nodes containing just whitespace.
function getLegitTextNodes() {
if (!document.createTreeWalker) return [];
var blacklist = ['SCRIPT', 'OPTION', 'TEXTAREA'],
textNodes = [],
walker = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
function excludeBlacklistedNodes(node) {
if (blacklist.indexOf(node.parentElement.nodeName.toUpperCase()) >= 0) return NodeFilter.FILTER_REJECT;
/**
Using input object type for mutations
**/
type Mutation {
register(input : createPersonInput!):RegisterUserResponse!
}
input createPersonInput{
name: String!
@AyoAlfonso
AyoAlfonso / responsive.css
Created December 27, 2019 04:59 — forked from codesynapse/responsive.css
Mobile responsive CSS
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {