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 / 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} />
@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;
@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 {
const data = {
name: "Oscar Barajas",
nickname: "gndx",
description: "...",
avatar: "...",
social: [
{
name: "twitter",
url: "https://twitter.com/",
username: "",
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
@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
import { XCircleIcon } from '@heroicons/react/solid';
const Alert = ({ alert, handleClose }) => {
if (alert && alert?.autoClose) {
setTimeout(() => {
handleClose();
}, 9000);
}
return (
@gndx
gndx / README.txt
Created December 8, 2021 15:22
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=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@gndx
gndx / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created December 8, 2021 05:41
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.0 (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

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