Skip to content

Instantly share code, notes, and snippets.

View gndx's full-sized avatar
🇨🇴
gndx.dev

Oscar Barajas Tavares gndx

🇨🇴
gndx.dev
View GitHub Profile
@gndx
gndx / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created February 16, 2022 03:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@gndx
gndx / App.jsx
Last active April 26, 2022 12:39
Formulario de contacto con React + Firebase
// Añadimos React & nuestro archivo de configuración
import React, { Component } from 'react';
import firebaseConf from './Firebase';
class App extends Component {
// inicializamos nuestro estado inicial
constructor(props) {
super(props);
this.state = {
@gndx
gndx / cssreset.css
Created February 21, 2018 00:17
CSS: html5 doctor css reset
/*
* html5 doctor css reset | http://html5doctor.com/html-5-reset-stylesheet
*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
const data = {
name: "Oscar Barajas",
nickname: "gndx",
description: "...",
avatar: "...",
social: [
{
name: "twitter",
url: "https://twitter.com/",
username: "",
@gndx
gndx / empaquetadores-parcel.css
Created June 21, 2022 21:48
Parcel CSS project
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap");
body {
margin: 0;
padding: 0;
color: #3c484e;
font-family: "Open Sans", sans-serif;
}
.Main {
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap");
body {
margin: 0;
padding: 0;
color: #3c484e;
font-family: "Open Sans", sans-serif;
padding: 10px;
grid-template-columns: minmax(auto, 768px);
display: grid;
@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400");
@import url("https://use.fontawesome.com/releases/v5.7.2/css/all.css");
body {
margin: 0;
padding: 0;
background-color: #f4f8fb;
font-family: 'Roboto', sans-serif;
color: #8c93bd;
}

random-messages

Whenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there...

Install

npm install -g random-msg
@gndx
gndx / head
Created February 9, 2023 22:59
Head - Astro
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />
<link rel="canonical" href={canonicalURL} />
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb"],
"globals": {
"document": false,
"escape": false,